]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add mostly dummy hw.pci.enable_aspm tunable.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 26 Jun 2020 19:55:11 +0000 (19:55 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 26 Jun 2020 19:55:11 +0000 (19:55 +0000)
commit4cee4598e7d7819ccc10eb353a33623fcbf84e09
treebbfca96fd960152fd43d4baf3c08a53e8f7a6759
parent85a2ea3f5785a299db029b84eee6d33d174e38da
Add mostly dummy hw.pci.enable_aspm tunable.

The only thing this tunable enables now is reporting to ACPI _OSC that
Active State Power Management and Clock Power Management Capability are
"supported" by the OS.

I've found that at least some Supermicro server boards do not allow OS
to support native PCIe hot-plug unless it reports those capabilities.
After spending significant time in PCIe specs I have found very little
motivation for that, and none of it applies to those motherboards, not
enabling ASPM themselves.  So unless OS explicitly wants to save power,
I see nothing for it to do there actually.

I guess it may get sense to support ASPM when we get Thunderbolt support.
Otherwise I have no system with PCIe hot-plug where power saving matters.

It would be nice to enable this by default, but I worry that it affect
power saving of some laptops, even though I haven't noticed that myself.
sys/dev/acpica/acpi_pcib_acpi.c
sys/dev/pci/pci.c
sys/dev/pci/pcivar.h