aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2024-04-04 14:25:40 +0000
committerAlex Deucher <[email protected]>2024-04-17 02:39:15 +0000
commit394ae0603a6764d36437a26c097ef549e0eee1ff (patch)
tree61ec1bc8fd58731f3fffffea9198632dc5ada319 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm/amdgpu: validate the parameters of bo mapping operations more clearly (diff)
downloadkernel-394ae0603a6764d36437a26c097ef549e0eee1ff.tar.gz
kernel-394ae0603a6764d36437a26c097ef549e0eee1ff.zip
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 <[email protected]> Fixes: aed01a68047b ("drm/amdgpu: Remove TTM resource->start visible VRAM condition v2") Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> CC: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions