mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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 fromaec64d8f8bin dev-main) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2387271 (cherry picked from commit570f03764f) 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:
committed by
Amulya Yarlagadda
parent
f56ce8c0d2
commit
cff72ef703
@@ -83,14 +83,6 @@ static u64 __nvgpu_gmmu_map(struct vm_gk20a *vm,
|
||||
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
|
||||
* potentially have to free the GPU VA space. If the address passed in
|
||||
|
||||
Reference in New Issue
Block a user