upstream linux cannot achieve package C8 power saving
Hi,
I notice a bug report on Bugzilla [1]. Quoting from it:
Quoted 3 lines
v6.5 (and at least v5.15, v5.19 and v6.4 as well) will not go to a higher power saving level than package C3.
With the inclusion of a patch that combines 3 Ubuntu commits related to VMD ASPM & LTR, package C8 is used.
See Bugzilla for the full thread.
FYI, the attached proposed fix is the same as Brett's another BZ report [2]. I include it for upstreaming.
To Brett: Would you like to submit the proper, formal patch (see Documentation/process/submitting-patches.rst for details)?
Thanks.
[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217841
[2]: https://bugzilla.kernel.org/show_bug.cgi?id=217828
Signature · 1 line
An old man doll... just what I always wanted! - Clara
commit 9491bfa0b1e5f658e09135759e7ebc373d9a72ce
Author: brett.hassall <[email protected]> Date: Thu Aug 24 19:26:36 2023 +1000
combined commit of: 71315b8e - UBUNTU: SAUCE: PCI/ASPM: Enable ASPM for links under VMD domain; d83e6f6e - UBUNTU: SAUCE: PCI/ASPM: Enable LTR for endpoints behind VMD; 069d0523 - UBUNTU: SAUCE: vmd: fixup bridge ASPM by driver name instead
drivers/pci/pcie/aspm.c +2 -1
@@ -682,7 +682,8 @@ static void pcie_aspm_cap_init(struct pcie_link_state *link, int blacklist)aspm_l1ss_init (link);/* Save default state */ - link->aspm_default = link->aspm_enabled; + link->aspm_default = parent->dev_flags &PCI_DEV_FLAGS_ENABLE_ASPM ? +ASPM_STATE_ALL : link->aspm_enabled;/* Setup initial capable state. Will be updated later */ link->aspm_capable = link->aspm_support;
drivers/pci/quirks.c +68 -0
71 lines not on this page · raw message
include/linux/pci.h +2 -0
@@ -245,6 +245,8 @@ enum pci_dev_flags {PCI_DEV_FLAGS_NO_RELAXED_ORDERING = (__force pci_dev_flags_t) (1 <<11 ),/* Device does honor MSI masking despite saying otherwise */ PCI_DEV_FLAGS_HAS_MSI_MASKING = (__force pci_dev_flags_t) (1 <<12 ), +/* Enable ASPM regardless of how LnkCtl is programmed */ + PCI_DEV_FLAGS_ENABLE_ASPM = (__force pci_dev_flags_t) (1 << 13), }; enum pci_irq_reroute_variant {
Hi
Ok, I will read into working up a formal patch.
Thanks for the reply.
Brett
Quoted 24 lines · Bagas Sanjaya
Hi,
I notice a bug report on Bugzilla [1]. Quoting from it:
Quoted 3 lines
v6.5 (and at least v5.15, v5.19 and v6.4 as well) will not go to a higher power saving level than package C3.
With the inclusion of a patch that combines 3 Ubuntu commits related to VMD ASPM & LTR, package C8 is used.
See Bugzilla for the full thread.
FYI, the attached proposed fix is the same as Brett's another BZ report [2]. I include it for upstreaming.
To Brett: Would you like to submit the proper, formal patch (see
Documentation/process/submitting-patches.rstfor details)?Thanks.
[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217841
[2]: https://bugzilla.kernel.org/show_bug.cgi?id=217828--
An old man doll... just what I always wanted! - Clara
Hi
I contacted the Ubuntu developers to see if they were ok with using their patches.
They advised the patches were outdated and further development was under discussion.
The current patches work and would benefit Linux users until something better comes along.
Would you like me to proceed with the formal patch still ?
Thanks
Brett
Quoted 24 lines · Bagas Sanjaya
Hi,
I notice a bug report on Bugzilla [1]. Quoting from it:
Quoted 3 lines
v6.5 (and at least v5.15, v5.19 and v6.4 as well) will not go to a higher power saving level than package C3.
With the inclusion of a patch that combines 3 Ubuntu commits related to VMD ASPM & LTR, package C8 is used.
See Bugzilla for the full thread.
FYI, the attached proposed fix is the same as Brett's another BZ report [2]. I include it for upstreaming.
To Brett: Would you like to submit the proper, formal patch (see
Documentation/process/submitting-patches.rstfor details)?Thanks.
[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217841
[2]: https://bugzilla.kernel.org/show_bug.cgi?id=217828--
An old man doll... just what I always wanted! - Clara
Hi
The Ubuntu devs have reverted their 3 patches and replaced them with 2 new patches.
Given this happened in the last week, I'll hold off submitting a patch for now and see what Ubuntu does
Thanks
Brett
Quoted 43 lines · brett hassall
Hi
I contacted the Ubuntu developers to see if they were ok with using their patches.
They advised the patches were outdated and further development was under discussion.
The current patches work and would benefit Linux users until something better comes along.
Would you like me to proceed with the formal patch still ?
Thanks
BrettQuoted 24 lines · Bagas Sanjaya
Hi,
I notice a bug report on Bugzilla [1]. Quoting from it:
Quoted 3 lines
v6.5 (and at least v5.15, v5.19 and v6.4 as well) will not go to a higher power saving level than package C3.
With the inclusion of a patch that combines 3 Ubuntu commits related to VMD ASPM & LTR, package C8 is used.
See Bugzilla for the full thread.
FYI, the attached proposed fix is the same as Brett's another BZ report [2]. I include it for upstreaming.
To Brett: Would you like to submit the proper, formal patch (see
Documentation/process/submitting-patches.rstfor details)?Thanks.
[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217841
[2]: https://bugzilla.kernel.org/show_bug.cgi?id=217828--
An old man doll... just what I always wanted! - Clara