diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-08 09:07:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-15 13:30:53 +0200 |
commit | 9fe6bda9823ea90c22ad47436293413d5fd58991 (patch) | |
tree | faaad6b17998278e6d43c6ad55acb1643eacf1bd /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | |
parent | b7170f9457f282783b6f3843e2b30d619449837c (diff) | |
download | linux-9fe6bda9823ea90c22ad47436293413d5fd58991.tar.bz2 |
drm/virtio: add virtio_gpu_cmd_unref_resource error handling
Usually we wait for the host to complete the unref request, then cleanup
the guest-side state of the object in the completion callback. When
submitting the unref command failed the completion callback will not be
called though, so cleanup right away.
Fixes a WARN on stale mm entries on driver shutdown.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200908070723.6394-4-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions