Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	<igt-dev@lists.freedesktop.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: Re: [i-g-t, v2, 1/3] lib/igt_kmod: fix check to confirm correct driver unload
Date: Fri, 20 Dec 2024 11:13:14 -0800	[thread overview]
Message-ID: <7ea616b5-7850-4431-8de8-0083f58b902d@intel.com> (raw)
In-Reply-To: <Z2WxOK7DtA4ALf9K@kamilkon-DESK1>




On 12/20/2024 10:02 AM, Kamil Konieczny wrote:
> On 2024-12-19 at 15:05:15 -0800, Daniele Ceraolo Spurio wrote:
>> The driver variable is a string, so we need to pass it in as a variable
>> for the driver name instead of stringifying it.
>>
>> Fixes: e5edf7ea7 ("lib/igt_kmod: add support for Xe driver")
>> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
>> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
>> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
>> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
>> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
> Could it be merged first as an abvious fix?

I don't have merge rights to IGT so I can't merge myself, but I don't 
have anything against this being merged ahead of the other patches.
Note however that I've just posted v3 of the series that should address 
the last remaining comments, so it might be worth waiting and merging it 
all in one go. Either way is fine for me.

Daniele

>
> Regards,
> Kamil
>
>> ---
>>   lib/igt_kmod.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
>> index ed283c14b..d73cb4101 100644
>> --- a/lib/igt_kmod.c
>> +++ b/lib/igt_kmod.c
>> @@ -723,7 +723,7 @@ igt_intel_driver_unload(const char *driver)
>>   	igt_kmod_unload("drm_kms_helper");
>>   	igt_kmod_unload("drm");
>>   
>> -	if (igt_kmod_is_loaded("driver")) {
>> +	if (igt_kmod_is_loaded(driver)) {
>>   		igt_warn("%s.ko still loaded!\n", driver);
>>   		return -EBUSY;
>>   	}


  reply	other threads:[~2024-12-20 19:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-19 23:05 [PATCH i-g-t v2 1/3] lib/igt_kmod: fix check to confirm correct driver unload Daniele Ceraolo Spurio
2024-12-19 23:05 ` [PATCH i-g-t v2 2/3] lib/igt_kmod: Make sure errno is not already set before unbinding Daniele Ceraolo Spurio
2024-12-19 23:29   ` Lucas De Marchi
2024-12-19 23:33     ` Daniele Ceraolo Spurio
2024-12-19 23:05 ` [PATCH i-g-t v2 3/3] lib/igt_kmod: Do not explicitly unload intel mei driver Daniele Ceraolo Spurio
2024-12-19 23:21 ` [PATCH i-g-t v2 1/3] lib/igt_kmod: fix check to confirm correct driver unload Lucas De Marchi
2024-12-20  0:49 ` ✓ i915.CI.BAT: success for series starting with [i-g-t,v2,1/3] " Patchwork
2024-12-20  1:45 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-20 18:02 ` [i-g-t, v2, 1/3] " Kamil Konieczny
2024-12-20 19:13   ` Daniele Ceraolo Spurio [this message]
2024-12-20 21:46 ` ✗ i915.CI.Full: failure for series starting with [i-g-t,v2,1/3] " Patchwork
2024-12-21  1:36 ` ✗ Xe.CI.Full: " 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=7ea616b5-7850-4431-8de8-0083f58b902d@intel.com \
    --to=daniele.ceraolospurio@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=mchehab@kernel.org \
    /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