]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe/ggtt: use drm_dev_enter to mark device section
authorMatthew Auld <matthew.auld@intel.com>
Wed, 22 May 2024 10:21:46 +0000 (11:21 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 22 May 2024 12:22:39 +0000 (13:22 +0100)
commit3a1c27cd0122409a9fc425106fff79655ceeaa20
tree461477ddfec1ec38cceb4b4e3c2e05b9607cd89b
parentc60f91bbc4bcd91f9c7f3de36c541951b12d165a
drm/xe/ggtt: use drm_dev_enter to mark device section

Device can be hotunplugged before we start destroying gem objects. In
such a case don't touch the GGTT entries, trigger any invalidations or
mess around with rpm.  This should already be taken care of when
removing the device, we just need to take care of dealing with the
software state, like removing the mm node.

v2: (Andrzej)
  - Avoid some duplication by tracking the bound status and checking
    that instead.

References: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1717
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Jagmeet Randhawa <jagmeet.randhawa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240522102143.128069-21-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_ggtt.c