From: Raag Jadav <raag.jadav@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: intel-xe@lists.freedesktop.org,
"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
"Francois Dugast" <francois.dugast@intel.com>,
"Matthew Auld" <matthew.auld@intel.com>,
"Daniele Ceraolo Spurio" <daniele.ceraolospurio@intel.com>,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Subject: Re: [PATCH v4 01/13] drm/xe: Add callback support for driver remove
Date: Thu, 13 Feb 2025 06:41:24 +0200 [thread overview]
Message-ID: <Z6139KcC9OJTbgni@black.fi.intel.com> (raw)
In-Reply-To: <qdimi2zm224r52wjzof7y7fgvmli5lq2nb7ho55qdru3jlawzr@chxmjs5vs63x>
On Wed, Feb 12, 2025 at 03:28:15PM -0600, Lucas De Marchi wrote:
> On Wed, Feb 12, 2025 at 11:19:22PM +0200, Raag Jadav wrote:
> > On Wed, Feb 12, 2025 at 11:35:48AM -0800, Lucas De Marchi wrote:
> > > xe device probe uses devm cleanup in most places. However there are a
> > > few cases where this is not possible: when the driver interacts with
> > > component add/del. In that case, the resource group would be cleanup
> > > while the entire device resources are in the process of cleanup. One
> > > example is the xe_gsc_proxy and display using that to interact with mei
> > > and audio.
> > >
> > > Add a callback-based remove so the exception doesn't make the probe
> > > use multiple error handling styles.
> > >
> > > v2: Change internal API to mimic the devm API. This will make it easier
> > > to migrate in future when devm can be used.
> >
> > Which means we'd like to go back to devm action someday, or is that even
> > possible? Assuming it is, and still worth it, why not try to do that
> > instead?
>
> From the cover letter:
> 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.
>
> From my reply to Rodrigo:
> The devm part is here:
> https://lore.kernel.org/dri-devel/20250212200542.515493-1-lucas.demarchi@intel.com/
>
> In the end I could simplify it much more than I thought and what is
> required on devres side is just one patch, 2 lines diff. Hopefully I
> didn't simplify it too much. Let's see. If that one is accepted through
> intel-xe tree, then we may even drop this first patch and go straight
> with that solution.
>
> ...
>
> I will wait some feedback on that other series to see how we are going
> to proceed. If we keep this patch, then I will update this doc.
>
> I hope this clarifies,
Yep, just trying to weigh in.
Side note: There's a devres.h split in progress[1]. In case you'll be touching
these in future versions, please let me know. We'll do it in a cleaner way that
doesn't conflict.
[1] https://lore.kernel.org/r/20250212062513.2254767-1-raag.jadav@intel.com/
Raag
next prev parent reply other threads:[~2025-02-13 4:41 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z6139KcC9OJTbgni@black.fi.intel.com \
--to=raag.jadav@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=francois.dugast@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=matthew.auld@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=thomas.hellstrom@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.