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)
Mar 27 2024, 10:56 PM
Unknown Object (File)
Mar 7 2024, 2:13 PM
Unknown Object (File)
Dec 24 2023, 4:30 PM
Unknown Object (File)
Dec 22 2023, 11:51 PM
Unknown Object (File)
Dec 12 2023, 5:55 PM
Unknown Object (File)
Nov 16 2023, 5:58 AM
Unknown Object (File)
Oct 6 2023, 3:50 PM
Unknown Object (File)
Sep 9 2023, 5:20 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