drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 13 Dec 2018 16:05:31 +0000 (17:05 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Dec 2018 20:55:17 +0000 (15:55 -0500)
commita3a0ebd10a9b6cf6c33885016393729112c85083
tree1d101bb772d3856e6766186062584b0cd7d0d6a2
parent344e7ad467f5bd057b9d4d66adafbfa8077ccaa6
drm/amdgpu: WARN once if amdgpu_bo_unpin is called for an unpinned BO

It indicates a pin/unpin imbalance bug somewhere. While the bug isn't
necessarily in the call chain hitting this, it's at least one part
involved.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c