summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.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/gk20a/mm_gk20a.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/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 18922d46..10ca84d9 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -274,7 +274,7 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm,
274 pte_dbg(g, attrs, 274 pte_dbg(g, attrs,
275 "PTE: i=%-4u size=%-2u offs=%-4u | " 275 "PTE: i=%-4u size=%-2u offs=%-4u | "
276 "GPU %#-12llx phys %#-12llx " 276 "GPU %#-12llx phys %#-12llx "
277 "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c%c " 277 "pgsz: %3dkb perm=%-2s kind=%#02x APT=%-6s %c%c%c%c "
278 "ctag=0x%08x " 278 "ctag=0x%08x "
279 "[0x%08x, 0x%08x]", 279 "[0x%08x, 0x%08x]",
280 pd_idx, l->entry_size, pd_offset, 280 pd_idx, l->entry_size, pd_offset,
@@ -286,7 +286,6 @@ static void update_gmmu_pte_locked(struct vm_gk20a *vm,
286 attrs->cacheable ? 'C' : '-', 286 attrs->cacheable ? 'C' : '-',
287 attrs->sparse ? 'S' : '-', 287 attrs->sparse ? 'S' : '-',
288 attrs->priv ? 'P' : '-', 288 attrs->priv ? 'P' : '-',
289 attrs->coherent ? 'I' : '-',
290 attrs->valid ? 'V' : '-', 289 attrs->valid ? 'V' : '-',
291 (u32)attrs->ctag >> ctag_shift, 290 (u32)attrs->ctag >> ctag_shift,
292 pte_w[1], pte_w[0]); 291 pte_w[1], pte_w[0]);