]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/amdgpu: use the preferred pin domain after the check
authorChristian König <christian.koenig@amd.com>
Wed, 18 Aug 2021 12:05:28 +0000 (14:05 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 24 Sep 2021 09:58:55 +0000 (11:58 +0200)
commit598cb7ce58506f5c67e1b06efc256ce023bcb963
tree8846b453cf88ba83f243cfa086cb6bc5c4728a9b
parentaa67f10910e5156fdda28fdfc1ffcc7fc6f6c2eb
drm/amdgpu: use the preferred pin domain after the check

BugLink: https://bugs.launchpad.net/bugs/1944610
commit 2a7b9a8437130fd328001f4edfac8eec98dfe298 upstream.

For some reason we run into an use case where a BO is already pinned
into GTT, but should be pinned into VRAM|GTT again.

Handle that case gracefully as well.

Reviewed-by: Shashank Sharma <Shashank.sharma@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c