* [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI
@ 2020-08-20 12:53 Adam Borowski
2020-08-20 14:24 ` Randy Dunlap
2020-08-21 20:13 ` Thomas Gleixner
0 siblings, 2 replies; 6+ messages in thread
From: Adam Borowski @ 2020-08-20 12:53 UTC (permalink / raw)
To: Bjorn Helgaas, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
x86, linux-pci
Cc: Adam Borowski
Not that x86 without ACPI sees any real use...
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
---
Found by randconfig builds.
arch/x86/pci/intel_mid_pci.c | 2 ++
arch/x86/pci/xen.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c
index 00c62115f39c..f14a911f0d06 100644
--- a/arch/x86/pci/intel_mid_pci.c
+++ b/arch/x86/pci/intel_mid_pci.c
@@ -299,8 +299,10 @@ int __init intel_mid_pci_init(void)
pcibios_disable_irq = intel_mid_pci_irq_disable;
pci_root_ops = intel_mid_pci_ops;
pci_soc_mode = 1;
+#ifdef CONFIG_ACPI
/* Continue with standard init */
acpi_noirq_set();
+#endif
return 1;
}
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index 9f9aad42ccff..681eb5c34c03 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -406,8 +406,10 @@ int __init pci_xen_init(void)
pcibios_enable_irq = xen_pcifront_enable_irq;
pcibios_disable_irq = NULL;
+#ifdef CONFIG_ACPI
/* Keep ACPI out of the picture */
acpi_noirq_set();
+#endif
#ifdef CONFIG_PCI_MSI
x86_msi.setup_msi_irqs = xen_setup_msi_irqs;
--
2.28.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI
2020-08-20 12:53 [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI Adam Borowski
@ 2020-08-20 14:24 ` Randy Dunlap
2020-08-21 20:13 ` Thomas Gleixner
1 sibling, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2020-08-20 14:24 UTC (permalink / raw)
To: Adam Borowski, Bjorn Helgaas, Thomas Gleixner, Ingo Molnar,
Borislav Petkov, x86, linux-pci
On 8/20/20 5:53 AM, Adam Borowski wrote:
> Not that x86 without ACPI sees any real use...
>
> Signed-off-by: Adam Borowski <kilobyte@angband.pl>
> ---
> Found by randconfig builds.
Note that
#include <asm/acpi.h>
has a stub for acpi_noirq_set() when ACPI is not set/enabled.
That would be better. And I have submitted that for
arch/x86/pci/xen.c -- and a different patch for intel_mid_pci.c
But I didn't submit them to the X86 maintainers because the
MAINTAINERS file pointed me to the PCI maintainer and to the
XEN PCI maintainer....
>
> arch/x86/pci/intel_mid_pci.c | 2 ++
> arch/x86/pci/xen.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c
> index 00c62115f39c..f14a911f0d06 100644
> --- a/arch/x86/pci/intel_mid_pci.c
> +++ b/arch/x86/pci/intel_mid_pci.c
> @@ -299,8 +299,10 @@ int __init intel_mid_pci_init(void)
> pcibios_disable_irq = intel_mid_pci_irq_disable;
> pci_root_ops = intel_mid_pci_ops;
> pci_soc_mode = 1;
> +#ifdef CONFIG_ACPI
> /* Continue with standard init */
> acpi_noirq_set();
> +#endif
> return 1;
> }
>
> diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
> index 9f9aad42ccff..681eb5c34c03 100644
> --- a/arch/x86/pci/xen.c
> +++ b/arch/x86/pci/xen.c
> @@ -406,8 +406,10 @@ int __init pci_xen_init(void)
> pcibios_enable_irq = xen_pcifront_enable_irq;
> pcibios_disable_irq = NULL;
>
> +#ifdef CONFIG_ACPI
> /* Keep ACPI out of the picture */
> acpi_noirq_set();
> +#endif
>
> #ifdef CONFIG_PCI_MSI
> x86_msi.setup_msi_irqs = xen_setup_msi_irqs;
>
--
~Randy
Reported-by: Randy Dunlap <rdunlap@infradead.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI
2020-08-20 12:53 [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI Adam Borowski
2020-08-20 14:24 ` Randy Dunlap
@ 2020-08-21 20:13 ` Thomas Gleixner
2020-08-21 20:32 ` Adam Borowski
1 sibling, 1 reply; 6+ messages in thread
From: Thomas Gleixner @ 2020-08-21 20:13 UTC (permalink / raw)
To: Adam Borowski
Cc: Bjorn Helgaas, Ingo Molnar, Borislav Petkov, x86, linux-pci,
LKML, Rafael J. Wysocki, Len Brown
On Thu, Aug 20 2020 at 14:53, Adam Borowski wrote:
> Not that x86 without ACPI sees any real use...
>
> Signed-off-by: Adam Borowski <kilobyte@angband.pl>
> ---
> Found by randconfig builds.
>
> arch/x86/pci/intel_mid_pci.c | 2 ++
> arch/x86/pci/xen.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c
> index 00c62115f39c..f14a911f0d06 100644
> --- a/arch/x86/pci/intel_mid_pci.c
> +++ b/arch/x86/pci/intel_mid_pci.c
> @@ -299,8 +299,10 @@ int __init intel_mid_pci_init(void)
> pcibios_disable_irq = intel_mid_pci_irq_disable;
> pci_root_ops = intel_mid_pci_ops;
> pci_soc_mode = 1;
> +#ifdef CONFIG_ACPI
> /* Continue with standard init */
> acpi_noirq_set();
> +#endif
If CONFIG_ACPI=n then acpi_noirq_set() is an empty stub inline. So I'm
not sure what you are trying to solve here.
Ah, I see with CONFIG_ACPI=n linux/acpi.h does not include asm/acpi.h so
the stubs are unreachable. So that needs to be fixed and not papered
over with #ifdeffery
Thanks,
tglx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI
2020-08-21 20:13 ` Thomas Gleixner
@ 2020-08-21 20:32 ` Adam Borowski
2020-08-21 21:19 ` Randy Dunlap
0 siblings, 1 reply; 6+ messages in thread
From: Adam Borowski @ 2020-08-21 20:32 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Bjorn Helgaas, Ingo Molnar, Borislav Petkov, x86, linux-pci,
LKML, Rafael J. Wysocki, Len Brown
On Fri, Aug 21, 2020 at 10:13:25PM +0200, Thomas Gleixner wrote:
> On Thu, Aug 20 2020 at 14:53, Adam Borowski wrote:
> > Found by randconfig builds.
> >
> > arch/x86/pci/intel_mid_pci.c | 2 ++
> > arch/x86/pci/xen.c | 2 ++
> > --- a/arch/x86/pci/intel_mid_pci.c
> > +++ b/arch/x86/pci/intel_mid_pci.c
> > @@ -299,8 +299,10 @@ int __init intel_mid_pci_init(void)
> > +#ifdef CONFIG_ACPI
> > /* Continue with standard init */
> > acpi_noirq_set();
> > +#endif
> If CONFIG_ACPI=n then acpi_noirq_set() is an empty stub inline. So I'm
> not sure what you are trying to solve here.
>
> Ah, I see with CONFIG_ACPI=n linux/acpi.h does not include asm/acpi.h so
> the stubs are unreachable. So that needs to be fixed and not papered
> over with #ifdeffery
If I understand Randy Dunlap correctly, he already sent a pair of patches
that do what you want.
Meow.
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁
⢿⡄⠘⠷⠚⠋⠀ It's time to migrate your Imaginary Protocol from version 4i to 6i.
⠈⠳⣄⠀⠀⠀⠀
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI
2020-08-21 20:32 ` Adam Borowski
@ 2020-08-21 21:19 ` Randy Dunlap
2020-08-21 23:52 ` Thomas Gleixner
0 siblings, 1 reply; 6+ messages in thread
From: Randy Dunlap @ 2020-08-21 21:19 UTC (permalink / raw)
To: Adam Borowski, Thomas Gleixner
Cc: Bjorn Helgaas, Ingo Molnar, Borislav Petkov, x86, linux-pci,
LKML, Rafael J. Wysocki, Len Brown
On 8/21/20 1:32 PM, Adam Borowski wrote:
> On Fri, Aug 21, 2020 at 10:13:25PM +0200, Thomas Gleixner wrote:
>> On Thu, Aug 20 2020 at 14:53, Adam Borowski wrote:
>>> Found by randconfig builds.
>>>
>>> arch/x86/pci/intel_mid_pci.c | 2 ++
>>> arch/x86/pci/xen.c | 2 ++
>
>>> --- a/arch/x86/pci/intel_mid_pci.c
>>> +++ b/arch/x86/pci/intel_mid_pci.c
>>> @@ -299,8 +299,10 @@ int __init intel_mid_pci_init(void)
>>> +#ifdef CONFIG_ACPI
>>> /* Continue with standard init */
>>> acpi_noirq_set();
>>> +#endif
>
>> If CONFIG_ACPI=n then acpi_noirq_set() is an empty stub inline. So I'm
>> not sure what you are trying to solve here.
>>
>> Ah, I see with CONFIG_ACPI=n linux/acpi.h does not include asm/acpi.h so
>> the stubs are unreachable. So that needs to be fixed and not papered
>> over with #ifdeffery
>
> If I understand Randy Dunlap correctly, he already sent a pair of patches
> that do what you want.
I did, but I sent them to the Xen and PCI maintainers,
not the x86 maintainers, but I will happily resend this patch.
The Xen patch has already been applied whereas the patch
to intel_mid_pci.c is in limbo. :(
Thomas, do you want me to send it to you/X86 people?
(with 2 Reviewed-by: additions)
thanks.
--
~Randy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI
2020-08-21 21:19 ` Randy Dunlap
@ 2020-08-21 23:52 ` Thomas Gleixner
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Gleixner @ 2020-08-21 23:52 UTC (permalink / raw)
To: Randy Dunlap, Adam Borowski
Cc: Bjorn Helgaas, Ingo Molnar, Borislav Petkov, x86, linux-pci,
LKML, Rafael J. Wysocki, Len Brown
On Fri, Aug 21 2020 at 14:19, Randy Dunlap wrote:
> On 8/21/20 1:32 PM, Adam Borowski wrote:
>> If I understand Randy Dunlap correctly, he already sent a pair of patches
>> that do what you want.
I replied before reading Randy's reply. Old habit of reading stuff from
top and not getting biased by other peoples replies before doing so. Is
most of the time the correct approach, but sometimes it would be better
to do it the other way round :)
> I did, but I sent them to the Xen and PCI maintainers,
> not the x86 maintainers, but I will happily resend this patch.
> The Xen patch has already been applied whereas the patch
> to intel_mid_pci.c is in limbo. :(
>
> Thomas, do you want me to send it to you/X86 people?
> (with 2 Reviewed-by: additions)
Sure, but usually Bjorn handles the x86/pci/ stuff.
As I trust you, here is a blind
Acked-by: Thomas Gleixner <tglx@linutronix.de>
just in case.
Thanks,
tglx
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-08-21 23:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 12:53 [PATCH] x86/pci: don't set acpi stuff if !CONFIG_ACPI Adam Borowski
2020-08-20 14:24 ` Randy Dunlap
2020-08-21 20:13 ` Thomas Gleixner
2020-08-21 20:32 ` Adam Borowski
2020-08-21 21:19 ` Randy Dunlap
2020-08-21 23:52 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).