public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND v1 0/2] Make _PRS and _SRS methods optional
@ 2022-07-01 16:16 Pierre Gondois
  2022-07-01 16:16 ` [PATCH RESEND v1 1/2] ACPI/PCI: Make _SRS optional for link device Pierre Gondois
  2022-07-01 16:16 ` [PATCH RESEND v1 2/2] ACPI/PCI: Make _PRS " Pierre Gondois
  0 siblings, 2 replies; 7+ messages in thread
From: Pierre Gondois @ 2022-07-01 16:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: Bjorn Helgaas, Rafael J. Wysocki, Len Brown, linux-pci,
	linux-acpi

The PCI legacy interrupts can be described with link devices,
cf ACPI 6.4, s6.2.13 "_PRT (PCI Routing Table)".
Link devices can have optional _SRS/_PRS methods to set the interrupt.

In PCI Firmware Specification Revision 3.3, s4.3.2.1. "Resource Setting":
"""
A non-configurable device only specifies _CRS. However, if they are
configurable, devices include _PRS to indicate the possible resource
setting and _SRS to allow OSPM to specify a new resource allocation
for the device.
"""

However, _PRS/_SRS methods are checked in drivers/acpi/pci_link.c,
and the driver aborts if they are absent.
E.g.: When _PRS is missing:
ACPI: \_SB_.PCI0.LNKA: _CRS 36 not found in _PRS
ACPI: \_SB_.PCI0.LNKA: No IRQ available. Try pci=noacpi or acpi=off

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215560

Pierre Gondois (2):
  ACPI/PCI: Make _SRS optional for link device
  ACPI/PCI: Make _PRS optional for link device

 drivers/acpi/pci_link.c | 46 ++++++++++++++++++++++++++++-------------
 1 file changed, 32 insertions(+), 14 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-07-06 20:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-01 16:16 [PATCH RESEND v1 0/2] Make _PRS and _SRS methods optional Pierre Gondois
2022-07-01 16:16 ` [PATCH RESEND v1 1/2] ACPI/PCI: Make _SRS optional for link device Pierre Gondois
2022-07-05 17:29   ` Bjorn Helgaas
2022-07-06  9:52     ` Pierre Gondois
2022-07-06 20:21       ` Bjorn Helgaas
2022-07-05 17:52   ` Rafael J. Wysocki
2022-07-01 16:16 ` [PATCH RESEND v1 2/2] ACPI/PCI: Make _PRS " Pierre Gondois

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox