mirror-linux/drivers/gpu/drm/amd
Christian König a6ff969fe9 drm/amdgpu: fix visible VRAM handling during faults
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: aed01a6804 ("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
2024-04-17 11:50:43 -04:00
..
acp
amdgpu drm/amdgpu: fix visible VRAM handling during faults 2024-04-17 11:50:43 -04:00
amdkfd drm/amdkfd: Fix memory leak in create_process failure 2024-04-17 11:05:09 -04:00
amdxcp drm/amdxcp: fix amdxcp unloads incompletely 2023-10-26 19:04:53 -04:00
display Revert "drm/amd/display: fix USB-C flag update after enc10 feature init" 2024-04-17 11:12:21 -04:00
include drm/amdgpu/umsch: update UMSCH 4.0 FW interface 2024-03-27 09:29:42 -04:00
pm drm/amd/pm: fix the high voltage issue after unload 2024-04-09 23:26:32 -04:00