Skip to content

Commit 39dd0cc

Browse files
arunpravin24ChristianKoenigAMD
authored andcommitted
drm/amdgpu: Fix VRAM eviction issue
A user reported that when he starts a game (MTGA) with wine, he observed an error msg failed to pin framebuffer with error -12. Found an issue with the VRAM mem type eviction decision condition logic. This patch will fix the if condition code error. Gitlab bug link: https://gitlab.freedesktop.org/drm/amd/-/issues/2159 Fixes: ded910f ("drm/amdgpu: Implement intersect/compatible functions") Signed-off-by: Arunpravin Paneer Selvam <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Christian König <[email protected]> Signed-off-by: Christian König <[email protected]>
1 parent a40c7f6 commit 39dd0cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ static bool amdgpu_vram_mgr_intersects(struct ttm_resource_manager *man,
746746
(amdgpu_vram_mgr_block_size(block) >> PAGE_SHIFT);
747747

748748
if (place->fpfn < lpfn &&
749-
(place->lpfn && place->lpfn > fpfn))
749+
(!place->lpfn || place->lpfn > fpfn))
750750
return true;
751751
}
752752

0 commit comments

Comments
 (0)