PCIe BUS Error causing really slow laptop performance

Bug #1726159 reported by George Mathioudakis
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I recently bought the following laptop:
Asus VivoBook X542UQ-DM148T - 15.6" (i7-7500U/8GB/256GB/GT 940MX 2GB)

It came pre-installed with Win10 and I did a fresh install of Ubuntu 16.04 LTS. The screen was flickering for some reason and installing Ubuntu 17.04 fixed the issue.

The real problem is that when I'm booting the laptop, the following error is being shown on my screen:

[ 12.866073] pcieport 0000:00:1c.5: can't find device of ID00e5
[ 12.898481] pcieport 0000:00:1c.5: AER: Multiple Corrected error received: id=00e5
[ 12.898488] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
[ 12.898491] pcieport 0000:00:1c.5: device [8086:9d15] error status/mask=00002041/00002000
[ 12.898492] pcieport 0000:00:1c.5: [ 0] Receiver Error (First)
[ 12.898493] pcieport 0000:00:1c.5: [ 6] Bad TLP

I know that this error can be hid with one of the following kernel boot arguments:
pci=nomsi / pci=noaer / pcie_aspm=off / pci=nommconf.

The weird thing is that the above output is only being shown when the laptop is on AC Power (charging). When the laptop is not connected to AC (battery-mode), it has performance issues (slow boot and slow application launching). I was trying all day long to fix the problem. I removed everything that had to do with power-saving, reinstalled, re-tweaked for performance, tried different kernels but had no luck. While diagnosing, I had the idea to benchmark the "M2 SATA-3 SSD" that my laptop had. The results are:

* On AC Power: 522MB/s (READ) | 416MB/s (WRITE)
* On Battery Power: 32MB/s (READ) | 31MB/s (WRITE)

This explains everyting. That's why I'm having a slow boot and slow application launching!

Commands "lspci" and "dmesg" say that the error comes from the following device:
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)

I will attach lspci and dmesg output on a tar.gz file.

--------------------------------------------------------------------------
UPDATE: When the laptop is fully charged and still on AC (but not charging since it is 100% charged), the errors appear again but the SSD speed is normal (~500 Read/Write).
--------------------------------------------------------------------------
UPDATE: I installed 'tlp' Advanced Power Management package and when using the command 'tlp ac', the SSD speed gets back to normal! The option does not persist across reboots.
--------------------------------------------------------------------------

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: linux-image-4.10.0-37-generic 4.10.0-37.41
ProcVersionSignature: Ubuntu 4.10.0-37.41-generic 4.10.17
Uname: Linux 4.10.0-37-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: georgem 2557 F.... pulseaudio
CurrentDesktop: Unity:Unity7
Date: Sun Oct 22 23:17:57 2017
InstallationDate: Installed on 2017-10-20 (2 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 004: ID 13d3:3496 IMC Networks
 Bus 001 Device 003: ID 13d3:5a01 IMC Networks
 Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: ASUSTeK COMPUTER INC. X542UQ
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.10.0-37-generic.efi.signed root=UUID=38d32efc-d0cb-4a82-9e6c-e6a3bd62e51d ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-37-generic N/A
 linux-backports-modules-4.10.0-37-generic N/A
 linux-firmware 1.164.1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/18/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: X542UQ.202
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: X542UQ
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrX542UQ.202:bd05/18/2017:svnASUSTeKCOMPUTERINC.:pnX542UQ:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnX542UQ:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: X542UQ
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
George Mathioudakis (gmathioud) wrote :
summary: - PCIe Error causing really slow laptop performance
+ PCIe BUS Error causing really slow laptop performance
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.14 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14-rc6

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: kernel-bug-exists-upstream
Revision history for this message
George Mathioudakis (gmathioud) wrote :

Device booted with the latest mainline kernel "v4.14-rc6" on "Ubuntu 17.04".

Results: Error still persists.

Marking bug report as "CONFIRMED" after following @jsalisbury's advice.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you try blacklisting ath10k_pci?

Revision history for this message
George Mathioudakis (gmathioud) wrote :

I blacklisted ath10k_pci by adding "modprobe.blacklist=ath10k_pci" as a kernel parameter.

The errors are gone, but the slow Read/Write problem still persists. Also, the Wi-Fi (as expected) is going completely off.

Reminder: The erros are not showing on the boot screen or system logs when connected to AC power and the SSD speeds are normal (~500 Read/Write)

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Maybe the CPU frequency is locked? Or some kernel thread slows the entire system down?

Revision history for this message
George Mathioudakis (gmathioud) wrote :

UPDATE: When the laptop is fully charged and still on AC (but not charging since it is 100% charged), the errors appear again but the SSD speed is normal (~500 Read/Write).

I don't think that the CPU frequency has a limit when on battery-mode. The problem is related with my stock SSD (the laptop came with).

description: updated
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please install acpidump, then

$ sudo acpidump > dump

and attach the dump file.

Revision history for this message
George Mathioudakis (gmathioud) wrote : Re: [Bug 1726159] Re: PCIe BUS Error causing really slow laptop performance
  • dump.txt Edit (1.1 MiB, text/plain; charset="US-ASCII"; name="dump.txt")
Download full text (5.0 KiB)

I attached the dump file "dump.txt".

2017-10-26 18:12 GMT+03:00 Kai-Heng Feng <email address hidden>:

> Please install acpidump, then
>
> $ sudo acpidump > dump
>
> and attach the dump file.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1726159
>
> Title:
> PCIe BUS Error causing really slow laptop performance
>
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I recently bought the following laptop:
> Asus VivoBook X542UQ-DM148T - 15.6" (i7-7500U/8GB/256GB/GT 940MX 2GB)
>
> It came pre-installed with Win10 and I did a fresh install of Ubuntu
> 16.04 LTS. The screen was flickering for some reason and installing
> Ubuntu 17.04 fixed the issue.
>
> The real problem is that when I'm booting the laptop, the following
> error is being shown on my screen:
>
> [ 12.866073] pcieport 0000:00:1c.5: can't find device of ID00e5
> [ 12.898481] pcieport 0000:00:1c.5: AER: Multiple Corrected error
> received: id=00e5
> [ 12.898488] pcieport 0000:00:1c.5: PCIe Bus Error:
> severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
> [ 12.898491] pcieport 0000:00:1c.5: device [8086:9d15] error
> status/mask=00002041/00002000
> [ 12.898492] pcieport 0000:00:1c.5: [ 0] Receiver Error
> (First)
> [ 12.898493] pcieport 0000:00:1c.5: [ 6] Bad TLP
>
> I know that this error can be hid with one of the following kernel boot
> arguments:
> pci=nomsi / pci=noaer / pcie_aspm=off / pci=nommconf.
>
> The weird thing is that the above output is only being shown when the
> laptop is on AC Power (charging). When the laptop is not connected to
> AC (battery-mode), it has performance issues (slow boot and slow
> application launching). I was trying all day long to fix the problem.
> I removed everything that had to do with power-saving, reinstalled,
> re-tweaked for performance, tried different kernels but had no luck.
> While diagnosing, I had the idea to benchmark the "M2 SATA-3 SSD" that
> my laptop had. The results are:
>
> * On AC Power: 522MB/s (READ) | 416MB/s (WRITE)
> * On Battery Power: 32MB/s (READ) | 31MB/s (WRITE)
>
> This explains everyting. That's why I'm having a slow boot and slow
> application launching!
>
> Commands "lspci" and "dmesg" say that the error comes from the following
> device:
> 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root
> Port #6 (rev f1)
>
> I will attach lspci and dmesg output on a tar.gz file.
>
> ------------------------------------------------------------
> --------------
> UPDATE: When the laptop is fully charged and still on AC (but not
> charging since it is 100% charged), the errors appear again but the SSD
> speed is normal (~500 Read/Write).
> ------------------------------------------------------------
> --------------
>
> ProblemType: Bug
> DistroRelease: Ubuntu 17.04
> Package: linux-image-4.10.0-37-generic 4.10.0-37.41
> ProcVersionSignature: Ubuntu 4.10.0-37.41-generic 4.10.17
> Uname: Linux 4.10.0-37-generic x86_64
> ApportVersion: 2.20.4-0ubuntu4.5
> Architecture: amd64
> AudioDevic...

Read more...

Revision history for this message
George Mathioudakis (gmathioud) wrote :

UPDATE: I installed 'tlp' Advanced Power Management package and when using the command 'tlp ac', the SSD speed gets back to normal! The option does not persist across reboots.

description: updated
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Right, probably related to SATA link power management. Change the BAT value the same as AC value.

Revision history for this message
George Mathioudakis (gmathioud) wrote :

Changing TLP config values did the job. But, tlp is making changes only when the desktop appears. How can I change kernel values to start on max performance? What value changes tlp does to kernel?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Did you change the SATA link power management or other settings?

Can you attach the diff of your TLP setting?

Revision history for this message
George Mathioudakis (gmathioud) wrote :
  • tlp.txt Edit (10.3 KiB, text/plain; charset="US-ASCII"; name="tlp.txt")
Download full text (5.4 KiB)

I modified tlp for max performance but tlp starts only when desktop boots.
So, kernel boot is slow.

2017-11-02 8:57 GMT+02:00 Kai-Heng Feng <email address hidden>:

> Did you change the SATA link power management or other settings?
>
> Can you attach the diff of your TLP setting?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1726159
>
> Title:
> PCIe BUS Error causing really slow laptop performance
>
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I recently bought the following laptop:
> Asus VivoBook X542UQ-DM148T - 15.6" (i7-7500U/8GB/256GB/GT 940MX 2GB)
>
> It came pre-installed with Win10 and I did a fresh install of Ubuntu
> 16.04 LTS. The screen was flickering for some reason and installing
> Ubuntu 17.04 fixed the issue.
>
> The real problem is that when I'm booting the laptop, the following
> error is being shown on my screen:
>
> [ 12.866073] pcieport 0000:00:1c.5: can't find device of ID00e5
> [ 12.898481] pcieport 0000:00:1c.5: AER: Multiple Corrected error
> received: id=00e5
> [ 12.898488] pcieport 0000:00:1c.5: PCIe Bus Error:
> severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
> [ 12.898491] pcieport 0000:00:1c.5: device [8086:9d15] error
> status/mask=00002041/00002000
> [ 12.898492] pcieport 0000:00:1c.5: [ 0] Receiver Error
> (First)
> [ 12.898493] pcieport 0000:00:1c.5: [ 6] Bad TLP
>
> I know that this error can be hid with one of the following kernel boot
> arguments:
> pci=nomsi / pci=noaer / pcie_aspm=off / pci=nommconf.
>
> The weird thing is that the above output is only being shown when the
> laptop is on AC Power (charging). When the laptop is not connected to
> AC (battery-mode), it has performance issues (slow boot and slow
> application launching). I was trying all day long to fix the problem.
> I removed everything that had to do with power-saving, reinstalled,
> re-tweaked for performance, tried different kernels but had no luck.
> While diagnosing, I had the idea to benchmark the "M2 SATA-3 SSD" that
> my laptop had. The results are:
>
> * On AC Power: 522MB/s (READ) | 416MB/s (WRITE)
> * On Battery Power: 32MB/s (READ) | 31MB/s (WRITE)
>
> This explains everyting. That's why I'm having a slow boot and slow
> application launching!
>
> Commands "lspci" and "dmesg" say that the error comes from the following
> device:
> 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root
> Port #6 (rev f1)
>
> I will attach lspci and dmesg output on a tar.gz file.
>
> ------------------------------------------------------------
> --------------
> UPDATE: When the laptop is fully charged and still on AC (but not
> charging since it is 100% charged), the errors appear again but the SSD
> speed is normal (~500 Read/Write).
> ------------------------------------------------------------
> --------------
> UPDATE: I installed 'tlp' Advanced Power Management package and when
> using the command 'tlp ac', the SSD speed gets back to normal! The option
> does not persist across reboots.
> -------------...

Read more...

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Download full text (10.7 KiB)

> On 3 Nov 2017, at 10:11 PM, George Mathioudakis <email address hidden> wrote:
>
> I modified tlp for max performance but tlp starts only when desktop boots.
> So, kernel boot is slow.

Sounds like not the SATA link power management? So which value exactly?

>
> 2017-11-02 8:57 GMT+02:00 Kai-Heng Feng <email address hidden>:
>
>> Did you change the SATA link power management or other settings?
>>
>> Can you attach the diff of your TLP setting?
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1726159
>>
>> Title:
>> PCIe BUS Error causing really slow laptop performance
>>
>> Status in linux package in Ubuntu:
>> Confirmed
>>
>> Bug description:
>> I recently bought the following laptop:
>> Asus VivoBook X542UQ-DM148T - 15.6" (i7-7500U/8GB/256GB/GT 940MX 2GB)
>>
>> It came pre-installed with Win10 and I did a fresh install of Ubuntu
>> 16.04 LTS. The screen was flickering for some reason and installing
>> Ubuntu 17.04 fixed the issue.
>>
>> The real problem is that when I'm booting the laptop, the following
>> error is being shown on my screen:
>>
>> [ 12.866073] pcieport 0000:00:1c.5: can't find device of ID00e5
>> [ 12.898481] pcieport 0000:00:1c.5: AER: Multiple Corrected error
>> received: id=00e5
>> [ 12.898488] pcieport 0000:00:1c.5: PCIe Bus Error:
>> severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
>> [ 12.898491] pcieport 0000:00:1c.5: device [8086:9d15] error
>> status/mask=00002041/00002000
>> [ 12.898492] pcieport 0000:00:1c.5: [ 0] Receiver Error
>> (First)
>> [ 12.898493] pcieport 0000:00:1c.5: [ 6] Bad TLP
>>
>> I know that this error can be hid with one of the following kernel boot
>> arguments:
>> pci=nomsi / pci=noaer / pcie_aspm=off / pci=nommconf.
>>
>> The weird thing is that the above output is only being shown when the
>> laptop is on AC Power (charging). When the laptop is not connected to
>> AC (battery-mode), it has performance issues (slow boot and slow
>> application launching). I was trying all day long to fix the problem.
>> I removed everything that had to do with power-saving, reinstalled,
>> re-tweaked for performance, tried different kernels but had no luck.
>> While diagnosing, I had the idea to benchmark the "M2 SATA-3 SSD" that
>> my laptop had. The results are:
>>
>> * On AC Power: 522MB/s (READ) | 416MB/s (WRITE)
>> * On Battery Power: 32MB/s (READ) | 31MB/s (WRITE)
>>
>> This explains everyting. That's why I'm having a slow boot and slow
>> application launching!
>>
>> Commands "lspci" and "dmesg" say that the error comes from the following
>> device:
>> 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root
>> Port #6 (rev f1)
>>
>> I will attach lspci and dmesg output on a tar.gz file.
>>
>> ------------------------------------------------------------
>> --------------
>> UPDATE: When the laptop is fully charged and still on AC (but not
>> charging since it is 100% charged), the errors appear again but the SSD
>> speed is normal (~500 Read/Write).
>> ---------------------------------------------------------...

Revision history for this message
George Mathioudakis (gmathioud) wrote :
Download full text (16.5 KiB)

I modified all settings ending on _BAT and some that were related to
storage/sata.

2017-11-06 3:23 GMT+02:00 Kai-Heng Feng <email address hidden>:

> > On 3 Nov 2017, at 10:11 PM, George Mathioudakis <
> <email address hidden>> wrote:
> >
> > I modified tlp for max performance but tlp starts only when desktop
> boots.
> > So, kernel boot is slow.
>
> Sounds like not the SATA link power management? So which value exactly?
>
> >
> > 2017-11-02 8:57 GMT+02:00 Kai-Heng Feng <email address hidden>:
> >
> >> Did you change the SATA link power management or other settings?
> >>
> >> Can you attach the diff of your TLP setting?
> >>
> >> --
> >> You received this bug notification because you are subscribed to the bug
> >> report.
> >> https://bugs.launchpad.net/bugs/1726159
> >>
> >> Title:
> >> PCIe BUS Error causing really slow laptop performance
> >>
> >> Status in linux package in Ubuntu:
> >> Confirmed
> >>
> >> Bug description:
> >> I recently bought the following laptop:
> >> Asus VivoBook X542UQ-DM148T - 15.6" (i7-7500U/8GB/256GB/GT 940MX 2GB)
> >>
> >> It came pre-installed with Win10 and I did a fresh install of Ubuntu
> >> 16.04 LTS. The screen was flickering for some reason and installing
> >> Ubuntu 17.04 fixed the issue.
> >>
> >> The real problem is that when I'm booting the laptop, the following
> >> error is being shown on my screen:
> >>
> >> [ 12.866073] pcieport 0000:00:1c.5: can't find device of ID00e5
> >> [ 12.898481] pcieport 0000:00:1c.5: AER: Multiple Corrected error
> >> received: id=00e5
> >> [ 12.898488] pcieport 0000:00:1c.5: PCIe Bus Error:
> >> severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
> >> [ 12.898491] pcieport 0000:00:1c.5: device [8086:9d15] error
> >> status/mask=00002041/00002000
> >> [ 12.898492] pcieport 0000:00:1c.5: [ 0] Receiver Error
> >> (First)
> >> [ 12.898493] pcieport 0000:00:1c.5: [ 6] Bad TLP
> >>
> >> I know that this error can be hid with one of the following kernel boot
> >> arguments:
> >> pci=nomsi / pci=noaer / pcie_aspm=off / pci=nommconf.
> >>
> >> The weird thing is that the above output is only being shown when the
> >> laptop is on AC Power (charging). When the laptop is not connected to
> >> AC (battery-mode), it has performance issues (slow boot and slow
> >> application launching). I was trying all day long to fix the problem.
> >> I removed everything that had to do with power-saving, reinstalled,
> >> re-tweaked for performance, tried different kernels but had no luck.
> >> While diagnosing, I had the idea to benchmark the "M2 SATA-3 SSD" that
> >> my laptop had. The results are:
> >>
> >> * On AC Power: 522MB/s (READ) | 416MB/s (WRITE)
> >> * On Battery Power: 32MB/s (READ) | 31MB/s (WRITE)
> >>
> >> This explains everyting. That's why I'm having a slow boot and slow
> >> application launching!
> >>
> >> Commands "lspci" and "dmesg" say that the error comes from the
> following
> >> device:
> >> 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root
> >> Port #6 (rev f1)
> >>
> >> I will attach lspci and dmesg output on a tar.gz file.
> >>
> >> ---------------------------------...

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote : Re: [Bug 1726159] PCIe BUS Error causing really slow laptop performance
Download full text (21.7 KiB)

Can you attach the output of `cat /sys/class/scsi_host/host*/link_power_management_policy` when the issue happens?

You probably need to disable TLP prior that.

Kai-Heng

> On 7 Nov 2017, at 2:08 AM, George Mathioudakis <email address hidden> wrote:
>
> I modified all settings ending on _BAT and some that were related to
> storage/sata.
>
> 2017-11-06 3:23 GMT+02:00 Kai-Heng Feng <email address hidden>:
>
>>> On 3 Nov 2017, at 10:11 PM, George Mathioudakis <
>> <email address hidden>> wrote:
>>>
>>> I modified tlp for max performance but tlp starts only when desktop
>> boots.
>>> So, kernel boot is slow.
>>
>> Sounds like not the SATA link power management? So which value exactly?
>>
>>>
>>> 2017-11-02 8:57 GMT+02:00 Kai-Heng Feng <email address hidden>:
>>>
>>>> Did you change the SATA link power management or other settings?
>>>>
>>>> Can you attach the diff of your TLP setting?
>>>>
>>>> --
>>>> You received this bug notification because you are subscribed to the bug
>>>> report.
>>>> https://bugs.launchpad.net/bugs/1726159
>>>>
>>>> Title:
>>>> PCIe BUS Error causing really slow laptop performance
>>>>
>>>> Status in linux package in Ubuntu:
>>>> Confirmed
>>>>
>>>> Bug description:
>>>> I recently bought the following laptop:
>>>> Asus VivoBook X542UQ-DM148T - 15.6" (i7-7500U/8GB/256GB/GT 940MX 2GB)
>>>>
>>>> It came pre-installed with Win10 and I did a fresh install of Ubuntu
>>>> 16.04 LTS. The screen was flickering for some reason and installing
>>>> Ubuntu 17.04 fixed the issue.
>>>>
>>>> The real problem is that when I'm booting the laptop, the following
>>>> error is being shown on my screen:
>>>>
>>>> [ 12.866073] pcieport 0000:00:1c.5: can't find device of ID00e5
>>>> [ 12.898481] pcieport 0000:00:1c.5: AER: Multiple Corrected error
>>>> received: id=00e5
>>>> [ 12.898488] pcieport 0000:00:1c.5: PCIe Bus Error:
>>>> severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
>>>> [ 12.898491] pcieport 0000:00:1c.5: device [8086:9d15] error
>>>> status/mask=00002041/00002000
>>>> [ 12.898492] pcieport 0000:00:1c.5: [ 0] Receiver Error
>>>> (First)
>>>> [ 12.898493] pcieport 0000:00:1c.5: [ 6] Bad TLP
>>>>
>>>> I know that this error can be hid with one of the following kernel boot
>>>> arguments:
>>>> pci=nomsi / pci=noaer / pcie_aspm=off / pci=nommconf.
>>>>
>>>> The weird thing is that the above output is only being shown when the
>>>> laptop is on AC Power (charging). When the laptop is not connected to
>>>> AC (battery-mode), it has performance issues (slow boot and slow
>>>> application launching). I was trying all day long to fix the problem.
>>>> I removed everything that had to do with power-saving, reinstalled,
>>>> re-tweaked for performance, tried different kernels but had no luck.
>>>> While diagnosing, I had the idea to benchmark the "M2 SATA-3 SSD" that
>>>> my laptop had. The results are:
>>>>
>>>> * On AC Power: 522MB/s (READ) | 416MB/s (WRITE)
>>>> * On Battery Power: 32MB/s (READ) | 31MB/s (WRITE)
>>>>
>>>> This explains everyting. That's why I'm having a slow boot and slow
>>>> application launching!
>>>>
>>>> Commands "lspci" and "dmesg" say t...

Revision history for this message
George Mathioudakis (gmathioud) wrote :

The output of host0,1,etc are all: max_performance.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you attach the output of `hdparm -I /dev/sda`? Assume /dev/sda is the SSD.

Revision history for this message
George Mathioudakis (gmathioud) wrote : Re: [Bug 1726159] Re: PCIe BUS Error causing really slow laptop performance
Download full text (5.3 KiB)

I attached the output of ssd's hdparm results.

2017-11-10 11:17 GMT+02:00 Kai-Heng Feng <email address hidden>:

> Can you attach the output of `hdparm -I /dev/sda`? Assume /dev/sda is
> the SSD.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1726159
>
> Title:
> PCIe BUS Error causing really slow laptop performance
>
> Status in linux package in Ubuntu:
> Confirmed
>
> Bug description:
> I recently bought the following laptop:
> Asus VivoBook X542UQ-DM148T - 15.6" (i7-7500U/8GB/256GB/GT 940MX 2GB)
>
> It came pre-installed with Win10 and I did a fresh install of Ubuntu
> 16.04 LTS. The screen was flickering for some reason and installing
> Ubuntu 17.04 fixed the issue.
>
> The real problem is that when I'm booting the laptop, the following
> error is being shown on my screen:
>
> [ 12.866073] pcieport 0000:00:1c.5: can't find device of ID00e5
> [ 12.898481] pcieport 0000:00:1c.5: AER: Multiple Corrected error
> received: id=00e5
> [ 12.898488] pcieport 0000:00:1c.5: PCIe Bus Error:
> severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
> [ 12.898491] pcieport 0000:00:1c.5: device [8086:9d15] error
> status/mask=00002041/00002000
> [ 12.898492] pcieport 0000:00:1c.5: [ 0] Receiver Error
> (First)
> [ 12.898493] pcieport 0000:00:1c.5: [ 6] Bad TLP
>
> I know that this error can be hid with one of the following kernel boot
> arguments:
> pci=nomsi / pci=noaer / pcie_aspm=off / pci=nommconf.
>
> The weird thing is that the above output is only being shown when the
> laptop is on AC Power (charging). When the laptop is not connected to
> AC (battery-mode), it has performance issues (slow boot and slow
> application launching). I was trying all day long to fix the problem.
> I removed everything that had to do with power-saving, reinstalled,
> re-tweaked for performance, tried different kernels but had no luck.
> While diagnosing, I had the idea to benchmark the "M2 SATA-3 SSD" that
> my laptop had. The results are:
>
> * On AC Power: 522MB/s (READ) | 416MB/s (WRITE)
> * On Battery Power: 32MB/s (READ) | 31MB/s (WRITE)
>
> This explains everyting. That's why I'm having a slow boot and slow
> application launching!
>
> Commands "lspci" and "dmesg" say that the error comes from the following
> device:
> 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root
> Port #6 (rev f1)
>
> I will attach lspci and dmesg output on a tar.gz file.
>
> ------------------------------------------------------------
> --------------
> UPDATE: When the laptop is fully charged and still on AC (but not
> charging since it is 100% charged), the errors appear again but the SSD
> speed is normal (~500 Read/Write).
> ------------------------------------------------------------
> --------------
> UPDATE: I installed 'tlp' Advanced Power Management package and when
> using the command 'tlp ac', the SSD speed gets back to normal! The option
> does not persist across reboots.
> ------------------------------------------------------------
> --------------
>
> ProblemType: B...

Read more...

Revision history for this message
George Mathioudakis (gmathioud) wrote :

Very Important Info: I inserted my Samsung 850 EVO 250GB SSD on my laptop's HDD slot and on battery power, with TLP off, it runs on normal speed 550MB/S Read/Write! My primary M.2 SSD "Micron 1100 250GB" is still running on 32MB/S Read/Write. That means Micron SSD is checking for battery/ac mode.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does "medium_power" have the same issue for the Micron SSD?

Revision history for this message
M (manudv7) wrote :

I have this error on my Asus X541U, with Ubuntu 18.04, please solve it.

It generates an endless list with this error:

PCIe Bus Error: severity=Corrected, type=Physical Layer,
id=00e5(Receiver ID) device [8086:9d15] error status/mask=00000001/00002000

And I can't log in.

And it is related to the Wi-Fi board of my PC, which is the following:Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter

Revision history for this message
Osama Abbas (alt-dev) wrote :

I face the same issue on my HP ProBook 440 G4. And my laptop has the same crappy RTL8723BE WiFi chip. But the PCIe Bus Error and Wifi problems you might be facing are separate issues. The PCI bus errors can be cured by adding pci=noaer to the kernel args as mentioned by many users in the thread above. AER spams this error so much that it overwhelms your disk and so logging in becomes near impossible. Easiest option for you would be adding this kernel arg when you hit grub during boot.

If you have Wifi signal issues on Linux then that's due to a quirk with this 8723 chip. Don't want to sidetrack this bug thread so I'll just ask you to search for the "RTL8723BE ant_sel" fix.

Revision history for this message
George Mathioudakis (gmathioud) wrote :

I fixed the slow booting problem by editing "/etc/hdparm.conf" and changing "apm_battery" value to "255". Now my laptop boots normally on battery mode (same speed as plugged in AC).

Now, for the AER problem, just ignore it. Add pci=noaer as kernel boot parameter.
I hope I helped.

Revision history for this message
Bjorn Helgaas (bjorn-helgaas) wrote :

We should not need to use "pci=noaer". Generally we should not see reproducible PCIe Correctable Errors in significant numbers. Some have reported that "pcie_aspm=off" avoids the errors. If that's the case for you, see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2043665/comments/6 and help me investigate it!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.