Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/14] Cleanup error handling on probe
@ 2025-02-06 23:23 Lucas De Marchi
  2025-02-06 23:23 ` [PATCH v2 01/14] drm/xe: Fix xe_display_fini() calls Lucas De Marchi
                   ` (21 more replies)
  0 siblings, 22 replies; 31+ messages in thread
From: Lucas De Marchi @ 2025-02-06 23:23 UTC (permalink / raw)
  To: intel-xe; +Cc: Rodrigo Vivi, Francois Dugast, Lucas De Marchi

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


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2025-02-07 21:38 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06 23:23 [PATCH v2 00/14] Cleanup error handling on probe Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 01/14] drm/xe: Fix xe_display_fini() calls Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 02/14] drm/xe: Fix error handling in xe_irq_install() Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 03/14] drm/xe: Fix xe_tile_init_noalloc() error propagation Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 04/14] drm/xe: Stop ignoring errors from xe_ttm_stolen_mgr_init() Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 05/14] drm/xe: Remove leftover pxp comment Lucas De Marchi
2025-02-06 23:28   ` Daniele Ceraolo Spurio
2025-02-06 23:23 ` [PATCH v2 06/14] drm/xe: Add callback support for driver remove Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 07/14] drm/xe: Cleanup unwind of gt initialization Lucas De Marchi
2025-02-07  0:21   ` Daniele Ceraolo Spurio
2025-02-07  0:45     ` Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 08/14] drm/xe: Cleanup extra calls to xe_hw_fence_irq_finish() Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 09/14] drm/xe: Move oa fini to xe_oa Lucas De Marchi
2025-02-07 21:22   ` Dixit, Ashutosh
2025-02-06 23:23 ` [PATCH v2 10/14] drm/xe: Move drm_dev_unplug() out of display function Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 11/14] drm/xe/oa: Handle errors in xe_oa_register() Lucas De Marchi
2025-02-07 21:38   ` Dixit, Ashutosh
2025-02-06 23:23 ` [PATCH v2 12/14] drm/xe: Fail probe if xe_pmu_register() fails Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 13/14] drm/xe/hwmon: Fix mutex destroy Lucas De Marchi
2025-02-07  3:27   ` Lucas De Marchi
2025-02-07 10:20     ` Matthew Auld
2025-02-07 13:59       ` Lucas De Marchi
2025-02-06 23:23 ` [PATCH v2 14/14] drm/xe/hwmon: Stop ignoring errors on probe Lucas De Marchi
2025-02-07  0:59 ` ✓ CI.Patch_applied: success for Cleanup error handling on probe (rev2) Patchwork
2025-02-07  1:00 ` ✗ CI.checkpatch: warning " Patchwork
2025-02-07  1:01 ` ✓ CI.KUnit: success " Patchwork
2025-02-07  1:17 ` ✓ CI.Build: " Patchwork
2025-02-07  1:20 ` ✓ CI.Hooks: " Patchwork
2025-02-07  1:21 ` ✓ CI.checksparse: " Patchwork
2025-02-07  1:41 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-02-07  7:27 ` ✗ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox