From: "Bommu, Krishnaiah" <krishnaiah.bommu@intel.com>
To: <intel-xe@lists.freedesktop.org>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>,
Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH] drm: Ensure Proper Unload/Reload Order of MEI Modules for i915/Xe Driver
Date: Mon, 2 Sep 2024 19:54:48 +0530 [thread overview]
Message-ID: <ba2e7fdc-1b13-47ae-8d0d-028d4f444c7f@intel.com> (raw)
In-Reply-To: <20240902141041.18467-1-krishnaiah.bommu@intel.com>
old patch: https://patchwork.freedesktop.org/series/137343/
On 02-09-2024 19:40, Bommu Krishnaiah wrote:
> This update addresses the unload/reload sequence of MEI modules in relation to
> the i915/Xe graphics driver. On platforms where the MEI hardware is integrated
> with the graphics device (e.g., DG2/BMG), the MEI modules depend on the i915/Xe
> driver. Conversely, on newer platforms like CLS, where the MEI hardware is
> separate, this dependency does not exist.
>
> The changes introduced ensure that MEI modules are unloaded and reloaded in the
> correct order based on platform-specific dependencies. This is achieved by adding
> a MODULE_SOFTDEP directive to the i915 and Xe module code.
>
> These changes enhance the robustness of MEI module handling across different hardware
> platforms, ensuring that the i915/Xe driver can be cleanly unloaded and reloaded
> without issues.
>
> Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> drivers/gpu/drm/i915/i915_module.c | 2 ++
> drivers/gpu/drm/xe/xe_module.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_module.c b/drivers/gpu/drm/i915/i915_module.c
> index 65acd7bf75d0..2ad079ad35db 100644
> --- a/drivers/gpu/drm/i915/i915_module.c
> +++ b/drivers/gpu/drm/i915/i915_module.c
> @@ -75,6 +75,8 @@ static const struct {
> };
> static int init_progress;
>
> +MODULE_SOFTDEP("pre: mei_gsc_proxy mei_gsc");
> +
> static int __init i915_init(void)
> {
> int err, i;
> diff --git a/drivers/gpu/drm/xe/xe_module.c b/drivers/gpu/drm/xe/xe_module.c
> index bfc3deebdaa2..5633ea1841b7 100644
> --- a/drivers/gpu/drm/xe/xe_module.c
> +++ b/drivers/gpu/drm/xe/xe_module.c
> @@ -127,6 +127,8 @@ static void xe_call_exit_func(unsigned int i)
> init_funcs[i].exit();
> }
>
> +MODULE_SOFTDEP("pre: mei_gsc_proxy mei_gsc");
> +
> static int __init xe_init(void)
> {
> int err, i;
next prev parent reply other threads:[~2024-09-02 14:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-02 14:10 [PATCH] drm: Ensure Proper Unload/Reload Order of MEI Modules for i915/Xe Driver Bommu Krishnaiah
2024-09-02 14:24 ` Bommu, Krishnaiah [this message]
2024-09-02 16:10 ` ✓ CI.Patch_applied: success for " Patchwork
2024-09-02 16:11 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-02 16:12 ` ✓ CI.KUnit: success " Patchwork
2024-09-02 16:24 ` ✓ CI.Build: " Patchwork
2024-09-02 16:26 ` ✓ CI.Hooks: " Patchwork
2024-09-02 16:27 ` ✗ CI.checksparse: warning " Patchwork
2024-09-02 16:55 ` ✓ CI.BAT: success " Patchwork
2024-09-02 20:07 ` ✗ CI.FULL: failure " Patchwork
2024-09-03 4:57 ` [PATCH] " Upadhyay, Tejas
2024-09-03 6:28 ` Upadhyay, Tejas
2024-09-03 6:33 ` Bommu, Krishnaiah
2024-09-03 12:08 ` Kamil Konieczny
2024-09-03 13:28 ` Bommu, Krishnaiah
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=ba2e7fdc-1b13-47ae-8d0d-028d4f444c7f@intel.com \
--to=krishnaiah.bommu@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=lucas.demarchi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox