drm/amdgpu: fix visible VRAM handling during faults
[ Upstream commit a6ff969fe9cbf369e3cd0ac54261fec1122682ec ] When we removed the hacky start code check we actually didn't took into account that *all* VRAM pages needs to be CPU accessible. Clean up the code and unify the handling into a single helper which checks if the whole resource is CPU accessible. The only place where a partial check would make sense is during eviction, but that is neglitible. Signed-off-by:Christian König <christian.koenig@amd.com> Fixes: aed01a68 ("drm/amdgpu: Remove TTM resource->start visible VRAM condition v2") Reviewed-by:
Alex Deucher <alexander.deucher@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> CC: stable@vger.kernel.org Signed-off-by:
Sasha Levin <sashal@kernel.org>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 1 addition, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 11 additions, 11 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.h 0 additions, 22 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_object.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 38 additions, 23 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h 3 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
Loading
Please register or sign in to comment