Re: Fail to boot qemu xlnx-zcu102 due to lot of drivers not probing

2021-01-25 Thread Corentin Labbe
Le Fri, Jan 22, 2021 at 11:51:53AM +0100, Edgar E. Iglesias a écrit :
> On Fri, Jan 22, 2021 at 10:52:18AM +0100, Michal Simek wrote:
> > Hi,
> > 
> > On 1/22/21 10:24 AM, Corentin Labbe wrote:
> > > Hello
> > > 
> > > With at least qemu 5.1.0 (and later), the xlnx-zcu102 machine boot lead 
> > > to a panic due to missing console.
> > > qemu-system-aarch64 -kernel Image -nographic -machine xlnx-zcu102 -device 
> > > ide-hd,drive=lavatest -serial mon:stdio -serial null -append 
> > > 'earlycon=cdns,mmio,0xFF00,115200n8 console=ttyPS0 root=/dev/ram0 
> > > ip=dhcp' -dtb zynqmp-zcu102-rev1.0.dtb -m 2048 -nic 
> > > user,model=cadence_gem,mac=52:54:00:12:34:58 -drive 
> > > format=qcow2,file=disk.img,if=none,id=lavatest -initrd rootfs.cpio.gz
> > > [0.00] Booting Linux on physical CPU 0x00 [0x410fd034]
> > > [0.00] Linux version 5.5.0-rc1-4-g9c8a47b484ed 
> > > (clabbe@arnold) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #17 SMP 
> > > PREEMPT Fri Jan 22 09:19:31 UTC 2021
> > > [0.00] Machine model: ZynqMP ZCU102 Rev1.0
> > > [0.00] earlycon: cdns0 at MMIO 0xff00 (options 
> > > '115200n8')
> > > [0.00] printk: bootconsole [cdns0] enabled
> > > [0.00] efi: Getting EFI parameters from FDT:
> > > [0.00] efi: UEFI not found.
> > > [0.00] cma: Reserved 32 MiB at 0x7e00
> > > [0.00] NUMA: No NUMA configuration found
> > > [0.00] NUMA: Faking a node at [mem 
> > > 0x-0x7fff]
> > > [0.00] NUMA: NODE_DATA [mem 0x7dbe0100-0x7dbe1fff]
> > > [0.00] Zone ranges:
> > > [0.00]   DMA  [mem 0x-0x3fff]
> > > [0.00]   DMA32[mem 0x4000-0x7fff]
> > > [0.00]   Normal   empty
> > > [0.00] Movable zone start for each node
> > > [0.00] Early memory node ranges
> > > [0.00]   node   0: [mem 0x-0x7fff]
> > > [0.00] Initmem setup node 0 [mem 
> > > 0x-0x7fff]
> > > [0.00] psci: probing for conduit method from DT.
> > > [0.00] psci: PSCIv0.2 detected in firmware.
> > > [0.00] psci: Using standard PSCI v0.2 function IDs
> > > [0.00] psci: Trusted OS migration not required
> > > [0.00] percpu: Embedded 22 pages/cpu s53016 r8192 d28904 u90112
> > > [0.00] Detected VIPT I-cache on CPU0
> > > [0.00] CPU features: detected: ARM erratum 845719
> > > [0.00] CPU features: detected: ARM erratum 843419
> > > [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 
> > > 516096
> > > [0.00] Policy zone: DMA32
> > > [0.00] Kernel command line: 
> > > earlycon=cdns,mmio,0xFF00,115200n8 console=ttyPS0 root=/dev/ram0 
> > > ip=dhcp
> > > [0.00] Dentry cache hash table entries: 262144 (order: 9, 2097152 
> > > bytes, linear)
> > > [0.00] Inode-cache hash table entries: 131072 (order: 8, 1048576 
> > > bytes, linear)
> > > [0.00] mem auto-init: stack:off, heap alloc:off, heap free:off
> > > [0.00] software IO TLB: mapped [mem 0x3bfff000-0x3000] (64MB)
> > > [0.00] Memory: 1907172K/2097152K available (12092K kernel code, 
> > > 1896K rwdata, 6640K rodata, 5120K init, 456K bss, 157212K reserved, 
> > > 32768K cma-reserved)
> > > [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> > > [0.00] rcu: Preemptible hierarchical RCU implementation.
> > > [0.00] rcu:   RCU restricting CPUs from NR_CPUS=256 to 
> > > nr_cpu_ids=4.
> > > [0.00]Tasks RCU enabled.
> > > [0.00] rcu: RCU calculated value of scheduler-enlistment delay is 
> > > 25 jiffies.
> > > [0.00] rcu: Adjusting geometry for rcu_fanout_leaf=16, 
> > > nr_cpu_ids=4
> > > [0.00] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
> > > [0.00] random: get_random_bytes called from 
> > > start_kernel+0x2b8/0x454 with crng_init=0
> > > [0.00] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
> > > [0.00] clocksource: arch_sys_counter: mask: 0xff 
> > > max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
> > > [0.000118] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps 
> > > every 4398046511096ns
> > > [0.006458] Console: colour dummy device 80x25
> > > [0.008026] Calibrating delay loop (skipped), value calculated using 
> > > timer frequency.. 125.00 BogoMIPS (lpj=25)
> > > [0.008182] pid_max: default: 32768 minimum: 301
> > > [0.009157] LSM: Security Framework initializing
> > > [0.010014] Mount-cache hash table entries: 4096 (order: 3, 32768 
> > > bytes, linear)
> > > [0.010106] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 
> > > bytes, linear)
> > > [0.060263] ASID allocator initialised with 32768 entries
> > > [0.067849] rcu: Hierarchical SRCU 

Fail to boot qemu xlnx-zcu102 due to lot of drivers not probing

2021-01-22 Thread Corentin Labbe
Hello

With at least qemu 5.1.0 (and later), the xlnx-zcu102 machine boot lead to a 
panic due to missing console.
qemu-system-aarch64 -kernel Image -nographic -machine xlnx-zcu102 -device 
ide-hd,drive=lavatest -serial mon:stdio -serial null -append 
'earlycon=cdns,mmio,0xFF00,115200n8 console=ttyPS0 root=/dev/ram0 ip=dhcp' 
-dtb zynqmp-zcu102-rev1.0.dtb -m 2048 -nic 
user,model=cadence_gem,mac=52:54:00:12:34:58 -drive 
format=qcow2,file=disk.img,if=none,id=lavatest -initrd rootfs.cpio.gz
[0.00] Booting Linux on physical CPU 0x00 [0x410fd034]
[0.00] Linux version 5.5.0-rc1-4-g9c8a47b484ed (clabbe@arnold) (gcc 
version 7.5.0 (Linaro GCC 7.5-2019.12)) #17 SMP PREEMPT Fri Jan 22 09:19:31 UTC 
2021
[0.00] Machine model: ZynqMP ZCU102 Rev1.0
[0.00] earlycon: cdns0 at MMIO 0xff00 (options '115200n8')
[0.00] printk: bootconsole [cdns0] enabled
[0.00] efi: Getting EFI parameters from FDT:
[0.00] efi: UEFI not found.
[0.00] cma: Reserved 32 MiB at 0x7e00
[0.00] NUMA: No NUMA configuration found
[0.00] NUMA: Faking a node at [mem 
0x-0x7fff]
[0.00] NUMA: NODE_DATA [mem 0x7dbe0100-0x7dbe1fff]
[0.00] Zone ranges:
[0.00]   DMA  [mem 0x-0x3fff]
[0.00]   DMA32[mem 0x4000-0x7fff]
[0.00]   Normal   empty
[0.00] Movable zone start for each node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x-0x7fff]
[0.00] Initmem setup node 0 [mem 0x-0x7fff]
[0.00] psci: probing for conduit method from DT.
[0.00] psci: PSCIv0.2 detected in firmware.
[0.00] psci: Using standard PSCI v0.2 function IDs
[0.00] psci: Trusted OS migration not required
[0.00] percpu: Embedded 22 pages/cpu s53016 r8192 d28904 u90112
[0.00] Detected VIPT I-cache on CPU0
[0.00] CPU features: detected: ARM erratum 845719
[0.00] CPU features: detected: ARM erratum 843419
[0.00] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[0.00] Policy zone: DMA32
[0.00] Kernel command line: earlycon=cdns,mmio,0xFF00,115200n8 
console=ttyPS0 root=/dev/ram0 ip=dhcp
[0.00] Dentry cache hash table entries: 262144 (order: 9, 2097152 
bytes, linear)
[0.00] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, 
linear)
[0.00] mem auto-init: stack:off, heap alloc:off, heap free:off
[0.00] software IO TLB: mapped [mem 0x3bfff000-0x3000] (64MB)
[0.00] Memory: 1907172K/2097152K available (12092K kernel code, 1896K 
rwdata, 6640K rodata, 5120K init, 456K bss, 157212K reserved, 32768K 
cma-reserved)
[0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[0.00] rcu: Preemptible hierarchical RCU implementation.
[0.00] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[0.00]  Tasks RCU enabled.
[0.00] rcu: RCU calculated value of scheduler-enlistment delay is 25 
jiffies.
[0.00] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[0.00] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[0.00] random: get_random_bytes called from start_kernel+0x2b8/0x454 
with crng_init=0
[0.00] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[0.00] clocksource: arch_sys_counter: mask: 0xff 
max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[0.000118] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 
4398046511096ns
[0.006458] Console: colour dummy device 80x25
[0.008026] Calibrating delay loop (skipped), value calculated using timer 
frequency.. 125.00 BogoMIPS (lpj=25)
[0.008182] pid_max: default: 32768 minimum: 301
[0.009157] LSM: Security Framework initializing
[0.010014] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, 
linear)
[0.010106] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 
bytes, linear)
[0.060263] ASID allocator initialised with 32768 entries
[0.067849] rcu: Hierarchical SRCU implementation.
[0.079370] EFI services will not be available.
[0.088702] smp: Bringing up secondary CPUs ...
[0.118904] Detected VIPT I-cache on CPU1
[0.119921] CPU1: Booted secondary processor 0x01 [0x410fd034]
[0.156284] Detected VIPT I-cache on CPU2
[0.156514] CPU2: Booted secondary processor 0x02 [0x410fd034]
[0.189310] Detected VIPT I-cache on CPU3
[0.189472] CPU3: Booted secondary processor 0x03 [0x410fd034]
[0.189921] smp: Brought up 1 node, 4 CPUs
[0.190504] SMP: Total of 4 processors activated.
[0.190633] CPU features: detected: 32-bit EL0 Support
[0.190817] CPU features: detected: CRC32 instructions
[0.297754] CPU: All CPU(s) started 

