On Wed, Sep 02, 2020 at 05:36:29PM -0700, Florian Fainelli wrote: > > > On 9/2/2020 3:38 PM, Nathan Chancellor wrote: > [snip] > > > Hello Nathan, > > > > > > Can you tell me how much memory your RPI has and if all of it is > > > > This is the 4GB version. > > > > > accessible by the PCIe device? Could you also please include the DTS > > > of the PCIe node? IIRC, the RPI firmware does some mangling of the > > > PCIe DT before Linux boots -- could you describe what is going on > > > there? > > > > Unfortunately, I am not familiar with how to get this information. If > > you could provide some instructions for how to do so, I am more than > > happy to. I am not very knowleagable about the inner working of the Pi, > > I mainly use it as a test platform for making sure that LLVM does not > > cause problems on real devices. > > Can you bring the dtc application to your Pi root filesystem, and if so, can > you run the following: > > dtc -I fs -O dtb /proc/device-tree -f > /tmp/device.dtb Sure, the result is attached. > or cat /sys/firmware/fdt > device.dtb > > and attach the resulting file? > > > > > > Finally, can you attach the text of the full boot log? > > > > I have attached a working and broken boot log. Thank you for the quick > > response! > > Is it possible for you to rebuild your kernel with CONFIG_MMC_DEBUG by any > chance? Of course. A new log is attached with the debug output from that config. > I have a suspicion that this part of the DTS for the bcm2711.dtsi platform > is at fault: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/bcm2711.dtsi#n264 > > and the resulting dma-ranges parsing is just not working for reasons to be > determined. > -- > Florian Let me know if you need anything else out of me. Cheers, Nathan
Attachment:
device.dtb
Description: Binary data
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083] [ 0.000000] Linux version 5.9.0-rc3-next-20200902-dirty (nathan@ubuntu-n2-xlarge-x86) (ClangBuiltLinux clang version 12.0.0 (https://github.com/llvm/llvm-project.git b21ddded8f04fee925bbf9e6458347104b5b99eb), LLD 12.0.0 (https://github.com/llvm/llvm-project.git b21ddded8f04fee925bbf9e6458347104b5b99eb)) #1 SMP PREEMPT Wed Sep 2 17:41:42 MST 2020 [ 0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.2 [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000037400000, size 64 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000fbffffff] [ 0.000000] NUMA: NODE_DATA [mem 0xfb81f100-0xfb820fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff] [ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000fbffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000003b3fffff] [ 0.000000] node 0: [mem 0x0000000040000000-0x00000000fbffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff] [ 0.000000] percpu: Embedded 23 pages/cpu s54168 r8192 d31848 u94208 [ 0.000000] Detected PIPT I-cache on CPU0 [ 0.000000] CPU features: detected: EL2 vector hardening [ 0.000000] CPU features: kernel page table isolation forced ON by KASLR [ 0.000000] CPU features: detected: Kernel page table isolation (KPTI) [ 0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware [ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 996912 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: dma.dmachans=0x71f5 bcm2709.boardrev=0xc03112 bcm2709.serial=0xb78d398 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=42 bcm2709.disk_led_active_low=0 smsc95xx.macaddr=DC:A6:32:60:6C:87 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS1,115200 console=tty1 root=PARTUUID=45a8dd8a-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait plymouth.ignore-serial-consoles [ 0.000000] Kernel parameter elevator= does not have any effect anymore. [ 0.000000] Please use sysfs to set IO scheduler for individual devices. [ 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:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x33400000-0x37400000] (64MB) [ 0.000000] Memory: 3812260K/4050944K available (14524K kernel code, 2636K rwdata, 7540K rodata, 1600K init, 615K bss, 173148K reserved, 65536K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 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=4. [ 0.000000] Trampoline 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=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] random: get_random_bytes called from start_kernel+0x1cc/0x3f4 with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.000006] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000195] Console: colour dummy device 80x25 [ 0.000652] printk: console [tty1] enabled [ 0.000751] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000) [ 0.000781] pid_max: default: 32768 minimum: 301 [ 0.000866] LSM: Security Framework initializing [ 0.000997] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.001081] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.002840] rcu: Hierarchical SRCU implementation. [ 0.005054] EFI services will not be available. [ 0.005345] smp: Bringing up secondary CPUs ... [ 0.005851] Detected PIPT I-cache on CPU1 [ 0.005911] CPU1: Booted secondary processor 0x0000000001 [0x410fd083] [ 0.006455] Detected PIPT I-cache on CPU2 [ 0.006495] CPU2: Booted secondary processor 0x0000000002 [0x410fd083] [ 0.007007] Detected PIPT I-cache on CPU3 [ 0.007046] CPU3: Booted secondary processor 0x0000000003 [0x410fd083] [ 0.007129] smp: Brought up 1 node, 4 CPUs [ 0.007193] SMP: Total of 4 processors activated. [ 0.007209] CPU features: detected: 32-bit EL0 Support [ 0.007224] CPU features: detected: CRC32 instructions [ 0.007240] CPU features: detected: 32-bit EL1 Support [ 0.030540] CPU: All CPU(s) started at EL2 [ 0.030599] alternatives: patching kernel code [ 0.032564] devtmpfs: initialized [ 0.037682] KASLR enabled [ 0.038172] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.038206] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.040116] pinctrl core: initialized pinctrl subsystem [ 0.041452] DMI not present or invalid. [ 0.042019] NET: Registered protocol family 16 [ 0.043558] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations [ 0.043712] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.043990] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.044050] audit: initializing netlink subsys (disabled) [ 0.044242] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1 [ 0.045301] thermal_sys: Registered thermal governor 'step_wise' [ 0.045309] thermal_sys: Registered thermal governor 'power_allocator' [ 0.045648] cpuidle: using governor menu [ 0.045945] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.046047] ASID allocator initialised with 32768 entries [ 0.047600] Serial: AMBA PL011 UART driver [ 0.083025] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.083061] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.083078] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.083094] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.084421] cryptd: max_cpu_qlen set to 1000 [ 0.087088] ACPI: Interpreter disabled. [ 0.089021] iommu: Default domain type: Translated [ 0.089276] vgaarb: loaded [ 0.089611] SCSI subsystem initialized [ 0.090012] usbcore: registered new interface driver usbfs [ 0.090072] usbcore: registered new interface driver hub [ 0.090151] usbcore: registered new device driver usb [ 0.090330] usb_phy_generic phy: supply vcc not found, using dummy regulator [ 0.091142] pps_core: LinuxPPS API ver. 1 registered [ 0.091160] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@xxxxxxxx> [ 0.091196] PTP clock support registered [ 0.091357] EDAC MC: Ver: 3.0.0 [ 0.092760] FPGA manager framework [ 0.092865] Advanced Linux Sound Architecture Driver Initialized. [ 0.093701] clocksource: Switched to clocksource arch_sys_counter [ 0.093934] VFS: Disk quotas dquot_6.6.0 [ 0.094010] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.094227] pnp: PnP ACPI: disabled [ 0.100879] NET: Registered protocol family 2 [ 0.101392] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear) [ 0.101450] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.101659] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear) [ 0.102140] TCP: Hash tables configured (established 32768 bind 32768) [ 0.102352] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.102422] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.102628] NET: Registered protocol family 1 [ 0.103133] RPC: Registered named UNIX socket transport module. [ 0.103152] RPC: Registered udp transport module. [ 0.103165] RPC: Registered tcp transport module. [ 0.103178] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.103199] PCI: CLS 0 bytes, default 64 [ 0.104385] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 0.104540] kvm [1]: IPA Size Limit: 44bits [ 0.105680] kvm [1]: vgic interrupt IRQ1 [ 0.105867] kvm [1]: Hyp mode initialized successfully [ 0.107728] Initialise system trusted keyrings [ 0.107883] workingset: timestamp_bits=44 max_order=20 bucket_order=0 [ 0.114719] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.115521] NFS: Registering the id_resolver key type [ 0.115561] Key type id_resolver registered [ 0.115575] Key type id_legacy registered [ 0.115680] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.115865] 9p: Installing v9fs 9p2000 file system support [ 0.178003] Key type asymmetric registered [ 0.178022] Asymmetric key parser 'x509' registered [ 0.178076] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.178095] io scheduler mq-deadline registered [ 0.178108] io scheduler kyber registered [ 0.190559] EINJ: ACPI disabled. [ 0.208669] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.210741] printk: console [ttyS1] disabled [ 0.210844] fe215040.serial: ttyS1 at MMIO 0xfe215040 (irq = 18, base_baud = 24999999) is a 16550 [ 1.116050] printk: console [ttyS1] enabled [ 1.121777] SuperH (H)SCI(F) driver initialized [ 1.127007] msm_serial: driver initialized [ 1.132787] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 1.147454] loop: module loaded [ 1.151881] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 1.160186] megasas: 07.714.04.00-rc1 [ 1.168988] libphy: Fixed MDIO Bus: probed [ 1.174593] tun: Universal TUN/TAP device driver, 1.6 [ 1.180565] thunder_xcv, ver 1.0 [ 1.183908] thunder_bgx, ver 1.0 [ 1.187241] nicpf, ver 1.0 [ 1.191216] hclge is initializing [ 1.194649] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version [ 1.202014] hns3: Copyright (c) 2017 Huawei Corporation. [ 1.207482] e1000: Intel(R) PRO/1000 Network Driver [ 1.212455] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 1.218347] e1000e: Intel(R) PRO/1000 Network Driver [ 1.223407] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 1.229481] igb: Intel(R) Gigabit Ethernet Network Driver [ 1.234987] igb: Copyright (c) 2007-2014 Intel Corporation. [ 1.240693] igbvf: Intel(R) Gigabit Virtual Function Network Driver [ 1.247076] igbvf: Copyright (c) 2009 - 2012 Intel Corporation. [ 1.253477] sky2: driver version 1.30 [ 1.258420] VFIO - User Level meta-driver version: 0.3 [ 1.265684] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.272366] ehci-pci: EHCI PCI platform driver [ 1.276933] ehci-platform: EHCI generic platform driver [ 1.282396] ehci-orion: EHCI orion driver [ 1.286594] ehci-exynos: EHCI Exynos driver [ 1.290961] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.297274] ohci-pci: OHCI PCI platform driver [ 1.301842] ohci-platform: OHCI generic platform driver [ 1.307292] ohci-exynos: OHCI Exynos driver [ 1.312095] usbcore: registered new interface driver usb-storage [ 1.321120] i2c /dev entries driver [ 1.330063] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 1.338533] sdhci: Secure Digital Host Controller Interface driver [ 1.344845] sdhci: Copyright(c) Pierre Ossman [ 1.349891] Synopsys Designware Multimedia Card Interface Driver [ 1.357122] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.375006] ledtrig-cpu: registered to indicate activity on CPUs [ 1.382894] usbcore: registered new interface driver usbhid [ 1.388580] usbhid: USB HID core driver [ 1.393564] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 1.403535] NET: Registered protocol family 17 [ 1.408294] 9pnet: Installing 9P2000 support [ 1.412713] Key type dns_resolver registered [ 1.417430] registered taskstats version 1 [ 1.421626] Loading compiled-in X.509 certificates [ 1.431456] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 16, base_baud = 0) is a PL011 rev2 [ 1.440702] serial serial0: tty port ttyAMA0 registered [ 1.462488] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-08-24T18:50:56 [ 1.503490] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator [ 1.510942] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator [ 1.619058] dwc2 fe980000.usb: EPs: 8, dedicated fifos, 4080 entries in SPRAM [ 1.631093] sdhci-iproc fe300000.sdhci: allocated mmc-pwrseq [ 1.656482] mmc0: Got data interrupt 0x00100000 even though no data operation was in progress. [ 1.665246] mmc0: sdhci: ============ SDHCI REGISTER DUMP =========== [ 1.671799] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00009902 [ 1.678349] mmc0: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000 [ 1.684899] mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000000 [ 1.691448] mmc0: sdhci: Present: 0x01ff0000 | Host ctl: 0x00000000 [ 1.697998] mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000 [ 1.704548] mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00003943 [ 1.711097] mmc0: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000 [ 1.717646] mmc0: sdhci: Int enab: 0x00ff0003 | Sig enab: 0x00ff0003 [ 1.724195] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000 [ 1.730745] mmc0: sdhci: Caps: 0x00000000 | Caps_1: 0x00000000 [ 1.737293] mmc0: sdhci: Cmd: 0x00000000 | Max curr: 0x00000001 [ 1.743842] mmc0: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000 [ 1.750390] mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000 [ 1.756939] mmc0: sdhci: Host ctl2: 0x00000000 [ 1.761456] mmc0: sdhci: ============================================ [ 1.780655] mmc0: SDHCI controller on fe300000.sdhci [fe300000.sdhci] using PIO [ 1.805771] mmc0: queuing unknown CIS tuple 0x80 (2 bytes) [ 1.813060] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.820345] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.828965] mmc0: queuing unknown CIS tuple 0x80 (7 bytes) [ 1.836403] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.845718] mmc1: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA [ 1.855465] ALSA device list: [ 1.858526] No soundcards found. [ 1.862198] Waiting for root device PARTUUID=45a8dd8a-02... [ 1.902568] mmc1: unrecognised SCR structure version 4 [ 1.907898] mmc1: error -22 whilst initialising SD card [ 1.913254] random: fast init done [ 1.929590] mmc0: new high speed SDIO card at address 0001 [ 1.992339] mmc1: unrecognised SCR structure version 2 [ 1.997586] mmc1: error -22 whilst initialising SD card [ 2.073236] mmc1: unrecognised SCR structure version 4 [ 2.078483] mmc1: error -22 whilst initialising SD card [ 2.170487] mmc1: unrecognised SCR structure version 4 [ 2.175734] mmc1: error -22 whilst initialising SD card [ 3.257662] mmc1: unrecognised SCR structure version 4 [ 3.262908] mmc1: error -22 whilst initialising SD card [ 3.333247] mmc1: unrecognised SCR structure version 4 [ 3.338491] mmc1: error -22 whilst initialising SD card [ 3.414071] mmc1: unrecognised SCR structure version 4 [ 3.419316] mmc1: error -22 whilst initialising SD card [ 3.511237] mmc1: unrecognised SCR structure version 4 [ 3.516480] mmc1: error -22 whilst initialising SD card [ 4.601638] mmc1: unrecognised SCR structure version 4 [ 4.606884] mmc1: error -22 whilst initialising SD card [ 4.677201] mmc1: unrecognised SCR structure version 4 [ 4.682446] mmc1: error -22 whilst initialising SD card [ 4.758107] mmc1: unrecognised SCR structure version 4 [ 4.763350] mmc1: error -22 whilst initialising SD card [ 4.855243] mmc1: unrecognised SCR structure version 4 [ 4.860490] mmc1: error -22 whilst initialising SD card [ 5.945660] mmc1: unrecognised SCR structure version 4 [ 5.950907] mmc1: error -22 whilst initialising SD card [ 6.021221] mmc1: unrecognised SCR structure version 4 [ 6.026465] mmc1: error -22 whilst initialising SD card [ 6.102080] mmc1: unrecognised SCR structure version 4 [ 6.107324] mmc1: error -22 whilst initialising SD card [ 6.199241] mmc1: unrecognised SCR structure version 4 [ 6.204484] mmc1: error -22 whilst initialising SD card [ 7.289614] mmc1: unrecognised SCR structure version 4 [ 7.294860] mmc1: error -22 whilst initialising SD card [ 7.365166] mmc1: unrecognised SCR structure version 4 [ 7.370409] mmc1: error -22 whilst initialising SD card [ 7.446022] mmc1: unrecognised SCR structure version 4 [ 7.451265] mmc1: error -22 whilst initialising SD card [ 7.543170] mmc1: unrecognised SCR structure version 4 [ 7.548413] mmc1: error -22 whilst initialising SD card [ 8.636441] mmc1: unrecognised SCR structure version 4 [ 8.641697] mmc1: error -22 whilst initialising SD card [ 8.711995] mmc1: unrecognised SCR structure version 4 [ 8.717238] mmc1: error -22 whilst initialising SD card [ 8.792928] mmc1: unrecognised SCR structure version 4 [ 8.798171] mmc1: error -22 whilst initialising SD card [ 8.890158] mmc1: unrecognised SCR structure version 4 [ 8.895402] mmc1: error -22 whilst initialising SD card [ 9.977661] mmc1: unrecognised SCR structure version 4 [ 9.982907] mmc1: error -22 whilst initialising SD card [ 10.053223] mmc1: unrecognised SCR structure version 4 [ 10.058467] mmc1: error -22 whilst initialising SD card [ 10.134126] mmc1: unrecognised SCR structure version 4 [ 10.139370] mmc1: error -22 whilst initialising SD card [ 10.231286] mmc1: unrecognised SCR structure version 4 [ 10.236528] mmc1: error -22 whilst initialising SD card [ 11.321615] mmc1: unrecognised SCR structure version 4 [ 11.326861] mmc1: error -22 whilst initialising SD card [ 11.397149] mmc1: unrecognised SCR structure version 4 [ 11.402394] mmc1: error -22 whilst initialising SD card [ 11.478010] mmc1: unrecognised SCR structure version 4 [ 11.483252] mmc1: error -22 whilst initialising SD card [ 11.575174] mmc1: unrecognised SCR structure version 4 [ 11.580416] mmc1: error -22 whilst initialising SD card
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel