]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Warn on pinning without holding a reference
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Oct 2020 11:31:20 +0000 (12:31 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Nov 2020 15:43:54 +0000 (16:43 +0100)
commit57fcd550eb15bce14a7154736379dfd4ed60ae81
treec7744650575016e8e7bc2d94ecb4fafd0ed2ef1b
parentc6c90c70db4d9a0989111d6b994d545659410f7a
drm/ttm: Warn on pinning without holding a reference

Not technically a problem for ttm, but very likely a driver bug and
pretty big time confusing for reviewing code.

So warn about it, both at cleanup time (so we catch these for sure)
and at pin/unpin time (so we know who's the culprit).

Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201028113120.3641237-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h