On 25/10/23 12:51PM, shivang upadhyay wrote: > > > <...snip...> > > > MAINTAINERS | 8 + > > hw/ppc/meson.build | 1 + > > hw/ppc/spapr.c | 69 ++ > > hw/ppc/spapr_fadump.c | 730 ++++++++++++++++++++++ > > hw/ppc/spapr_rtas.c | 76 +++ > > include/hw/ppc/spapr.h | 11 +- > > include/hw/ppc/spapr_fadump.h | 124 ++++ > > tests/functional/ppc64/meson.build | 2 + > > tests/functional/ppc64/test_fadump.py | 182 ++++++ > > tests/functional/qemu_test/linuxkernel.py | 59 ++ > > 10 files changed, 1261 insertions(+), 1 deletion(-) > > create mode 100644 hw/ppc/spapr_fadump.c > > create mode 100644 include/hw/ppc/spapr_fadump.h > > create mode 100755 tests/functional/ppc64/test_fadump.py > > I've tested this patch series on the fedora-42 cloud images [1], and > buildroot `qemu_ppc64_pseries_defconfig` image. > Tested-by:Shivang Upadhyay <[email protected]>
Thanks for testing the patches, Shivang ! - Aditya G > following are the logs for fedora test. > kernel command line > # grubby --info=ALL > .... > args="no_timer_checkconsole=tty1console=ttyS0,115200n8systemd.firstboot=offrootflags=subvol=rootfadump=on" > .... > triggeringthepanic > # echo c > /proc/sysrq-trigger > [390.457957]sysrq:Triggeracrash > [390.462183]Kernelpanic-notsyncing:sysrqtriggeredcrash > [390.463285]CPU:0UID:0PID:1081Comm:bashNottainted6.14.0-63.fc42.ppc64le#1 > [390.464074]Hardwarename:IBMpSeries(emulatedbyqemu)POWER10(architected)0x8012000xf000006of:SLOF,git-ee03aepSeries > [390.465359]CallTrace: > [390.465675][c000000007023890][c000000001787a64]dump_stack_lvl+0x88/0xc4(unreliable) > [390.467916][c0000000070238c0][c000000000250a44]panic+0x19c/0x4a8 > [390.468555][c000000007023960][c000000000f70684]sysrq_handle_crash+0x24/0x30 > [390.469218][c0000000070239c0][c000000000f71388]__handle_sysrq+0xe8/0x3c0 > [390.469898][c000000007023a90][c000000000f722d0]write_sysrq_trigger+0x1d0/0x268 > [390.470563][c000000007023af0][c0000000008bf620]proc_reg_write+0xf0/0x160 > [390.471184][c000000007023b20][c0000000007b63b8]vfs_write+0x128/0x590 > [390.471791][c000000007023be0][c0000000007b6a10]ksys_write+0x80/0x150 > [390.472388][c000000007023c30][c000000000032980]system_call_exception+0x160/0x310 > [390.473075][c000000007023e50][c00000000000d05c]system_call_vectored_common+0x15c/0x2ec > [390.473826]---interrupt:3000at0x7fffa36a8494 > [390.474653]NIP:00007fffa36a8494LR:00007fffa36a8494CTR:0000000000000000 > [390.475341]REGS:c000000007023e80TRAP:3000Nottainted(6.14.0-63.fc42.ppc64le) > [390.476056]MSR:800000000280f033<SF,VEC,VSX,EE,PR,FP,ME,IR,DR,RI,LE>CR:48222408XER:00000000 > [390.477150]IRQMASK:0 > [390.477150]GPR00:000000000000000400007fffefd0a24000000000001000000000000000000001 > [390.477150]GPR04:000000013fd206c0000000000000000200000000000000000000000000000000 > [390.477150]GPR08:0000000000000000000000000000000000000000000000000000000000000000 > [390.477150]GPR12:000000000000000000007fffa3a0ac20000000012300005c000000013fd59b40 > [390.477150]GPR16:0000000123009528000000013fd3e3f000000000000000010000000122f06460 > [390.477150]GPR20:00000000000000000000000122faea1000000001230096d80000000123008bb8 > [390.477150]GPR24:00000000000000000000000123008ba80000000122fb156000007fffa3841878 > [390.477150]GPR28:000000000000000200007fffa3841790000000013fd206c00000000000000002 > [390.483172]NIP[00007fffa36a8494]0x7fffa36a8494 > [390.483616]LR[00007fffa36a8494]0x7fffa36a8494 > [390.484072]---interrupt:3000 > qemu-system-ppc64:warning:TCGdoesn'tsupportrequestedfeature,cap-cfpc=workaround > qemu-system-ppc64:warning:TCGdoesn'tsupportrequestedfeature,cap-ibs=workaround > qemu-system-ppc64:warning:TCGdoesn'tsupportrequestedfeature,cap-ccf-assist=on > SLOF********************************************************************** > QEMUStarting > BuildDate=Nov6202415:31:54 > FWVersion=git-ee03aec2c106a699 > Press"s"toenterOpenFirmware. > Populating/vdevicemethods > Populating/vdevice/vty@71000000 > Populating/vdevice/nvram@71000001 > Populating/vdevice/l-lan@71000002 > Populating/vdevice/v-scsi@71000003 > SCSI:Lookingfordevices > 8000000000000000DISK:"QEMUQEMUHARDDISK2.5+" > 8200000000000000CD-ROM:"QEMUQEMUCD-ROM2.5+" > Populating/pci@800000020000000 > 000000(D):12341111qemuvga > 000800(D):10330194serialbus[usb-xhci] > InstallingQEMUfb > ScanningUSB > XHCI:Initializing > USBKeyboard > USBmouse > Usingdefaultconsole:/vdevice/vty@71000000 > WelcometoOpenFirmware > Copyright(c)2004,2017IBMCorporationAllrightsreserved. > Thisprogramandtheaccompanyingmaterialsaremadeavailable > underthetermsoftheBSDLicenseavailableat > http://www.opensource.org/licenses/bsd-license.php > Tryingtoload:from:/vdevice/v-scsi@71000003/[email protected] > WelcometoGRUB! > error:../../grub-core/term/serial.c:278:serialport`auto'isn'tfound. > error:../../grub-core/commands/terminal.c:138:terminal`serial'isn'tfound. > error:../../grub-core/commands/terminal.c:138:terminal`serial'isn'tfound. > Booting`FedoraLinux(6.14.0-63.fc42.ppc64le)42(CloudEdition)' > OFstdoutdeviceis:/vdevice/vty@71000000 > PreparingtobootLinuxversion6.14.0-63.fc42.ppc64le(mockbuild@6dfdb20f66f3497abc344a07ba6fd9d1)(gcc(GCC)15.0.120250228(RedHat15.0.1-0),GNUldversion2.44-3.fc42)#1 > SMP Mon Mar 24 19:38:12 UTC 2025 > Detectedmachinetype:0000000000000101 > commandline:BOOT_IMAGE=(ieee1275/disk,gpt2)/vmlinuz-6.14.0-63.fc42.ppc64leno_timer_checkconsole=tty1console=ttyS0,115200n8systemd.firstboot=offroot=UUID=1226ffcb-9b43-42cd-9265-c87dfc50b214rootflags=subvol=rootfadump=on > Maxnumberofcorespassedtofirmware:2048(NR_CPUS=2048) > Callingibm,client-architecture-support...done > memorylayoutatinit: > memory_limit:0000000000000000(16MBaligned) > alloc_bottom:000000000ac50000 > alloc_top:0000000030000000 > alloc_top_hi:0000000280000000 > rmo_top:0000000030000000 > ram_top:0000000280000000 > founddisplay:/pci@800000020000000/vga@0,opening...done > instantiatingrtasat0x000000002fff0000...done > prom_hold_cpus:skipped > copyingOFdevicetree... > Buildingdtstrings... > Buildingdtstructure... > Devicetreestrings0x000000000ac60000->0x000000000ac60c96 > Devicetreestruct0x000000000ac70000->0x000000000ac80000 > QuiescingOpenFirmware... > BootingLinuxvia__start()@0x0000000002300000... > [0.000000]rtasfadump:Firmware-assisteddumpisactive. > [0.000000]random:crnginitdone > [0.000000]fadump:Updatedcmdline:BOOT_IMAGE=(ieee1275/disk,gpt2)/vmlinuz-6.14.0-63.fc42.ppc64leno_timer_checkconsole=tty1console=ttyS0,115200n8systemd.firstboot=offroot=UUID=1226ffcb-9b43-42cd-9265-c87dfc50b214rootflags=subvol=rootfadump=on > [0.000000]fadump:Firmware-assisteddumpisactive. > [0.000000]fadump:Reserving9728MBofmemoryat0x00000020000000forpreservingcrashdata > [0.000000]radix-mmu:Pagesizesfromdevice-tree: > [0.000000]radix-mmu:Pagesizeshift=12AP=0x0 > [0.000000]radix-mmu:Pagesizeshift=16AP=0x5 > [0.000000]radix-mmu:Pagesizeshift=21AP=0x1 > [0.000000]radix-mmu:Pagesizeshift=30AP=0x2 > .... > openingthegeneratedinvmcoreincrash(vmlinuxdebugsourcetakenfrom[2]). > # crash ./vmcore ./vmlinux > crash9.0.0++ > .... > Forhelp,type"help". > Type"aproposword"tosearchforcommandsrelatedto"word"... > KERNEL:/home/crash-images/vmlinux > DUMPFILE:./vmcore[PARTIALDUMP] > CPUS:1 > DATE:WedDec3119:00:00EST1969 > UPTIME:00:04:33 > LOADAVERAGE:1.14,1.50,0.73 > TASKS:111 > NODENAME:localhost > RELEASE:6.14.0-63.fc42.ppc64le > VERSION:#1 SMP Mon Mar 24 19:38:12 UTC 2025 > MACHINE:ppc64le(1000Mhz) > MEMORY:10GB > PANIC:"Kernelpanic-notsyncing:sysrqtriggeredcrash" > PID:1084 > COMMAND:"bash" > TASK:c000000007057580[THREAD_INFO:c000000007057580] > CPU:0 > STATE:TASK_RUNNING(PANIC) > crash> > .... > [1]https://fedoraproject.org/cloud/download/ > [2]https://archive.fedoraproject.org/pub/fedora-secondary/releases/42/Server/ppc64le/debug/tree/Packages/k/kernel-debuginfo-6.14.0-63.fc42.ppc64le.rpm
