drm/xe/ggtt: prime ggtt->lock against FS_RECLAIM
authorMatthew Auld <matthew.auld@intel.com>
Wed, 19 Jul 2023 08:38:10 +0000 (09:38 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:36 +0000 (11:37 -0500)
commite018f44b29ed2de0a09186c728f173d0daaac448
tree3ae749d5f2dd2e3b7829387cb175436e8546ab7e
parent7eed01a926838d4f6b8c655801e6af5366ccec46
drm/xe/ggtt: prime ggtt->lock against FS_RECLAIM

Increase the sensitivity of the ggtt->lock by priming it against
FS_RECLAIM, such that allocating memory while holding will result in
lockdep splats.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_ggtt.c