]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/bo: add some annotations in bo_put()
authorMatthew Auld <matthew.auld@intel.com>
Wed, 11 Sep 2024 15:55:30 +0000 (16:55 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 18 Sep 2024 04:31:06 +0000 (23:31 -0500)
commitddc73c465628ab3e60f7eb5b4063b644c18b6336
treede154310276b47bb816eca28991f5ac568ac1f2c
parent73d10c7788f6d2b7badf9973afbdea7ca433c15d
drm/xe/bo: add some annotations in bo_put()

If the put() triggers bo destroy then there is at least one potential
sleeping lock. Also annotate bos_lock and ggtt lock.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240911155527.178910-8-matthew.auld@intel.com
(cherry picked from commit 3b04c2cfd71c54117237c72f2a08ff0ae1f602e2)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_bo.h