https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236513

--- Comment #38 from [email protected] ---
Sorry not quite yet... The only call to acpi_set_resource() during _CST port
setup has the following input:

class of dev: "acpi"
class of child: "cpu"

A slight modification gives:

    if (device_get_devclass(child) == devclass_find("cpu")) {
            flags = RF_SHAREABLE;
    }
    else {
            flags = 0;
    }

Ports are now registered per CPU (which is fine), but devinfo gives different
output:

nexus0
      I/O ports:
        < no port 0x1771 here ...>

    cpu0 pnpinfo _HID=none _UID=0 at handle=\_PR_.P000
        I/O ports:  <---- Port without ACPI flag
            0x1771
      acpi_perf0
      acpi_throttle0
      hwpstate0
      cpufreq0
    cpu1 pnpinfo _HID=none _UID=0 at handle=\_PR_.P001
        I/O ports:
            0x1771

Nevertheless CPU C states seem to register correctly:

root@freebsd:~ # sysctl -a | grep cx_supp
dev.cpu.3.cx_supported: C1/1/0 C2/2/400
dev.cpu.2.cx_supported: C1/1/0 C2/2/400
dev.cpu.1.cx_supported: C1/1/0 C2/2/400
dev.cpu.0.cx_supported: C1/1/0 C2/2/400

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to