Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5791

HATs and other add-ons • Re: Raspberry Pi 5 PCIe Bus Error - ASM1166

$
0
0
Hi

I downloaded the Kernel

git clone --depth=1 https://github.com/raspberrypi/linux

cd linux
KERNEL=kernel_2712
make bcm2712_defconfig


make -j4 Image.gz modules dtbs
sudo make modules_install
sudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/firmware/
sudo cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/
sudo cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/
sudo cp arch/arm64/boot/Image.gz /boot/firmware/$KERNEL.img

I added it to /boot/firmware/config.txt
dtoverlay=pcie-32bit-dma-pi5

REBOOT

I ran it before connecting the SSD Source and this is the result!

dmesg |grep pcie*

Code:

[    0.000000] Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:E7:D9:C6 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  console=ttyAMA10,115200 console=tty1 root=PARTUUID=330e9371-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB[    1.470852] brcm-pcie 1000110000.pcie: host bridge /axi/pcie@110000 ranges:[    1.477854] brcm-pcie 1000110000.pcie:   No bus range found for /axi/pcie@110000, using [bus 00-ff][    1.486948] brcm-pcie 1000110000.pcie:      MEM 0x1b00000000..0x1bfffffffb -> 0x0000000000[    1.495251] brcm-pcie 1000110000.pcie:      MEM 0x1800000000..0x1affffffff -> 0x0400000000[    1.503554] brcm-pcie 1000110000.pcie:   IB MEM 0x0000000000..0x007fffffff -> 0x0000000000[    1.513022] brcm-pcie 1000110000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE[    1.521378] brcm-pcie 1000110000.pcie: Forcing gen 2[    1.526399] brcm-pcie 1000110000.pcie: PCI host bridge to bus 0000:00[    1.532867] pci_bus 0000:00: root bus resource [bus 00-ff][    1.538373] pci_bus 0000:00: root bus resource [mem 0x1b00000000-0x1bfffffffb] (bus address [0x00000000-0xfffffffb])[    1.548942] pci_bus 0000:00: root bus resource [mem 0x1800000000-0x1affffffff pref] (bus address [0x400000000-0x6ffffffff])[    1.560133] pci 0000:00:00.0: [14e4:2712] type 01 class 0x060400[    1.566187] pci 0000:00:00.0: PME# supported from D0 D3hot[    1.572594] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring[    1.686227] brcm-pcie 1000110000.pcie: link up, 5.0 GT/s PCIe x1 (!SSC)[    1.692888] pci 0000:01:00.0: [1b21:1064] type 00 class 0x010601[    1.698931] pci 0000:01:00.0: reg 0x10: [mem 0x1b00000000-0x1b00001fff][    1.705600] pci 0000:01:00.0: reg 0x24: [mem 0x1b00000000-0x1b00001fff][    1.712245] pci 0000:01:00.0: reg 0x30: [mem 0x1b00000000-0x1b0007ffff pref][    1.719327] pci 0000:01:00.0: enabling Extended Tags[    1.724373] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold[    1.730527] pci 0000:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0000:00:00.0 (capable of 7.876 Gb/s with 8.0 GT/s PCIe x1 link)[    1.754246] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01[    1.760894] pci 0000:00:00.0: BAR 8: assigned [mem 0x1b00000000-0x1b000fffff][    1.768061] pci 0000:01:00.0: BAR 6: assigned [mem 0x1b00000000-0x1b0007ffff pref][    1.775662] pci 0000:01:00.0: BAR 0: assigned [mem 0x1b00080000-0x1b00081fff][    1.782829] pci 0000:01:00.0: BAR 5: assigned [mem 0x1b00082000-0x1b00083fff][    1.789996] pci 0000:00:00.0: PCI bridge to [bus 01][    1.794978] pci 0000:00:00.0:   bridge window [mem 0x1b00000000-0x1b000fffff][    1.802144] pci 0000:00:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512[    1.810624] pci 0000:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256[    1.819150] pcieport 0000:00:00.0: enabling device (0000 -> 0002)[    1.825304] pcieport 0000:00:00.0: PME: Signaling with IRQ 38[    1.831123] pcieport 0000:00:00.0: AER: enabled with IRQ 38[    1.836771] brcm-pcie 1000110000.pcie: clkreq control enabled[    1.842586] brcm-pcie 1000120000.pcie: host bridge /axi/pcie@120000 ranges:[    1.849579] brcm-pcie 1000120000.pcie:   No bus range found for /axi/pcie@120000, using [bus 00-ff][    1.858670] brcm-pcie 1000120000.pcie:      MEM 0x1f00000000..0x1ffffffffb -> 0x0000000000[    1.866973] brcm-pcie 1000120000.pcie:      MEM 0x1c00000000..0x1effffffff -> 0x0400000000[    1.875277] brcm-pcie 1000120000.pcie:   IB MEM 0x1f00000000..0x1f003fffff -> 0x0000000000[    1.883581] brcm-pcie 1000120000.pcie:   IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000[    1.892944] brcm-pcie 1000120000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE[    1.901250] brcm-pcie 1000120000.pcie: Forcing gen 2[    1.906258] brcm-pcie 1000120000.pcie: PCI host bridge to bus 0001:00[    1.912725] pci_bus 0001:00: root bus resource [bus 00-ff][    1.918231] pci_bus 0001:00: root bus resource [mem 0x1f00000000-0x1ffffffffb] (bus address [0x00000000-0xfffffffb])[    1.928800] pci_bus 0001:00: root bus resource [mem 0x1c00000000-0x1effffffff pref] (bus address [0x400000000-0x6ffffffff])[    1.939985] pci 0001:00:00.0: [14e4:2712] type 01 class 0x060400[    1.946033] pci 0001:00:00.0: PME# supported from D0 D3hot[    1.952330] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring[    2.066228] brcm-pcie 1000120000.pcie: link up, 5.0 GT/s PCIe x4 (!SSC)[    2.072885] pci 0001:01:00.0: [1de4:0001] type 00 class 0x020000[    2.078927] pci 0001:01:00.0: reg 0x10: [mem 0xffffc000-0xffffffff][    2.085223] pci 0001:01:00.0: reg 0x14: [mem 0xffc00000-0xffffffff][    2.091518] pci 0001:01:00.0: reg 0x18: [mem 0xffff0000-0xffffffff][    2.097876] pci 0001:01:00.0: supports D1[    2.101897] pci 0001:01:00.0: PME# supported from D0 D1 D3hot D3cold[    2.118232] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01[    2.124878] pci 0001:00:00.0: BAR 8: assigned [mem 0x1f00000000-0x1f005fffff][    2.132051] pci 0001:01:00.0: BAR 1: assigned [mem 0x1f00000000-0x1f003fffff][    2.139218] pci 0001:01:00.0: BAR 2: assigned [mem 0x1f00400000-0x1f0040ffff][    2.146384] pci 0001:01:00.0: BAR 0: assigned [mem 0x1f00410000-0x1f00413fff][    2.153551] pci 0001:00:00.0: PCI bridge to [bus 01][    2.158533] pci 0001:00:00.0:   bridge window [mem 0x1f00000000-0x1f005fffff][    2.165699] pci 0001:00:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512[    2.174178] pci 0001:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  512[    2.182695] pcieport 0001:00:00.0: enabling device (0000 -> 0002)[    2.188835] pcieport 0001:00:00.0: PME: Signaling with IRQ 39[    2.194650] pcieport 0001:00:00.0: AER: enabled with IRQ 39

Here is the same command only with the SSD connected!
slow start to raspberry

dmesg |grep pcie*

Code:

[    0.000000] Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:E7:D9:C6 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  console=ttyAMA10,115200 console=tty1 root=PARTUUID=330e9371-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB[    1.471438] brcm-pcie 1000110000.pcie: host bridge /axi/pcie@110000 ranges:[    1.478438] brcm-pcie 1000110000.pcie:   No bus range found for /axi/pcie@110000, using [bus 00-ff][    1.487532] brcm-pcie 1000110000.pcie:      MEM 0x1b00000000..0x1bfffffffb -> 0x0000000000[    1.495835] brcm-pcie 1000110000.pcie:      MEM 0x1800000000..0x1affffffff -> 0x0400000000[    1.504138] brcm-pcie 1000110000.pcie:   IB MEM 0x0000000000..0x007fffffff -> 0x0000000000[    1.513608] brcm-pcie 1000110000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE[    1.521925] brcm-pcie 1000110000.pcie: Forcing gen 2[    1.526948] brcm-pcie 1000110000.pcie: PCI host bridge to bus 0000:00[    1.533421] pci_bus 0000:00: root bus resource [bus 00-ff][    1.538929] pci_bus 0000:00: root bus resource [mem 0x1b00000000-0x1bfffffffb] (bus address [0x00000000-0xfffffffb])[    1.549500] pci_bus 0000:00: root bus resource [mem 0x1800000000-0x1affffffff pref] (bus address [0x400000000-0x6ffffffff])[    1.560689] pci 0000:00:00.0: [14e4:2712] type 01 class 0x060400[    1.566742] pci 0000:00:00.0: PME# supported from D0 D3hot[    1.573149] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring[    1.686212] brcm-pcie 1000110000.pcie: link up, 5.0 GT/s PCIe x1 (!SSC)[    1.692873] pci 0000:01:00.0: [1b21:1064] type 00 class 0x010601[    1.698916] pci 0000:01:00.0: reg 0x10: [mem 0x1b00000000-0x1b00001fff][    1.705584] pci 0000:01:00.0: reg 0x24: [mem 0x1b00000000-0x1b00001fff][    1.712229] pci 0000:01:00.0: reg 0x30: [mem 0x1b00000000-0x1b0007ffff pref][    1.719312] pci 0000:01:00.0: enabling Extended Tags[    1.724356] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold[    1.730509] pci 0000:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0000:00:00.0 (capable of 7.876 Gb/s with 8.0 GT/s PCIe x1 link)[    1.754230] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01[    1.760878] pci 0000:00:00.0: BAR 8: assigned [mem 0x1b00000000-0x1b000fffff][    1.768045] pci 0000:01:00.0: BAR 6: assigned [mem 0x1b00000000-0x1b0007ffff pref][    1.775646] pci 0000:01:00.0: BAR 0: assigned [mem 0x1b00080000-0x1b00081fff][    1.782813] pci 0000:01:00.0: BAR 5: assigned [mem 0x1b00082000-0x1b00083fff][    1.789979] pci 0000:00:00.0: PCI bridge to [bus 01][    1.794962] pci 0000:00:00.0:   bridge window [mem 0x1b00000000-0x1b000fffff][    1.802128] pci 0000:00:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512[    1.810608] pci 0000:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256[    1.819137] pcieport 0000:00:00.0: enabling device (0000 -> 0002)[    1.825294] pcieport 0000:00:00.0: PME: Signaling with IRQ 38[    1.831118] pcieport 0000:00:00.0: AER: enabled with IRQ 38[    1.836765] brcm-pcie 1000110000.pcie: clkreq control enabled[    1.842583] brcm-pcie 1000120000.pcie: host bridge /axi/pcie@120000 ranges:[    1.849575] brcm-pcie 1000120000.pcie:   No bus range found for /axi/pcie@120000, using [bus 00-ff][    1.858665] brcm-pcie 1000120000.pcie:      MEM 0x1f00000000..0x1ffffffffb -> 0x0000000000[    1.866968] brcm-pcie 1000120000.pcie:      MEM 0x1c00000000..0x1effffffff -> 0x0400000000[    1.875273] brcm-pcie 1000120000.pcie:   IB MEM 0x1f00000000..0x1f003fffff -> 0x0000000000[    1.883577] brcm-pcie 1000120000.pcie:   IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000[    1.892940] brcm-pcie 1000120000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE[    1.901246] brcm-pcie 1000120000.pcie: Forcing gen 2[    1.906256] brcm-pcie 1000120000.pcie: PCI host bridge to bus 0001:00[    1.912722] pci_bus 0001:00: root bus resource [bus 00-ff][    1.918229] pci_bus 0001:00: root bus resource [mem 0x1f00000000-0x1ffffffffb] (bus address [0x00000000-0xfffffffb])[    1.928798] pci_bus 0001:00: root bus resource [mem 0x1c00000000-0x1effffffff pref] (bus address [0x400000000-0x6ffffffff])[    1.939983] pci 0001:00:00.0: [14e4:2712] type 01 class 0x060400[    1.946032] pci 0001:00:00.0: PME# supported from D0 D3hot[    1.952327] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring[    2.066211] brcm-pcie 1000120000.pcie: link up, 5.0 GT/s PCIe x4 (!SSC)[    2.072869] pci 0001:01:00.0: [1de4:0001] type 00 class 0x020000[    2.078911] pci 0001:01:00.0: reg 0x10: [mem 0xffffc000-0xffffffff][    2.085207] pci 0001:01:00.0: reg 0x14: [mem 0xffc00000-0xffffffff][    2.091502] pci 0001:01:00.0: reg 0x18: [mem 0xffff0000-0xffffffff][    2.097862] pci 0001:01:00.0: supports D1[    2.101883] pci 0001:01:00.0: PME# supported from D0 D1 D3hot D3cold[    2.118216] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01[    2.124861] pci 0001:00:00.0: BAR 8: assigned [mem 0x1f00000000-0x1f005fffff][    2.132034] pci 0001:01:00.0: BAR 1: assigned [mem 0x1f00000000-0x1f003fffff][    2.139201] pci 0001:01:00.0: BAR 2: assigned [mem 0x1f00400000-0x1f0040ffff][    2.146367] pci 0001:01:00.0: BAR 0: assigned [mem 0x1f00410000-0x1f00413fff][    2.153533] pci 0001:00:00.0: PCI bridge to [bus 01][    2.158515] pci 0001:00:00.0:   bridge window [mem 0x1f00000000-0x1f005fffff][    2.165681] pci 0001:00:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512[    2.174161] pci 0001:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  512[    2.182678] pcieport 0001:00:00.0: enabling device (0000 -> 0002)[    2.188820] pcieport 0001:00:00.0: PME: Signaling with IRQ 39[    2.194636] pcieport 0001:00:00.0: AER: enabled with IRQ 39[    6.471343] pcieport 0000:00:00.0: AER: Corrected error received: 0000:00:00.0[    6.471355] pcieport 0000:00:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID)[    6.471359] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00001000/00002000[    6.471362] pcieport 0000:00:00.0:    [12] Timeout[   54.597676] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.752000] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.752003] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.752007] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.803469] pcieport 0000:00:00.0: AER: device recovery failed[   54.803472] pcieport 0000:00:00.0: AER: Corrected error received: 0000:00:00.0[   54.854892] pcieport 0000:00:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Transmitter ID)[   54.854895] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00001000/00002000[   54.854898] pcieport 0000:00:00.0:    [12] Timeout[   54.854901] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.854905] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.854908] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.854911] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.854922] pcieport 0000:00:00.0: AER: device recovery failed[   54.854924] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.854928] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.854930] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.854933] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.854942] pcieport 0000:00:00.0: AER: device recovery failed[   54.854944] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.906391] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.906394] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.906396] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.906407] pcieport 0000:00:00.0: AER: device recovery failed[   54.906409] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.906413] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.906415] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.906419] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.906432] pcieport 0000:00:00.0: AER: device recovery failed[   54.906433] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.906437] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.906440] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.906442] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.906451] pcieport 0000:00:00.0: AER: device recovery failed[   54.906453] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.906457] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.906460] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.906463] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.906471] pcieport 0000:00:00.0: AER: device recovery failed[   54.961844] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   54.961872] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   54.961876] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   54.961880] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   54.961912] pcieport 0000:00:00.0: AER: device recovery failed[   55.014751] pcieport 0000:00:00.0: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0[   55.882832] pcieport 0000:00:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Requester ID)[   55.882835] pcieport 0000:00:00.0:   device [14e4:2712] error status/mask=00004000/00400000[   55.882838] pcieport 0000:00:00.0:    [14] CmpltTO                (First)[   55.882867] pcieport 0000:00:00.0: AER: device recovery failed

Statistics: Posted by ezaul — Wed Feb 07, 2024 11:44 pm



Viewing all articles
Browse latest Browse all 5791

Trending Articles