* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-01-23 18:08 [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request Mario Limonciello
@ 2024-01-23 18:20 ` Rafael J. Wysocki
2024-01-23 19:05 ` Christian Heusel
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Rafael J. Wysocki @ 2024-01-23 18:20 UTC (permalink / raw)
To: Mario Limonciello
Cc: Linus Walleij, Basavaraj Natikar, Shyam Sundar S K,
Rafael J . Wysocki, open list:PIN CONTROL SUBSYSTEM, open list,
Rafael J . Wysocki, Christian Heusel
On Tue, Jan 23, 2024 at 7:08 PM Mario Limonciello
<mario.limonciello@amd.com> wrote:
>
> On some systems the interrupt is shared between GPIO controller
> and ACPI SCI. When the interrupt is shared with the ACPI SCI the
> flags need to be identical.
>
> This should fix the GPIO controller failing to work after commit
> 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI").
> ```
> [ 0.417335] genirq: Flags mismatch irq 9. 00000088 (pinctrl_amd) vs. 00002080 (acpi)
> [ 0.420073] amd_gpio: probe of AMDI0030:00 failed with error -16
> ```
>
> Cc: Rafael J. Wysocki <rafael@kernel.org>
> Reported-by: Christian Heusel <christian@heusel.eu>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218407
> Fixes: 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI")
> Link: https://lore.kernel.org/linux-acpi/CAJZ5v0iRqUXeuKmC_+dAJtDBLWQ3x15n4gRH48y7MEaLoXF+UA@mail.gmail.com/T/#mc5506014141b61e472b24e095889535a04458083
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
> ---
> drivers/pinctrl/pinctrl-amd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
> index ca4a247c2cd1..6a33b584976c 100644
> --- a/drivers/pinctrl/pinctrl-amd.c
> +++ b/drivers/pinctrl/pinctrl-amd.c
> @@ -1162,7 +1162,7 @@ static int amd_gpio_probe(struct platform_device *pdev)
> }
>
> ret = devm_request_irq(&pdev->dev, gpio_dev->irq, amd_gpio_irq_handler,
> - IRQF_SHARED, KBUILD_MODNAME, gpio_dev);
> + IRQF_SHARED | IRQF_ONESHOT, KBUILD_MODNAME, gpio_dev);
Or if adding IRQF_ONESHOT here is not acceptable, IRQF_PROBE_SHARED
can be used too.
> if (ret)
> goto out2;
>
> --
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-01-23 18:08 [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request Mario Limonciello
2024-01-23 18:20 ` Rafael J. Wysocki
@ 2024-01-23 19:05 ` Christian Heusel
2024-01-26 16:19 ` Linux regression tracking (Thorsten Leemhuis)
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Christian Heusel @ 2024-01-23 19:05 UTC (permalink / raw)
To: Mario Limonciello
Cc: Linus Walleij, Basavaraj Natikar, Shyam Sundar S K,
Rafael J . Wysocki, open list:PIN CONTROL SUBSYSTEM, open list,
Rafael J . Wysocki
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
On 24/01/23 12:08PM, Mario Limonciello wrote:
> This should fix the GPIO controller failing to work after commit
> 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI").
> ```
> [ 0.417335] genirq: Flags mismatch irq 9. 00000088 (pinctrl_amd) vs. 00002080 (acpi)
> [ 0.420073] amd_gpio: probe of AMDI0030:00 failed with error -16
> ```
I have just applied this on top of 6.8-rc1 and the error in dmesg went
away, so from my perspective this fix looks good.
Tested-by: Christian Heusel <christian@heusel.eu>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-01-23 18:08 [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request Mario Limonciello
2024-01-23 18:20 ` Rafael J. Wysocki
2024-01-23 19:05 ` Christian Heusel
@ 2024-01-26 16:19 ` Linux regression tracking (Thorsten Leemhuis)
2024-01-31 9:06 ` Linus Walleij
2024-02-04 15:21 ` Christian Heusel
4 siblings, 0 replies; 9+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2024-01-26 16:19 UTC (permalink / raw)
To: Mario Limonciello, Linus Walleij
Cc: Basavaraj Natikar, Shyam Sundar S K, Rafael J . Wysocki,
open list:PIN CONTROL SUBSYSTEM, open list, Rafael J . Wysocki,
Christian Heusel, Linux kernel regressions list
On 23.01.24 19:08, Mario Limonciello wrote:
> On some systems the interrupt is shared between GPIO controller
> and ACPI SCI. When the interrupt is shared with the ACPI SCI the
> flags need to be identical.
>
> This should fix the GPIO controller failing to work after commit
> 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI").
> ```
> [ 0.417335] genirq: Flags mismatch irq 9. 00000088 (pinctrl_amd) vs. 00002080 (acpi)
> [ 0.420073] amd_gpio: probe of AMDI0030:00 failed with error -16
> ```
>
> Cc: Rafael J. Wysocki <rafael@kernel.org>
> Reported-by: Christian Heusel <christian@heusel.eu>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218407
> Fixes: 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI")
I'm affected by this regression myself on my Thinkpad T14s Gen1 AMD
(power button does not work, but I guess there might be more). Haven't
tested this patch yet, seemed like this was pretty clear case and
Christian already tested it. But if it makes anyone happy I can do that.
> Link: https://lore.kernel.org/linux-acpi/CAJZ5v0iRqUXeuKmC_+dAJtDBLWQ3x15n4gRH48y7MEaLoXF+UA@mail.gmail.com/T/#mc5506014141b61e472b24e095889535a04458083
Side note: might be wise to change that to something slightly shorter:
Link:
https://lore.kernel.org/linux-acpi/kvoclxvyhmdmrfpfgwfjr33bdltej3upw5qcnazc4xakwdgg2b@krewjw2uk42k/
Ciao, Thorsten
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> drivers/pinctrl/pinctrl-amd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
> index ca4a247c2cd1..6a33b584976c 100644
> --- a/drivers/pinctrl/pinctrl-amd.c
> +++ b/drivers/pinctrl/pinctrl-amd.c
> @@ -1162,7 +1162,7 @@ static int amd_gpio_probe(struct platform_device *pdev)
> }
>
> ret = devm_request_irq(&pdev->dev, gpio_dev->irq, amd_gpio_irq_handler,
> - IRQF_SHARED, KBUILD_MODNAME, gpio_dev);
> + IRQF_SHARED | IRQF_ONESHOT, KBUILD_MODNAME, gpio_dev);
> if (ret)
> goto out2;
>
P.S.: Let me add this to the tracking while at it:
#regzbot introduced 7a36b901a6eb ^
https://bugzilla.kernel.org/show_bug.cgi?id=218407
#regzbot title ACPI: OSL:/pinctrl: GPIO controller failing to work
#regzbot fix pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
#regzbot ignore-activity
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-01-23 18:08 [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request Mario Limonciello
` (2 preceding siblings ...)
2024-01-26 16:19 ` Linux regression tracking (Thorsten Leemhuis)
@ 2024-01-31 9:06 ` Linus Walleij
2024-02-07 8:07 ` Linux regression tracking (Thorsten Leemhuis)
2024-02-04 15:21 ` Christian Heusel
4 siblings, 1 reply; 9+ messages in thread
From: Linus Walleij @ 2024-01-31 9:06 UTC (permalink / raw)
To: Mario Limonciello
Cc: Basavaraj Natikar, Shyam Sundar S K, Rafael J . Wysocki,
open list:PIN CONTROL SUBSYSTEM, open list, Rafael J . Wysocki,
Christian Heusel
On Tue, Jan 23, 2024 at 7:08 PM Mario Limonciello
<mario.limonciello@amd.com> wrote:
> On some systems the interrupt is shared between GPIO controller
> and ACPI SCI. When the interrupt is shared with the ACPI SCI the
> flags need to be identical.
>
> This should fix the GPIO controller failing to work after commit
> 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI").
> ```
> [ 0.417335] genirq: Flags mismatch irq 9. 00000088 (pinctrl_amd) vs. 00002080 (acpi)
> [ 0.420073] amd_gpio: probe of AMDI0030:00 failed with error -16
> ```
>
> Cc: Rafael J. Wysocki <rafael@kernel.org>
> Reported-by: Christian Heusel <christian@heusel.eu>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218407
> Fixes: 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI")
> Link: https://lore.kernel.org/linux-acpi/CAJZ5v0iRqUXeuKmC_+dAJtDBLWQ3x15n4gRH48y7MEaLoXF+UA@mail.gmail.com/T/#mc5506014141b61e472b24e095889535a04458083
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Patch applied for fixes!
Thanks for dealing with these issues Mario!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-01-31 9:06 ` Linus Walleij
@ 2024-02-07 8:07 ` Linux regression tracking (Thorsten Leemhuis)
2024-02-07 10:40 ` Linus Walleij
0 siblings, 1 reply; 9+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2024-02-07 8:07 UTC (permalink / raw)
To: Linus Walleij, Mario Limonciello
Cc: Basavaraj Natikar, Shyam Sundar S K, Rafael J . Wysocki,
open list:PIN CONTROL SUBSYSTEM, open list, Rafael J . Wysocki,
Christian Heusel, Linux kernel regressions list
On 31.01.24 10:06, Linus Walleij wrote:
> On Tue, Jan 23, 2024 at 7:08 PM Mario Limonciello
> <mario.limonciello@amd.com> wrote:
>
>> On some systems the interrupt is shared between GPIO controller
>> and ACPI SCI. When the interrupt is shared with the ACPI SCI the
>> flags need to be identical.
>>
>> This should fix the GPIO controller failing to work after commit
>> 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI").
>> ```
>> [ 0.417335] genirq: Flags mismatch irq 9. 00000088 (pinctrl_amd) vs. 00002080 (acpi)
>> [ 0.420073] amd_gpio: probe of AMDI0030:00 failed with error -16
>> ```
>>
>> Cc: Rafael J. Wysocki <rafael@kernel.org>
>> Reported-by: Christian Heusel <christian@heusel.eu>
>> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218407
>> Fixes: 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI")
>> Link: https://lore.kernel.org/linux-acpi/CAJZ5v0iRqUXeuKmC_+dAJtDBLWQ3x15n4gRH48y7MEaLoXF+UA@mail.gmail.com/T/#mc5506014141b61e472b24e095889535a04458083
>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>
> Patch applied for fixes!
Hmm, Linus, that was a week ago and I still can't spot the fix in -next
or
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git
; am I missing something or did something come up?
Furthermore Christian seems to grow impatient -- and I do as well, as I
recently couldn't wake up my laptop due to this while on the road. :-/
As at least one of the affected machines is quite popular in Linux
community, I'd prefer if we can fix this rather sooner than later.
Linus, if you are busy, I could ask the other Linus to pick this up
straight from the list if that's okay for you.
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat)
--
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-02-07 8:07 ` Linux regression tracking (Thorsten Leemhuis)
@ 2024-02-07 10:40 ` Linus Walleij
2024-02-08 17:45 ` Thorsten Leemhuis
0 siblings, 1 reply; 9+ messages in thread
From: Linus Walleij @ 2024-02-07 10:40 UTC (permalink / raw)
To: Linux regressions mailing list
Cc: Mario Limonciello, Basavaraj Natikar, Shyam Sundar S K,
Rafael J . Wysocki, open list:PIN CONTROL SUBSYSTEM, open list,
Rafael J . Wysocki, Christian Heusel
On Wed, Feb 7, 2024 at 9:07 AM Linux regression tracking (Thorsten
Leemhuis) <regressions@leemhuis.info> wrote:
> [me]
> > Patch applied for fixes!
>
> Hmm, Linus, that was a week ago and I still can't spot the fix in -next
> or
> https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git
> ; am I missing something or did something come up?
Something came up but it's just illnesses travels and other such
excuses.
I have merged down fixed to for-next and the patch should appear
in linux-next and after that I can send it to Torvalds.
> Furthermore Christian seems to grow impatient -- and I do as well, as I
> recently couldn't wake up my laptop due to this while on the road. :-/
Sorry, my fault :(
I will try to get this upstream as quick as possible.
Thanks for chasing me!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-02-07 10:40 ` Linus Walleij
@ 2024-02-08 17:45 ` Thorsten Leemhuis
0 siblings, 0 replies; 9+ messages in thread
From: Thorsten Leemhuis @ 2024-02-08 17:45 UTC (permalink / raw)
To: Linus Walleij, Linux regressions mailing list
Cc: Mario Limonciello, Basavaraj Natikar, Shyam Sundar S K,
Rafael J . Wysocki, open list:PIN CONTROL SUBSYSTEM, open list,
Rafael J . Wysocki, Christian Heusel
On 07.02.24 11:40, Linus Walleij wrote:
> On Wed, Feb 7, 2024 at 9:07 AM Linux regression tracking (Thorsten
> Leemhuis) <regressions@leemhuis.info> wrote:
>>> Patch applied for fixes!
>> Hmm, Linus, that was a week ago and I still can't spot the fix in -next
>> or
>> https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git
>> ; am I missing something or did something come up?
>
> Something came up but it's just illnesses travels and other such
> excuses.
Happens, no worries.
> I have merged down fixed to for-next and the patch should appear
> in linux-next and after that I can send it to Torvalds.
Great, thx! Saw the pull request, so should land soon.
Ciao, Thorsten
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request
2024-01-23 18:08 [PATCH] pinctrl: amd: Add IRQF_ONESHOT to the interrupt request Mario Limonciello
` (3 preceding siblings ...)
2024-01-31 9:06 ` Linus Walleij
@ 2024-02-04 15:21 ` Christian Heusel
4 siblings, 0 replies; 9+ messages in thread
From: Christian Heusel @ 2024-02-04 15:21 UTC (permalink / raw)
To: Mario Limonciello
Cc: Linus Walleij, Basavaraj Natikar, Shyam Sundar S K,
Rafael J . Wysocki, open list:PIN CONTROL SUBSYSTEM, open list,
Rafael J . Wysocki
[-- Attachment #1: Type: text/plain, Size: 590 bytes --]
On 24/01/23 12:08PM, Mario Limonciello wrote:
> This should fix the GPIO controller failing to work after commit
> 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI").
> ```
> [ 0.417335] genirq: Flags mismatch irq 9. 00000088 (pinctrl_amd) vs. 00002080 (acpi)
> [ 0.420073] amd_gpio: probe of AMDI0030:00 failed with error -16
> ```
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218407
> Fixes: 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for SCI")
Just a friendly poke regarding this patch as the bug is still present in
rc3.
Cheers,
chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread