PCIe ASPM disabled even when enabled in FADT and pcie_aspm=force / setpci used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
This is somewhat similar in issue to lp#1377596.
I have a "Lenovo ThinkCentre m900 Tiny" with an "Intel 600p" NVMe drive in it.
As far as I can tell from dissembling the FADT PCIe ASPM is not set to disabled but the ports are not enabled in UEFI during boot.
I also notice that the PCIe ASPM debug files are not in sysfs like they normally are ie: link_state
I tried running the following manually but I think it must not be enough as the NVMe drive does not run any cooler as it does in a system with known working ASPM.
setpci -s 00:1b.0 0x50.B=0x3
setpci -s 00:1c.0 0x50.B=0x3
setpci -s 01:00.0 0x80.B=0x3
setpci -s 02:00.0 0x50.B=0x3
I noticed via lspci that the root ports say ASPM not supported even though the FADT doesn't have them disabled. Is that the reason its still not working and how do I work around that issue?
Also is there something specific I can tell Lenovo to do to fix this issue on their end, if it can't be worked around in Linux? I have an open case with them via the UEFI engineering team but so far its been slow going since I don't have anything concrete to tell them to fix.
===
00:1b.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Root Port #17 (rev f1) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 122
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000f000-00000fff
Memory behind bridge: df100000-df1fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
Kernel driver in use: pcieport
Kernel modules: shpchp
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.10.0-19-generic x86_64
ApportVersion: 2.20.4-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
Cannot stat file /proc/2050/fd/24: Stale file handle
Cannot stat file /proc/2050/fd/25: Stale file handle
/dev/snd/
CasperVersion: 1.380
Date: Fri Apr 14 04:10:41 2017
LiveMediaBuild: Ubuntu-MATE 17.04 "Zesty Zapus" - Release amd64 (20170412)
MachineType: LENOVO 10FMCTO
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.164
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/07/2017
dmi.bios.vendor: LENOVO
dmi.bios.version: FWKT6CA
dmi.board.name: 30D0
dmi.board.vendor: LENOVO
dmi.board.version: SDK0K17763 WIN 1801925111491
dmi.chassis.type: 3
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 10FMCTO
dmi.product.
dmi.sys.vendor: LENOVO
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
The setpci commands I used modified the LnkCtl option but not the LnkCap values. I'm not sure but suspect that the LnkCap values are what are causing the problem.
--
LnkCap: Port #17, Speed 8GT/s, Width x4, ASPM not supported, Exit Latency L0s <1us, L1 <16us
ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkCap: Port #7, Speed 8GT/s, Width x1, ASPM not supported, Exit Latency L0s <1us, L1 <16us
ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
vs
LnkCap: Port #17, Speed 8GT/s, Width x4, ASPM not supported, Exit Latency L0s unlimited, L1 <16us
ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp+
LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkCap: Port #7, Speed 8GT/s, Width x1, ASPM not supported, Exit Latency L0s unlimited, L1 <16us
ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp+
LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-