]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix VRAM eviction issue
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Thu, 22 Sep 2022 15:14:47 +0000 (08:14 -0700)
committerChristian König <christian.koenig@amd.com>
Thu, 22 Sep 2022 17:53:06 +0000 (19:53 +0200)
commit904469282df90dd57b804a34e8197c292083d09c
treee64f50b12fa49da164010021eb6a6468dcb97c7b
parent300396f16634ed1fb5aa9b9773b461f96ba0d315
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: 5b0a403a5d0e ("drm/amdgpu: Implement intersect/compatible functions")
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220922151447.265696-1-Arunpravin.PaneerSelvam@amd.com
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c