From: "Vivekanandan, Balasubramani" <balasubramani.vivekanandan@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
<igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] lib/igt_kmod: stop using KMOD_REMOVE_FORCE, again
Date: Tue, 19 Nov 2024 19:06:54 +0530 [thread overview]
Message-ID: <ZzyUdupwSLpq4jGL@bvivekan-mobl1> (raw)
In-Reply-To: <20241030234908.858018-1-lucas.demarchi@intel.com>
On 30.10.2024 16:49, Lucas De Marchi wrote:
> Just like done in commit 93ad5b785ea0 ("lib/igt_kmod: stop using
> KMOD_REMOVE_FORCE"). From igt perspective, if a module can't be removed,
> forcing its removal is not the right thing to do: the test should just
> fail and be fixed.
>
> If the kernel actually enforces KMOD_REMOVE_FORCE, then it would just
> taint and all tests get aborted. Lastly, our kernel config doesn't have
> CONFIG_MODULE_FORCE_UNLOAD set, so this is pointless for multiple times.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> lib/igt_kmod.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
> index 75a0d057c..cc3e5e5b1 100644
> --- a/lib/igt_kmod.c
> +++ b/lib/igt_kmod.c
> @@ -1409,8 +1409,7 @@ static void __igt_kunit(struct igt_ktest *tst,
> char glob[1024];
> int i;
>
> - igt_skip_on(kmod_module_remove_module(tst->kmod,
> - KMOD_REMOVE_FORCE));
> + igt_skip_on(kmod_module_remove_module(tst->kmod, 0));
> igt_skip_on(igt_kernel_tainted(&taints));
>
> igt_assert_lt(snprintf(glob, sizeof(glob), "%s.%s",
Looks good.
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Regards,
Bala
> --
> 2.47.0
>
next prev parent reply other threads:[~2024-11-19 13:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 23:49 [PATCH i-g-t] lib/igt_kmod: stop using KMOD_REMOVE_FORCE, again Lucas De Marchi
2024-10-31 1:57 ` ✓ CI.xeBAT: success for " Patchwork
2024-10-31 2:01 ` ✓ Fi.CI.BAT: " Patchwork
2024-10-31 3:41 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-31 12:30 ` ✗ Fi.CI.IGT: " Patchwork
2024-11-19 13:36 ` Vivekanandan, Balasubramani [this message]
2024-12-05 14:36 ` [PATCH i-g-t] " 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=ZzyUdupwSLpq4jGL@bvivekan-mobl1 \
--to=balasubramani.vivekanandan@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox