View Issue Details

IDProjectCategoryView StatusLast Update
0009543CentOS-7-OTHERpublic2022-02-23 09:35
ReporterLocane Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
OSCentOS 7OS Version3.10.0-229.el7 
Product Version7.1-1503 
Summary0009543: Kernel parameter pcie_aspm.policy=performance ignored; can't echo to file to alter
DescriptionThe pcie_aspm.policy=<POLICY> kernel parameter is not changing the PCIE ASPM policy.

Echoing "performance" to /sys/module/pcie_aspm/parameters/policy is crashing.


[burnc7 (2015-09-30 18:28:46) ~]# cat /sys/module/pcie_aspm/parameters/policy
[default] performance powersave
[burnc7 (2015-09-30 18:36:03) ~]# echo "performance" > /sys/module/pcie_aspm/parameters/policy
-bash: echo: write error: Operation not permitted
Steps To Reproduce1. Install CentOS 7
2. Run cat /sys/module/pcie_aspm/parameters/policy
3. Output should be "[default] performance powersave"
4. Reboot
5. At boot time, hit tab repeatedly to edit boot parameters
6. Add "pcie_aspm.policy=performance" to the kernel parameter line behind "rghb quiet"
7. After boot, run cat /sys/module/pcie_aspm/parameters/policy again
8. Output SHOULD be "default [performance] powersave", but is NOT.
9. Run echo "performance" > /sys/module/pcie_aspm/parameters/policy
10. View bash error crash
Additional InformationIn CentOS 6, we ran in to an issue where PCIE Advanced State Power Management (pcie_aspm) had to be turned to "performance" mode manually to prevent certain PCI cards from going to sleep and never waking up. We did this with a kernel parameter at boot time:

pcie_aspm.policy=performance

We were also able to simply echo to the file path that held the setting to change it on the fly:

echo "performance" > /sys/module/pcie_aspm/parameters/policy

Neither of these operations are working in CentOS 7.

Redhat's documentation for 7 says that this setting should work - it is not.
TagsNo tags attached.
abrt_hash
URLhttps://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Power_Management_Guide/ASPM.html

Activities

toracat

toracat

2015-10-01 07:19

manager   ~0024505

I see the following config options in RHEL/CentOS-7 kernels:

CONFIG_PCIEASPM=y
# CONFIG_PCIEASPM_DEBUG is not set
CONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not set

You might want to file a report at http://bugzilla.redhat.com and ask if this is really intended config options.
Locane

Locane

2015-10-01 18:05

reporter   ~0024513

Toracat, do you know of a way I can get around this and disable ASPM currently? Or do I need to rebuild the kernel from source?
toracat

toracat

2015-10-02 00:26

manager   ~0024516

@Locane

Can you try adding a kernel parameter pci_aspm=off and see if that works?
Locane

Locane

2015-10-02 00:58

reporter   ~0024517

Yeah, sorry I didn't mention this earlier - that has no effect on the output of "cat /sys/module/pcie_aspm/parameters/policy".

I don't actually know of any other way to check whether it's off or not in the OS - do you know of any?

The issue we're running in to is intermittent loss of storage devices through an LSI controller, so it's hard to gauge if the problem is "fixed" or not using that parameter, since there's no checkable way to see if it's off or not. I hope that makes sense.
toracat

toracat

2015-10-02 03:39

manager   ~0024518

Any hint in dmesg?

dmesg | grep -i aspm
Dynemix

Dynemix

2016-05-01 20:50

reporter   ~0026401

Hi there..

i got this problem too, my PCIe card will not awake after sleep.
after adding pcie_aspm.policy=performance at grub, and update the grub.
after rebooting i still got the policy same at the previous

[root@server6 ~]# cat /sys/module/pcie_aspm/parameters/policy
[default] performance powersave


My grub :
GRUB_TIMEOUT=5
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet pcie_aspm.policy=performance"
GRUB_DISABLE_RECOVERY="true"
ax_fer

ax_fer

2022-02-23 09:35

reporter   ~0038864

I had the same issue, and I solved it by modifying the grub <sudo nano /etc/default/grub> and change GRUB_CMDLINE_LINUX_DEFAULT with
<GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force pcie_aspm.policy=performance">

Issue History

Date Modified Username Field Change
2015-10-01 01:43 Locane New Issue
2015-10-01 07:19 toracat Note Added: 0024505
2015-10-01 18:05 Locane Note Added: 0024513
2015-10-02 00:26 toracat Note Added: 0024516
2015-10-02 00:58 Locane Note Added: 0024517
2015-10-02 03:39 toracat Note Added: 0024518
2016-05-01 20:50 Dynemix Note Added: 0026401
2022-02-23 09:35 ax_fer Note Added: 0038864