From: Peter Senna Tschudin <peter.senna@linux.intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] lib/igt_kmod: Stop unloading drm
Date: Thu, 6 Feb 2025 16:04:13 +0100 [thread overview]
Message-ID: <c1781020-7632-43ad-a3b5-1d2d71aaac32@linux.intel.com> (raw)
In-Reply-To: <20250205030948.1965423-1-lucas.demarchi@intel.com>
Hi Lucas,
My nits are not blockers to your patch being merged.
On 05.02.2025 04:07, Lucas De Marchi wrote:
> When testing i915, if there's another driver present, unloading i915 may
> cause the other driver to unload and let developers chasing ghosts when
> they think it was caused by i915.
>
> Hopefully fix the ATSM testing where AST driver is also bound to a
> a device.
Maybe a sentence about intel-gtt?
>
> Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13292
Reviewed-by: Peter Senna Tschudin <peter.senna@linux.intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
>
> After this change, running i915_module_load@reload doesn't cause ast to
> be unloaded, but I couldn't check it really fixes the issue since I
> couldn't reproduce it.
>
> lib/igt_kmod.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
> index d154701c6..524c1a632 100644
> --- a/lib/igt_kmod.c
> +++ b/lib/igt_kmod.c
> @@ -690,7 +690,6 @@ int igt_kmod_unbind(const char *mod_name)
> * igt_intel_driver_unload:
> *
> * Unloads an Intel driver and its dependencies.
Maybe change this to reflect what it is doing as the dependencies
bit may no longer apply.
> - *
> */
> int
> igt_intel_driver_unload(const char *driver)
> @@ -709,12 +708,6 @@ igt_intel_driver_unload(const char *driver)
> }
> free(who);
>
> - if (igt_kmod_is_loaded("intel-gtt"))
> - igt_kmod_unload("intel-gtt");
> -
> - igt_kmod_unload("drm_kms_helper");
> - igt_kmod_unload("drm");
> -
> if (igt_kmod_is_loaded(driver)) {
> igt_warn("%s.ko still loaded!\n", driver);
> return -EBUSY;
next prev parent reply other threads:[~2025-02-06 15:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 3:07 [PATCH i-g-t] lib/igt_kmod: Stop unloading drm Lucas De Marchi
2025-02-05 4:10 ` ✗ Xe.CI.BAT: failure for " Patchwork
2025-02-05 4:28 ` ✗ i915.CI.BAT: " Patchwork
2025-02-05 14:32 ` Lucas De Marchi
2025-02-05 10:25 ` ✗ Xe.CI.Full: " Patchwork
2025-02-06 14:50 ` [PATCH i-g-t] " Lucas De Marchi
2025-02-06 15:04 ` Peter Senna Tschudin [this message]
2025-02-06 15:21 ` Lucas De Marchi
2025-02-06 19:29 ` ✓ Xe.CI.BAT: success for lib/igt_kmod: Stop unloading drm (rev2) Patchwork
2025-02-06 22:37 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-07 11:31 ` ✓ Xe.CI.BAT: success " Patchwork
2025-02-07 14:02 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-10 20:50 ` ✗ GitLab.Pipeline: warning for lib/igt_kmod: Stop unloading drm (rev3) Patchwork
2025-02-10 23:07 ` ✗ i915.CI.BAT: failure " Patchwork
2025-02-10 23:08 ` ✓ Xe.CI.BAT: success " Patchwork
2025-02-11 9:21 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-12 13:41 ` ✗ i915.CI.Full: " Patchwork
2025-02-12 14:13 ` Lucas De Marchi
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=c1781020-7632-43ad-a3b5-1d2d71aaac32@linux.intel.com \
--to=peter.senna@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--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 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.