linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM64/irqchip: Make ACPI_IORT depend on PCI again
@ 2019-07-16  4:04 Sasha Levin
  2019-07-16  4:13 ` Sinan Kaya
  0 siblings, 1 reply; 3+ messages in thread
From: Sasha Levin @ 2019-07-16  4:04 UTC (permalink / raw)
  To: marc.zyngier, will.deacon, julien.thierry, catalin.marinas
  Cc: okaya, linux-kernel, linux-kernel, linux-acpi, linux-arm-kernel,
	Sasha Levin, stable

ACPI_IORT lost it's explicit dependency on PCI in c6bb8f89fa6df
("ARM64/irqchip: Update ACPI_IORT symbol selection logic") where the
author has relied on the general dependency of ACPI on PCI.

However, that dependency was finally removed in 5d32a66541c4 ("PCI/ACPI:
Allow ACPI to be built without CONFIG_PCI set") and now ACPI_IORT breaks
when we try and build it without PCI support.

This patch brings back the explicit dependency of ACPI_IORT on PCI.

Fixes: 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")
Cc: stable@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 arch/arm64/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index a36ff61321ce..d6d93027196b 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -4,7 +4,7 @@ config ARM64
 	select ACPI_CCA_REQUIRED if ACPI
 	select ACPI_GENERIC_GSI if ACPI
 	select ACPI_GTDT if ACPI
-	select ACPI_IORT if ACPI
+	select ACPI_IORT if (ACPI && PCI)
 	select ACPI_REDUCED_HARDWARE_ONLY if ACPI
 	select ACPI_MCFG if (ACPI && PCI)
 	select ACPI_SPCR_TABLE if ACPI
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM64/irqchip: Make ACPI_IORT depend on PCI again
  2019-07-16  4:04 [PATCH] ARM64/irqchip: Make ACPI_IORT depend on PCI again Sasha Levin
@ 2019-07-16  4:13 ` Sinan Kaya
  2019-07-16 11:16   ` Sasha Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Sinan Kaya @ 2019-07-16  4:13 UTC (permalink / raw)
  To: Sasha Levin, marc.zyngier, will.deacon, julien.thierry, catalin.marinas
  Cc: linux-kernel, linux-kernel, linux-acpi, linux-arm-kernel, stable

On 7/16/2019 12:04 AM, Sasha Levin wrote:
> ACPI_IORT lost it's explicit dependency on PCI in c6bb8f89fa6df
> ("ARM64/irqchip: Update ACPI_IORT symbol selection logic") where the
> author has relied on the general dependency of ACPI on PCI.
> 
> However, that dependency was finally removed in 5d32a66541c4 ("PCI/ACPI:
> Allow ACPI to be built without CONFIG_PCI set") and now ACPI_IORT breaks
> when we try and build it without PCI support.
> 
> This patch brings back the explicit dependency of ACPI_IORT on PCI.
> 
> Fixes: 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")
> Cc: stable@kernel.org
> Signed-off-by: Sasha Levin <sashal@kernel.org>

Do you have more detail on what really is broken without this patch?

It should be possible to build IORT table without PCI.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM64/irqchip: Make ACPI_IORT depend on PCI again
  2019-07-16  4:13 ` Sinan Kaya
@ 2019-07-16 11:16   ` Sasha Levin
  0 siblings, 0 replies; 3+ messages in thread
From: Sasha Levin @ 2019-07-16 11:16 UTC (permalink / raw)
  To: Sinan Kaya
  Cc: marc.zyngier, will.deacon, julien.thierry, catalin.marinas,
	linux-kernel, linux-kernel, linux-acpi, linux-arm-kernel, stable

On Tue, Jul 16, 2019 at 12:13:23AM -0400, Sinan Kaya wrote:
>On 7/16/2019 12:04 AM, Sasha Levin wrote:
>> ACPI_IORT lost it's explicit dependency on PCI in c6bb8f89fa6df
>> ("ARM64/irqchip: Update ACPI_IORT symbol selection logic") where the
>> author has relied on the general dependency of ACPI on PCI.
>>
>> However, that dependency was finally removed in 5d32a66541c4 ("PCI/ACPI:
>> Allow ACPI to be built without CONFIG_PCI set") and now ACPI_IORT breaks
>> when we try and build it without PCI support.
>>
>> This patch brings back the explicit dependency of ACPI_IORT on PCI.
>>
>> Fixes: 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set")
>> Cc: stable@kernel.org
>> Signed-off-by: Sasha Levin <sashal@kernel.org>
>
>Do you have more detail on what really is broken without this patch?
>
>It should be possible to build IORT table without PCI.

For the record, the errors look like this:

	drivers/acpi/arm64/iort.o: In function `acpi_iort_init':
	iort.c:(.init.text+0x47c): undefined reference to `pci_request_acs'

Sinan pointed me to an earlier patch he wrote that would fix it
(https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/acpi/arm64/iort.c?id=43554cebba50e709b9207c55ceca6bc281748586).

Please disregard this patch.

--
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-16 11:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-16  4:04 [PATCH] ARM64/irqchip: Make ACPI_IORT depend on PCI again Sasha Levin
2019-07-16  4:13 ` Sinan Kaya
2019-07-16 11:16   ` Sasha Levin

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).