diff options
| author | Christian König <[email protected]> | 2024-04-04 14:25:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-04-17 02:39:15 +0000 |
| commit | 394ae0603a6764d36437a26c097ef549e0eee1ff (patch) | |
| tree | 61ec1bc8fd58731f3fffffea9198632dc5ada319 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/amdgpu: validate the parameters of bo mapping operations more clearly (diff) | |
| download | kernel-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
