Jump to content

How to change PCIe Bus Scan Delay without building Kernel


KingKoro

Recommended Posts

Hello dear Armbian Community,

 

I've been trying to get a custom M.2 PCIe Adapter Board, based on the ASMedia ASM1182e PCIe Packet Switch, to work for a couple of days on my NanoPi M4V2. After solving a few other issues, where it didn't even finish pci link training, it's finally being sort-of-recognized by the SBC (Atleast PCI ID [1b21:1182] is being read). But now, whenever the Adapter is plugged into the SBC, it doesn't boot and aborts with a kernel panic. I've read about this issue already in other forums and it seems to be a common problem with the PCIe Implementation on the RK3399. Usually, one just implements a delay between pci link training and scanning to avoid this error.

 

Here are the kernel messages during failed boot, captured with UART:

Spoiler

DDR Version 1.25 20210517
In
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB
256B stride
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x10
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 1, cs 0, advanced training done
channel 1, cs 0, dq 31 RISK!!! TdiVW_total violate spec
 change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x40
ch 1 ddrconfig = 0x101, ddrsize = 0x40
pmugrf_os_reg[2] = 0x32C1F2C1, stride = 0xD
ddr_set_rate to 328MHZ
ddr_set_rate to 666MHZ
ddr_set_rate to 928MHZ
channel 0, cs 0, advanced training done
channel 1, cs 0, advanced training done
channel 1, cs 0, dq 31 RISK!!! TdiVW_total violate spec
 ddr_set_rate to 416MHZ, ctl_index 0
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 928 MHz, current 856MHz
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 353
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=59640MB
FwPartOffset=2000 , 100000
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
SdmmcInit=0 1
StorageInit ok = 69017
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3335db8 signature is wrong
recovery gpt...
GPT 0x3335db8 signature is wrong
recovery gpt fail!
Trust Addr:0x4000, 0x58334c42
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xd4988
RunBL31 0x40000 @ 94680 us
NOTICE:  BL31: v1.3(release):845ee93
NOTICE:  BL31: Built : 15:51:11, Jul 22 2020
NOTICE:  BL31: Rockchip release version: v1.1
INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    plat_rockchip_pmu_init(1196): pd status 3e
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2021.07-armbian (Feb 27 2022 - 08:48:48 +0000)

