summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
diff options
context:
space:
mode:
authorDebarshi Dutta <ddutta@nvidia.com>2020-07-28 07:23:08 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2020-08-07 12:11:01 -0400
commitc46d6fbc5b8d87118ed608e462c62a7976d19246 (patch)
tree6db15eef28a83fc9feeeea27679b858e6628ef4f /drivers/gpu/nvgpu/gp10b/mm_gp10b.c
parent570f03764fa9f3e014b9c90a48aa7635edf4c0ac (diff)
gpu: nvgpu: Discard coherency check on gmmu
With MSS Nvlink set for force snoop, check for the coherency flag in gmmu attribute and setting pte aperture to coherent type based on that checking is not relevant. coherent variable removed from nvgpu_gmmu_attrs struct. Bug 200473147 Bug 3057980 Change-Id: Idf76cac901ef7c70faa2c4f7f11a046d94b9466a Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2013212 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> (cherry-picked from 4e1769097526e5203f7c18a663ab3c29f5568ae5 in rel-32) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2387272 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: Aayush Rajoria <arajoria@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mm_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/mm_gp10b.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
index a4b291d8..48e08a16 100644
--- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.c
@@ -280,7 +280,7 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm,
280 "vm=%s " 280 "vm=%s "
281 "PTE: i=%-4u size=%-2u | " 281 "PTE: i=%-4u size=%-2u | "
282 "GPU %#-12llx phys %#-12llx " 282 "GPU %#-12llx phys %#-12llx "
283 "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c%c%c " 283 "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c%c "
284 "ctag=0x%08x " 284 "ctag=0x%08x "
285 "[0x%08x, 0x%08x]", 285 "[0x%08x, 0x%08x]",
286 vm->name, 286 vm->name,
@@ -293,7 +293,6 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm,
293 attrs->cacheable ? 'C' : '-', 293 attrs->cacheable ? 'C' : '-',
294 attrs->sparse ? 'S' : '-', 294 attrs->sparse ? 'S' : '-',
295 attrs->priv ? 'P' : '-', 295 attrs->priv ? 'P' : '-',
296 attrs->coherent ? 'I' : '-',
297 attrs->valid ? 'V' : '-', 296 attrs->valid ? 'V' : '-',
298 attrs->platform_atomic ? 'A' : '-', 297 attrs->platform_atomic ? 'A' : '-',
299 (u32)attrs->ctag / g->ops.fb.compression_page_size(g), 298 (u32)attrs->ctag / g->ops.fb.compression_page_size(g),