]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Wire up device shutdown handler
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 5 Sep 2024 15:00:51 +0000 (17:00 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 11 Sep 2024 17:07:57 +0000 (19:07 +0200)
commit501d799a47e2b83b4e41d5306c2266ea5c100a08
treed28aa9abd49d27f2ac5844651c7505bdd5b1b36e
parentf90491d4b64e302e940133103d3d9908e70e454f
drm/xe: Wire up device shutdown handler

The system is turning off, and we should probably put the device
in a safe power state. We don't need to evict VRAM or suspend running
jobs to a safe state, as the device is rebooted anyway.

This does not imply the system is necessarily reset, as we can
kexec into a new kernel. Without shutting down, things like
USB Type-C may mysteriously start failing.

References: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3500
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[mlankhorst: Add !xe_driver_flr_disabled assert]
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240905150052.174895-4-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/xe/display/xe_display.c
drivers/gpu/drm/xe/display/xe_display.h
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt.h