SoC: Rockchip rk3399
Reset cause: POR
Model: FriendlyElec NanoPi M4V2
DRAM:  3.9 GiB
PMIC:  RK808
MMC:   mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: FriendlyElec NanoPi M4V2
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3c0000: USB EHCI 1.00
Bus dwc3: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fe380000 for devices... 1 USB Device(s) found
scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found
scanning bus dwc3 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3185 bytes read in 19 ms (163.1 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
201 bytes read in 14 ms (13.7 KiB/s)
14237125 bytes read in 1367 ms (9.9 MiB/s)
30083584 bytes read in 2864 ms (10 MiB/s)
77017 bytes read in 41 ms (1.8 MiB/s)
267 bytes read in 29 ms (8.8 KiB/s)
Applying kernel provided DT overlay rockchip-pcie-gen2.dtbo
2698 bytes read in 31 ms (85 KiB/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
## Executing script at 09000000
Moving Image from 0x2080000 to 0x2200000, end=3f50000
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    14237061 Bytes = 13.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Ramdisk to f1181000, end f1f14d85 ... OK
   Loading Device Tree to 00000000f1105000, end 00000000f1180fff ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.25-rockchip64 (root@ac54cb7ac213) (aarch64-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0, GNU ld (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321) #22.02.1 SMP PREEMPT Sun Feb 27 09:05:47 UTC 2022
[    0.000000] Machine model: FriendlyElec NanoPi M4 Ver2.0
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xf77d3100-0xf77d4fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000f7ffffff]
[    0.000000] cma: Reserved 128 MiB at 0x00000000e9000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 29 pages/cpu s80856 r8192 d29736 u118784
[    0.000000] pcpu-alloc: s80856 r8192 d29736 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 999432
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=UUID=762bd625-f7ea-47eb-bbb0-2b5e864db996 rootwait rootfstype=ext4 console=ttyS2,1500000 console=tty1 consoleblank=0 loglevel=1 ubootpart=61b1cff1-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u debug  cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
[    0.000000] Unknown kernel command line parameters "ubootpart=61b1cff1-01 cgroup_enable=memory cgroup_memory=1", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 3807408K/4061184K available (15744K kernel code, 2690K rwdata, 6516K rodata, 4288K init, 576K bss, 122704K reserved, 131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] ITS [mem 0xfee20000-0xfee3ffff]
[    0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @500000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x00000000004d0000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000004e0000
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
[    0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
[    0.000000] random: get_random_bytes called from start_kernel+0x838/0xa18 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001887] Console: colour dummy device 80x25
[    0.002970] printk: console [tty1] enabled
[    0.003105] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.003154] pid_max: default: 32768 minimum: 301
[    0.003308] LSM: Security Framework initializing
[    0.003364] Yama: becoming mindful.
[    0.003570] AppArmor: AppArmor initialized
[    0.003674] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003733] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.007485] rcu: Hierarchical SRCU implementation.
[    0.008755] Platform MSI: interrupt-controller@fee20000 domain created
[    0.009315] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
[    0.011377] EFI services will not be available.
[    0.012238] smp: Bringing up secondary CPUs ...
[    0.013380] Detected VIPT I-cache on CPU1
[    0.013446] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000
[    0.013470] GICv3: CPU1: using allocated LPI pending table @0x00000000004f0000
[    0.013551] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.014952] Detected VIPT I-cache on CPU2
[    0.015015] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000
[    0.015040] GICv3: CPU2: using allocated LPI pending table @0x0000000000580000
[    0.015120] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.016646] Detected VIPT I-cache on CPU3
[    0.016709] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000
[    0.016734] GICv3: CPU3: using allocated LPI pending table @0x0000000000590000
[    0.016810] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.018233] CPU features: detected: Spectre-v2
[    0.018247] CPU features: detected: Spectre-v4
[    0.018258] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.018264] Detected PIPT I-cache on CPU4
[    0.018297] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000
[    0.018316] GICv3: CPU4: using allocated LPI pending table @0x00000000005a0000
[    0.018365] CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
[    0.019618] Detected PIPT I-cache on CPU5
[    0.019660] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000
[    0.019681] GICv3: CPU5: using allocated LPI pending table @0x00000000005b0000
[    0.019731] CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
[    0.019903] smp: Brought up 1 node, 6 CPUs
[    0.020310] SMP: Total of 6 processors activated.
[    0.020332] CPU features: detected: 32-bit EL0 Support
[    0.020353] CPU features: detected: 32-bit EL1 Support
[    0.020377] CPU features: detected: CRC32 instructions
[    0.048035] CPU: All CPU(s) started at EL2
[    0.048144] alternatives: patching kernel code
[    0.051610] devtmpfs: initialized
[    0.066600] Registered cp15_barrier emulation handler
[    0.066647] Registered setend emulation handler
[    0.066882] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.066974] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[    0.071099] pinctrl core: initialized pinctrl subsystem
[    0.071813] DMI not present or invalid.
[    0.072407] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.076962] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[    0.078677] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.081466] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.081582] audit: initializing netlink subsys (disabled)
[    0.081846] audit: type=2000 audit(0.080:1): state=initialized audit_enabled=0 res=1
[    0.083147] thermal_sys: Registered thermal governor 'fair_share'
[    0.083157] thermal_sys: Registered thermal governor 'bang_bang'
[    0.083179] thermal_sys: Registered thermal governor 'step_wise'
[    0.083194] thermal_sys: Registered thermal governor 'user_space'
[    0.083695] cpuidle: using governor menu
[    0.084011] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.084250] ASID allocator initialised with 65536 entries
[    0.085438] Serial: AMBA PL011 UART driver
[    0.114471] platform ff770000.syscon:phy@f780: Fixing up cyclic dependency with fe330000.mmc
[    0.122075] platform ff940000.hdmi: Fixing up cyclic dependency with ff8f0000.vop
[    0.122163] platform ff940000.hdmi: Fixing up cyclic dependency with ff900000.vop
[    0.133055] rockchip-gpio ff720000.gpio0: probed /pinctrl/gpio0@ff720000
[    0.133974] rockchip-gpio ff730000.gpio1: probed /pinctrl/gpio1@ff730000
[    0.134837] rockchip-gpio ff780000.gpio2: probed /pinctrl/gpio2@ff780000
[    0.135652] rockchip-gpio ff788000.gpio3: probed /pinctrl/gpio3@ff788000
[    0.136460] rockchip-gpio ff790000.gpio4: probed /pinctrl/gpio4@ff790000
[    0.154230] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.154263] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.154281] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.154299] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.159272] cryptd: max_cpu_qlen set to 1000
[    0.236277] raid6: neonx8   gen()  1667 MB/s
[    0.304443] raid6: neonx8   xor()  1170 MB/s
[    0.372598] raid6: neonx4   gen()  1728 MB/s
[    0.440760] raid6: neonx4   xor()  1196 MB/s
[    0.508924] raid6: neonx2   gen()  1541 MB/s
[    0.577090] raid6: neonx2   xor()  1118 MB/s
[    0.645248] raid6: neonx1   gen()  1202 MB/s
[    0.713414] raid6: neonx1   xor()   917 MB/s
[    0.781588] raid6: int64x8  gen()  1002 MB/s
[    0.849775] raid6: int64x8  xor()   568 MB/s
[    0.917917] raid6: int64x4  gen()  1000 MB/s
[    0.986064] raid6: int64x4  xor()   585 MB/s
[    1.054216] raid6: int64x2  gen()   942 MB/s
[    1.122385] raid6: int64x2  xor()   518 MB/s
[    1.190538] raid6: int64x1  gen()   723 MB/s
[    1.258702] raid6: int64x1  xor()   386 MB/s
[    1.258717] raid6: using algorithm neonx4 gen() 1728 MB/s
[    1.258733] raid6: .... xor() 1196 MB/s, rmw enabled
[    1.258747] raid6: using neon recovery algorithm
[    1.260455] vcc5v0_core: supplied by vdd_5v
[    1.261012] iommu: Default domain type: Translated
[    1.261033] iommu: DMA domain TLB invalidation policy: strict mode
[    1.264242] vgaarb: loaded
[    1.264767] SCSI subsystem initialized
[    1.265023] libata version 3.00 loaded.
[    1.265310] usbcore: registered new interface driver usbfs
[    1.265371] usbcore: registered new interface driver hub
[    1.265426] usbcore: registered new device driver usb
[    1.266158] pps_core: LinuxPPS API ver. 1 registered
[    1.266176] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.266216] PTP clock support registered
[    1.266526] EDAC MC: Ver: 3.0.0
[    1.267894] NetLabel: Initializing
[    1.267914] NetLabel:  domain hash size = 128
[    1.267928] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    1.268034] NetLabel:  unlabeled traffic allowed by default
[    1.268591] clocksource: Switched to clocksource arch_sys_counter
[    1.323303] VFS: Disk quotas dquot_6.6.0
[    1.323407] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.324278] AppArmor: AppArmor Filesystem Enabled
[    1.335364] NET: Registered PF_INET protocol family
[    1.335701] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    1.338837] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    1.339137] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    1.339688] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    1.340370] TCP: Hash tables configured (established 32768 bind 32768)
[    1.340609] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.340797] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.341137] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.341194] NET: Registered PF_XDP protocol family
[    1.341219] PCI: CLS 0 bytes, default 64
[    1.341936] Trying to unpack rootfs image as initramfs...
[    1.342586] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    1.343120] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    1.343843] kvm [1]: IPA Size Limit: 40 bits
[    1.345164] kvm [1]: vgic-v2@fff20000
[    1.345211] kvm [1]: GIC system register CPU interface enabled
[    1.345518] kvm [1]: vgic interrupt IRQ18
[    1.345859] kvm [1]: Hyp mode initialized successfully
[    1.357645] Initialise system trusted keyrings
[    1.357707] Key type blacklist registered
[    1.357991] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    1.364813] zbud: loaded
[    1.366656] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.367613] fuse: init (API version 7.34)
[    1.369143] integrity: Platform Keyring initialized
[    1.434037] xor: measuring software checksum speed
[    1.437963]    8regs           :  2543 MB/sec
[    1.441353]    32regs          :  2934 MB/sec
[    1.445588]    arm64_neon      :  2340 MB/sec
[    1.445604] xor: using function: 32regs (2934 MB/sec)
[    1.445628] Key type asymmetric registered
[    1.445642] Asymmetric key parser 'x509' registered
[    1.445786] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.446023] io scheduler mq-deadline registered
[    1.446043] io scheduler kyber registered
[    1.446270] io scheduler bfq registered
[    1.451336] rockchip-usb2phy ff770000.syscon:usb2phy@e450: failed to create phy
[    1.452409] rockchip-usb2phy ff770000.syscon:usb2phy@e460: failed to create phy
[    1.472746] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.472789] dma-pl330 ff6d0000.dma-controller:       DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[    1.474328] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.474358] dma-pl330 ff6e0000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    1.479113] vdd_log: supplied by regulator-dummy
[    1.480766] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.484443] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 43, base_baud = 1500000) is a 16550A
[    1.484690] serial serial0: tty port ttyS0 registered
[    1.485815] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 44, base_baud = 1500000) is a 16550A
[    1.605554] printk: console [ttyS2] enabled
[    1.607399] Serial: AMBA driver
[    1.609792] rockchip-vop ff8f0000.vop: Adding to iommu group 2
[    1.611221] rockchip-vop ff900000.vop: Adding to iommu group 3
[    1.620387] rockchip-drm display-subsystem: bound ff8f0000.vop (ops vop_component_ops)
[    1.621232] [drm] unsupported AFBC format[3231564e]
[    1.623616] rockchip-drm display-subsystem: bound ff900000.vop (ops vop_component_ops)
[    1.625320] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.636093] loop: module loaded
[    1.642770] tun: Universal TUN/TAP device driver, 1.6
[    1.644430] thunder_xcv, ver 1.0
[    1.644860] thunder_bgx, ver 1.0
[    1.645198] nicpf, ver 1.0
[    1.646581] e1000e: Intel(R) PRO/1000 Network Driver
[    1.647029] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.647604] igb: Intel(R) Gigabit Ethernet Network Driver
[    1.648089] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.648648] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    1.649209] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.650056] sky2: driver version 1.30
[    1.651150] VFIO - User Level meta-driver version: 0.3
[    1.657022] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.657641] ehci-pci: EHCI PCI platform driver
[    1.658082] ehci-platform: EHCI generic platform driver
[    1.658897] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.659464] ohci-pci: OHCI PCI platform driver
[    1.659924] ohci-platform: OHCI generic platform driver
[    1.661369] usbcore: registered new interface driver usb-storage
[    1.664467] mousedev: PS/2 mouse device common for all mice
[    1.666472] i2c_dev: i2c /dev entries driver
[    1.679209] dw_wdt ff848000.watchdog: No valid TOPs array specified
[    1.681968] sdhci: Secure Digital Host Controller Interface driver
[    1.682531] sdhci: Copyright(c) Pierre Ossman
[    1.682947] Synopsys Designware Multimedia Card Interface Driver
[    1.684790] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.685400] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode.
[    1.686101] dwmmc_rockchip fe310000.mmc: Using internal DMA controller.
[    1.686715] dwmmc_rockchip fe310000.mmc: Version ID is 270a
[    1.687326] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
[    1.687950] mmc2: CQHCI version 5.10
[    1.688708] ledtrig-cpu: registered to indicate activity on CPUs
[    1.690708] hid: raw HID events driver (C) Jiri Kosina
[    1.691302] usbcore: registered new interface driver usbhid
[    1.691805] usbhid: USB HID core driver
[    1.697006] drop_monitor: Initializing network drop monitor service
[    1.698343] NET: Registered PF_INET6 protocol family
[    1.714988] mmc2: SDHCI controller on fe330000.mmc [fe330000.mmc] using ADMA
[    1.787612] mmc2: Command Queue Engine enabled
[    1.788064] mmc2: new HS200 MMC card at address 0001
[    1.789603] mmcblk2: mmc2:0001 CJTD4R 58.2 GiB
[    1.793225]  mmcblk2: p1
[    1.794225] mmcblk2boot0: mmc2:0001 CJTD4R 4.00 MiB
[    1.797287] mmcblk2boot1: mmc2:0001 CJTD4R 4.00 MiB
[    1.800139] mmcblk2rpmb: mmc2:0001 CJTD4R 4.00 MiB, chardev (241:0)
[    2.017512] Freeing initrd memory: 13900K
[    2.063373] Segment Routing with IPv6
[    2.063762] In-situ OAM (IOAM) with IPv6
[    2.064246] NET: Registered PF_PACKET protocol family
[    2.064932] 8021q: 802.1Q VLAN Support v1.8
[    2.065397] Key type dns_resolver registered
[    2.067453] registered taskstats version 1
[    2.067837] Loading compiled-in X.509 certificates
[    2.071882] Loaded X.509 cert 'Build time autogenerated kernel key: 49b41a183fb93074b594c41f3514911fdb1ae995'
[    2.079404] zswap: loaded using pool zstd/z3fold
[    2.080856] Key type ._fscrypt registered
[    2.081225] Key type .fscrypt registered
[    2.081579] Key type fscrypt-provisioning registered
[    2.085155] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[    2.107492] Key type encrypted registered
[    2.107873] AppArmor: AppArmor sha1 policy hashing enabled
[    2.156888] vcc3v3_sys: supplied by vcc5v0_core
[    2.158123] vcc5v0_sys: supplied by vdd_5v
[    2.159342] vcc3v0_sd: supplied by vcc3v3_sys
[    2.160518] vbus_typec: supplied by vdd_5v
[    2.161521] vcc5v0_usb1: supplied by vcc5v0_sys
[    2.162533] vcc5v0_usb2: supplied by vcc5v0_sys
[    2.178000] rockchip-drm display-subsystem: bound ff8f0000.vop (ops vop_component_ops)
[    2.180855] rockchip-drm display-subsystem: bound ff900000.vop (ops vop_component_ops)
[    2.181992] dwhdmi-rockchip ff940000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
[    2.184376] rockchip-drm display-subsystem: bound ff940000.hdmi (ops dw_hdmi_rockchip_ops)
[    2.371794] Console: switching to colour frame buffer device 240x67
[    2.429892] rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
[    2.431372] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0
[    2.438486] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.439096] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
[    2.440057] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x8000000002010010
[    2.441076] xhci-hcd xhci-hcd.2.auto: irq 76, io mem 0xfe800000
[    2.442164] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.443028] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.443772] usb usb1: Product: xHCI Host Controller
[    2.444280] usb usb1: Manufacturer: Linux 5.15.25-rockchip64 xhci-hcd
[    2.445078] usb usb1: SerialNumber: xhci-hcd.2.auto
[    2.446253] hub 1-0:1.0: USB hub found
[    2.446700] hub 1-0:1.0: 1 port detected
[    2.446980] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[    2.447484] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.447699] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 2
[    2.448258] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3
[    2.449239] xhci-hcd xhci-hcd.3.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x8000000002010010
[    2.449850] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[    2.450852] xhci-hcd xhci-hcd.3.auto: irq 77, io mem 0xfe900000
[    2.451550] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.453060] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    2.453915] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.454658] usb usb3: Product: xHCI Host Controller
[    2.455164] usb usb3: Manufacturer: Linux 5.15.25-rockchip64 xhci-hcd
[    2.455826] usb usb3: SerialNumber: xhci-hcd.2.auto
[    2.456923] hub 3-0:1.0: USB hub found
[    2.457359] hub 3-0:1.0: 1 port detected
[    2.458326] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.459184] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.459928] usb usb2: Product: xHCI Host Controller
[    2.460434] usb usb2: Manufacturer: Linux 5.15.25-rockchip64 xhci-hcd
[    2.461118] usb usb2: SerialNumber: xhci-hcd.3.auto
[    2.462187] hub 2-0:1.0: USB hub found
[    2.462630] hub 2-0:1.0: 1 port detected
[    2.463400] xhci-hcd xhci-hcd.3.auto: xHCI Host Controller
[    2.463984] xhci-hcd xhci-hcd.3.auto: new USB bus registered, assigned bus number 4
[    2.468937] xhci-hcd xhci-hcd.3.auto: Host supports USB 3.0 SuperSpeed
[    2.473798] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.478903] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[    2.483889] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.488872] usb usb4: Product: xHCI Host Controller
[    2.493568] usb usb4: Manufacturer: Linux 5.15.25-rockchip64 xhci-hcd
[    2.498437] usb usb4: SerialNumber: xhci-hcd.3.auto
[    2.503699] hub 4-0:1.0: USB hub found
[    2.508307] hub 4-0:1.0: 1 port detected
[    2.516151] ehci-platform fe380000.usb: EHCI Host Controller
[    2.520930] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 5
[    2.526062] ehci-platform fe380000.usb: irq 35, io mem 0xfe380000
[    2.544613] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00
[    2.549716] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.554805] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.559841] usb usb5: Product: EHCI Host Controller
[    2.564631] usb usb5: Manufacturer: Linux 5.15.25-rockchip64 ehci_hcd
[    2.569542] usb usb5: SerialNumber: fe380000.usb
[    2.574810] hub 5-0:1.0: USB hub found
[    2.579454] hub 5-0:1.0: 1 port detected
[    2.587179] ehci-platform fe3c0000.usb: EHCI Host Controller
[    2.591886] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 6
[    2.597212] ehci-platform fe3c0000.usb: irq 37, io mem 0xfe3c0000
[    2.724627] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.740630] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00
[    2.745541] usb usb6: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.750402] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.755105] usb usb6: Product: EHCI Host Controller
[    2.759587] usb usb6: Manufacturer: Linux 5.15.25-rockchip64 ehci_hcd
[    2.764202] usb usb6: SerialNumber: fe3c0000.usb
[    2.769198] hub 6-0:1.0: USB hub found
[    2.773527] hub 6-0:1.0: 1 port detected
[    2.778918] ohci-platform fe3a0000.usb: Generic Platform OHCI controller
[    2.783511] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 7
[    2.788339] ohci-platform fe3a0000.usb: irq 36, io mem 0xfe3a0000
[    2.856840] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[    2.861607] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.866305] usb usb7: Product: Generic Platform OHCI controller
[    2.870868] usb usb7: Manufacturer: Linux 5.15.25-rockchip64 ohci_hcd
[    2.875534] usb usb7: SerialNumber: fe3a0000.usb
[    2.880593] hub 7-0:1.0: USB hub found
[    2.885075] hub 7-0:1.0: 1 port detected
[    2.890603] ohci-platform fe3e0000.usb: Generic Platform OHCI controller
[    2.892054] usb 2-1: New USB device found, idVendor=2109, idProduct=2817, bcdDevice= 0.50
[    2.895316] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 8
[    2.900179] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.905313] ohci-platform fe3e0000.usb: irq 38, io mem 0xfe3e0000
[    2.909762] usb 2-1: Product: USB2.0 Hub
[    2.919011] usb 2-1: Manufacturer: VIA Labs, Inc.
[    2.976835] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[    2.981875] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.986106] hub 2-1:1.0: USB hub found
[    2.986742] usb usb8: Product: Generic Platform OHCI controller
[    2.991441] hub 2-1:1.0: 4 ports detected
[    2.996061] usb usb8: Manufacturer: Linux 5.15.25-rockchip64 ohci_hcd
[    3.005246] usb usb8: SerialNumber: fe3e0000.usb
[    3.010466] hub 8-0:1.0: USB hub found
[    3.015111] hub 8-0:1.0: 1 port detected
[    3.017868] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[    3.020750] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
[    3.030190] vdd_cpu_b: supplied by vcc3v3_sys
[    3.037020] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
[    3.042649] vdd_gpu: supplied by vcc3v3_sys
[    3.042806] usb 4-1: New USB device found, idVendor=2109, idProduct=0817, bcdDevice= 0.50
[    3.047786] random: fast init done
[    3.052268] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.065214] rk808 0-001b: chip id: 0x0
[    3.068329] usb 4-1: Product: USB3.0 Hub
[    3.077613] usb 4-1: Manufacturer: VIA Labs, Inc.
[    3.077718] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    3.087434] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    3.092302] rk808-regulator rk808-regulator: max buck steps per change: 4
[    3.097837] vdd_center: supplied by vcc3v3_sys
[    3.103335] vdd_cpu_l: supplied by vcc3v3_sys
[    3.108335] vcc_ddr: supplied by vcc3v3_sys
[    3.113623] vcc_1v8: supplied by vcc3v3_sys
[    3.118829] vcc1v8_cam: supplied by vcc3v3_sys
[    3.124524] vcc3v0_touch: supplied by vcc3v3_sys
[    3.130313] vcc1v8_pmupll: supplied by vcc3v3_sys
[    3.136068] vcc_sdio: supplied by vcc3v3_sys
[    3.141573] vcca3v0_codec: supplied by vcc3v3_sys
[    3.143569] hub 4-1:1.0: USB hub found
[    3.147422] vcc_1v5: supplied by vcc3v3_sys
[    3.156060] vcca1v8_codec: supplied by vcc3v3_sys
[    3.161830] vcc_3v0: supplied by vcc3v3_sys
[    3.167203] vcc3v3_s3: supplied by vcc3v3_sys
[    3.171940] vcc3v3_s0: supplied by vcc3v3_sys
[    3.176308] hub 4-1:1.0: 4 ports detected
[    3.182510] rk808-rtc rk808-rtc: registered as rtc0
[    3.187432] rk808-rtc rk808-rtc: setting system clock to 2013-01-18T08:50:18 UTC (1358499018)
[    3.195381] dwmmc_rockchip fe320000.mmc: IDMAC supports 32-bit address mode.
[    3.195841] vcc1v8_s3: supplied by vcc_1v8
[    3.196620] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode.
[    3.196670] dwmmc_rockchip fe310000.mmc: Using internal DMA controller.
[    3.196688] dwmmc_rockchip fe310000.mmc: Version ID is 270a
[    3.196757] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
[    3.197288] dwmmc_rockchip fe310000.mmc: allocated mmc-pwrseq
[    3.197305] mmc_host mmc0: card is non-removable.
[    3.200069] dwmmc_rockchip fe320000.mmc: Using internal DMA controller.
[    3.205206] vcca0v9_s3: supplied by vcc1v8_s3
[    3.209303] dwmmc_rockchip fe320000.mmc: Version ID is 270a
[    3.210738] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.214312] vcca1v8_s3: supplied by vcc1v8_s3
[    3.218642] dwmmc_rockchip fe320000.mmc: DW MMC controller at irq 33,32 bit host data width,256 deep fifo
[    3.223488] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges:
[    3.228305] dwmmc_rockchip fe320000.mmc: Got CD GPIO
[    3.232147] rockchip-pcie f8000000.pcie:      MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000
[    3.259806] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.268876] rockchip-pcie f8000000.pcie:       IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000
[    3.303467] rockchip-pcie f8000000.pcie: no bus scan delay, default to 0 ms
[    3.308474] rockchip-pcie f8000000.pcie: no vpcie12v regulator found
[    3.313315] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found
[    3.342106] mmc_host mmc0: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[    3.342916] rockchip-pcie f8000000.pcie: wait 0 ms (from device tree) before bus scan
[    3.358938] rockchip-pcie f8000000.pcie: PCI host bridge to bus 0000:00
[    3.363884] pci_bus 0000:00: root bus resource [bus 00-1f]
[    3.368633] pci_bus 0000:00: root bus resource [mem 0xfa000000-0xfbdfffff]
[    3.373492] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xfbe00000-0xfbefffff])
[    3.378688] pci 0000:00:00.0: [1d87:0100] type 01 class 0x060400
[    3.383741] pci 0000:00:00.0: supports D1
[    3.388406] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    3.398310] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.403587] pci 0000:01:00.0: [1b21:1182] type 01 class 0x060400
[    3.408616] pci 0000:01:00.0: Max Payload Size set to 256 (was 128, max 256)
[    3.413524] pci 0000:01:00.0: enabling Extended Tags
[    3.418471] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    3.437383] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.442598] SError Interrupt on CPU5, code 0xbf000002 -- SError
[    3.442611] CPU: 5 PID: 7 Comm: kworker/u12:0 Not tainted 5.15.25-rockchip64 #22.02.1
[    3.442622] Hardware name: FriendlyElec NanoPi M4 Ver2.0 (DT)
[    3.442629] Workqueue: events_unbound deferred_probe_work_func
[    3.442649] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    3.442660] pc : rockchip_pcie_rd_conf+0xb4/0x230
[    3.442676] lr : rockchip_pcie_rd_conf+0x78/0x230
[    3.442686] sp : ffff800009dfb730
[    3.442690] x29: ffff800009dfb730 x28: 0000000000000000 x27: 0000000000000001
[    3.442706] x26: 0000000000000000 x25: 0000000000000000 x24: ffff800009dfb874
[    3.442720] x23: ffff000005b40000 x22: 0000000000000000 x21: 0000000000000004
[    3.442733] x20: ffff800009dfb7b4 x19: 0000000000000000 x18: 0000000000000000
[    3.442745] x17: 6572202c295d3030 x16: 0000000000000000 x15: ffffffffffffffff
[    3.442758] x14: ffff8000094e4468 x13: ffff000005b18a1c x12: ffff000005b1829d
[    3.442771] x11: 0000000000000028 x10: 0000000000000001 x9 : 0000000011821b21
[    3.442785] x8 : 000000000000ea60 x7 : ffff800009dfb700 x6 : 0000000000000001
[    3.442797] x5 : 0000000000000003 x4 : 0000000000000000 x3 : 0000000000c00008
[    3.442810] x2 : 000000000080000b x1 : ffff800011c00008 x0 : ffff800011c0000c
[    3.442825] Kernel panic - not syncing: Asynchronous SError Interrupt
[    3.442831] CPU: 5 PID: 7 Comm: kworker/u12:0 Not tainted 5.15.25-rockchip64 #22.02.1
[    3.442840] Hardware name: FriendlyElec NanoPi M4 Ver2.0 (DT)
[    3.442845] Workqueue: events_unbound deferred_probe_work_func
[    3.442855] Call trace:
[    3.442858]  dump_backtrace+0x0/0x200
[    3.442875]  show_stack+0x18/0x28
[    3.442887]  dump_stack_lvl+0x68/0x84
[    3.442900]  dump_stack+0x18/0x34
[    3.442910]  panic+0x164/0x35c
[    3.442917]  nmi_panic+0x64/0x98
[    3.442926]  arm64_serror_panic+0x64/0x78
[    3.442934]  do_serror+0x34/0x80
[    3.442941]  el1h_64_error_handler+0x34/0x50
[    3.442953]  el1h_64_error+0x74/0x78
[    3.442961]  rockchip_pcie_rd_conf+0xb4/0x230
[    3.442972]  pci_bus_read_config_dword+0x84/0xd8
[    3.442983]  pci_bus_generic_read_dev_vendor_id+0x34/0x1b0
[    3.442995]  pci_bus_read_dev_vendor_id+0x4c/0x70
[    3.443005]  pci_scan_single_device+0x84/0xd8
[    3.443016]  pci_scan_slot+0x38/0x120
[    3.443026]  pci_scan_child_bus_extend+0x58/0x330
[    3.443037]  pci_scan_bridge_extend+0x340/0x5a0
[    3.443048]  pci_scan_child_bus_extend+0x1fc/0x330
[    3.443059]  pci_scan_bridge_extend+0x340/0x5a0
[    3.443069]  pci_scan_child_bus_extend+0x1fc/0x330
[    3.443080]  pci_scan_root_bus_bridge+0xd4/0xf0
[    3.443092]  pci_host_probe+0x18/0xb0
[    3.443102]  rockchip_pcie_probe+0x4a8/0x4c0
[    3.443113]  platform_probe+0x68/0xd8
[    3.443126]  really_probe+0xbc/0x428
[    3.443134]  __driver_probe_device+0x114/0x188
[    3.443143]  driver_probe_device+0xb0/0x110
[    3.443152]  __device_attach_driver+0x98/0x130
[    3.443161]  bus_for_each_drv+0x7c/0xd0
[    3.443169]  __device_attach+0xe8/0x168
[    3.443178]  device_initial_probe+0x14/0x20
[    3.443186]  bus_probe_device+0x9c/0xa8
[    3.443195]  deferred_probe_work_func+0x9c/0xf0
[    3.443203]  process_one_work+0x20c/0x4c8
[    3.443216]  worker_thread+0x208/0x478
[    3.443227]  kthread+0x138/0x150
[    3.443239]  ret_from_fork+0x10/0x20
[    3.443249] SMP: stopping secondary CPUs
[    3.443262] Kernel Offset: disabled
[    3.443265] CPU features: 0x10001051,20000846
[    3.443272] Memory Limit: none
[    3.759760] ---[ end Kernel panic - not syncing: Asynchronous SError Interrupt ]---
[    3.442676] lr : rockchip_pcie_rd_conf+

 

