Skip to content
Commit a6ff969f authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

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: default avatarChristian König <christian.koenig@amd.com>
Fixes: aed01a68

 ("drm/amdgpu: Remove TTM resource->start visible VRAM condition v2")
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
CC: stable@vger.kernel.org
parent 6fef2d4c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment