gpu: nvgpu: Remove force coherency

Remove the code that set default aperture mask as coherent.
MSS nvlink is set for force snoop, so default aperture mask is set as
non-coherent.

Bug 200473147
Bug 3057980

Change-Id: Ia8f826b8414826d2642f9c35c14ffba1cd0b9353
Signed-off-by: Vinod G <vinodg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2011966
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
(cherry-picked from aec64d8f8b
in dev-main)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2387271
(cherry picked from commit 570f03764f)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2399548
Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
This commit is contained in:
Debarshi Dutta
2020-07-28 16:47:54 +05:30
committed by Amulya Yarlagadda
parent f56ce8c0d2
commit cff72ef703

View File

@@ -83,14 +83,6 @@ static u64 __nvgpu_gmmu_map(struct vm_gk20a *vm,
return 0; return 0;
} }
/*
* If the GPU is IO coherent and the DMA API is giving us IO coherent
* CPU mappings then we gotta make sure we use the IO coherent aperture.
*/
if (nvgpu_is_enabled(g, NVGPU_USE_COHERENT_SYSMEM)) {
flags |= NVGPU_VM_MAP_IO_COHERENT;
}
/* /*
* Later on, when we free this nvgpu_mem's GPU mapping, we are going to * Later on, when we free this nvgpu_mem's GPU mapping, we are going to
* potentially have to free the GPU VA space. If the address passed in * potentially have to free the GPU VA space. If the address passed in