There are patches available for building yourself, however after comparing them to the source code of the Kernel I'm using (5.15.25-rockchip64) and looking at the modules, it seems that the patch is already applied, "modinfo -p pcie_rockchip_host" returns a kernel parameter integer (see code snippet below). I just downloaded the Armbian_22.02.1_Nanopim4v2_focal_current_5.15.25_xfce_desktop image, put it on the eMMC-Module and booted. I also activated the pcie-gen2 overlay. 

 

Here's how it looks like when booting normally:

nanopim4v2:~:% modinfo -p pcie_rockchip_host
name:           pcie_rockchip_host
bus_scan_delay: (int)
nanopim4v2:~:% cat /sys/module/pcie_rockchip_host/parameters/bus_scan_delay
-1
nanopim4v2:~:% dmesg | grep pcie
[    2.468434] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges:
[    2.468505] rockchip-pcie f8000000.pcie:      MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000
[    2.469442] rockchip-pcie f8000000.pcie:       IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000
[    2.475187] rockchip-pcie f8000000.pcie: no bus scan delay, default to 0 ms
[    2.475896] rockchip-pcie f8000000.pcie: no vpcie12v regulator found
[    2.476524] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found
[    2.977826] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
[    2.978491] rockchip-pcie: probe of f8000000.pcie failed with error -110
nanopim4v2:~:% uname -r
5.15.25-rockchip64

 

