From 90d245978f2b270a94e94a1e8bd82e5aa41e9cb5 Mon Sep 17 00:00:00 2001
From: Dinesh T
Date: Thu, 24 Mar 2022 07:14:33 +0000
Subject: [PATCH] gpu: nvgpu: Fix for Compression enablement on safety
This is removing NON-FUSA code that is needed for compression
enablement on safety.
The code is needed for comptag update on page table entry
used by the GPU.
Bug 3582013
Change-Id: Ib4e5c9810fabac5f479e0993184b9abf35df4afb
Signed-off-by: Dinesh T
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2686411
Reviewed-by: svc-mobile-coverity
Reviewed-by: svc-mobile-misra
Reviewed-by: svc-mobile-cert
Reviewed-by: Martin Radev
Reviewed-by: Deepak Nibade
GVS: Gerrit_Virtual_Submit
---
drivers/gpu/nvgpu/common/mm/gmmu/page_table.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/nvgpu/common/mm/gmmu/page_table.c b/drivers/gpu/nvgpu/common/mm/gmmu/page_table.c
index f3728295e..2d122bda9 100644
--- a/drivers/gpu/nvgpu/common/mm/gmmu/page_table.c
+++ b/drivers/gpu/nvgpu/common/mm/gmmu/page_table.c
@@ -1062,11 +1062,9 @@ u64 nvgpu_gmmu_map_locked(struct vm_gk20a *vm,
buffer_offset & (ctag_granularity - U64(1)));
}
-#if defined(CONFIG_NVGPU_NON_FUSA)
attrs.cbc_comptagline_mode =
g->ops.fb.is_comptagline_mode_enabled != NULL ?
g->ops.fb.is_comptagline_mode_enabled(g) : true;
-#endif
#endif
attrs.l3_alloc = ((flags & NVGPU_VM_MAP_L3_ALLOC) != 0U);