]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Warn and update pin_size values when destroying a pinned BO
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 11 Jul 2018 10:42:55 +0000 (12:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:47:01 +0000 (09:47 +0200)
commitff9ac76caaee4a814a2834a13281c1004d82ad76
tree679f5acf043ad3bf56a8583e7bc4bd38353f2ea0
parente2a81121f62a6c7886040f799105307bc9b535fa
drm/amdgpu: Warn and update pin_size values when destroying a pinned BO

commit 15e6b76880e65be24250e30986084b5569b7a06f upstream.

This shouldn't happen, but if it does, we'll get a backtrace of the
caller, and update the pin_size values as needed.

v2:
* Check bo->pin_count instead of placement flags (Christian König)

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c