summaryrefslogtreecommitdiffstats
path: root/lib/dim
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2023-10-10 21:29:14 +0530
committerKrzysztof Wilczyński <kwilczynski@kernel.org>2023-10-14 20:02:27 +0000
commit9f4f3dfad8cf08208fbb78b1b9cbf957c12618b9 (patch)
tree101aa052507a5609619e78082810bd2d79a682f7 /lib/dim
parenta78794562fcb2659c976388b1285eddda97e9954 (diff)
downloadlinux-stable-9f4f3dfad8cf08208fbb78b1b9cbf957c12618b9.tar.gz
linux-stable-9f4f3dfad8cf08208fbb78b1b9cbf957c12618b9.tar.bz2
linux-stable-9f4f3dfad8cf08208fbb78b1b9cbf957c12618b9.zip
PCI: qcom: Enable ASPM for platforms supporting 1.9.0 ops
ASPM is supported by Qcom host controllers/bridges on most of the recent platforms and so the devices tested so far. But for enabling ASPM by default (without using Kconfig, kernel command-line or sysfs), BIOS has to enable ASPM on both host bridge and downstream devices during boot. Unfortunately, none of the BIOS available on Qcom platforms enables ASPM. Due to this, the platforms making use of Qcom SoCs draw high power during runtime. To fix this power draw issue, users have to enable ASPM using Kconfig, kernel command-line, sysfs or the BIOS has to start enabling ASPM. The latter may happen in the future, but that won't address the issue on current platforms. Also, asking users to enable a feature to get the power management right would provide an unpleasant out-of-the-box experience. So the apt solution is to enable ASPM in the controller driver itself. And this is being accomplished by calling pci_enable_link_state() in the newly introduced host_post_init() callback for all the devices connected to the bus. This function enables all supported link low power states for both host bridge and the downstream devices. Due to limited testing, ASPM is only enabled for platforms making use of ops_1_9_0 callbacks. [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/20231010155914.9516-3-manivannan.sadhasivam@linaro.org Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Diffstat (limited to 'lib/dim')
0 files changed, 0 insertions, 0 deletions