Now I've tried to change the PCIe Bus Scan Delay to 1000ms with several different methods, but with no success. Dmesg always shows "no bus scan delay, default to 0 ms" and "cat /sys/module/pcie_rockchip_host/parameters/bus_scan_delay" always returns -1 after reboot.

Methods I've tried:

- Modify /boot/armbianEnv.txt (add extraargs=bus-scan-delay-ms=1000) (does show up in /proc/cmdline)

- Modify /etc/sysctl.conf (add pcie_rockchip_host.bus_scan_delay=1000) and call "sudo deb-systemd-invoke restart procps.service" afterwards ("sudo sysctl -p" doesn't find parameter)

- Create a dedicated .conf file under /etc/sysctl.d/ with same line as above

- sudo modprobe pcie_rockchip_host bus_scan_delay=1000

- echo -n 1000 > /sys/module/pcie_rockchip_host/parameters/bus_scan_delay (no permission, not even as root, probably not supposed to be written to)

- Modify /etc/modules and/or /etc/init/module-init-tools.conf (add either only module name "pcie_rockchip_host" or "pcie_rockchip_host bus_scan_delay=1000") + sudo update-initramfs -u

- Create new .conf file under /etc/modprobe.d/ with new line "options pcie_rockchip_host bus_scan_delay=1000" (plus also module name in /etc/init/module-init-tools.conf)

 

I was hoping that maybe I can change the PCIe Bus Scan Delay without having to build my own kernel, is there a proper way to change this kernel parameter on a pre-built image?

I am still a newbie when it comes to linux so there might be a misunderstanding on my side, please correct me if I'm wrong.

If there is more information required, I'll gladly post it here.

 

Thank you in advance for any help

 

with kind regards,

Florian

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines