All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 00/13] Cleanup error handling on probe
@ 2025-02-12 19:35 Lucas De Marchi
  2025-02-12 19:35 ` [PATCH v4 01/13] drm/xe: Add callback support for driver remove Lucas De Marchi
                   ` (15 more replies)
  0 siblings, 16 replies; 23+ messages in thread
From: Lucas De Marchi @ 2025-02-12 19:35 UTC (permalink / raw)
  To: intel-xe
  Cc: Rodrigo Vivi, Francois Dugast, Matthew Auld,
	Daniele Ceraolo Spurio, 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.

Tested on LNL, BMG and ADL-P with driver bind/unbind.

I have other changes on top of these that will make devm compatible.
That will need some drivers/base/ changes though, so it's probably good
to do it in parallel.

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
v3:
  - Drop the hwmon patch changing the mutex destroy: we can use drmm_
    only if we also migrate the hwmon allocation to drmm_, but
    there isn't much reason to do so

v4:
  - Move the callback infro to be the first patch and also use it
    for xe_display_fini()
  - Make our internal api similar to the devm API for easy conversion

Lucas De Marchi (13):
  drm/xe: Add callback support for driver remove
  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: Cleanup unwind of gt initialization
  drm/xe: Cleanup extra calls to xe_hw_fence_irq_finish()
  drm/xe/oa: Move 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/pmu: Fail probe if xe_pmu_register() fails
  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          | 151 +++++++++++++++++-------
 drivers/gpu/drm/xe/xe_device.h          |   4 +
 drivers/gpu/drm/xe/xe_device_types.h    |  17 +++
 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       |   1 +
 drivers/gpu/drm/xe/xe_gt.c              |  50 +++-----
 drivers/gpu/drm/xe/xe_gt.h              |   1 -
 drivers/gpu/drm/xe/xe_hwmon.c           |  31 ++---
 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 -
 23 files changed, 261 insertions(+), 233 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-02-14 20:56 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 19:35 [PATCH v4 00/13] Cleanup error handling on probe Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 01/13] drm/xe: Add callback support for driver remove Lucas De Marchi
2025-02-12 20:01   ` Rodrigo Vivi
2025-02-12 20:11     ` Lucas De Marchi
2025-02-14 20:55       ` Lucas De Marchi
2025-02-12 21:19   ` Raag Jadav
2025-02-12 21:28     ` Lucas De Marchi
2025-02-13  4:41       ` Raag Jadav
2025-02-12 19:35 ` [PATCH v4 02/13] drm/xe: Fix xe_display_fini() calls Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 03/13] drm/xe: Fix error handling in xe_irq_install() Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 04/13] drm/xe: Fix xe_tile_init_noalloc() error propagation Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 05/13] drm/xe: Stop ignoring errors from xe_ttm_stolen_mgr_init() Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 06/13] drm/xe: Remove leftover pxp comment Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 07/13] drm/xe: Cleanup unwind of gt initialization Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 08/13] drm/xe: Cleanup extra calls to xe_hw_fence_irq_finish() Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 09/13] drm/xe/oa: Move fini to xe_oa Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 10/13] drm/xe: Move drm_dev_unplug() out of display function Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 11/13] drm/xe/oa: Handle errors in xe_oa_register() Lucas De Marchi
2025-02-12 19:35 ` [PATCH v4 12/13] drm/xe/pmu: Fail probe if xe_pmu_register() fails Lucas De Marchi
2025-02-12 19:36 ` [PATCH v4 13/13] drm/xe/hwmon: Stop ignoring errors on probe Lucas De Marchi
2025-02-12 23:04 ` ✓ CI.Patch_applied: success for Cleanup error handling on probe (rev4) Patchwork
2025-02-12 23:05 ` ✓ CI.checkpatch: " Patchwork
2025-02-12 23:07 ` ✗ CI.KUnit: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.