aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/aspm.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-14Merge tag 'pci-v6.18-fixes-5' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-8/+17
2025-11-12PCI/ASPM: Add pcie_aspm_remove_cap() to override advertised link statesBjorn Helgaas1-0/+13
2025-11-12PCI/ASPM: Cache L0s/L1 Supported so advertised link states can be overriddenBjorn Helgaas1-8/+4
2025-10-23PCI/ASPM: Enable only L0s and L1 for devicetree platformsBjorn Helgaas1-25/+9
2025-09-23PCI/ASPM: Enable all ClockPM and ASPM states for devicetree platformsManivannan Sadhasivam1-2/+43
2025-06-17PCI/ASPM: Consolidate variable declaration and initializationHans Zhang1-2/+1
2025-06-17PCI/ASPM: Use boolean type for aspm_disabled and aspm_forceHans Zhang1-4/+4
2025-03-28Merge tag 'pci-v6.15-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-8/+9
2025-02-20PCI/ASPM: Fix link state exit during switch upstream function removalDaniel Stodden1-8/+9
2025-02-06PCI/ASPM: Fix L1SS savingIlpo Järvinen1-3/+0
2024-12-13PCI/ASPM: Save parent L1SS config in pci_save_aspm_l1ss_state()Jian-Hong Pan1-5/+28
2024-11-06PCI/ASPM: Add notes about enabling PCI-PM L1SS to pci_enable_link_state(_locked)Jian-Hong Pan1-0/+6
2024-10-22PCI/ASPM: Disable L1 before disabling L1 PM SubstatesAjay Agarwal1-42/+50
2024-05-21Merge tag 'pci-v6.10-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-93/+89
2024-05-06PCI/ASPM: Restore parent state to parent, child state to childKai-Heng Feng1-2/+2
2024-05-02PCI/ASPM: Clean up ASPM disable/enable mask calculationIlpo Järvinen1-27/+24
2024-05-02PCI/ASPM: Consolidate link state definesIlpo Järvinen1-78/+77
2024-03-14Merge tag 'pci-v6.9-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+267
2024-03-12PCI/ASPM: Update save_state when configuration changesVidya Sagar1-1/+33
2024-03-12PCI/ASPM: Disable L1 before configuring L1 SubstatesBjorn Helgaas1-0/+19
2024-03-12PCI/ASPM: Save L1 PM Substates Capability for suspend/resumeDavid E. Box1-3/+99
2024-03-07PCI/ASPM: Move pci_save_ltr_state() to aspm.cDavid E. Box1-0/+40
2024-03-07PCI/ASPM: Always build aspm.cDavid E. Box1-0/+4
2024-03-07PCI/ASPM: Move pci_configure_ltr() to aspm.cDavid E. Box1-0/+75
2024-01-31PCI/ASPM: Fix deadlock when enabling ASPMJohan Hovold1-4/+9
2024-01-08Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-35/+30
2024-01-03Merge tag 'pci-v6.7-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+19
2024-01-02Revert "PCI/ASPM: Remove pcie_aspm_pm_state_change()"Bjorn Helgaas1-0/+19
2023-12-13PCI: Move pci_clear_and_set_dword() helper to PCI headerShuai Xue1-35/+30
2023-12-11PCI/ASPM: Add pci_disable_link_state_locked() lockdep assertJohan Hovold1-0/+2
2023-12-11PCI/ASPM: Clean up __pci_disable_link_state() 'sem' parameterJohan Hovold1-5/+5
2023-12-11PCI/ASPM: Add pci_enable_link_state_locked()Johan Hovold1-13/+40
2023-10-28Merge branch 'pci/misc'Bjorn Helgaas1-4/+4
2023-10-26PCI: Simplify pcie_capability_clear_and_set_word() to ..._clear_word()Ilpo Järvinen1-4/+4
2023-10-24PCI/ASPM: Fix L1 substate handling in aspm_attr_store_common()Heiner Kallweit1-0/+2
2023-10-24Revert "PCI/ASPM: Disable only ASPM_STATE_L1 when driver, disables L1"Heiner Kallweit1-1/+2
2023-10-10PCI/ASPM: Convert printk() to pr_*() and add includeIlpo Järvinen1-2/+3
2023-10-10PCI/ASPM: Remove unnecessary includesIlpo Järvinen1-2/+0
2023-10-10PCI/ASPM: Use FIELD_MAX() instead of literalsIlpo Järvinen1-7/+7
2023-10-10PCI/ASPM: Use time constantsIlpo Järvinen1-6/+8
2023-10-10PCI/ASPM: Return U32_MAX instead of bit magic constructIlpo Järvinen1-2/+3
2023-10-10PCI/ASPM: Use FIELD_GET/PREP() to access PCIe capability fieldsIlpo Järvinen1-13/+18
2023-08-10PCI/ASPM: Use RMW accessors for changing LNKCTLIlpo Järvinen1-17/+13
2023-06-26Merge branch 'pci/enumeration'Bjorn Helgaas1-52/+1
2023-06-20PCI/ASPM: Avoid link retraining raceIlpo Järvinen1-0/+11
2023-06-20PCI/ASPM: Factor out pcie_wait_for_retrain()Ilpo Järvinen1-12/+18
2023-06-20PCI/ASPM: Return 0 or -ETIMEDOUT from pcie_retrain_link()Bjorn Helgaas1-9/+11
2023-06-20PCI: Add support for polling DLLLA to pcie_retrain_link()Maciej W. Rozycki1-1/+1
2023-06-20PCI: Export pcie_retrain_link() for use outside ASPMMaciej W. Rozycki1-42/+0
2023-06-20PCI: Export PCIe link retrain timeoutMaciej W. Rozycki1-4/+2
2023-06-20PCI/ASPM: Factor out waiting for link training to completeMaciej W. Rozycki1-11/+23
2023-06-20PCI/ASPM: Avoid unnecessary pcie_link_state useMaciej W. Rozycki1-8/+7
2023-06-14PCI/ASPM: Use distinct local vars in pcie_retrain_link()Maciej W. Rozycki1-9/+10
2023-05-19PCI/ASPM: Remove unnecessary ASPM_STATE_L1SS checkAjay Agarwal1-4/+1
2023-05-19PCI/ASPM: Rename L1.2-specific functions from 'l1ss' to 'l12'Ajay Agarwal1-7/+7
2023-05-19PCI/ASPM: Set ASPM_STATE_L1 when driver enables L1.1 or L1.2Ajay Agarwal1-4/+5
2023-05-18PCI/ASPM: Set only ASPM_STATE_L1 when driver enables L1Ajay Agarwal1-2/+1
2023-05-18PCI/ASPM: Disable only ASPM_STATE_L1 when driver disables L1Ajay Agarwal1-2/+1
2023-05-18PCI/ASPM: Disable ASPM on MFD function removal to avoid use-after-freeDing Hui1-9/+12
2023-02-24Merge tag 'pci-v6.3-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+54
2023-02-10Revert "PCI/ASPM: Refactor L1 PM Substates Control Register programming"Bjorn Helgaas1-40/+34
2023-02-10Revert "PCI/ASPM: Save L1 PM Substates Capability for suspend/resume"Bjorn Helgaas1-37/+0
2023-02-02PCI/ASPM: Add pci_enable_link_state()Michael Bottini1-0/+54
2022-10-05PCI/ASPM: Correct LTR_L1.2_THRESHOLD computationBjorn Helgaas1-17/+32
2022-10-05PCI/ASPM: Ignore L1 PM Substates if device lacks capabilityBjorn Helgaas1-0/+3
2022-10-05PCI/ASPM: Factor out L1 PM Substates configurationBjorn Helgaas1-48/+55
2022-10-04PCI/ASPM: Save L1 PM Substates Capability for suspend/resumeVidya Sagar1-0/+37
2022-10-04PCI/ASPM: Refactor L1 PM Substates Control Register programmingVidya Sagar1-34/+40
2022-07-12PCI/ASPM: Unexport pcie_aspm_support_enabled()Bjorn Helgaas1-1/+0
2022-07-12PCI/ASPM: Remove pcie_aspm_pm_state_change()Kai-Heng Feng1-19/+0
2022-01-13Merge branch 'pci/enumeration'Bjorn Helgaas1-0/+1
2022-01-11PCI: Use DWORD accesses for LTR, L1 SS to avoid erratumRajat Jain1-0/+1
2021-11-19PCI/ASPM: Remove struct aspm_latencySaheed O. Bolarinwa1-19/+13
2021-11-19PCI/ASPM: Stop caching device L0s, L1 acceptable exit latenciesSaheed O. Bolarinwa1-19/+10
2021-11-19PCI/ASPM: Stop caching link L0s, L1 exit latenciesSaheed O. Bolarinwa1-11/+17
2021-11-19PCI/ASPM: Move pci_function_0() upwardBolarinwa O. Saheed1-14/+14
2021-09-28PCI: Use kstrtobool() directly, sans strtobool() wrapperKrzysztof Wilczyński1-2/+2
2021-06-03PCI/sysfs: Use sysfs_emit() and sysfs_emit_at() in "show" functionsKrzysztof Wilczyński1-2/+2
2021-01-27Revert "PCI/ASPM: Save/restore L1SS Capability for suspend/resume"Bjorn Helgaas1-44/+0
2020-11-20PCI/ASPM: Save/restore L1SS Capability for suspend/resumeVidya Sagar1-0/+44
2020-10-16PCI/ASPM: Remove struct pcie_link_state.l1ssSaheed O. Bolarinwa1-35/+49
2020-10-16PCI/ASPM: Remove struct aspm_register_info.l1ss_capSaheed O. Bolarinwa1-32/+21
2020-10-16PCI/ASPM: Pass L1SS Capabilities value, not struct aspm_register_infoBjorn Helgaas1-9/+8
2020-10-16PCI/ASPM: Remove struct aspm_register_info.l1ss_ctl1Saheed O. Bolarinwa1-12/+14
2020-10-16PCI/ASPM: Remove struct aspm_register_info.l1ss_ctl2 (unused)Bjorn Helgaas1-4/+1
2020-10-16PCI/ASPM: Remove struct aspm_register_info.l1ss_cap_ptrSaheed O. Bolarinwa1-21/+15
2020-10-16PCI/ASPM: Remove struct aspm_register_info.latency_encodingSaheed O. Bolarinwa1-14/+10
2020-10-16PCI/ASPM: Remove struct aspm_register_info.enabledSaheed O. Bolarinwa1-8/+6
2020-10-16PCI/ASPM: Remove struct aspm_register_info.supportSaheed O. Bolarinwa1-11/+14
2020-10-16PCI/ASPM: Use 'parent' and 'child' for readabilityBjorn Helgaas1-4/+5
2020-10-16PCI/ASPM: Move LTR path check to where it's usedBjorn Helgaas1-9/+8
2020-10-16PCI/ASPM: Move pci_clear_and_set_dword() earlierBjorn Helgaas1-11/+11
2020-07-17PCI/ASPM: Add missing newline in sysfs 'policy'Xiongfeng Wang1-0/+1
2020-05-07PCI/ASPM: Allow ASPM on links to PCIe-to-PCI/PCI-X BridgesKai-Heng Feng1-10/+0
2020-03-28PCI/ASPM: Reduce severity of common clock config messageChris Packham1-1/+1
2020-03-18PCI/ASPM: Clear the correct bits when enabling L1 substatesYicong Yang1-2/+2
2019-11-21PCI/ASPM: Remove PCIEASPM_DEBUG Kconfig option and related codeHeiner Kallweit1-105/+0
2019-11-21PCI/ASPM: Add sysfs attributes for controlling ASPM link statesHeiner Kallweit1-0/+149
2019-10-15PCI/ASPM: Add pcie_aspm_get_link()Heiner Kallweit1-12/+18
2019-10-15PCI/ASPM: Allow re-enabling Clock PMHeiner Kallweit1-7/+11
2019-10-15PCI/ASPM: Add L1 PM substate support to pci_disable_link_state()Heiner Kallweit1-1/+10
2019-10-15PCI/ASPM: Remove pcie_aspm_enabled() unnecessary lockingBjorn Helgaas1-6/+6
2019-09-23Merge tag 'pci-v5.4-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-5/+4
2019-09-23Merge branch 'pci/enumeration'Bjorn Helgaas1-4/+4
2019-09-07PCI: Get rid of dev->has_secondary_link flagMika Westerberg1-4/+4
2019-08-28PCI: Move ASPM declarations to linux/pci.hKrzysztof Wilczynski1-1/+0
2019-08-12PCI/ASPM: Add pcie_aspm_enabled()Rafael J. Wysocki1-0/+20
2019-06-21PCI: let pci_disable_link_state propagate errorsHeiner Kallweit1-9/+11
2019-04-06PCI: Rework pcie_retrain_link() wait loopStefan Mätje1-6/+4
2019-04-06PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratumStefan Mätje1-0/+9
2019-04-06PCI: Factor out pcie_retrain_link() functionStefan Mätje1-16/+24
2019-01-05Merge tag 'pci-v4.21-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-6/+0
2018-12-17PCI/ASPM: Remove unused lists from struct pcie_link_stateFrederick Lawler1-6/+0
2018-12-03Revert "PCI/ASPM: Do not initialize link state when aspm_disabled is set"Bjorn Helgaas1-1/+1
2018-09-18PCI/ASPM: Do not initialize link state when aspm_disabled is setPatrick Talbert1-1/+1
2018-09-17PCI/ASPM: Fix link_state teardown on device removalLukas Wunner1-1/+1
2018-08-06PCI/ASPM: Convert to use sysfs_match_string() helperAndy Shevchenko1-5/+3
2018-04-18PCI/ASPM: Disable ASPM L1.2 Substate if we don't have LTRBjorn Helgaas1-0/+9
2018-04-04Merge branch 'pci/misc'Bjorn Helgaas1-2/+1
2018-03-19PCI: Tidy commentsBjorn Helgaas1-2/+1
2018-02-28PCI/ASPM: Don't warn if already in common clock modeSinan Kaya1-0/+18
2018-02-28PCI/ASPM: Declare threshold_ns as u32, not u64Gustavo A. R. Silva1-1/+1
2018-01-31Merge branch 'pci/misc' into nextBjorn Helgaas1-5/+4
2018-01-18PCI: Add wrappers for dev_printk()Frederick Lawler1-5/+4
2017-12-18PCI/ASPM: Calculate LTR_L1.2_THRESHOLD from device characteristicsBjorn Helgaas1-24/+47
2017-11-15Merge tag 'pci-v4.15-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-18/+28
2017-11-15Merge tag 'modules-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-2/+3
2017-11-14PCI/ASPM: Add L1 Substates definitionsBjorn Helgaas1-14/+20
2017-11-14PCI/ASPM: Use correct capability pointer to program LTR_L1.2_THRESHOLDBjorn Helgaas1-1/+1
2017-11-13PCI/ASPM: Account for downstream device's Port Common_Mode_Restore_TimeBjorn Helgaas1-1/+1
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-31treewide: Fix function prototypes for module_param_call()Kees Cook1-2/+3
2017-10-05PCI/ASPM: Deal with missing root ports in link state handlingArd Biesheuvel1-2/+6
2017-03-07PCI/ASPM: Always set link->downstream to avoid NULL dereference on removeYinghai Lu1-3/+2
2017-02-23Merge tag 'pci-v4.11-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-13/+278
2017-02-14PCI/ASPM: Add comment about L1 substate latencyRajat Jain1-0/+8
2017-02-14PCI/ASPM: Configure L1 substate settingsRajat Jain1-2/+104
2017-02-14PCI/ASPM: Calculate and save the L1.2 timing parametersRajat Jain1-0/+79
2017-02-14PCI/ASPM: Read and set up L1 substate capabilitiesRajat Jain1-1/+58
2017-02-14PCI/ASPM: Add support for L1 substatesRajat Jain1-10/+29
2017-01-27PCI/ASPM: Handle PCI-to-PCIe bridges as roots of PCIe hierarchiesBjorn Helgaas1-6/+13
2016-12-08PCI/ASPM: Don't retrain link if ASPM not possibleDavid Daney1-2/+16
2016-11-14PCI/ASPM: Use permission-specific DEVICE_ATTR variantsJulia Lawall1-2/+2
2016-06-10PCI/ASPM: Remove redundant check of pcie_set_clkpmShawn Lin1-1/+1
2015-12-03PCI/ASPM: Make sysfs link_state_store() consistent with link_state_show()Andy Lutomirski1-11/+5
2015-06-10PCI/ASPM: Simplify Clock Power Management settingBjorn Helgaas1-8/+5
2015-05-26PCI/ASPM: Use dev->has_secondary_link to find downstream linksYijing Wang1-6/+10
2015-05-20PCI/ASPM: Remove redundant PCIe port type checkingYijing Wang1-15/+4
2015-05-20PCI/ASPM: Drop __pci_disable_link_state() useless "force" parameterBjorn Helgaas1-5/+4
2015-04-09PCI: Don't clear ASPM bits when the FADT declares it's unsupportedMatthew Garrett1-18/+0
2015-01-09PCI/ASPM: Use standard parsing functions for sysfs settersChris J Arges1-5/+7
2014-01-13PCI: Remove unused pcie_aspm_enabled()Stephen Hemminger1-12/+0
2013-11-14PCI: Fix whitespace, capitalization, and spelling errorsBjorn Helgaas1-1/+1
2013-05-28PCI: Fix kerneldoc for pci_disable_link_state()Yijing Wang1-4/+9
2013-05-21PCI/ASPM: Warn when driver asks to disable ASPM, but we can't do itBjorn Helgaas1-3/+13
2013-02-25Merge tag 'pci-v3.9-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-4/+4
2013-02-01PCI/ASPM: Don't touch ASPM if forcibly disabledJoe Lawrence1-0/+3
2013-02-01PCI/ASPM: Deallocate upstream link state even if device is not PCIeMyron Stowe1-4/+1
2013-01-14PCI: Allow pcie_aspm=force even when FADT indicates it is unsupportedColin Ian King1-0/+3
2012-12-07Merge branch 'pci/bjorn-pcie-cap' into nextBjorn Helgaas1-5/+6
2012-12-07PCI: Add standard PCIe Capability Link ASPM field namesBjorn Helgaas1-5/+6
2012-11-07PCI: Convert dev_printk(KERN_<LEVEL> to dev_<level>(Joe Perches1-5/+2
2012-08-23PCI/ASPM: Use PCI Express Capability accessorsJiang Liu1-51/+26
2012-08-23PCI: Introduce pci_pcie_type(dev) to replace pci_dev->pcie_typeYijing Wang1-21/+21
2012-03-31ASPM: Fix pcie devices with non-pcie childrenMatthew Garrett1-3/+10
2012-03-23Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jb...Linus Torvalds1-0/+8
2012-03-07PCI: ignore pre-1.1 ASPM quirking when ASPM is disabledMatthew Garrett1-0/+3
2012-02-17PCI: pcie: Add support for setting default ASPM policyMatthew Garrett1-0/+8
2011-12-05PCI: Rework ASPM disable codeMatthew Garrett1-21/+37
2011-06-29PCIe ASPM: forcedly -> forciblyMichael Witten1-1/+1
2011-05-21PCI/e1000e: Add and use pci_disable_link_state_locked()Yinghai Lu1-3/+16
2011-05-10PCI: Enable ASPM state clearing regardless of policyAlex Williamson1-1/+1
2011-03-21PCI: Changing ASPM policy, via /sys, to POWERSAVE could cause NMIsNaga Chumbalkar1-0/+4
2011-03-21PCI: PCIe links may not get configured for ASPM under POWERSAVE modeNaga Chumbalkar1-0/+22
2011-03-21PCI/ACPI: Report ASPM support to BIOS if not disabled from command lineRafael J. Wysocki1-0/+7
2010-12-23PCI: Disable ASPM if BIOS asks us toMatthew Garrett1-4/+17
2010-07-30PCI: Don't enable aspm before drivers have had a chance to veto itMatthew Garrett1-2/+14
2009-12-16PCI: change PCI nomenclature in drivers/pci/ (comment changes)Stefan Assmann1-2/+2
2009-12-04PCI: fix BUG_ON triggered by logical PCIe root port removalKenji Kaneshige1-2/+4
2009-11-24PCIe ASPM: use pci_is_pcie()Kenji Kaneshige1-9/+12
2009-11-24PCIe ASPM: use pci_pcie_cap()Kenji Kaneshige1-10/+10
2009-09-17PCI ASPM: support L1 onlyKenji Kaneshige1-3/+0
2009-09-09PCI ASPM: support per direction l0s managementKenji Kaneshige1-63/+107
2009-09-09PCI ASPM: support partial aspm enablementKenji Kaneshige1-164/+47
2009-09-09PCI ASPM: introduce capable flagKenji Kaneshige1-31/+86
2009-09-09PCI ASPM: introduce disable flagKenji Kaneshige1-17/+24
2009-09-09PCI ASPM: fix possible null pointer dereferenceKenji Kaneshige1-8/+9
2009-09-09PCI ASPM: remove redundant list checkKenji Kaneshige1-3/+0
2009-09-09PCI ASPM: do not clear enabled field by support fieldKenji Kaneshige1-3/+3
2009-06-18PCI ASPM: remove get_root_port_linkKenji Kaneshige1-13/+11
2009-06-18PCI ASPM: cleanup pcie_aspm_sanity_checkKenji Kaneshige1-12/+9
2009-06-18PCI ASPM: remove has_switch fieldKenji Kaneshige1-4/+1
2009-06-18PCI ASPM: cleanup calc_Lx_latencyKenji Kaneshige1-39/+34
2009-06-18PCI ASPM: cleanup pcie_aspm_get_cap_deviceKenji Kaneshige1-5/+4
2009-06-18PCI ASPM: cleanup clkpm checksKenji Kaneshige1-14/+20
2009-06-18PCI ASPM: cleanup __pcie_aspm_check_state_oneKenji Kaneshige1-42/+25
2009-06-18PCI ASPM: cleanup initializationKenji Kaneshige1-67/+75
2009-06-18PCI ASPM: cleanup change input argument of aspm functionsKenji Kaneshige1-199/+173
2009-06-18PCI ASPM: cleanup misc in struct pcie_link_stateKenji Kaneshige1-9/+9
2009-06-18PCI ASPM: cleanup clkpm state in struct pcie_link_stateKenji Kaneshige1-19/+18