Re: Fail to boot qemu xlnx-zcu102 due to lot of drivers not probing

2021-01-22 Thread Edgar E. Iglesias
On Fri, Jan 22, 2021 at 10:52:18AM +0100, Michal Simek wrote:
> Hi,
> 
> On 1/22/21 10:24 AM, Corentin Labbe wrote:
> > Hello
> > 
> > With at least qemu 5.1.0 (and later), the xlnx-zcu102 machine boot lead to 
> > a panic due to missing console.
> > qemu-system-aarch64 -kernel Image -nographic -machine xlnx-zcu102 -device 
> > ide-hd,drive=lavatest -serial mon:stdio -serial null -append 
> > 'earlycon=cdns,mmio,0xFF00,115200n8 console=ttyPS0 root=/dev/ram0 
> > ip=dhcp' -dtb zynqmp-zcu102-rev1.0.dtb -m 2048 -nic 
> > user,model=cadence_gem,mac=52:54:00:12:34:58 -drive 
> > format=qcow2,file=disk.img,if=none,id=lavatest -initrd rootfs.cpio.gz
> > [0.00] Booting Linux on physical CPU 0x00 [0x410fd034]
> > [0.00] Linux version 5.5.0-rc1-4-g9c8a47b484ed (clabbe@arnold) 
> > (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #17 SMP PREEMPT Fri Jan 22 
> > 09:19:31 UTC 2021
> > [0.00] Machine model: ZynqMP ZCU102 Rev1.0
> > [0.00] earlycon: cdns0 at MMIO 0xff00 (options 
> > '115200n8')
> > [0.00] printk: bootconsole [cdns0] enabled
> > [0.00] efi: Getting EFI parameters from FDT:
> > [0.00] efi: UEFI not found.
> > [0.00] cma: Reserved 32 MiB at 0x7e00
> > [0.00] NUMA: No NUMA configuration found
> > [0.00] NUMA: Faking a node at [mem 
> > 0x-0x7fff]
> > [0.00] NUMA: NODE_DATA [mem 0x7dbe0100-0x7dbe1fff]
> > [0.00] Zone ranges:
> > [0.00]   DMA  [mem 0x-0x3fff]
> > [0.00]   DMA32[mem 0x4000-0x7fff]
> > [0.00]   Normal   empty
> > [0.00] Movable zone start for each node
> > [0.00] Early memory node ranges
> > [0.00]   node   0: [mem 0x-0x7fff]
> > [0.00] Initmem setup node 0 [mem 
> > 0x-0x7fff]
> > [0.00] psci: probing for conduit method from DT.
> > [0.00] psci: PSCIv0.2 detected in firmware.
> > [0.00] psci: Using standard PSCI v0.2 function IDs
> > [0.00] psci: Trusted OS migration not required
> > [0.00] percpu: Embedded 22 pages/cpu s53016 r8192 d28904 u90112
> > [0.00] Detected VIPT I-cache on CPU0
> > [0.00] CPU features: detected: ARM erratum 845719
> > [0.00] CPU features: detected: ARM erratum 843419
> > [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 516096
> > [0.00] Policy zone: DMA32
> > [0.00] Kernel command line: earlycon=cdns,mmio,0xFF00,115200n8 
> > console=ttyPS0 root=/dev/ram0 ip=dhcp
> > [0.00] Dentry cache hash table entries: 262144 (order: 9, 2097152 
> > bytes, linear)
> > [0.00] Inode-cache hash table entries: 131072 (order: 8, 1048576 
> > bytes, linear)
> > [0.00] mem auto-init: stack:off, heap alloc:off, heap free:off
> > [0.00] software IO TLB: mapped [mem 0x3bfff000-0x3000] (64MB)
> > [0.00] Memory: 1907172K/2097152K available (12092K kernel code, 
> > 1896K rwdata, 6640K rodata, 5120K init, 456K bss, 157212K reserved, 32768K 
> > cma-reserved)
> > [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> > [0.00] rcu: Preemptible hierarchical RCU implementation.
> > [0.00] rcu: RCU restricting CPUs from NR_CPUS=256 to 
> > nr_cpu_ids=4.
> > [0.00]  Tasks RCU enabled.
> > [0.00] rcu: RCU calculated value of scheduler-enlistment delay is 
> > 25 jiffies.
> > [0.00] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
> > [0.00] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
> > [0.00] random: get_random_bytes called from 
> > start_kernel+0x2b8/0x454 with crng_init=0
> > [0.00] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
> > [0.00] clocksource: arch_sys_counter: mask: 0xff 
> > max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
> > [0.000118] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 
> > 4398046511096ns
> > [0.006458] Console: colour dummy device 80x25
> > [0.008026] Calibrating delay loop (skipped), value calculated using 
> > timer frequency.. 125.00 BogoMIPS (lpj=25)
> > [0.008182] pid_max: default: 32768 minimum: 301
> > [0.009157] LSM: Security Framework initializing
> > [0.010014] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, 
> > linear)
> > [0.010106] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 
> > bytes, linear)
> > [0.060263] ASID allocator initialised with 32768 entries
> > [0.067849] rcu: Hierarchical SRCU implementation.
> > [0.079370] EFI services will not be available.
> > [0.088702] smp: Bringing up secondary CPUs ...
> > [0.118904] Detected VIPT I-cache on CPU1
> > [0.119921] CPU1: Booted secondary processor 0x01 [0x410fd034]
> > [0.156284] 

Re: Fail to boot qemu xlnx-zcu102 due to lot of drivers not probing

2021-01-22 Thread Michal Simek
Hi,

On 1/22/21 10:24 AM, Corentin Labbe wrote:
> Hello
> 
> With at least qemu 5.1.0 (and later), the xlnx-zcu102 machine boot lead to a 
> panic due to missing console.
> qemu-system-aarch64 -kernel Image -nographic -machine xlnx-zcu102 -device 
> ide-hd,drive=lavatest -serial mon:stdio -serial null -append 
> 'earlycon=cdns,mmio,0xFF00,115200n8 console=ttyPS0 root=/dev/ram0 
> ip=dhcp' -dtb zynqmp-zcu102-rev1.0.dtb -m 2048 -nic 
> user,model=cadence_gem,mac=52:54:00:12:34:58 -drive 
> format=qcow2,file=disk.img,if=none,id=lavatest -initrd rootfs.cpio.gz
> [0.00] Booting Linux on physical CPU 0x00 [0x410fd034]
> [0.00] Linux version 5.5.0-rc1-4-g9c8a47b484ed (clabbe@arnold) 
> (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #17 SMP PREEMPT Fri Jan 22 
> 09:19:31 UTC 2021
> [0.00] Machine model: ZynqMP ZCU102 Rev1.0
> [0.00] earlycon: cdns0 at MMIO 0xff00 (options '115200n8')
> [0.00] printk: bootconsole [cdns0] enabled
> [0.00] efi: Getting EFI parameters from FDT:
> [0.00] efi: UEFI not found.
> [0.00] cma: Reserved 32 MiB at 0x7e00
> [0.00] NUMA: No NUMA configuration found
> [0.00] NUMA: Faking a node at [mem 
> 0x-0x7fff]
> [0.00] NUMA: NODE_DATA [mem 0x7dbe0100-0x7dbe1fff]
> [0.00] Zone ranges:
> [0.00]   DMA  [mem 0x-0x3fff]
> [0.00]   DMA32[mem 0x4000-0x7fff]
> [0.00]   Normal   empty
> [0.00] Movable zone start for each node
> [0.00] Early memory node ranges
> [0.00]   node   0: [mem 0x-0x7fff]
> [0.00] Initmem setup node 0 [mem 
> 0x-0x7fff]
> [0.00] psci: probing for conduit method from DT.
> [0.00] psci: PSCIv0.2 detected in firmware.
> [0.00] psci: Using standard PSCI v0.2 function IDs
> [0.00] psci: Trusted OS migration not required
> [0.00] percpu: Embedded 22 pages/cpu s53016 r8192 d28904 u90112
> [0.00] Detected VIPT I-cache on CPU0
> [0.00] CPU features: detected: ARM erratum 845719
> [0.00] CPU features: detected: ARM erratum 843419
> [0.00] Built 1 zonelists, mobility grouping on.  Total pages: 516096
> [0.00] Policy zone: DMA32
> [0.00] Kernel command line: earlycon=cdns,mmio,0xFF00,115200n8 
> console=ttyPS0 root=/dev/ram0 ip=dhcp
> [0.00] Dentry cache hash table entries: 262144 (order: 9, 2097152 
> bytes, linear)
> [0.00] Inode-cache hash table entries: 131072 (order: 8, 1048576 
> bytes, linear)
> [0.00] mem auto-init: stack:off, heap alloc:off, heap free:off
> [0.00] software IO TLB: mapped [mem 0x3bfff000-0x3000] (64MB)
> [0.00] Memory: 1907172K/2097152K available (12092K kernel code, 1896K 
> rwdata, 6640K rodata, 5120K init, 456K bss, 157212K reserved, 32768K 
> cma-reserved)
> [0.00] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
> [0.00] rcu: Preemptible hierarchical RCU implementation.
> [0.00] rcu:   RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
> [0.00]Tasks RCU enabled.
> [0.00] rcu: RCU calculated value of scheduler-enlistment delay is 25 
> jiffies.
> [0.00] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
> [0.00] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
> [0.00] random: get_random_bytes called from start_kernel+0x2b8/0x454 
> with crng_init=0
> [0.00] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
> [0.00] clocksource: arch_sys_counter: mask: 0xff 
> max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
> [0.000118] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 
> 4398046511096ns
> [0.006458] Console: colour dummy device 80x25
> [0.008026] Calibrating delay loop (skipped), value calculated using timer 
> frequency.. 125.00 BogoMIPS (lpj=25)
> [0.008182] pid_max: default: 32768 minimum: 301
> [0.009157] LSM: Security Framework initializing
> [0.010014] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, 
> linear)
> [0.010106] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 
> bytes, linear)
> [0.060263] ASID allocator initialised with 32768 entries
> [0.067849] rcu: Hierarchical SRCU implementation.
> [0.079370] EFI services will not be available.
> [0.088702] smp: Bringing up secondary CPUs ...
> [0.118904] Detected VIPT I-cache on CPU1
> [0.119921] CPU1: Booted secondary processor 0x01 [0x410fd034]
> [0.156284] Detected VIPT I-cache on CPU2
> [0.156514] CPU2: Booted secondary processor 0x02 [0x410fd034]
> [0.189310] Detected VIPT I-cache on CPU3
> [0.189472] CPU3: Booted secondary processor 0x03 [0x410fd034]
> [0.189921] smp: