* Lack of _HPX after reset, DPC
@ 2024-07-15 21:45 Bjorn Helgaas
2024-07-29 2:24 ` Kai-Heng Feng
0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2024-07-15 21:45 UTC (permalink / raw)
To: linux-pci, linux-cxl; +Cc: Austin Bolen, Alex Williamson, Kai-Heng Feng
I think Linux is missing some important _HPX functionality. Per ACPI
r6.5, sec 6.2.9,
OSPM uses the information returned by _HPX to determine how to
configure PCI Functions that are hot-plugged into the system, to
configure Functions not configured by the platform firmware during
initial system boot, and to configure Functions any time they lose
configuration space settings (e.g. OSPM issues a Secondary Bus
Reset/Function Level Reset or Downstream Port Containment is
triggered).
Linux currently *does* process _HPX for hot-added devices.
The spec doesn't call it out for boot-time enumeration, except for
"Functions not configured by the platform firmware during initial
system boot", but Linux does process _HPX for all devices enumerated
at boot-time because it's not clear how to identify devices that
weren't configured by firmware.
But AFAICT, Linux does not do anything with _HPX in the device reset,
AER, or DPC flows. I don't have any problem reports that I can say
are caused by lack of _HPX after reset, but it seems like something we
should fix.
If we could find a system with _HPX that does something interesting,
we might be able to demonstrate a defect by looking at a device before
and after a reset.
Bjorn
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Lack of _HPX after reset, DPC
2024-07-15 21:45 Lack of _HPX after reset, DPC Bjorn Helgaas
@ 2024-07-29 2:24 ` Kai-Heng Feng
0 siblings, 0 replies; 2+ messages in thread
From: Kai-Heng Feng @ 2024-07-29 2:24 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pci, linux-cxl, Austin Bolen, Alex Williamson
Hi Bjorn,
On Tue, Jul 16, 2024 at 5:45 AM Bjorn Helgaas <helgaas@kernel.org> wrote:
>
> I think Linux is missing some important _HPX functionality. Per ACPI
> r6.5, sec 6.2.9,
>
> OSPM uses the information returned by _HPX to determine how to
> configure PCI Functions that are hot-plugged into the system, to
> configure Functions not configured by the platform firmware during
> initial system boot, and to configure Functions any time they lose
> configuration space settings (e.g. OSPM issues a Secondary Bus
> Reset/Function Level Reset or Downstream Port Containment is
> triggered).
>
> Linux currently *does* process _HPX for hot-added devices.
>
> The spec doesn't call it out for boot-time enumeration, except for
> "Functions not configured by the platform firmware during initial
> system boot", but Linux does process _HPX for all devices enumerated
> at boot-time because it's not clear how to identify devices that
> weren't configured by firmware.
>
> But AFAICT, Linux does not do anything with _HPX in the device reset,
> AER, or DPC flows. I don't have any problem reports that I can say
> are caused by lack of _HPX after reset, but it seems like something we
> should fix.
The consumer grade devices I checked don't have _HPX in the ACPI ASL.
So I can't really delve into it any further.
Kai-Heng
>
> If we could find a system with _HPX that does something interesting,
> we might be able to demonstrate a defect by looking at a device before
> and after a reset.
>
> Bjorn
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-29 2:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 21:45 Lack of _HPX after reset, DPC Bjorn Helgaas
2024-07-29 2:24 ` Kai-Heng Feng
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).