Page MenuHomeFreeBSD

xen/acpi: upload Cx and Px data to Xen
ClosedPublic

Authored by royger on Apr 8 2022, 8:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 22, 4:18 AM
Unknown Object (File)
Sat, Dec 20, 4:21 AM
Unknown Object (File)
Thu, Dec 18, 12:23 PM
Unknown Object (File)
Sun, Dec 14, 7:19 AM
Unknown Object (File)
Fri, Dec 12, 9:04 PM
Unknown Object (File)
Wed, Dec 10, 1:13 PM
Unknown Object (File)
Mon, Dec 1, 12:18 AM
Unknown Object (File)
Thu, Nov 27, 9:08 PM
Subscribers

Details

Summary

When FreeBSD is running as dom0 (initial domain) on a Xen system it
has access to the native ACPI tables and is the OSPM. However the
hypervisor is the entity in charge of the CPU idle and frequency
states, and in order to perform this duty it requires information
found the ACPI dynamic tables that can only be parsed by the OSPM.

Introduce a new Xen specific ACPI driver to fetch the Processor
related information and upload it to Xen. Note that this driver needs
to take precedence over the generic ACPI CPU driver when running as
dom0, so downgrade the probe score of the native driver to
BUS_PROBE_DEFAULT in order for the Xen specific driver to use
BUS_PROBE_SPECIFIC.

Tested on an Intel NUC to successfully parse and upload both the Cx and
Px states to Xen.

Sponsored by: Citrix Systems R&D

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable