[PATCH v2 00/14] Cleanup error handling on probe
Lucas De Marchi
lucas.demarchi at intel.com
Thu Feb 6 23:23:18 UTC 2025
Mixing style with goto and devm_add_action_or_reset() is very confusing
and error prone. Clean that up. The only missing one is one of the
display calls, but that can be done in parallel to the review of these
first patches.
This received limited load/unload tests on LNL and may very well not be
100%.
v2:
- Add callback-based removed to overcome issue with gsc/mei
integration: it can't be removed with devm.
- More cleanups, adding drm_dev_unplug in the right place, fixing
hwmon, pmu and oa
Lucas De Marchi (14):
drm/xe: Fix xe_display_fini() calls
drm/xe: Fix error handling in xe_irq_install()
drm/xe: Fix xe_tile_init_noalloc() error propagation
drm/xe: Stop ignoring errors from xe_ttm_stolen_mgr_init()
drm/xe: Remove leftover pxp comment
drm/xe: Add callback support for driver remove
drm/xe: Cleanup unwind of gt initialization
drm/xe: Cleanup extra calls to xe_hw_fence_irq_finish()
drm/xe: Move oa fini to xe_oa
drm/xe: Move drm_dev_unplug() out of display function
drm/xe/oa: Handle errors in xe_oa_register()
drm/xe: Fail probe if xe_pmu_register() fails
drm/xe/hwmon: Fix mutex destroy
drm/xe/hwmon: Stop ignoring errors on probe
drivers/gpu/drm/xe/display/xe_display.c | 22 +--
drivers/gpu/drm/xe/display/xe_display.h | 2 -
drivers/gpu/drm/xe/xe_device.c | 133 ++++++++++++-------
drivers/gpu/drm/xe/xe_device.h | 4 +
drivers/gpu/drm/xe/xe_device_remove_action.h | 24 ++++
drivers/gpu/drm/xe/xe_device_types.h | 15 +++
drivers/gpu/drm/xe/xe_gsc.c | 9 --
drivers/gpu/drm/xe/xe_gsc.h | 1 -
drivers/gpu/drm/xe/xe_gsc_proxy.c | 63 +++++----
drivers/gpu/drm/xe/xe_gsc_proxy.h | 1 -
drivers/gpu/drm/xe/xe_gsc_types.h | 3 +
drivers/gpu/drm/xe/xe_gt.c | 50 +++----
drivers/gpu/drm/xe/xe_gt.h | 1 -
drivers/gpu/drm/xe/xe_hwmon.c | 39 +++---
drivers/gpu/drm/xe/xe_hwmon.h | 4 +-
drivers/gpu/drm/xe/xe_irq.c | 14 +-
drivers/gpu/drm/xe/xe_oa.c | 78 +++++------
drivers/gpu/drm/xe/xe_oa.h | 4 +-
drivers/gpu/drm/xe/xe_pci.c | 4 +-
drivers/gpu/drm/xe/xe_tile.c | 4 +-
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 17 +--
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.h | 2 +-
drivers/gpu/drm/xe/xe_uc.c | 13 --
drivers/gpu/drm/xe/xe_uc.h | 1 -
24 files changed, 267 insertions(+), 241 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_device_remove_action.h
--
2.48.1
More information about the Intel-xe
mailing list