mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
gpu: nvgpu: rename feature Make and C flags
Name the Make and C flag variables consistently wih syntax: CONFIG_NVGPU_<feature name> s/NVGPU_DEBUGGER/CONFIG_NVGPU_DEBUGGER s/NVGPU_CYCLESTATS/CONFIG_NVGPU_CYCLESTATS s/NVGPU_USERD/CONFIG_NVGPU_USERD s/NVGPU_CHANNEL_WDT/CONFIG_NVGPU_CHANNEL_WDT s/NVGPU_FEATURE_CE/CONFIG_NVGPU_CE s/NVGPU_GRAPHICS/CONFIG_NVGPU_GRAPHICS s/NVGPU_ENGINE/CONFIG_NVGPU_FIFO_ENGINE_ACTIVITY s/NVGPU_FEATURE_CHANNEL_TSG_SCHED/CONFIG_NVGPU_CHANNEL_TSG_SCHED s/NVGPU_FEATURE_CHANNEL_TSG_CONTROL/CONFIG_NVGPU_CHANNEL_TSG_CONTROL s/NVGPU_FEATURE_ENGINE_QUEUE/CONFIG_NVGPU_ENGINE_QUEUE s/GK20A_CTXSW_TRACE/CONFIG_NVGPU_FECS_TRACE s/IGPU_VIRT_SUPPORT/CONFIG_NVGPU_IGPU_VIRT s/CONFIG_TEGRA_NVLINK/CONFIG_NVGPU_NVLINK s/NVGPU_DGPU_SUPPORT/CONFIG_NVGPU_DGPU s/NVGPU_VPR/CONFIG_NVGPU_VPR s/NVGPU_REPLAYABLE_FAULT/CONFIG_NVGPU_REPLAYABLE_FAULT s/NVGPU_FEATURE_LS_PMU/CONFIG_NVGPU_LS_PMU s/NVGPU_FEATURE_POWER_PG/CONFIG_NVGPU_POWER_PG JIRA NVGPU-3624 Change-Id: I8b2492b085095fc6ee95926d8f8c3929702a1773 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2130290 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
cc3b0467db
commit
3f08cf8a48
@@ -353,7 +353,7 @@ int nvgpu_gr_ctx_map_global_ctx_buffers(struct gk20a *g,
|
||||
g_bfr_index = &gr_ctx->global_ctx_buffer_index[0];
|
||||
|
||||
/* Circular Buffer */
|
||||
#ifdef NVGPU_VPR
|
||||
#ifdef CONFIG_NVGPU_VPR
|
||||
if (vpr && nvgpu_gr_global_ctx_buffer_ready(global_ctx_buffer,
|
||||
NVGPU_GR_GLOBAL_CTX_CIRCULAR_VPR)) {
|
||||
gpu_va = nvgpu_gr_global_ctx_buffer_map(global_ctx_buffer,
|
||||
@@ -366,7 +366,7 @@ int nvgpu_gr_ctx_map_global_ctx_buffers(struct gk20a *g,
|
||||
NVGPU_GR_GLOBAL_CTX_CIRCULAR,
|
||||
vm, NVGPU_VM_MAP_CACHEABLE, true);
|
||||
g_bfr_index[NVGPU_GR_CTX_CIRCULAR_VA] = NVGPU_GR_GLOBAL_CTX_CIRCULAR;
|
||||
#ifdef NVGPU_VPR
|
||||
#ifdef CONFIG_NVGPU_VPR
|
||||
}
|
||||
#endif
|
||||
if (gpu_va == 0ULL) {
|
||||
@@ -376,7 +376,7 @@ int nvgpu_gr_ctx_map_global_ctx_buffers(struct gk20a *g,
|
||||
g_bfr_va[NVGPU_GR_CTX_CIRCULAR_VA] = gpu_va;
|
||||
|
||||
/* Attribute Buffer */
|
||||
#ifdef NVGPU_VPR
|
||||
#ifdef CONFIG_NVGPU_VPR
|
||||
if (vpr && nvgpu_gr_global_ctx_buffer_ready(global_ctx_buffer,
|
||||
NVGPU_GR_GLOBAL_CTX_ATTRIBUTE_VPR)) {
|
||||
gpu_va = nvgpu_gr_global_ctx_buffer_map(global_ctx_buffer,
|
||||
@@ -389,7 +389,7 @@ int nvgpu_gr_ctx_map_global_ctx_buffers(struct gk20a *g,
|
||||
NVGPU_GR_GLOBAL_CTX_ATTRIBUTE,
|
||||
vm, NVGPU_VM_MAP_CACHEABLE, false);
|
||||
g_bfr_index[NVGPU_GR_CTX_ATTRIBUTE_VA] = NVGPU_GR_GLOBAL_CTX_ATTRIBUTE;
|
||||
#ifdef NVGPU_VPR
|
||||
#ifdef CONFIG_NVGPU_VPR
|
||||
}
|
||||
#endif
|
||||
if (gpu_va == 0ULL) {
|
||||
@@ -399,7 +399,7 @@ int nvgpu_gr_ctx_map_global_ctx_buffers(struct gk20a *g,
|
||||
g_bfr_va[NVGPU_GR_CTX_ATTRIBUTE_VA] = gpu_va;
|
||||
|
||||
/* Page Pool */
|
||||
#ifdef NVGPU_VPR
|
||||
#ifdef CONFIG_NVGPU_VPR
|
||||
if (vpr && nvgpu_gr_global_ctx_buffer_ready(global_ctx_buffer,
|
||||
NVGPU_GR_GLOBAL_CTX_PAGEPOOL_VPR)) {
|
||||
gpu_va = nvgpu_gr_global_ctx_buffer_map(global_ctx_buffer,
|
||||
@@ -412,7 +412,7 @@ int nvgpu_gr_ctx_map_global_ctx_buffers(struct gk20a *g,
|
||||
NVGPU_GR_GLOBAL_CTX_PAGEPOOL,
|
||||
vm, NVGPU_VM_MAP_CACHEABLE, true);
|
||||
g_bfr_index[NVGPU_GR_CTX_PAGEPOOL_VA] = NVGPU_GR_GLOBAL_CTX_PAGEPOOL;
|
||||
#ifdef NVGPU_VPR
|
||||
#ifdef CONFIG_NVGPU_VPR
|
||||
}
|
||||
#endif
|
||||
if (gpu_va == 0ULL) {
|
||||
@@ -432,7 +432,7 @@ int nvgpu_gr_ctx_map_global_ctx_buffers(struct gk20a *g,
|
||||
g_bfr_va[NVGPU_GR_CTX_PRIV_ACCESS_MAP_VA] = gpu_va;
|
||||
g_bfr_index[NVGPU_GR_CTX_PRIV_ACCESS_MAP_VA] = NVGPU_GR_GLOBAL_CTX_PRIV_ACCESS_MAP;
|
||||
|
||||
#ifdef CONFIG_GK20A_CTXSW_TRACE
|
||||
#ifdef CONFIG_NVGPU_FECS_TRACE
|
||||
/* FECS trace buffer */
|
||||
if (nvgpu_is_enabled(g, NVGPU_FECS_TRACE_VA)) {
|
||||
gpu_va = nvgpu_gr_global_ctx_buffer_map(global_ctx_buffer,
|
||||
@@ -704,7 +704,7 @@ u32 nvgpu_gr_ctx_get_ctx_id(struct gk20a *g, struct nvgpu_gr_ctx *gr_ctx)
|
||||
return gr_ctx->ctx_id;
|
||||
}
|
||||
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||
void nvgpu_gr_ctx_set_zcull_ctx(struct gk20a *g, struct nvgpu_gr_ctx *gr_ctx,
|
||||
u32 mode, u64 gpu_va)
|
||||
{
|
||||
@@ -969,7 +969,7 @@ u32 nvgpu_gr_ctx_read_ctx_id(struct nvgpu_gr_ctx *gr_ctx)
|
||||
return gr_ctx->ctx_id;
|
||||
}
|
||||
|
||||
#ifdef NVGPU_FEATURE_CHANNEL_TSG_SCHEDULING
|
||||
#ifdef CONFIG_NVGPU_CHANNEL_TSG_SCHEDULING
|
||||
void nvgpu_gr_ctx_set_boosted_ctx(struct nvgpu_gr_ctx *gr_ctx, bool boost)
|
||||
{
|
||||
gr_ctx->boosted_ctx = boost;
|
||||
|
||||
Reference in New Issue
Block a user