Skip to content

Instantly share code, notes, and snippets.

@pdp7
Created March 20, 2024 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdp7/00ab047509d25871f87b3dc1b2445eaa to your computer and use it in GitHub Desktop.
Save pdp7/00ab047509d25871f87b3dc1b2445eaa to your computer and use it in GitHub Desktop.
linux boot log for cppc patch series
$ qemu/build/qemu-system-riscv64 -M virt,pflash0=pflash0,pflash1=pflash1 -m 2G -smp 8 -serial mon:stdio -nographic -blockdev node-name=pflash0,driver=file,read-only=on,filename=RISCV_VIRT_CODE.fd -blockdev node-name=pflash1,driver=file,filename=RISCV_VIRT_VARS.fd -append "root=/dev/ram ro console=hvc earlycon=sbi loglevel=8" -kernel linux/arch/riscv/boot/Image -bios ~/data/opensbi/build/platform/generic/firmware/fw_dynamic.bin
OpenSBI v1.4-64-ge23cda471586
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : riscv-virtio,qemu
Platform Features : medeleg
Platform HART Count : 8
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 10000000Hz
Platform Console Device : uart8250
Platform HSM Device : ---
Platform PMU Device : ---
Platform Reboot Device : syscon-reboot
Platform Shutdown Device : syscon-poweroff
Platform Suspend Device : ---
Platform CPPC Device : cppc-test
Firmware Base : 0x80000000
Firmware Size : 395 KB
Firmware RW Offset : 0x40000
Firmware RW Size : 139 KB
Firmware Heap Offset : 0x56000
Firmware Heap Size : 51 KB (total), 3 KB (reserved), 11 KB (used), 36 KB (free)
Firmware Scratch Size : 4096 B (total), 352 B (used), 3744 B (free)
Runtime SBI Version : 2.0
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*,1*,2*,3*,4*,5*,6*,7*
Domain0 Region00 : 0x0000000000100000-0x0000000000100fff M: (I,R,W) S/U: (R,W)
Domain0 Region01 : 0x0000000010000000-0x0000000010000fff M: (I,R,W) S/U: (R,W)
Domain0 Region02 : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region03 : 0x0000000080000000-0x000000008003ffff M: (R,X) S/U: ()
Domain0 Region04 : 0x0000000080040000-0x000000008007ffff M: (R,W) S/U: ()
Domain0 Region05 : 0x000000000c400000-0x000000000c5fffff M: (I,R,W) S/U: (R,W)
Domain0 Region06 : 0x000000000c000000-0x000000000c3fffff M: (I,R,W) S/U: (R,W)
Domain0 Region07 : 0x0000000000000000-0xffffffffffffffff M: () S/U: (R,W,X)
Domain0 Next Address : 0x0000000020000000
Domain0 Next Arg1 : 0x00000000bfe00000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Domain0 SysSuspend : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART Priv Version : v1.12
Boot HART Base ISA : rv64imafdch
Boot HART ISA Extensions : sstc,zicntr,zihpm,zicboz,zicbom,sdtrig
Boot HART PMP Count : 16
Boot HART PMP Granularity : 2 bits
Boot HART PMP Address Bits: 54
Boot HART MHPM Info : 16 (0x0007fff8)
Boot HART Debug Triggers : 2 triggers
Boot HART MIDELEG : 0x0000000000001666
Boot HART MEDELEG : 0x0000000000f0b509
RISC-V EDK2 firmware version 2.7
Press ESCAPE within 5 seconds for boot options EFI stub: Booting Linux Kernel...
EFI stub: Generating empty DTB
EFI stub: Exiting boot services...
[ 0.000000] Linux version 6.8.0-00006-g53ef567081c3 (dfustini@sjc-lab-t7002) (riscv64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #33 SMP Tue Mar 19 23:40:21 PDT 2024
[ 0.000000] SBI specification v2.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10004
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI SRST extension detected
[ 0.000000] SBI DBCN extension detected
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: legacy bootconsole [sbi0] enabled
[ 0.000000] efi: EFI v2.7 by EDK II
[ 0.000000] efi: MEMATTR=0xff573098 ACPI=0xfc7c6000 ACPI 2.0=0xfc7c6014 MEMRESERVE=0xfc7c4f18
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000FC7C6014 000024 (v02 BOCHS )
[ 0.000000] ACPI: XSDT 0x00000000FC7C50E8 000044 (v01 BOCHS BXPC 00000001 01000013)
[ 0.000000] ACPI: FACP 0x00000000FC7A1000 000114 (v06 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 0x00000000FC7A2000 0016E9 (v02 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: APIC 0x00000000FC7A0000 000170 (v06 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: RHCT 0x00000000FC79F000 000192 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] ACPI: MCFG 0x00000000FC79E000 00003C (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000008007ffff]
[ 0.000000] node 0: [mem 0x0000000080080000-0x00000000ffe3cfff]
[ 0.000000] node 0: [mem 0x00000000ffe3d000-0x00000000ffffefff]
[ 0.000000] node 0: [mem 0x00000000fffff000-0x00000000ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] SBI HSM extension detected
[ 0.000000] riscv: base ISA extensions acdfhim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] percpu: Embedded 20 pages/cpu s41592 r8192 d32136 u81920
[ 0.000000] pcpu-alloc: s41592 r8192 d32136 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[ 0.000000] Kernel command line: root=/dev/ram ro console=hvc earlycon=sbi loglevel=8
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] fixmap : 0xff1bfffffea00000 - 0xff1bffffff000000 (6144 kB)
[ 0.000000] pci io : 0xff1bffffff000000 - 0xff1c000000000000 ( 16 MB)
[ 0.000000] vmemmap : 0xff1c000000000000 - 0xff20000000000000 (1024 TB)
[ 0.000000] vmalloc : 0xff20000000000000 - 0xff60000000000000 (16384 TB)
[ 0.000000] modules : 0xffffffff01b89000 - 0xffffffff80000000 (2020 MB)
[ 0.000000] lowmem : 0xff60000000000000 - 0xff60000080000000 (2048 MB)
[ 0.000000] kernel : 0xffffffff80000000 - 0xffffffffffffffff (2047 MB)
[ 0.000000] Memory: 2013196K/2097152K available (9459K kernel code, 3972K rwdata, 4096K rodata, 9377K init, 506K bss, 83956K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 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=8
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] riscv: providing IPIs using SBI IPI extension
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[ 0.000117] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[ 0.001056] riscv-timer: Timer interrupt in S-mode is available via sstc extension
[ 0.013339] Console: colour dummy device 80x25
[ 0.015332] ACPI: Core revision 20230628
[ 0.021580] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000)
[ 0.022904] pid_max: default: 32768 minimum: 301
[ 0.024810] LSM: initializing lsm=capability,integrity
[ 0.028906] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.029521] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.063937] No CPU information found in DT
[ 0.079104] RCU Tasks Trace: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1.
[ 0.080414] riscv: ELF compat mode supported
[ 0.081028] ASID allocator using 16 bits (65536 entries)
[ 0.083709] rcu: Hierarchical SRCU implementation.
[ 0.084171] rcu: Max phase no-delay instances is 1000.
[ 0.088699] Remapping and enabling EFI services.
[ 0.104462] smp: Bringing up secondary CPUs ...
[ 0.151296] smp: Brought up 1 node, 8 CPUs
[ 0.188784] devtmpfs: initialized
[ 0.206702] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.207804] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.212661] pinctrl core: initialized pinctrl subsystem
[ 0.224194] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.231308] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[ 0.232751] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.233723] audit: initializing netlink subsys (disabled)
[ 0.238302] audit: type=2000 audit(0.220:1): state=initialized audit_enabled=0 res=1
[ 0.241159] thermal_sys: Registered thermal governor 'step_wise'
[ 0.241881] cpuidle: using governor menu
[ 0.269031] cpu2: Ratio of byte access time to unaligned word access is 7.04, unaligned accesses are fast
[ 0.269030] cpu3: Ratio of byte access time to unaligned word access is 4.18, unaligned accesses are fast
[ 0.269006] cpu7: Ratio of byte access time to unaligned word access is 6.73, unaligned accesses are fast
[ 0.269011] cpu4: Ratio of byte access time to unaligned word access is 4.18, unaligned accesses are fast
[ 0.269048] cpu1: Ratio of byte access time to unaligned word access is 4.07, unaligned accesses are fast
[ 0.269019] cpu6: Ratio of byte access time to unaligned word access is 6.73, unaligned accesses are fast
[ 0.269019] cpu5: Ratio of byte access time to unaligned word access is 4.18, unaligned accesses are fast
[ 0.298875] cpu0: Ratio of byte access time to unaligned word access is 7.38, unaligned accesses are fast
[ 0.314453] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.315134] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.326100] ACPI: Added _OSI(Module Device)
[ 0.326396] ACPI: Added _OSI(Processor Device)
[ 0.326609] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.326827] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.349429] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.371452] ACPI: Interpreter enabled
[ 0.371745] ACPI: Using PIC for interrupt routing
[ 0.393773] iommu: Default domain type: Translated
[ 0.394341] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.403931] SCSI subsystem initialized
[ 0.407315] libata version 3.00 loaded.
[ 0.410151] ACPI: bus type USB registered
[ 0.411510] usbcore: registered new interface driver usbfs
[ 0.412732] usbcore: registered new interface driver hub
[ 0.413548] usbcore: registered new device driver usb
[ 0.420154] efivars: Registered efivars operations
[ 0.422073] Advanced Linux Sound Architecture Driver Initialized.
[ 0.442551] vgaarb: loaded
[ 0.451340] clocksource: Switched to clocksource riscv_clocksource
[ 0.456986] pnp: PnP ACPI init
[ 0.457816] pnp: PnP ACPI: found 0 devices
[ 0.506698] NET: Registered PF_INET protocol family
[ 0.510141] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.520765] tcp_listen_portaddr_hash hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.521470] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.521958] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.523644] TCP bind hash table entries: 16384 (order: 8, 1048576 bytes, linear)
[ 0.525572] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.527942] UDP hash table entries: 1024 (order: 4, 98304 bytes, linear)
[ 0.528726] UDP-Lite hash table entries: 1024 (order: 4, 98304 bytes, linear)
[ 0.531089] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.538918] RPC: Registered named UNIX socket transport module.
[ 0.539312] RPC: Registered udp transport module.
[ 0.539540] RPC: Registered tcp transport module.
[ 0.539772] RPC: Registered tcp-with-tls transport module.
[ 0.540030] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.540505] PCI: CLS 0 bytes, default 64
[ 0.551649] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[ 0.565068] NFS: Registering the id_resolver key type
[ 0.567042] Key type id_resolver registered
[ 0.567354] Key type id_legacy registered
[ 0.568148] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.568668] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.570540] 9p: Installing v9fs 9p2000 file system support
[ 0.573522] NET: Registered PF_ALG protocol family
[ 0.574488] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[ 0.575400] io scheduler mq-deadline registered
[ 0.575803] io scheduler kyber registered
[ 0.576303] io scheduler bfq registered
[ 0.599168] SBI CPPC extension detected
[ 0.882672] printk: legacy console [hvc0] enabled
[ 0.882672] printk: legacy console [hvc0] enabled
[ 0.884398] printk: legacy bootconsole [sbi0] disabled
[ 0.884398] printk: legacy bootconsole [sbi0] disabled
[ 0.891147] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.900259] SuperH (H)SCI(F) driver initialized
[ 0.928765] loop: module loaded
[ 0.939873] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.940361] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.944874] usbcore: registered new interface driver uas
[ 0.945624] usbcore: registered new interface driver usb-storage
[ 0.947561] mousedev: PS/2 mouse device common for all mice
[ 0.951557] sdhci: Secure Digital Host Controller Interface driver
[ 0.952093] sdhci: Copyright(c) Pierre Ossman
[ 0.952619] Synopsys Designware Multimedia Card Interface Driver
[ 0.953319] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.954980] usbcore: registered new interface driver usbhid
[ 0.955432] usbhid: USB HID core driver
[ 0.956295] riscv-pmu-sbi: SBI PMU extension is available
[ 0.957437] riscv-pmu-sbi: 16 firmware and 18 hardware counters
[ 0.957931] riscv-pmu-sbi: Perf sampling/filtering is not supported as sscof extension is not available
[ 0.976078] NET: Registered PF_INET6 protocol family
[ 0.989843] Segment Routing with IPv6
[ 0.990692] In-situ OAM (IOAM) with IPv6
[ 0.991614] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.996377] NET: Registered PF_PACKET protocol family
[ 0.998697] 9pnet: Installing 9P2000 support
[ 0.999510] Key type dns_resolver registered
[ 1.000259] start plist test
[ 1.011158] end plist test
[ 1.054586] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
[ 1.094707] cpufreq: cpufreq_online: ->get() failed
[ 1.099552] clk: Disabling unused clocks
[ 1.100284] ALSA device list:
[ 1.100580] No soundcards found.
[ 1.279469] Freeing unused kernel image (initmem) memory: 9376K
[ 1.282037] Run /init as init process
[ 1.282454] with arguments:
[ 1.282669] /init
[ 1.282845] with environment:
[ 1.283068] HOME=/
[ 1.283243] TERM=linux
Saving 256 bits of non-creditable seed for next boot
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Welcome to Buildroot
buildroot login: root
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment