Re: Please validate test kernel on UltraSPARC machines

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.sparc
Message-ID <14470c5374b3c649baeefccd59aee0204478ee62.camel@physik.fu-berlin.de>
Hi Gregor,

On Mon, 2025-09-08 at 22:09 +0200, Gregor Riepl wrote:
> > Please ignore the 6.16 kernel and other kernels in my home directory. Just the
> > 6.12.38+1-sparc64-smp kernel was meant for testing.
> > 
> > Try power-cycling before booting the 6.12.38+1-sparc64-smp kernel.
> 
> Ok, so... after power-cycling the machine _completely_ and giving it a rest for 24h, it finally managed to boot. 🎉
> 
> Interestingly, I didn't get those weird uninitialized strings this time:
> 
> [  +0.161141] crc32c_sparc64: sparc64 crc32c opcode not available.
> [  +0.416989] EXT4-fs (dm-1): mounted filesystem 12345678-aaaa-bbbb-cccc-0123456789abc ro with ordered data mode. Quota mode: none.

Yes, we've got reports that clearing the NV-RAM can help in such cases.

> $ uname -a
> Linux kirara 6.12.38+1-sparc64-smp #1 SMP Debian 6.12.38-1+sparc64 (2025-07-16) sparc64 GNU/Linux
> 
> $ cat /proc/cpuinfo
> cpu             : TI UltraSparc IIIi (Jalapeno)
> fpu             : UltraSparc IIIi integrated FPU
> pmu             : ultra3i
> prom            : OBP 4.22.18 2006/08/09 20:17
> type            : sun4u
> ncpus probed    : 2
> ncpus active    : 2
> D$ parity tl1   : 0
> I$ parity tl1   : 0
> cpucaps         : flush,stbar,swap,muldiv,v9,ultra3,mul32,div32,v8plus,vis,vis2
> Cpu0ClkTck      : 0000000059a53800
> Cpu1ClkTck      : 0000000059a53800
> MMU Type        : Cheetah+
> MMU PGSZs       : 8K,64K,512K,4MB
> State:
> CPU0:           online
> CPU1:           online
> 
> It's not very stable, though... after writing a few things to disk, it oopses:
> 
> [ 2241.965943] Error: Driver 'ecpp' is already registered, aborting...
> [ 2242.049496] BUG: Bad page map in process modprobe  pte:104c64e0 pmd:06510000
> [ 2242.142616] page: refcount:1 mapcount:-1 mapping:000000007f685d2d index:0x6e pfn:0x8263
> [ 2242.248170] memcg:fff0000004aa6800
> [ 2242.293075] aops:ext4_exit_fs [ext4] ino:5e0354 dentry name(?):"ata_id"
> [ 2242.380456] flags: 0x400000000000082c(referenced|uptodate|lru|owner_2|zone=0)
> [ 2242.474602] raw: 400000000000082c 000c00000024ab98 000c00000024ac28 fff0000002a11df8
> [ 2242.576731] raw: 000000000000006e 0000000000000000 fffffffe00000001 fff0000004aa6800
> [ 2242.678904] raw: fff00000104c6000
> [ 2242.722544] page dumped because: bad pte
> [ 2242.774249] addr:000007feff8b2000 vm_flags:00100173 anon_vma:fff0001002c6ec98 mapping:0000000000000000 index:3ff7fffc
> [ 2242.914181] file:(null) fault:0x0 mmap:0x0 read_folio:0x0
> [ 2242.985384] CPU: 1 UID: 0 PID: 1267 Comm: modprobe Not tainted 6.12.38+1-sparc64-smp #1  Debian 6.12.38-1+sparc64
> [ 2242.985397] Call Trace:
> [ 2242.985400] [<0000000000f11864>] dump_stack+0x8/0x18
> [ 2242.985421] [<00000000006ee4ac>] print_bad_pte+0x16c/0x1c0
> [ 2242.985435] [<00000000006f0134>] unmap_page_range+0x6d4/0x1140
> [ 2242.985446] [<00000000006f0c18>] unmap_single_vma.isra.0+0x78/0xe0
> [ 2242.985455] [<00000000006f10c0>] unmap_vmas+0x60/0x1a0
> [ 2242.985463] [<00000000006fdc74>] exit_mmap+0xd4/0x460
> [ 2242.985471] [<000000000046a23c>] __mmput+0x3c/0x140
> [ 2242.985486] [<000000000046a374>] mmput+0x34/0x60
> [ 2242.985495] [<0000000000473d5c>] do_exit+0x29c/0xae0
> [ 2242.985507] [<0000000000474764>] do_group_exit+0x24/0xa0
> [ 2242.985515] [<00000000004747fc>] sys_exit_group+0x1c/0x40
> [ 2242.985523] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
> [ 2243.990833] Disabling lock debugging due to kernel taint
> [ 2244.061058] unrecognized swap entry 0x9c00000000000082
> [ 2244.128767] ------------[ cut here ]------------
> [ 2244.189626] WARNING: CPU: 1 PID: 1267 at mm/memory.c:1674 unmap_page_range+0x111c/0x1140
> [ 2244.296273] Modules linked in: parport_pc evdev st parport binfmt_misc flash sg drm drm_panel_orientation_quirks i2c_core configfs nfnetlink ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic dm_mod sd_mod sr_mod cdrom ata_generic pata_ali ohci_pci libata ehci_pci mptsas mptscsih ehci_hcd ohci_hcd mptbase scsi_transport_sas scsi_mod tg3 usbcore libphy scsi_common usb_common [last unloaded: parport_pc]
> [ 2244.782469] CPU: 1 UID: 0 PID: 1267 Comm: modprobe Tainted: G    B              6.12.38+1-sparc64-smp #1  Debian 6.12.38-1+sparc64
> [ 2244.782481] Tainted: [B]=BAD_PAGE
> [ 2244.782484] Call Trace:
> [ 2244.782487] [<0000000000f11864>] dump_stack+0x8/0x18
> [ 2244.782499] [<000000000046e15c>] __warn+0xdc/0x140
> [ 2244.782507] [<000000000046e26c>] warn_slowpath_fmt+0xac/0x140
> [ 2244.782514] [<00000000006f0b7c>] unmap_page_range+0x111c/0x1140
> [ 2244.782524] [<00000000006f0c18>] unmap_single_vma.isra.0+0x78/0xe0
> [ 2244.782532] [<00000000006f10c0>] unmap_vmas+0x60/0x1a0
> [ 2244.782541] [<00000000006fdc74>] exit_mmap+0xd4/0x460
> [ 2244.782548] [<000000000046a23c>] __mmput+0x3c/0x140
> [ 2244.782558] [<000000000046a374>] mmput+0x34/0x60
> [ 2244.782567] [<0000000000473d5c>] do_exit+0x29c/0xae0
> [ 2244.782576] [<0000000000474764>] do_group_exit+0x24/0xa0
> [ 2244.782584] [<00000000004747fc>] sys_exit_group+0x1c/0x40
> [ 2244.782592] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
> [ 2244.782626] ---[ end trace 0000000000000000 ]---
> [ 2245.980840] ------------[ cut here ]------------
> [ 2246.041694] WARNING: CPU: 0 PID: 1267 at fs/ext4/inode.c:3569 ext4_dirty_folio+0x74/0xe0 [ext4]
> [ 2246.156656] Modules linked in: parport_pc evdev st parport binfmt_misc flash sg drm drm_panel_orientation_quirks i2c_core configfs nfnetlink ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic dm_mod sd_mod sr_mod cdrom ata_generic pata_ali ohci_pci libata ehci_pci mptsas mptscsih ehci_hcd ohci_hcd mptbase scsi_transport_sas scsi_mod tg3 usbcore libphy scsi_common usb_common [last unloaded: parport_pc]
> [ 2246.642850] CPU: 0 UID: 0 PID: 1267 Comm: modprobe Tainted: G    B   W          6.12.38+1-sparc64-smp #1  Debian 6.12.38-1+sparc64
> [ 2246.642865] Tainted: [B]=BAD_PAGE, [W]=WARN
> [ 2246.642870] Call Trace:
> [ 2246.642874] [<0000000000f11864>] dump_stack+0x8/0x18
> [ 2246.642897] [<000000000046e15c>] __warn+0xdc/0x140
> [ 2246.642907] [<000000000046e26c>] warn_slowpath_fmt+0xac/0x140
> [ 2246.642915] [<00000000102fde94>] ext4_dirty_folio+0x74/0xe0 [ext4]
> [ 2246.643005] [<00000000006acfbc>] folio_mark_dirty+0x3c/0xa0
> [ 2246.643026] [<00000000006f05a4>] unmap_page_range+0xb44/0x1140
> [ 2246.643041] [<00000000006f0c18>] unmap_single_vma.isra.0+0x78/0xe0
> [ 2246.643050] [<00000000006f10c0>] unmap_vmas+0x60/0x1a0
> [ 2246.643059] [<00000000006fdc74>] exit_mmap+0xd4/0x460
> [ 2246.643067] [<000000000046a23c>] __mmput+0x3c/0x140
> [ 2246.643084] [<000000000046a374>] mmput+0x34/0x60
> [ 2246.643093] [<0000000000473d5c>] do_exit+0x29c/0xae0
> [ 2246.643106] [<0000000000474764>] do_group_exit+0x24/0xa0
> [ 2246.643115] [<00000000004747fc>] sys_exit_group+0x1c/0x40
> [ 2246.643123] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
> [ 2246.643139] ---[ end trace 0000000000000000 ]---
> [ 2248.004693] ------------[ cut here ]------------
> [ 2248.065428] WARNING: CPU: 0 PID: 1267 at fs/ext4/inode.c:3570 ext4_dirty_folio+0xb4/0xe0 [ext4]
> [ 2248.180112] Modules linked in: parport_pc evdev st parport binfmt_misc flash sg drm drm_panel_orientation_quirks i2c_core configfs nfnetlink ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic dm_mod sd_mod sr_mod cdrom ata_generic pata_ali ohci_pci libata ehci_pci mptsas mptscsih ehci_hcd ohci_hcd mptbase scsi_transport_sas scsi_mod tg3 usbcore libphy scsi_common usb_common [last unloaded: parport_pc]
> [ 2248.666179] CPU: 0 UID: 0 PID: 1267 Comm: modprobe Tainted: G    B   W          6.12.38+1-sparc64-smp #1  Debian 6.12.38-1+sparc64
> [ 2248.666191] Tainted: [B]=BAD_PAGE, [W]=WARN
> [ 2248.666194] Call Trace:
> [ 2248.666197] [<0000000000f11864>] dump_stack+0x8/0x18
> [ 2248.666209] [<000000000046e15c>] __warn+0xdc/0x140
> [ 2248.666216] [<000000000046e26c>] warn_slowpath_fmt+0xac/0x140
> [ 2248.666223] [<00000000102fded4>] ext4_dirty_folio+0xb4/0xe0 [ext4]
> [ 2248.666300] [<00000000006acfbc>] folio_mark_dirty+0x3c/0xa0
> [ 2248.666312] [<00000000006f05a4>] unmap_page_range+0xb44/0x1140
> [ 2248.666323] [<00000000006f0c18>] unmap_single_vma.isra.0+0x78/0xe0
> [ 2248.666332] [<00000000006f10c0>] unmap_vmas+0x60/0x1a0
> [ 2248.666340] [<00000000006fdc74>] exit_mmap+0xd4/0x460
> [ 2248.666347] [<000000000046a23c>] __mmput+0x3c/0x140
> [ 2248.666358] [<000000000046a374>] mmput+0x34/0x60
> [ 2248.666366] [<0000000000473d5c>] do_exit+0x29c/0xae0
> [ 2248.666375] [<0000000000474764>] do_group_exit+0x24/0xa0
> [ 2248.666383] [<00000000004747fc>] sys_exit_group+0x1c/0x40
> [ 2248.666392] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
> [ 2248.666402] ---[ end trace 0000000000000000 ]---
> [ 2250.028415] BUG: Bad page state in process modprobe  pfn:08263
> [ 2250.105408] page: refcount:0 mapcount:-1 mapping:000000007f685d2d index:0x6e pfn:0x8263
> [ 2250.211036] aops:ext4_exit_fs [ext4] ino:5e0354 dentry name(?):"ata_id"
> [ 2250.298453] flags: 0x80c(referenced|uptodate|owner_2|zone=0)
> [ 2250.372998] raw: 000000000000080c 0000000000000100 0000000000000122 fff0000002a11df8
> [ 2250.475072] raw: 000000000000006e 0000000000000000 fffffffe00000000 0000000000000000
> [ 2250.577151] raw: fff00000104c6000
> [ 2250.620788] page dumped because: non-NULL mapping
> [ 2250.682688] Modules linked in: parport_pc evdev st parport binfmt_misc flash sg drm drm_panel_orientation_quirks i2c_core configfs nfnetlink ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic dm_mod sd_mod sr_mod cdrom ata_generic pata_ali ohci_pci libata ehci_pci mptsas mptscsih ehci_hcd ohci_hcd mptbase scsi_transport_sas scsi_mod tg3 usbcore libphy scsi_common usb_common [last unloaded: parport_pc]
> [ 2251.168754] CPU: 1 UID: 0 PID: 1267 Comm: modprobe Tainted: G    B   W          6.12.38+1-sparc64-smp #1  Debian 6.12.38-1+sparc64
> [ 2251.168768] Tainted: [B]=BAD_PAGE, [W]=WARN
> [ 2251.168772] Call Trace:
> [ 2251.168775] [<0000000000f11864>] dump_stack+0x8/0x18
> [ 2251.168794] [<0000000000717ff4>] bad_page+0xf4/0x120
> [ 2251.168805] [<000000000071d934>] free_unref_folios+0x6b4/0x860
> [ 2251.168815] [<00000000006b4788>] folios_put_refs+0x148/0x1a0
> [ 2251.168826] [<00000000007330e4>] free_pages_and_swap_cache+0x124/0x140
> [ 2251.168835] [<0000000000700c00>] tlb_flush_mmu+0xa0/0x1c0
> [ 2251.168845] [<00000000006f04b8>] unmap_page_range+0xa58/0x1140
> [ 2251.168857] [<00000000006f0c18>] unmap_single_vma.isra.0+0x78/0xe0
> [ 2251.168866] [<00000000006f10c0>] unmap_vmas+0x60/0x1a0
> [ 2251.168875] [<00000000006fdc74>] exit_mmap+0xd4/0x460
> [ 2251.168882] [<000000000046a23c>] __mmput+0x3c/0x140
> [ 2251.168897] [<000000000046a374>] mmput+0x34/0x60
> [ 2251.168906] [<0000000000473d5c>] do_exit+0x29c/0xae0
> [ 2251.168917] [<0000000000474764>] do_group_exit+0x24/0xa0
> [ 2251.168926] [<00000000004747fc>] sys_exit_group+0x1c/0x40
> [ 2251.168934] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
> [ 2251.168949] BUG: Bad page state in process modprobe  pfn:08267
> [ 2252.627105] page: refcount:0 mapcount:-1 mapping:000000007f685d2d index:0x72 pfn:0x8267
> [ 2252.732632] aops:ext4_exit_fs [ext4] ino:5e0354 dentry name(?):"ata_id"
> [ 2252.819929] flags: 0x818(uptodate|dirty|owner_2|zone=0)
> [ 2252.888776] raw: 0000000000000818 0000000000000100 0000000000000122 fff0000002a11df8
> [ 2252.990880] raw: 0000000000000072 0000000000000000 fffffffe00000000 0000000000000000
> [ 2253.092937] raw: fff00000104ce000
> [ 2253.136593] page dumped because: non-NULL mapping
> [ 2253.198559] Modules linked in: parport_pc evdev st parport binfmt_misc flash sg drm drm_panel_orientation_quirks i2c_core configfs nfnetlink ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic dm_mod sd_mod sr_mod cdrom ata_generic pata_ali ohci_pci libata ehci_pci mptsas mptscsih ehci_hcd ohci_hcd mptbase scsi_transport_sas scsi_mod tg3 usbcore libphy scsi_common usb_common [last unloaded: parport_pc]
> [ 2253.684620] CPU: 1 UID: 0 PID: 1267 Comm: modprobe Tainted: G    B   W          6.12.38+1-sparc64-smp #1  Debian 6.12.38-1+sparc64
> [ 2253.684632] Tainted: [B]=BAD_PAGE, [W]=WARN
> [ 2253.684636] Call Trace:
> [ 2253.684638] [<0000000000f11864>] dump_stack+0x8/0x18
> [ 2253.684651] [<0000000000717ff4>] bad_page+0xf4/0x120
> [ 2253.684659] [<000000000071d934>] free_unref_folios+0x6b4/0x860
> [ 2253.684667] [<00000000006b4788>] folios_put_refs+0x148/0x1a0
> [ 2253.684676] [<00000000007330e4>] free_pages_and_swap_cache+0x124/0x140
> [ 2253.684684] [<0000000000700c00>] tlb_flush_mmu+0xa0/0x1c0
> [ 2253.684692] [<00000000006f04b8>] unmap_page_range+0xa58/0x1140
> [ 2253.684702] [<00000000006f0c18>] unmap_single_vma.isra.0+0x78/0xe0
> [ 2253.684711] [<00000000006f10c0>] unmap_vmas+0x60/0x1a0
> [ 2253.684719] [<00000000006fdc74>] exit_mmap+0xd4/0x460
> [ 2253.684726] [<000000000046a23c>] __mmput+0x3c/0x140
> [ 2253.684736] [<000000000046a374>] mmput+0x34/0x60
> [ 2253.684745] [<0000000000473d5c>] do_exit+0x29c/0xae0
> [ 2253.684754] [<0000000000474764>] do_group_exit+0x24/0xa0
> [ 2253.684762] [<00000000004747fc>] sys_exit_group+0x1c/0x40
> [ 2253.684771] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
> [ 2253.685399] BUG: Bad rss-counter state mm:000000000d782b50 type:MM_FILEPAGES val:-3
> [ 2255.033530] EXT4-fs warning (device dm-1): mpage_prepare_extent_to_map:2509: inode #6161236: comm kworker/u8:0: page 114 does not have buffers attached
> [ 2255.066632] BUG: Bad rss-counter state mm:000000000d782b50 type:MM_ANONPAGES val:3
> [ 2255.485516] lp: driver loaded but no devices found
> [ 2255.558277] Unable to handle kernel NULL pointer dereference
> [ 2255.632864] tsk->{mm,active_mm}->context = 00000000000005e8
> [ 2255.706263] tsk->{mm,active_mm}->pgd = fff0000008ab0000
> [ 2255.775104]               \|/ ____ \|/
> [ 2255.775104]               "@'/ .. \`@"
> [ 2255.775104]               /_| \__/ |_\
> [ 2255.775104]                  \__U_/
> [ 2255.968848] hwinfo(1259): Oops [#1]
> [ 2256.014758] CPU: 1 UID: 0 PID: 1259 Comm: hwinfo Tainted: G    B   W          6.12.38+1-sparc64-smp #1  Debian 6.12.38-1+sparc64
> [ 2256.167278] Tainted: [B]=BAD_PAGE, [W]=WARN
> [ 2256.222351] TSTATE: 0000009911001605 TPC: 000000000052b79c TNPC: 000000000052b7a0 Y: 00000002    Tainted: G    B   W
> [ 2256.371421] TPC: <m_show+0x9c/0x200>
> [ 2256.418490] g0: 0000000000000000 g1: 0000000000000027 g2: 0000000000000000 g3: 0000000000000001
> [ 2256.533188] g4: fff0000008b960c0 g5: fff000103e582000 g6: fff0001002b78000 g7: 0000000000000031
> [ 2256.647923] o0: fff0001002cc0d20 o1: 00000000010f9830 o2: ffffffffffffffff o3: 0000000000000000
> [ 2256.762582] o4: 0000000000002000 o5: fff0000000006540 sp: fff0001002b7b0c1 ret_pc: 000000000052b780
> [ 2256.881853] RPC: <m_show+0x80/0x200>
> [ 2256.928892] l0: 00000000104ca400 l1: 00000000011b3000 l2: aa37751e815afc87 l3: 0000000000003fff
> [ 2257.043494] l4: 0000000000000005 l5: fff0000100034000 l6: 0000000025691921 l7: fff00000001b2f00
> [ 2257.158193] i0: fff0001002cc0d20 i1: 00000000104ca408 i2: fff0001002b7b978 i3: 00000000104ca828
> [ 2257.272897] i4: 00000000010f9838 i5: 0000000000000000 i6: fff0001002b7b191 i7: 00000000007be060
> [ 2257.387548] I7: <seq_read_iter+0x380/0x500>
> [ 2257.442638] Call Trace:
> [ 2257.474828] [<00000000007be060>] seq_read_iter+0x380/0x500
> [ 2257.547125] [<00000000007be2dc>] seq_read+0xfc/0x120
> [ 2257.612531] [<000000000082cf60>] proc_reg_read+0xa0/0xe0
> [ 2257.682535] [<0000000000786e44>] vfs_read+0x64/0x2e0
> [ 2257.747945] [<00000000007879b4>] ksys_read+0x54/0xe0
> [ 2257.813365] [<0000000000787a54>] sys_read+0x14/0x40
> [ 2257.877634] [<0000000000406274>] linux_sparc_syscall+0x34/0x44
> [ 2257.954511] Caller[00000000007be060]: seq_read_iter+0x380/0x500
> [ 2258.032527] Caller[00000000007be2dc]: seq_read+0xfc/0x120
> [ 2258.103671] Caller[000000000082cf60]: proc_reg_read+0xa0/0xe0
> [ 2258.179400] Caller[0000000000786e44]: vfs_read+0x64/0x2e0
> [ 2258.250545] Caller[00000000007879b4]: ksys_read+0x54/0xe0
> [ 2258.321688] Caller[0000000000787a54]: sys_read+0x14/0x40
> [ 2258.391715] Caller[0000000000406274]: linux_sparc_syscall+0x34/0x44
> [ 2258.474288] Caller[fff00001003a5348]: 0xfff00001003a5348
> [ 2258.544288] Instruction DUMP:
> [ 2258.544293]  02600050
> [ 2258.583342]  390043e6
> [ 2258.614303]  b8172038
> [ 2258.645328] <d45f6020>
> [ 2258.676379]  9210001c
> [ 2258.707409]  90100018
> [ 2258.738457]  400a483e
> [ 2258.769500]  9402a018
> [ 2258.800540]  fa5f4000
> [ 2258.831574]

This is most likely due to CONFIG_TRANSPARENT_HUGEPAGE being enabled. I'm currently
building a kernel package with the feature turned off. Kernel package should be
available in about an hour.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.