diff options
| author | Kevin Bowling <kbowling@FreeBSD.org> | 2026-08-30 08:18:10 +0000 |
|---|---|---|
| committer | Kevin Bowling <kbowling@FreeBSD.org> | 2026-08-30 12:39:41 +0000 |
| commit | c4e24e95c3f905b817d4bfc6e93457eb297bfa4b (patch) | |
| tree | 43f57ef106cab21942ca9fc62bfdfe07b831bf05 /test/CXX/expr/expr.prim/expr.prim.general | |
| parent | 9f5cfe625e9e8153599105458650e5fcecfd6281 (diff) | |
The presence of the PCI power management capability does not imply that
a function can signal PME# from every power state. Drivers which
advertise wake based only on pci_has_pm() can consequently expose wake
modes that cannot work.
Add pci_has_pme() to query the PME_Support bitmap for a specific state.
Use it to implement LinuxKPI pci_pme_capable(), removing its duplicate
PME_Support decoder.
Validated the helper against PCI PMC capability values from 82571EB,
82573L, 82579LM, I210, I225, and I226-V controllers. The 82571 and
82573 reported PMC 0xc822, while the I226-V reported 0xc823. In both
values, bits 15, 14, and 11 advertise PME from D3cold, D3hot, and D0;
the low-bit difference is only the PM capability version.
MFC after: 2 weeks
Sponsored by: BBOX.io
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.general')
0 files changed, 0 insertions, 0 deletions
