PowerMac G5 fails booting kernel 6.6-rc3 (BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe)
Subsystems (2)
Erhard Furtner
Acked-by Mike Rapoport (IBM)Greetings!
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
[...]
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.NR_IRQS: 512, nr_irqs: 512, preallocated irqs: 16
mpic: Setting up MPIC " MPIC 1 " version 1.2 at f8040000, max 2 CPUs
mpic: ISU size: 124, shift: 7, mask: 7f
mpic: Initializing for 124 sources
mpic: Setting up HT PICs workarounds for U3/U4
BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe Faulting instruction address: 0xc00000000005dc40 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc3-PMacGS #1 Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac NIP: c00000000005dc40 LR: c000000000066660 CTR: c000000000007730 REGS: c0000000022bf510 TRAP: 0380 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 44004242 XER: 00000000
IRQMASK: 3
GPR00: 0000000000000000 c0000000022bf7b0 c0000000010c0b00 00000000000001ac
GPR04: 0000000003c80000 0000000000000300 c0000000f20001ae 0000000000000300
GPR08: 0000000000000006 feffbb62ffec65ff 0000000000000001 0000000000000000
GPR12: 9000000000001032 c000000002362000 c000000000f76b80 000000000349ecd8
GPR16: 0000000002367ba8 0000000002367f08 0000000000000006 0000000000000000
GPR20: 00000000000001ac c000000000f6f920 c0000000022cd985 000000000000000c
GPR24: 0000000000000300 00000003b0a3691d c0003e008030000e 0000000000000000
GPR28: c00000000000000c c0000000f20001ee feffbb62ffec65fe 00000000000001ac NIP [c00000000005dc40] hash_page_do_lazy_icache+0x50/0x100
LR [c000000000066660] __hash_page_4K+0x420/0x590
Call Trace:
[c0000000022bf7e0] [ffffffffffffffff] 0xffffffffffffffff [c0000000022bf8c0] [c00000000005e164] hash_page_mm+0x364/0x6f0 [c0000000022bf990] [c00000000005e684] do_hash_fault+0x114/0x2b0 [c0000000022bf9c0] [c0000000000078e8] data_access_common_virt+0x198/0x1f0 --- interrupt: 300 at mpic_init+0x4bc/0x10c4
NIP: c000000002020a5c LR: c000000002020a04 CTR: 0000000000000000 REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 24004248 XER: 00000000 DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 GPR00: 0000000000000000 c0000000022bfc90 c0000000010c0b00 c0003e0080300000 GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR08: 0000000000000000 221b80894c06df2f 0000000000000000 0000000000000000 GPR12: 0000000000000000 c000000002362000 c000000000f76b80 000000000349ecd8 GPR16: 0000000002367ba8 0000000002367f08 0000000002367c70 0000000000000000 GPR20: 567ce25e8c9202b7 c000000000f6f920 0000000000000001 c0003e0080300000 GPR24: c00000000226f348 0000000000000004 c00000000404c640 0000000000000000 GPR28: c0003e0080300000 c00000000404c000 45886d8559cb69b4 c0000000022bfc90
NIP [c00000000005dc40] mpic_init+0x4bc/0x10c4
LR [c000000000066660] mpic_init+0x464/0x10c4
~~~ interrupt: 300
[c0000000022bfd90] [c000000002022ae4] pmac_setup_one_mpic+0x258/0x2dc [c0000000022bf2e0] [c000000002022df4] pmac_pic_init+0x28c/0x3d8 [c0000000022bfef0] [c00000000200b750] init_IRQ+0x90/0x140 [c0000000022bff30] [c0000000020053c0] start_kernel+0x57c/0x78c [c0000000022bffe0] [c00000000000cb48] start_here_common+0x1c/0x20
Code: 09290000 7c292040 4081007c fbc10020 3d220127 78843664 3929d700 ebc90000 7fde2214 e93e0000 712a0001 40820064 <e93e0000> 71232000 40820048 e93e0000 ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Fatal exception
Rebooting in 40 seconds..
I bisected the issue and got 9fee28baa601f4dbf869b1373183b312d2d5ef3d as 1st bad commit:
# git bisect good 9fee28baa601f4dbf869b1373183b312d2d5ef3d is the first bad commit commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d Author: Matthew Wilcox (Oracle) <[email protected]> Date: Wed Aug 2 16:13:49 2023 +0100
powerpc: implement the new page table range API
Add set_ptes(), update_mmu_cache_range() and flush_dcache_folio(). Change the PG_arch_1 (aka PG_dcache_dirty) flag from being per-page to per-folio.
arch/powerpc/include/asm/book3s/32/pgtable.h | 5 --- arch/powerpc/include/asm/book3s/64/pgtable.h | 6 +--- arch/powerpc/include/asm/book3s/pgtable.h | 11 ++---- arch/powerpc/include/asm/cacheflush.h | 14 +++++--- arch/powerpc/include/asm/kvm_ppc.h | 10 +++--- arch/powerpc/include/asm/nohash/pgtable.h | 16 +++------ arch/powerpc/include/asm/pgtable.h | 12 +++++++ arch/powerpc/mm/book3s64/hash_utils.c | 11 +++--- arch/powerpc/mm/cacheflush.c | 41 ++++++++------------- arch/powerpc/mm/nohash/e500_hugetlbpage.c | 3 +- arch/powerpc/mm/pgtable.c | 53 ++++++++++++++++------------ 11 files changed, 89 insertions(+), 93 deletions(-)
And indeed when I revert commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d I get a booting kernel again. I reverted the commit on top of 864609c6a0b5f0464f6ec7869cb2a45a529c35d7 (HEAD) as I get build issues when I revert it on top of 6.6-rc3.
dmesg of the successful boot with the reverted commit attached, also kernel .config and the bisect.log.
Regards,
Erhard F.
git bisect start
# Status: warte auf guten und schlechten Commit
# bad: [6465e260f48790807eef06b583b38ca9789b6072] Linux 6.6-rc3
git bisect bad 6465e260f48790807eef06b583b38ca9789b6072
# Status: warte auf gute(n) Commit(s), schlechter Commit bekannt
# good: [2dde18cd1d8fac735875f2e4987f11817cc0bc2c] Linux 6.5
git bisect good 2dde18cd1d8fac735875f2e4987f11817cc0bc2c
# bad: [4fb0dacb78c6a041bbd38ddd998df806af5c2c69] Merge tag 'sound-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
git bisect bad 4fb0dacb78c6a041bbd38ddd998df806af5c2c69
# good: [bd6c11bc43c496cddfc6cf603b5d45365606dbd5] Merge tag 'net-next-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
git bisect good bd6c11bc43c496cddfc6cf603b5d45365606dbd5
# good: [3698a75f5a98d0a6599e2878ab25d30a82dd836a] Merge tag 'drm-intel-next-fixes-2023-08-24' of git://anongit.freedesktop.org/drm/drm-intel into drm-next git bisect good 3698a75f5a98d0a6599e2878ab25d30a82dd836a
# bad: [872459663c52f5e8a28c0cb6df08b77d6c24ab46] Merge tag 'Smack-for-6.6' of https://github.com/cschaufler/smack-next
git bisect bad 872459663c52f5e8a28c0cb6df08b77d6c24ab46
# good: [063e409dcc37a5834fe94342b3cbcfe17d094eed] openrisc: implement the new page table range API
git bisect good 063e409dcc37a5834fe94342b3cbcfe17d094eed
# bad: [adfd671676c922bada16477eb68b5eb5f065addc] Merge tag 'sysctl-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux
git bisect bad adfd671676c922bada16477eb68b5eb5f065addc
# bad: [b96a3e9142fdf346b05b20e867b4f0dfca119e96] Merge tag 'mm-stable-2023-08-28-18-26' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect bad b96a3e9142fdf346b05b20e867b4f0dfca119e96
# good: [9d6b14cd1e993d2ff98df0cef6d935ce6fd4dbec] Merge tag 'flex-array-transformations-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
git bisect good 9d6b14cd1e993d2ff98df0cef6d935ce6fd4dbec
# bad: [cfeed8ffe55b37fa10286aaaa1369da00cb88440] mm/swap: stop using page->private on tail pages for THP_SWAP
git bisect bad cfeed8ffe55b37fa10286aaaa1369da00cb88440
# bad: [203b7b6aad6769a43987deb81c35456de8bb16c7] mm: rationalise flush_icache_pages() and flush_icache_page()
git bisect bad 203b7b6aad6769a43987deb81c35456de8bb16c7
# bad: [665f640294540a941aabb81ae46dfc671aff5259] sparc32: implement the new page table range API
git bisect bad 665f640294540a941aabb81ae46dfc671aff5259
# bad: [864609c6a0b5f0464f6ec7869cb2a45a529c35d7] riscv: implement the new page table range API
git bisect bad 864609c6a0b5f0464f6ec7869cb2a45a529c35d7
# bad: [9fee28baa601f4dbf869b1373183b312d2d5ef3d] powerpc: implement the new page table range API
git bisect bad 9fee28baa601f4dbf869b1373183b312d2d5ef3d
# good: [e70bbca607424dbb236cc641adba39c2cc0d65c5] parisc: implement the new page table range API
git bisect good e70bbca607424dbb236cc641adba39c2cc0d65c5
# first bad commit: [9fee28baa601f4dbf869b1373183b312d2d5ef3d] powerpc: implement the new page table range API [ 0.000000] hash-mmu: Initializing hash mmu with SLB [ 0.000000] Linux version 6.5.0-rc4-PMacG5+ (root@T1000) (gcc (Gentoo 12.3.1_p20230526 p2) 12.3.1 20230526, GNU ld (Gentoo 2.40 p7) 2.40.0) #1 SMP Fri Sep 29 11:57:31 CEST 2023 [ 0.000000] ioremap() called early from pmac_feature_init+0x1f0/0x1008. Use early_ioremap() instead [ 0.000000] ioremap() called early from pmac_feature_init+0x278/0x1008. Use early_ioremap() instead [ 0.000000] Found U4 memory controller & host bridge @ 0xf8000000 revision: 0x42 [ 0.000000] Mapped at 0xc0003e0080000000 [ 0.000000] ioremap() called early from probe_one_macio+0x3b8/0x610. Use early_ioremap() instead [ 0.000000] Found a Shasta mac-io controller, rev: 0, mapped at 0x(____ptrval____) [ 0.000000] PowerMac motherboard: PowerMac G5 Dual Core [ 0.000000] ioremap() called early from btext_map+0x6c/0xf0. Use early_ioremap() instead [ 0.000000] ioremap() called early from iommu_init_early_dart+0x270/0x940. Use early_ioremap() instead [ 0.000000] DART table allocated at: (____ptrval____) [ 0.000000] DART IOMMU initialized for U4 type chipset [ 0.000000] Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac [ 0.000000] printk: bootconsole [udbg0] enabled [ 0.000000] CPU maps initialized for 1 thread per core [ 0.000000] ----------------------------------------------------- [ 0.000000] phys_mem_size = 0x400000000 [ 0.000000] dcache_bsize = 0x80 [ 0.000000] icache_bsize = 0x80 [ 0.000000] cpu_features = 0x00000100900c218a [ 0.000000] possible = 0x001ffbebfbffb18f [ 0.000000] always = 0x0000000000000180 [ 0.000000] cpu_user_features = 0xdc080000 0x00000000 [ 0.000000] mmu_features = 0x0c008001 [ 0.000000] firmware_features = 0x0000000000000000 [ 0.000000] vmalloc start = 0xc0003d0000000000 [ 0.000000] IO start = 0xc0003e0000000000 [ 0.000000] vmemmap start = 0xc0003f0000000000 [ 0.000000] hash-mmu: ppc64_pft_size = 0x0 [ 0.000000] hash-mmu: htab_hash_mask = 0x1fffff [ 0.000000] ----------------------------------------------------- [ 0.000000] SMU: Driver 0.7 (c) 2005 Benjamin Herrenschmidt, IBM Corp. [ 0.000000] ioremap() called early from smu_init+0x438/0x5ac. Use early_ioremap() instead [ 0.000000] ioremap() called early from pmac_nvram_init+0x2d0/0x7b4. Use early_ioremap() instead [ 0.000000] nvram: Checking bank 0... [ 0.000000] nvram: gen0=1550, gen1=1549 [ 0.000000] nvram: Active bank is: 0 [ 0.000000] nvram: OF partition at 0x410 [ 0.000000] nvram: XP partition at 0x1020 [ 0.000000] nvram: NR partition at 0x1120 [ 0.000000] barrier-nospec: using ORI speculation barrier [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x000000047fffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000007fffffff] [ 0.000000] node 0: [mem 0x0000000100000000-0x000000047fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000047fffffff] [ 0.000000] percpu: Embedded 20 pages/cpu s44344 r0 d37576 u81920 [ 0.000000] Kernel command line: ro root=/dev/nvme0n1p4 zswap.max_pool_percent=13 slub_debug=FZP page_poison=1 [email protected]/eth0,[email protected]/70:85:C2:30:EC:01 modprobe.blacklist=radeon video=1920x1080 init=/usr/lib/systemd/systemd [ 0.000000] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear) [ 0.000000] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 4120576 [ 0.000000] mem auto-init: stack:all(pattern), heap alloc:off, heap free:off [ 0.000000] Memory: 16135372K/16777216K available (14188K kernel code, 800K rwdata, 18580K rodata, 2160K init, 501K bss, 641844K reserved, 0K cma-reserved) [ 0.000000] ********************************************************** [ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 0.000000] ** ** [ 0.000000] ** This system shows unhashed kernel memory addresses ** [ 0.000000] ** via the console, logs, and other interfaces. This ** [ 0.000000] ** might reduce the security of your system. ** [ 0.000000] ** ** [ 0.000000] ** If you see this message and you are not debugging ** [ 0.000000] ** the kernel, report this immediately to your system ** [ 0.000000] ** administrator! ** [ 0.000000] ** ** [ 0.000000] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 0.000000] ********************************************************** [ 0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies. [ 0.000000] NR_IRQS: 512, nr_irqs: 512, preallocated irqs: 16 [ 0.000000] mpic: Setting up MPIC " MPIC 1 " version 1.2 at f8040000, max 2 CPUs [ 0.000000] mpic: ISU size: 124, shift: 7, mask: 7f [ 0.000000] mpic: Initializing for 124 sources [ 0.000000] mpic: Setting up HT PICs workarounds for U3/U4 [ 0.000000] mpic: - HT:07.0 [0x90] vendor 106b device 0053 has 86 irqs [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000002] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x7b00c4bad, max_idle_ns: 440795202744 ns [ 0.000427] clocksource: timebase mult[1e000005] shift[24] registered [ 0.001092] kfence: initialized - using 2097152 bytes for 255 objects at 0xc00000047e11a000-0xc00000047e31a000 [ 0.001658] Console: colour dummy device 80x25 [ 0.002006] printk: console [tty0] enabled [ 0.002349] printk: bootconsole [udbg0] disabled [ 0.002826] pid_max: default: 32768 minimum: 301 [ 0.003693] LSM: initializing lsm=capability,yama [ 0.003710] Yama: becoming mindful. [ 0.004164] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.004278] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.006227] PowerMac SMP probe found 2 cpus [ 0.006419] KeyWest i2c @0xf8001003 irq 16 /u4@0,f8000000/i2c@f8001000 [ 0.006440] channel 1 bus i2c-bus@1 [ 0.006489] KeyWest i2c @0x80018000 irq 27 /ht@0,f2000000/pci@8/mac-io@7/i2c@18000 [ 0.006507] channel 0 bus i2c-bus@0 [ 0.006516] channel 0 bus i2c-bus@0 [ 0.006567] SMU i2c /smu@0,0/smu-i2c-control@0 [ 0.006605] channel b bus /smu@0,0/smu-i2c-control@0/i2c-bus@b [ 0.006619] channel e bus /smu@0,0/smu-i2c-control@0/i2c-bus@e [ 0.006656] Processor timebase sync using platform function [ 0.006663] mpic: requesting IPIs... [ 0.007277] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1. [ 0.007341] PPC970/FX/MP performance monitor hardware support registered [ 0.007424] rcu: Hierarchical SRCU implementation. [ 0.007432] rcu: Max phase no-delay instances is 1000. [ 0.007752] smp: Bringing up secondary CPUs ... [ 0.009897] smp: Brought up 1 node, 2 CPUs [ 0.010955] devtmpfs: initialized [ 0.016625] Duplicate name in i2c@18000, renamed to "i2c-bus@0#1" [ 0.021168] Found U4-PCIE PCI host bridge. Firmware bus number: 0->255 [ 0.021185] PCI host bridge /pci@0,f0000000 ranges: [ 0.021206] MEM 0x00000000f1000000..0x00000000f1ffffff -> 0x00000000f1000000 [ 0.021219] IO 0x00000000f0000000..0x00000000f07fffff -> 0x0000000000000000 [ 0.021229] MEM 0x00000000b0000000..0x00000000bfffffff -> 0x00000000b0000000 [ 0.021255] Can't get bus-range for /ht@0,f2000000, assume bus 0 [ 0.021427] Found U3-HT PCI host bridge. Firmware bus number: 0->239 [ 0.021434] PCI host bridge /ht@0,f2000000 (primary) ranges: [ 0.021655] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns [ 0.021696] futex hash table entries: 512 (order: 4, 65536 bytes, linear) [ 0.022922] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.029673] HugeTLB: registered 16.0 MiB page size, pre-allocated 0 pages [ 0.029692] HugeTLB: 0 KiB vmemmap can be freed for a 16.0 MiB page [ 0.084289] raid6: altivecx8 gen() 6223 MB/s [ 0.141002] raid6: altivecx4 gen() 6393 MB/s [ 0.197714] raid6: altivecx2 gen() 5884 MB/s [ 0.254427] raid6: altivecx1 gen() 4169 MB/s [ 0.311135] raid6: int64x8 gen() 2787 MB/s [ 0.367847] raid6: int64x4 gen() 3012 MB/s [ 0.424561] raid6: int64x2 gen() 2442 MB/s [ 0.481274] raid6: int64x1 gen() 1683 MB/s [ 0.481281] raid6: using algorithm altivecx4 gen() 6393 MB/s [ 0.481288] raid6: using intx1 recovery algorithm [ 0.481769] iommu: Default domain type: Translated [ 0.481777] iommu: DMA domain TLB invalidation policy: strict mode [ 0.482178] SCSI subsystem initialized [ 0.482561] usbcore: registered new interface driver usbfs [ 0.482599] usbcore: registered new interface driver hub [ 0.482642] usbcore: registered new device driver usb [ 0.483373] PCI: Probing PCI hardware [ 0.483684] PCI host bridge to bus 0000:00 [ 0.483695] pci_bus 0000:00: root bus resource [io 0x80000-0x87ffff] (bus address [0x0000-0x7fffff]) [ 0.483707] pci_bus 0000:00: root bus resource [mem 0xf1000000-0xf1ffffff] [ 0.483716] pci_bus 0000:00: root bus resource [mem 0xb0000000-0xbfffffff] [ 0.483726] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.483736] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to ff [ 0.484219] pci 0000:00:0b.0: [106b:005b] type 01 class 0x060400 [ 0.484269] PCI: Fixup U4 PCIe bridge range: [mem 0xb0000000-0xbfffffff] [ 0.484318] pci 0000:00:0b.0: PME# supported from D0 D3hot D3cold [ 0.486964] IOMMU table initialized, virtual merging enabled [ 0.487203] pci 0000:0a:00.0: [10de:0142] type 00 class 0x030000 [ 0.487227] pci 0000:0a:00.0: reg 0x10: [mem 0xb2000000-0xb2ffffff] [ 0.487247] pci 0000:0a:00.0: reg 0x14: [mem 0xb8000000-0xbfffffff 64bit pref] [ 0.487268] pci 0000:0a:00.0: reg 0x1c: [mem 0xb1000000-0xb1ffffff 64bit] [ 0.487290] pci 0000:0a:00.0: reg 0x30: [mem 0xb0000000-0xb001ffff pref] [ 0.487590] pci 0000:0a:00.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force' [ 0.487612] pci 0000:00:0b.0: PCI bridge to [bus 0a] [ 0.487624] pci 0000:00:0b.0: bridge window [io 0x80000-0x8ffff] [ 0.487634] pci 0000:00:0b.0: bridge window [mem 0xb0000000-0xbfffffff] [ 0.487646] pci 0000:00:0b.0: bridge window [mem 0x00000000-0x000fffff 64bit pref] [ 0.487666] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 0a [ 0.489299] PCI host bridge to bus 0001:00 [ 0.489309] pci_bus 0001:00: root bus resource [io 0x900000-0xcfffff] (bus address [0x0000-0x3fffff]) [ 0.489320] pci_bus 0001:00: root bus resource [mem 0xfa000000-0xffffffff] [ 0.489329] pci_bus 0001:00: root bus resource [mem 0x80000000-0xafffffff] [ 0.489338] pci_bus 0001:00: root bus resource [mem 0xc0000000-0xefffffff] [ 0.489348] pci_bus 0001:00: root bus resource [bus 00-ef] [ 0.489358] pci_bus 0001:00: busn_res: [bus 00-ef] end is updated to ff [ 0.489387] pci 0001:00:00.0: [106b:0074] type 00 class 0x060000 [ 0.489545] pci 0001:00:01.0: [1166:0130] type 01 class 0x060400 [ 0.489757] pci 0001:00:02.0: [1166:0130] type 01 class 0x060400 [ 0.489937] pci 0001:00:03.0: disabling Extended Tags (this device can't handle them) [ 0.489947] pci 0001:00:03.0: [1166:0132] type 01 class 0x060400 [ 0.490161] pci 0001:00:04.0: disabling Extended Tags (this device can't handle them) [ 0.490171] pci 0001:00:04.0: [1166:0132] type 01 class 0x060400 [ 0.490365] pci 0001:00:05.0: disabling Extended Tags (this device can't handle them) [ 0.490376] pci 0001:00:05.0: [1166:0132] type 01 class 0x060400 [ 0.490603] pci 0001:00:06.0: disabling Extended Tags (this device can't handle them) [ 0.490616] pci 0001:00:06.0: [1166:0132] type 01 class 0x060400 [ 0.490813] pci 0001:00:07.0: [106b:0053] type 01 class 0x060400 [ 0.491029] pci 0001:00:08.0: [106b:0054] type 01 class 0x060400 [ 0.491277] pci 0001:00:09.0: [106b:0055] type 01 class 0x060400 [ 0.492276] pci_bus 0001:04: extended config space not accessible [ 0.493402] pci 0001:00:01.0: PCI bridge to [bus 04] [ 0.493441] pci_bus 0001:05: extended config space not accessible [ 0.493667] pci 0001:05:04.0: [14e4:166a] type 00 class 0x020000 [ 0.493688] pci 0001:05:04.0: reg 0x10: [mem 0xfa530000-0xfa53ffff 64bit] [ 0.493703] pci 0001:05:04.0: reg 0x18: [mem 0xfa520000-0xfa52ffff 64bit] [ 0.493758] pci 0001:05:04.0: PME# supported from D3hot D3cold [ 0.493911] pci 0001:05:04.1: [14e4:166a] type 00 class 0x020000 [ 0.493931] pci 0001:05:04.1: reg 0x10: [mem 0xfa510000-0xfa51ffff 64bit] [ 0.493947] pci 0001:05:04.1: reg 0x18: [mem 0xfa500000-0xfa50ffff 64bit] [ 0.494001] pci 0001:05:04.1: PME# supported from D3hot D3cold [ 0.495068] pci 0001:00:02.0: PCI bridge to [bus 05] [ 0.495081] pci 0001:00:02.0: bridge window [mem 0xfa500000-0xfa5fffff] [ 0.495222] pci 0001:06:00.0: [1002:954f] type 00 class 0x030000 [ 0.495249] pci 0001:06:00.0: reg 0x10: [mem 0x90000000-0x9fffffff 64bit pref] [ 0.495269] pci 0001:06:00.0: reg 0x18: [mem 0x80110000-0x8011ffff 64bit] [ 0.495283] pci 0001:06:00.0: reg 0x20: [io 0x900000-0x9000ff] [ 0.495302] pci 0001:06:00.0: reg 0x30: [mem 0x80120000-0x8013ffff pref] [ 0.495362] pci 0001:06:00.0: supports D1 D2 [ 0.495384] pci 0001:06:00.0: 16.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x8 link at 0001:00:03.0 (capable of 32.000 Gb/s with 2.5 GT/s PCIe x16 link) [ 0.495566] pci 0001:06:00.1: [1002:aa38] type 00 class 0x040300 [ 0.495592] pci 0001:06:00.1: reg 0x10: [mem 0x80100000-0x80103fff 64bit] [ 0.495681] pci 0001:06:00.1: supports D1 D2 [ 0.504756] pci 0001:00:03.0: PCI bridge to [bus 06] [ 0.504769] pci 0001:00:03.0: bridge window [io 0x900000-0x900fff] [ 0.504779] pci 0001:00:03.0: bridge window [mem 0x80100000-0x9fffffff] [ 0.504932] pci 0001:00:04.0: PCI bridge to [bus 07] [ 0.505051] pci 0001:08:00.0: [10ec:8168] type 00 class 0x020000 [ 0.505073] pci 0001:08:00.0: reg 0x10: [io 0x901000-0x9010ff] [ 0.505097] pci 0001:08:00.0: reg 0x18: [mem 0xa0000000-0xa0000fff 64bit] [ 0.505116] pci 0001:08:00.0: reg 0x20: [mem 0xa0004000-0xa0007fff 64bit pref] [ 0.505191] pci 0001:08:00.0: supports D1 D2 [ 0.505199] pci 0001:08:00.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.514753] pci 0001:00:05.0: PCI bridge to [bus 08] [ 0.514765] pci 0001:00:05.0: bridge window [io 0x901000-0x901fff] [ 0.514775] pci 0001:00:05.0: bridge window [mem 0xa0000000-0xa00fffff] [ 0.514900] pci 0001:09:00.0: [15b7:5006] type 00 class 0x010802 [ 0.514930] pci 0001:09:00.0: reg 0x10: [mem 0xa0104000-0xa0107fff 64bit] [ 0.514964] pci 0001:09:00.0: reg 0x20: [mem 0xa0100000-0xa01000ff 64bit] [ 0.515064] pci 0001:09:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x4 link at 0001:00:06.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link) [ 0.524774] pci 0001:00:06.0: PCI bridge to [bus 09] [ 0.524788] pci 0001:00:06.0: bridge window [mem 0xa0100000-0xa01fffff] [ 0.524826] pci_bus 0001:02: extended config space not accessible [ 0.525954] pci 0001:00:07.0: PCI bridge to [bus 02] [ 0.525969] pci 0001:00:07.0: bridge window [mem 0xfa000000-0xfa3fffff] [ 0.525979] pci 0001:00:07.0: bridge window [mem 0x00000000-0x000fffff pref] [ 0.526035] pci_bus 0001:01: extended config space not accessible [ 0.526357] pci 0001:01:07.0: [106b:004f] type 00 class 0xff0000 [ 0.526377] pci 0001:01:07.0: reg 0x10: [mem 0x80000000-0x8007ffff] [ 0.526717] pci 0001:01:0b.0: [1033:0035] type 00 class 0x0c0310 [ 0.526737] pci 0001:01:0b.0: reg 0x10: [mem 0x80082000-0x80082fff] [ 0.526801] pci 0001:01:0b.0: supports D1 D2 [ 0.526808] pci 0001:01:0b.0: PME# supported from D0 D1 D2 D3hot D3cold [ 0.526980] pci 0001:01:0b.1: [1033:0035] type 00 class 0x0c0310 [ 0.527000] pci 0001:01:0b.1: reg 0x10: [mem 0x80081000-0x80081fff] [ 0.527064] pci 0001:01:0b.1: supports D1 D2 [ 0.527071] pci 0001:01:0b.1: PME# supported from D0 D1 D2 D3hot D3cold [ 0.527219] pci 0001:01:0b.2: [1033:00e0] type 00 class 0x0c0320 [ 0.527239] pci 0001:01:0b.2: reg 0x10: [mem 0x80080000-0x800800ff] [ 0.527303] pci 0001:01:0b.2: supports D1 D2 [ 0.527311] pci 0001:01:0b.2: PME# supported from D0 D1 D2 D3hot D3cold [ 0.528136] pci 0001:00:08.0: PCI bridge to [bus 01] [ 0.528153] pci 0001:00:08.0: bridge window [mem 0x80000000-0x800fffff] [ 0.528163] pci 0001:00:08.0: bridge window [mem 0x00000000-0x000fffff pref] [ 0.528198] pci_bus 0001:03: extended config space not accessible [ 0.528688] pci 0001:03:0c.0: [1166:0240] type 00 class 0x01018f [ 0.528707] pci 0001:03:0c.0: reg 0x10: [io 0x900000-0x900007] [ 0.528721] pci 0001:03:0c.0: reg 0x14: [io 0x900000-0x900003] [ 0.528734] pci 0001:03:0c.0: reg 0x18: [io 0x900000-0x900007] [ 0.528747] pci 0001:03:0c.0: reg 0x1c: [io 0x900000-0x900003] [ 0.528760] pci 0001:03:0c.0: reg 0x20: [io 0x900000-0x90000f] [ 0.528773] pci 0001:03:0c.0: reg 0x24: [mem 0xfa402000-0xfa403fff] [ 0.528948] pci 0001:03:0d.0: [106b:0050] type 00 class 0xff0000 [ 0.528966] pci 0001:03:0d.0: reg 0x10: [mem 0xfa404000-0xfa407fff] [ 0.529164] pci 0001:03:0e.0: [106b:0052] type 00 class 0x0c0010 [ 0.529183] pci 0001:03:0e.0: reg 0x10: [mem 0xfa400000-0xfa400fff] [ 0.529243] pci 0001:03:0e.0: supports D1 D2 [ 0.529250] pci 0001:03:0e.0: PME# supported from D0 D1 D2 D3hot [ 0.529945] pci 0001:00:09.0: PCI bridge to [bus 03] [ 0.529960] pci 0001:00:09.0: bridge window [mem 0xfa400000-0xfa4fffff] [ 0.529970] pci 0001:00:09.0: bridge window [mem 0x00000000-0x000fffff pref] [ 0.530013] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 09 [ 0.530160] pci 0000:00:0b.0: BAR 9: assigned [mem 0xf1000000-0xf10fffff 64bit pref] [ 0.530174] pci 0000:00:0b.0: PCI bridge to [bus 0a] [ 0.530182] pci 0000:00:0b.0: bridge window [io 0x80000-0x8ffff] [ 0.530193] pci 0000:00:0b.0: bridge window [mem 0xb0000000-0xbfffffff] [ 0.530202] pci 0000:00:0b.0: bridge window [mem 0xf1000000-0xf10fffff 64bit pref] [ 0.530215] pci_bus 0000:00: resource 4 [io 0x80000-0x87ffff] [ 0.530223] pci_bus 0000:00: resource 5 [mem 0xf1000000-0xf1ffffff] [ 0.530231] pci_bus 0000:00: resource 6 [mem 0xb0000000-0xbfffffff] [ 0.530240] pci_bus 0000:0a: resource 0 [io 0x80000-0x8ffff] [ 0.530248] pci_bus 0000:0a: resource 1 [mem 0xb0000000-0xbfffffff] [ 0.530256] pci_bus 0000:0a: resource 2 [mem 0xf1000000-0xf10fffff 64bit pref] [ 0.530272] pci 0001:00:01.0: PCI bridge to [bus 04] [ 0.530284] pci 0001:00:02.0: PCI bridge to [bus 05] [ 0.530292] pci 0001:00:02.0: bridge window [mem 0xfa500000-0xfa5fffff] [ 0.530304] pci 0001:06:00.0: BAR 4: assigned [io 0x900000-0x9000ff] [ 0.530318] pci 0001:00:03.0: PCI bridge to [bus 06] [ 0.530326] pci 0001:00:03.0: bridge window [io 0x900000-0x900fff] [ 0.530335] pci 0001:00:03.0: bridge window [mem 0x80100000-0x9fffffff] [ 0.530346] pci 0001:00:04.0: PCI bridge to [bus 07] [ 0.530356] pci 0001:00:05.0: PCI bridge to [bus 08] [ 0.530364] pci 0001:00:05.0: bridge window [io 0x901000-0x901fff] [ 0.530373] pci 0001:00:05.0: bridge window [mem 0xa0000000-0xa00fffff] [ 0.530384] pci 0001:00:06.0: PCI bridge to [bus 09] [ 0.530392] pci 0001:00:06.0: bridge window [mem 0xa0100000-0xa01fffff] [ 0.530403] pci 0001:00:07.0: PCI bridge to [bus 02] [ 0.530411] pci 0001:00:07.0: bridge window [mem 0xfa000000-0xfa3fffff] [ 0.530423] pci 0001:00:08.0: PCI bridge to [bus 01] [ 0.530431] pci 0001:00:08.0: bridge window [mem 0x80000000-0x800fffff] [ 0.530442] pci 0001:00:09.0: PCI bridge to [bus 03] [ 0.530451] pci 0001:00:09.0: bridge window [mem 0xfa400000-0xfa4fffff] [ 0.530461] pci_bus 0001:00: resource 4 [io 0x900000-0xcfffff] [ 0.530470] pci_bus 0001:00: resource 5 [mem 0xfa000000-0xffffffff] [ 0.530478] pci_bus 0001:00: resource 6 [mem 0x80000000-0xafffffff] [ 0.530486] pci_bus 0001:00: resource 7 [mem 0xc0000000-0xefffffff] [ 0.530494] pci_bus 0001:05: resource 1 [mem 0xfa500000-0xfa5fffff] [ 0.530503] pci_bus 0001:06: resource 0 [io 0x900000-0x900fff] [ 0.530511] pci_bus 0001:06: resource 1 [mem 0x80100000-0x9fffffff] [ 0.530519] pci_bus 0001:08: resource 0 [io 0x901000-0x901fff] [ 0.530527] pci_bus 0001:08: resource 1 [mem 0xa0000000-0xa00fffff] [ 0.530536] pci_bus 0001:09: resource 1 [mem 0xa0100000-0xa01fffff] [ 0.530544] pci_bus 0001:02: resource 1 [mem 0xfa000000-0xfa3fffff] [ 0.530553] pci_bus 0001:01: resource 1 [mem 0x80000000-0x800fffff] [ 0.530561] pci_bus 0001:03: resource 1 [mem 0xfa400000-0xfa4fffff] [ 0.531326] pci 0000:0a:00.0: vgaarb: setting as boot VGA device [ 0.531336] pci 0000:0a:00.0: vgaarb: bridge control possible [ 0.531343] pci 0000:0a:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none [ 0.531367] pci 0001:06:00.0: vgaarb: bridge control possible [ 0.531374] pci 0001:06:00.0: vgaarb: VGA device added: decodes=io+mem,owns=none,locks=none [ 0.531389] vgaarb: loaded [ 0.531588] clocksource: Switched to clocksource timebase [ 0.540447] NET: Registered PF_INET protocol family [ 0.541795] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.547622] tcp_listen_portaddr_hash hash table entries: 8192 (order: 6, 262144 bytes, linear) [ 0.547789] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.548350] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.550442] TCP bind hash table entries: 65536 (order: 10, 4194304 bytes, linear) [ 0.556031] TCP: Hash tables configured (established 131072 bind 65536) [ 0.556723] UDP hash table entries: 8192 (order: 7, 786432 bytes, linear) [ 0.557679] UDP-Lite hash table entries: 8192 (order: 7, 786432 bytes, linear) [ 0.558431] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.558522] pci 0000:0a:00.0: CLS mismatch (32 != 64), using 128 bytes [ 0.558549] pci 0001:00:03.0: Found enabled HT MSI Mapping [ 0.558565] pci 0001:00:04.0: Found enabled HT MSI Mapping [ 0.558579] pci 0001:00:05.0: Found enabled HT MSI Mapping [ 0.558594] pci 0001:00:06.0: Found enabled HT MSI Mapping [ 0.558732] pci 0001:06:00.1: D0 power state depends on 0001:06:00.0 [ 0.558776] pci 0001:01:0b.0: enabling device (0000 -> 0002) [ 0.558883] pci 0001:01:0b.1: enabling device (0000 -> 0002) [ 0.558917] pci 0001:01:0b.2: enabling device (0004 -> 0006) [ 0.561310] Initialise system trusted keyrings [ 0.561480] workingset: timestamp_bits=46 max_order=22 bucket_order=0 [ 0.565302] fuse: init (API version 7.38) [ 0.565551] 9p: Installing v9fs 9p2000 file system support [ 0.565824] NET: Registered PF_ALG protocol family [ 0.565850] xor: measuring software checksum speed [ 0.567397] 8regs : 6390 MB/sec [ 0.569111] 8regs_prefetch : 5924 MB/sec [ 0.570637] 32regs : 6476 MB/sec [ 0.572362] 32regs_prefetch : 6000 MB/sec [ 0.573429] altivec : 9299 MB/sec [ 0.573436] xor: using function: altivec (9299 MB/sec) [ 0.573448] Key type asymmetric registered [ 0.573455] Asymmetric key parser 'x509' registered [ 0.576080] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.576098] io scheduler kyber registered [ 0.576216] io scheduler bfq registered [ 0.578835] Using unsupported 1920x1080 (null) at b8020000, depth=8, pitch=2048 [ 0.618228] Console: switching to colour frame buffer device 240x67 [ 0.656710] fb0: Open Firmware frame buffer device on /pci@0,f0000000/NVDA,Parent@0/NVDA,Display-A@0 [ 0.658023] MacIO PCI driver attached to Shasta chipset [ 0.659256] 0.00013020:ch-a: ttyS0 at MMIO 0x80013020 (irq = 23, base_baud = 230400) is a Z85c30 ESCC - Serial port [ 0.660099] 0.00013000:ch-b: ttyS1 at MMIO 0x80013000 (irq = 24, base_baud = 230400) is a Z85c30 ESCC - Serial port [ 0.662176] nvme nvme0: pci function 0001:09:00.0 [ 0.662356] nvme 0001:09:00.0: enabling device (0004 -> 0006) [ 0.663510] scsi host0: sata_svw [ 0.664100] scsi host1: sata_svw [ 0.664591] scsi host2: sata_svw [ 0.665119] scsi host3: sata_svw [ 0.665374] ata1: SATA max UDMA/133 mmio m8192@0xfa402000 port 0xfa402000 irq 18 [ 0.665590] ata2: SATA max UDMA/133 mmio m8192@0xfa402000 port 0xfa402100 irq 18 [ 0.665804] ata3: SATA max UDMA/133 mmio m8192@0xfa402000 port 0xfa402200 irq 18 [ 0.666018] ata4: SATA max UDMA/133 mmio m8192@0xfa402000 port 0xfa402300 irq 18 [ 0.666556] pata-pci-macio 0001:03:0d.0: enabling device (0000 -> 0002) [ 0.666721] nvme nvme0: 1/0/0 default/read/poll queues [ 0.671750] nvme0n1: p1 p2 p3 p4 [ 0.681604] pata-pci-macio 0001:03:0d.0: Activating pata-macio chipset Shasta ATA-6, Apple bus ID 3 [ 0.682551] scsi host4: pata_macio [ 0.682854] ata5: PATA max UDMA/133 irq 38 [ 0.684017] tun: Universal TUN/TAP device driver, 1.6 [ 0.684432] r8169 0001:08:00.0: enabling device (0004 -> 0007) [ 0.687717] r8169 0001:08:00.0 eth0: RTL8168e/8111e, e8:de:27:03:20:c4, XID 2c2, IRQ 63 [ 0.687963] r8169 0001:08:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko] [ 0.688539] ehci-pci 0001:01:0b.2: EHCI Host Controller [ 0.688726] ehci-pci 0001:01:0b.2: new USB bus registered, assigned bus number 1 [ 0.689055] ehci-pci 0001:01:0b.2: irq 70, io mem 0x80080000 [ 0.701590] ehci-pci 0001:01:0b.2: USB 2.0 started, EHCI 1.00 [ 0.701922] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05 [ 0.702161] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.702369] usb usb1: Product: EHCI Host Controller [ 0.702511] usb usb1: Manufacturer: Linux 6.5.0-rc4-PMacG5+ ehci_hcd [ 0.702694] usb usb1: SerialNumber: 0001:01:0b.2 [ 0.703267] hub 1-0:1.0: USB hub found [ 0.703400] hub 1-0:1.0: 5 ports detected [ 0.735887] rtc-generic rtc-generic: registered as rtc0 [ 0.736196] PowerMac i2c bus smu 14 registered [ 0.736421] PowerMac i2c bus smu 11 registered [ 0.736809] PowerMac i2c bus mac-io 0 registered [ 0.737113] PowerMac i2c bus mac-io 0 registered [ 0.737476] PowerMac i2c bus u4 1 registered [ 0.751604] pmac64_cpufreq: Registering G5 CPU frequency driver [ 0.758759] pmac64_cpufreq: Frequency method: SCOM, Voltage method: GPIO [ 0.765923] pmac64_cpufreq: Low: 1150 Mhz, High: 2300 Mhz, Cur: 2300 MHz [ 0.773414] hid: raw HID events driver (C) Jiri Kosina [ 0.780911] usbcore: registered new interface driver usbhid [ 0.788285] usbhid: USB HID core driver [ 0.796292] NET: Registered PF_INET6 protocol family [ 0.804741] Segment Routing with IPv6 [ 0.812080] In-situ OAM (IOAM) with IPv6 [ 0.819395] NET: Registered PF_PACKET protocol family [ 0.826675] NET: Registered PF_KEY protocol family [ 0.834234] 9pnet: Installing 9P2000 support [ 0.841750] drmem: No dynamic reconfiguration memory found [ 0.843494] ata5.00: ATAPI: HL-DT-STDVD-RAM GH22NP20, 2.00, max UDMA/66 [ 0.856614] ata5.01: CFA: DeLOCK 54143 512MB, 100511E, max UDMA/66 [ 0.861794] Loading compiled-in X.509 certificates [ 0.864163] ata5.01: 1009008 sectors, multi 1: LBA [ 0.896850] zswap: loaded using pool zstd/z3fold [ 0.934690] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers [ 0.954931] usb 1-3: new high-speed USB device number 2 using ehci-pci [ 0.962778] Btrfs loaded, zoned=no, fsverity=no [ 0.993829] ata1: SATA link down (SStatus 4 SControl 300) [ 1.122763] usb 1-3: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11 [ 1.130663] usb 1-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 1.138480] usb 1-3: Product: USB 2.0 Hub [ 1.169322] hub 1-3:1.0: USB hub found [ 1.176997] hub 1-3:1.0: 4 ports detected [ 1.318263] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 1.334937] ata2.00: ATA-8: WDC WD5000BPKX-22HPJT0, 01.01A01, max UDMA/133 [ 1.342477] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32) [ 1.360918] ata2.00: configured for UDMA/133 [ 1.368549] scsi 1:0:0:0: Direct-Access ATA WDC WD5000BPKX-2 1A01 PQ: 0 ANSI: 5 [ 1.385862] sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB) [ 1.393599] sd 1:0:0:0: [sda] 4096-byte physical blocks [ 1.411172] sd 1:0:0:0: [sda] Write Protect is off [ 1.426818] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.442665] sd 1:0:0:0: [sda] Preferred minimum I/O size 4096 bytes [ 1.558453] netpoll: netconsole: local port 6666 [ 1.566511] netpoll: netconsole: local IPv4 address 192.168.178.7 [ 1.574639] netpoll: netconsole: interface 'eth0' [ 1.582658] netpoll: netconsole: remote port 6666 [ 1.590589] netpoll: netconsole: remote IPv4 address 192.168.178.3 [ 1.598531] netpoll: netconsole: remote ethernet address 70:85:c2:30:ec:01 [ 1.606405] usb 1-3.2: new low-speed USB device number 3 using ehci-pci [ 1.614253] netpoll: netconsole: device eth0 not up yet, forcing it [ 1.624975] r8169 0001:08:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2 [ 1.633069] r8169 0001:08:00.0: Unable to load firmware rtl_nic/rtl8168e-2.fw (-2) [ 1.641805] RTL8211DN Gigabit Ethernet r8169-1-800:00: attached PHY driver (mii_bus:phy_addr=r8169-1-800:00, irq=MAC) [ 1.691856] r8169 0001:08:00.0 eth0: No native access to PCI extended config space, falling back to CSI [ 1.705387] r8169 0001:08:00.0 eth0: Link is Down [ 1.787003] sda: [mac] sda1 sda2 sda3 sda4 sda5 sda6 sda7 [ 1.798733] sd 1:0:0:0: [sda] Attached SCSI disk [ 1.855125] usb 1-3.2: New USB device found, idVendor=046a, idProduct=010d, bcdDevice= 1.00 [ 1.863573] usb 1-3.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.883616] input: HID 046a:010d as /devices/pci0001:00/0001:00:08.0/0001:01:0b.2/usb1/1-3/1-3.2/1-3.2:1.0/0003:046A:010D.0001/input/input0 [ 1.948768] hid-generic 0003:046A:010D.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 046a:010d] on usb-0001:01:0b.2-3.2/input0 [ 1.963341] input: HID 046a:010d as /devices/pci0001:00/0001:00:08.0/0001:01:0b.2/usb1/1-3/1-3.2/1-3.2:1.1/0003:046A:010D.0002/input/input1 [ 2.031852] hid-generic 0003:046A:010D.0002: input,hidraw1: USB HID v1.11 Device [HID 046a:010d] on usb-0001:01:0b.2-3.2/input1 [ 2.234926] usb 1-3.3: new full-speed USB device number 4 using ehci-pci [ 2.434928] ata3: failed to resume link (SControl 0) [ 2.444250] ata3: SATA link down (SStatus 0 SControl 0) [ 2.477486] usb 1-3.3: New USB device found, idVendor=1e7d, idProduct=2c38, bcdDevice= 0.78 [ 2.486947] usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.496501] usb 1-3.3: Product: ROCCAT Kiro Mouse [ 2.506062] usb 1-3.3: Manufacturer: ROCCAT [ 2.518513] input: ROCCAT ROCCAT Kiro Mouse as /devices/pci0001:00/0001:00:08.0/0001:01:0b.2/usb1/1-3/1-3.3/1-3.3:1.0/0003:1E7D:2C38.0003/input/input2 [ 2.528971] input: ROCCAT ROCCAT Kiro Mouse Consumer Control as /devices/pci0001:00/0001:00:08.0/0001:01:0b.2/usb1/1-3/1-3.3/1-3.3:1.0/0003:1E7D:2C38.0003/input/input3 [ 2.595138] input: ROCCAT ROCCAT Kiro Mouse as /devices/pci0001:00/0001:00:08.0/0001:01:0b.2/usb1/1-3/1-3.3/1-3.3:1.0/0003:1E7D:2C38.0003/input/input4 [ 2.605977] hid-generic 0003:1E7D:2C38.0003: input,hiddev96,hidraw2: USB HID v1.11 Mouse [ROCCAT ROCCAT Kiro Mouse] on usb-0001:01:0b.2-3.3/input0 [ 2.618179] input: ROCCAT ROCCAT Kiro Mouse as /devices/pci0001:00/0001:00:08.0/0001:01:0b.2/usb1/1-3/1-3.3/1-3.3:1.1/0003:1E7D:2C38.0004/input/input5 [ 2.685196] hid-generic 0003:1E7D:2C38.0004: input,hidraw3: USB HID v1.00 Keyboard [ROCCAT ROCCAT Kiro Mouse] on usb-0001:01:0b.2-3.3/input1 [ 3.484921] ata4: failed to resume link (SControl 0) [ 3.496010] ata4: SATA link down (SStatus 0 SControl 0) [ 3.508330] scsi 4:0:0:0: CD-ROM HL-DT-ST DVD-RAM GH22NP20 2.00 PQ: 0 ANSI: 5 [ 3.519578] ata5.00: K2/Shasta alignment limits applied [ 3.626574] sr 4:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray [ 3.637998] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 3.675025] scsi 4:0:1:0: Direct-Access ATA DeLOCK 54143 512 11E PQ: 0 ANSI: 5 [ 3.687417] sd 4:0:1:0: [sdb] 1009008 512-byte logical blocks: (517 MB/493 MiB) [ 3.699291] sd 4:0:1:0: [sdb] Write Protect is off [ 3.710876] sd 4:0:1:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 3.722587] sd 4:0:1:0: [sdb] Preferred minimum I/O size 512 bytes [ 3.735749] sdb: [mac] sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 [ 3.748146] sd 4:0:1:0: [sdb] Attached SCSI disk [ 4.086693] r8169 0001:08:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 4.098827] printk: console [netcon0] enabled [ 4.116358] netconsole: network logging started [ 4.138991] BTRFS: device label g5_sta devid 1 transid 70414 /dev/root scanned by swapper/0 (1) [ 4.151343] BTRFS info (device nvme0n1p4): using xxhash64 (xxhash64-generic) checksum algorithm [ 4.163130] BTRFS info (device nvme0n1p4): using free space tree [ 4.194148] BTRFS info (device nvme0n1p4): enabling ssd optimizations [ 4.205771] BTRFS info (device nvme0n1p4): auto enabling async discard [ 4.218721] VFS: Mounted root (btrfs filesystem) readonly on device 0:15. [ 4.231233] devtmpfs: mounted [ 4.245087] Freeing unused kernel image (initmem) memory: 2160K [ 4.256825] Warning: Unable to mark rodata read only on this CPU. [ 4.268472] rodata_test: test data was not read only [ 4.280072] kallsyms_selftest: start [ 4.280117] Run /usr/lib/systemd/systemd as init process [ 4.529324] systemd[1]: systemd 253 running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID -CURL +ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 +LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified) [ 4.554117] systemd[1]: Detected architecture ppc64. [ 4.607844] systemd[1]: Hostname set to <T800>. [ 4.671239] systemd[1]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 4.687225] (sd-executor)[164]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 4.854186] systemd-gpt-auto-generator[174]: File system behind root file system is reported by btrfs to be backed by pseudo-device /dev/root, which is not a valid userspace accessible device node. Cannot determine correct backing block device. [ 4.909638] (sd-execu[167]: /lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1. [ 5.143549] systemd[1]: Queued start job for default target graphical.target. [ 5.195578] systemd[1]: Created slice system-getty.slice. [ 5.224810] systemd[1]: Created slice system-modprobe.slice. [ 5.253565] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 5.282463] systemd[1]: Created slice system-vncserver.slice. [ 5.310964] systemd[1]: Created slice user.slice. [ 5.337944] systemd[1]: Started systemd-ask-password-console.path. [ 5.364349] systemd[1]: Started systemd-ask-password-wall.path. [ 5.390662] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount. [ 5.416888] systemd[1]: Reached target paths.target. [ 5.442712] systemd[1]: Reached target remote-fs.target. [ 5.468367] systemd[1]: Reached target slices.target. [ 5.497973] systemd[1]: Listening on systemd-coredump.socket. [ 5.523133] systemd[1]: Listening on systemd-journald-dev-log.socket. [ 5.547561] systemd[1]: Listening on systemd-journald.socket. [ 5.572114] systemd[1]: Listening on systemd-networkd.socket. [ 5.597313] systemd[1]: Listening on systemd-udevd-control.socket. [ 5.621669] systemd[1]: Listening on systemd-udevd-kernel.socket. [ 5.691892] systemd[1]: Mounting dev-hugepages.mount... [ 5.741395] systemd[1]: Mounting dev-mqueue.mount... [ 5.768922] systemd[1]: Mounting sys-kernel-debug.mount... [ 5.802333] systemd[1]: sys-kernel-tracing.mount was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing). [ 5.818779] systemd[1]: Starting kmod-static-nodes.service... [ 5.847136] systemd[1]: Starting [email protected]... [ 5.891286] systemd[1]: Starting modprobe@dm_mod.service... [ 5.949198] device-mapper: uevent: version 1.0.3 [ 5.952028] systemd[1]: Starting [email protected]... [ 5.975055] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: [email protected] [ 6.004290] systemd[1]: Starting [email protected]... [ 6.033464] systemd[1]: Starting [email protected]... [ 6.061881] systemd[1]: Starting systemd-fsck-root.service... [ 6.082219] loop: module loaded [ 6.172097] systemd[1]: Starting systemd-journald.service... [ 6.246798] systemd-journald[188]: Collecting audit messages is disabled. [ 6.275643] systemd[1]: Starting systemd-modules-load.service... [ 6.330486] systemd[1]: Starting systemd-udev-trigger.service... [ 6.395700] systemd[1]: Starting zram_var_tmp.service... [ 6.467245] systemd[1]: Mounted dev-hugepages.mount. [ 6.492021] zram: Added device: zram0 [ 6.495241] zram: Added device: zram1 [ 6.495759] zram: Added device: zram2 [ 6.592470] systemd[1]: Mounted dev-mqueue.mount. [ 6.652336] systemd[1]: Mounted sys-kernel-debug.mount. [ 6.717407] systemd[1]: Finished kmod-static-nodes.service. [ 6.761071] systemd[1]: [email protected]: Deactivated successfully. [ 6.783373] systemd[1]: Finished [email protected]. [ 6.850027] systemd[1]: Started systemd-journald.service. [ 6.895594] zram1: detected capacity change from 0 to 100663296 [ 8.367898] kallsyms_selftest: --------------------------------------------------------- [ 8.376861] kallsyms_selftest: | nr_symbols | compressed size | original size | ratio(%) | [ 8.385722] kallsyms_selftest: |---------------------------------------------------------| [ 8.394612] kallsyms_selftest: | 35183 | 392858 | 665790 | 59.0 | [ 8.403503] kallsyms_selftest: --------------------------------------------------------- [ 8.912454] kallsyms_selftest: kallsyms_lookup_name() looked up 35183 symbols [ 8.921376] kallsyms_selftest: The time spent on each symbol is (ns): min=1410, max=49410, avg=13861 [ 8.938265] kallsyms_selftest: kallsyms_on_each_symbol() traverse all: 7965781 ns [ 8.947247] kallsyms_selftest: kallsyms_on_each_match_symbol() traverse all: 16110 ns [ 8.955959] kallsyms_selftest: finish [ 9.161935] BTRFS info (device nvme0n1p4: state M): use lzo compression, level 0 [ 9.234371] systemd-journald[188]: Received client request to flush runtime journal. [ 9.302655] systemd-journald[188]: /var/log/journal/1c43360808e246ebb3391fa36a52f8b3/system.journal: Monotonic clock jumped backwards relative to last journal entry, rotating. [ 9.317300] systemd-journald[188]: Rotating system journal. [ 10.234939] random: crng init done [ 10.444041] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 10.563287] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 10.582393] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 10.608991] cfg80211: failed to load regulatory.db [ 10.677259] EXT4-fs (zram1): mounting ext2 file system using the ext4 subsystem [ 10.705269] EXT4-fs (zram1): mounted filesystem 25eb3dfe-5eaf-11ee-9fd2-0148aed7b98d r/w without journal. Quota mode: disabled. [ 11.348518] r8169 0001:08:00.0 enP1p8s0: renamed from eth0 (while UP) [ 11.573407] BTRFS info: devid 1 device path /dev/root changed to /dev/nvme0n1p4 scanned by (udev-worker) (214) [ 11.973900] BTRFS: device label void_ppc64 devid 1 transid 3577 /dev/nvme0n1p2 scanned by (udev-worker) (229) [ 12.282515] Adding 8388604k swap on /dev/nvme0n1p1. Priority:-2 extents:1 across:8388604k SS [ 12.319186] BTRFS: device label g5_musl devid 1 transid 91942 /dev/nvme0n1p3 scanned by (udev-worker) (258) [ 12.409267] BTRFS: device label g5_osta devid 1 transid 12000 /dev/sda7 scanned by (udev-worker) (255) [ 12.687902] ohci-pci 0001:01:0b.0: OHCI PCI host controller [ 12.828472] ohci-pci 0001:01:0b.0: new USB bus registered, assigned bus number 2 [ 12.935310] EXT4-fs (sdb5): mounting ext2 file system using the ext4 subsystem [ 12.958870] ohci-pci 0001:01:0b.0: irq 70, io mem 0x80082000 [ 12.983017] tg3 0001:05:04.0 eth0: Tigon3 [partno(BCM95780) rev 8003] (PCIX:133MHz:64-bit) MAC address 00:14:51:65:25:d6 [ 12.994061] tg3 0001:05:04.0 eth0: attached PHY is 5780 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0]) [ 13.005152] tg3 0001:05:04.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1] [ 13.016344] tg3 0001:05:04.0 eth0: dma_rwctrl[76144000] dma_mask[40-bit] [ 13.029338] EXT4-fs (sdb5): mounted filesystem b9050e7e-96b3-4035-baa3-778866185a9d r/w without journal. Quota mode: disabled. [ 13.041197] ext2 filesystem being mounted at /boot supports timestamps until 2038-01-19 (0x7fffffff) [ 13.091113] snd_hda_intel 0001:06:00.1: enabling device (0004 -> 0006) [ 13.091187] snd_hda_intel 0001:06:00.1: Force to snoop mode by module option [ 13.119943] firewire_ohci 0001:03:0e.0: enabling device (0000 -> 0002) [ 13.185026] firewire_ohci 0001:03:0e.0: added OHCI v1.0 device as card 0, 8 IR + 8 IT contexts, quirks 0x0 [ 13.326672] tg3 0001:05:04.1 eth1: Tigon3 [partno(BCM95780) rev 8003] (PCIX:133MHz:64-bit) MAC address 00:14:51:65:25:d7 [ 13.338824] tg3 0001:05:04.1 eth1: attached PHY is 5780 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0]) [ 13.350989] tg3 0001:05:04.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1] [ 13.363053] tg3 0001:05:04.1 eth1: dma_rwctrl[76144000] dma_mask[40-bit] [ 13.522064] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.05 [ 13.534110] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 13.546121] usb usb2: Product: OHCI PCI host controller [ 13.558049] usb usb2: Manufacturer: Linux 6.5.0-rc4-PMacG5+ ohci_hcd [ 13.570007] usb usb2: SerialNumber: 0001:01:0b.0 [ 13.587636] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0001:00/0001:00:03.0/0001:06:00.1/sound/card0/input6 [ 13.708669] firewire_core 0001:03:0e.0: created device fw0: GUID 001451fffe26fa7e, S800 [ 13.708685] firewire_core 0001:03:0e.0: phy config: new root=ffc1, gap_count=5 [ 13.909447] Console: switching to colour dummy device 80x25 [ 13.916108] nouveau 0000:0a:00.0: vgaarb: deactivate vga console [ 13.916320] nouveau 0000:0a:00.0: NVIDIA NV43 (043200a4) [ 13.931484] nouveau 0000:0a:00.0: bios: version 05.43.02.75.00 [ 13.943140] nouveau 0000:0a:00.0: fb: 128 MiB DDR1 [ 13.985483] hub 2-0:1.0: USB hub found [ 13.986788] hub 2-0:1.0: 3 ports detected [ 14.003875] ohci-pci 0001:01:0b.1: OHCI PCI host controller [ 14.003944] ohci-pci 0001:01:0b.1: new USB bus registered, assigned bus number 3 [ 14.004056] ohci-pci 0001:01:0b.1: irq 70, io mem 0x80081000 [ 14.215730] snd-aoa-fabric-layout: platform-onyx-codec-ref doesn't match! [ 14.215780] snd-aoa: fabric didn't like codec onyx [ 14.218680] snd-aoa-fabric-layout: can use this codec [ 14.258024] snd-aoa-codec-onyx: attached to onyx codec via i2c [ 14.320925] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.05 [ 14.320977] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 14.321011] usb usb3: Product: OHCI PCI host controller [ 14.321048] usb usb3: Manufacturer: Linux 6.5.0-rc4-PMacG5+ ohci_hcd [ 14.321063] usb usb3: SerialNumber: 0001:01:0b.1 [ 14.362560] hub 3-0:1.0: USB hub found [ 14.362672] hub 3-0:1.0: 2 ports detected [ 14.501482] tg3 0001:05:04.1 enP1p5s4f1: renamed from eth1 [ 14.561512] nouveau 0000:0a:00.0: DRM: VRAM: 124 MiB [ 14.561560] nouveau 0000:0a:00.0: DRM: GART: 512 MiB [ 14.561640] nouveau 0000:0a:00.0: DRM: TMDS table version 1.1 [ 14.561664] nouveau 0000:0a:00.0: DRM: DCB version 3.0 [ 14.561687] nouveau 0000:0a:00.0: DRM: DCB outp 00: 01000100 00000028 [ 14.561706] nouveau 0000:0a:00.0: DRM: DCB outp 01: 03000102 00000000 [ 14.561723] nouveau 0000:0a:00.0: DRM: DCB outp 02: 04011210 00000028 [ 14.561740] nouveau 0000:0a:00.0: DRM: DCB outp 03: 02111212 02000100 [ 14.561756] nouveau 0000:0a:00.0: DRM: DCB outp 04: 02011211 0020c070 [ 14.561774] nouveau 0000:0a:00.0: DRM: DCB conn 00: 1030 [ 14.561791] nouveau 0000:0a:00.0: DRM: DCB conn 01: 2130 [ 14.568712] nouveau 0000:0a:00.0: DRM: MM: using M2MF for buffer copies [ 14.571900] tg3 0001:05:04.0 enP1p5s4f0: renamed from eth0 [ 14.704324] windfarm: initializing for dual-core desktop G5 [ 14.783290] [drm] Initialized nouveau 1.3.1 20120801 for 0000:0a:00.0 on minor 0 [ 14.783530] nouveau 0000:0a:00.0: DRM: Setting dpms mode 3 on TV encoder (output 4) [ 15.171465] windfarm: CPUs control loops started. [ 15.358952] nouveau 0000:0a:00.0: DRM: 0x14C5: Parsing digital output script table [ 15.408731] Console: switching to colour frame buffer device 240x67 [ 15.420459] nouveau 0000:0a:00.0: [drm] fb0: nouveaudrmfb frame buffer device [ 15.544781] systemd[381]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 15.549974] (sd-executor)[388]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 16.321447] nouveau 0000:0a:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none [ 16.540661] systemd-journald[188]: /var/log/journal/1c43360808e246ebb3391fa36a52f8b3/user-1000.journal: Monotonic clock jumped backwards relative to last journal entry, rotating. [ 18.247570] systemd[456]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 18.254091] (sd-executor)[458]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 18.494654] windfarm: Backside control loop started. [ 18.545252] windfarm: Slots control loop started. [ 18.646239] windfarm: Drive bay control loop started. [ 43.982859] EXT4-fs (sdb5): unmounting filesystem b9050e7e-96b3-4035-baa3-778866185a9d. [ 44.045217] EXT4-fs (zram1): unmounting filesystem 25eb3dfe-5eaf-11ee-9fd2-0148aed7b98d. [ 44.337224] systemd-shutdown[1]: Syncing filesystems and block devices. [ 44.387253] systemd-shutdown[1]: Sending SIGTERM to remaining processes... [ 44.406598] systemd-journald[188]: Received SIGTERM from PID 1 (systemd-shutdow). [ 44.437981] systemd-shutdown[1]: Sending SIGKILL to remaining processes... [ 44.457704] systemd-shutdown[1]: Unmounting file systems. [ 44.463296] (sd-remount)[553]: Remounting '/' read-only with options 'compress=lzo,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/'. [ 44.482073] systemd-shutdown[1]: All filesystems unmounted. [ 44.487150] systemd-shutdown[1]: Deactivating swaps. [ 44.489488] systemd-shutdown[1]: All swaps deactivated. [ 44.491611] systemd-shutdown[1]: Detaching loop devices. [ 44.497699] systemd-shutdown[1]: All loop devices detached. [ 44.499687] systemd-shutdown[1]: Stopping MD devices. [ 44.502293] systemd-shutdown[1]: All MD devices stopped. [ 44.504398] systemd-shutdown[1]: Detaching DM devices. [ 44.506902] systemd-shutdown[1]: All DM devices detached. [ 44.541085] systemd-shutdown[1]: All filesystems, swaps, loop devices, MD devices and DM devices detached. [ 44.560004] systemd-shutdown[1]: Syncing filesystems and block devices. [ 44.568226] systemd-shutdown[1]: Rebooting. [ 44.588616] sd 1:0:0:0: [sda] Synchronizing SCSI cache
[CCing the regression list, as it should be in the loop for regressions:
https://docs.kernel.org/admin-guide/reporting-regressions.html]
[TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have encountered already in similar form. See link in footer if these mails annoy you.]
Quoted 105 lines · Erhard Furtner
Greetings!
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
[...]
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.NR_IRQS: 512,nr_irqs: 512, preallocated irqs: 16
mpic: Setting up MPIC " MPIC 1 " version 1.2 atf8040000, max 2 CPUs
mpic: ISU size: 124, shift: 7, mask: 7f
mpic: Initializing for 124 sources
mpic: Setting up HT PICs workarounds for U3/U4BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe Faulting instruction address: 0xc00000000005dc40 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc3-PMacGS #1 Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac NIP: c00000000005dc40 LR: c000000000066660 CTR: c000000000007730 REGS: c0000000022bf510 TRAP: 0380 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 44004242 XER: 00000000IRQMASK: 3
GPR00: 0000000000000000c0000000022bf7b0c0000000010c0b0000000000000001ac
GPR04:0000000003c800000000000000000300c0000000f20001ae0000000000000300
GPR08: 0000000000000006feffbb62ffec65ff0000000000000001 0000000000000000
GPR12: 9000000000001032c000000002362000c000000000f76b80000000000349ecd8
GPR16:0000000002367ba80000000002367f080000000000000006 0000000000000000
GPR20:00000000000001acc000000000f6f920c0000000022cd985000000000000000c
GPR24: 000000000000030000000003b0a3691dc0003e008030000e0000000000000000
GPR28:c00000000000000cc0000000f20001eefeffbb62ffec65fe00000000000001acNIP [c00000000005dc40]hash_page_do_lazy_icache+0x50/0x100
LR [c000000000066660]__hash_page_4K+0x420/0x590Call Trace:[
c0000000022bf7e0] [ffffffffffffffff]0xffffffffffffffff[c0000000022bf8c0] [c00000000005e164]hash_page_mm+0x364/0x6f0[c0000000022bf990] [c00000000005e684]do_hash_fault+0x114/0x2b0[c0000000022bf9c0] [c0000000000078e8]data_access_common_virt+0x198/0x1f0--- interrupt: 300 atmpic_init+0x4bc/0x10c4NIP: c000000002020a5c LR: c000000002020a04 CTR: 0000000000000000 REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 24004248 XER: 00000000 DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 GPR00: 0000000000000000 c0000000022bfc90 c0000000010c0b00 c0003e0080300000 GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR08: 0000000000000000 221b80894c06df2f 0000000000000000 0000000000000000 GPR12: 0000000000000000 c000000002362000 c000000000f76b80 000000000349ecd8 GPR16: 0000000002367ba8 0000000002367f08 0000000002367c70 0000000000000000 GPR20: 567ce25e8c9202b7 c000000000f6f920 0000000000000001 c0003e0080300000 GPR24: c00000000226f348 0000000000000004 c00000000404c640 0000000000000000 GPR28: c0003e0080300000 c00000000404c000 45886d8559cb69b4 c0000000022bfc90NIP [
c00000000005dc40]mpic_init+0x4bc/0x10c4
LR [c000000000066660]mpic_init+0x464/0x10c4
~~~ interrupt: 300
[c0000000022bfd90] [c000000002022ae4]pmac_setup_one_mpic+0x258/0x2dc[c0000000022bf2e0] [c000000002022df4]pmac_pic_init+0x28c/0x3d8[c0000000022bfef0] [c00000000200b750]init_IRQ+0x90/0x140[c0000000022bff30] [c0000000020053c0]start_kernel+0x57c/0x78c[c0000000022bffe0] [c00000000000cb48]start_here_common+0x1c/0x20Code: 09290000 7c292040 4081007c fbc10020 3d220127 78843664 3929d700 ebc90000 7fde2214 e93e0000 712a0001 40820064 <e93e0000> 71232000 40820048 e93e0000 ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Fatal exceptionRebooting in 40 seconds..
I bisected the issue and got
9fee28baa601f4dbf869b1373183b312d2d5ef3das 1st bad commit:# git bisect good 9fee28baa601f4dbf869b1373183b312d2d5ef3d is the first bad commit commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d Author: Matthew Wilcox (Oracle) <[email protected]> Date: Wed Aug 2 16:13:49 2023 +0100powerpc: implement the new page table range API
Add
set_ptes(),update_mmu_cache_range()andflush_dcache_folio(). Change thePG_arch_1(akaPG_dcache_dirty) flag from being per-page to per-folio.[[email protected]: re-export flush_dcache_icache_folio()]Signed-off-by Matthew Wilcox (Oracle) <[email protected]>Cc Michael Ellerman <[email protected]>Cc Nicholas Piggin <[email protected]>Cc Christophe Leroy <[email protected]>Signed-off-by Andrew Morton <[email protected]>arch/powerpc/include/asm/book3s/32/pgtable.h | 5 --- arch/powerpc/include/asm/book3s/64/pgtable.h | 6 +--- arch/powerpc/include/asm/book3s/pgtable.h | 11 ++---- arch/powerpc/include/asm/cacheflush.h | 14 +++++--- arch/powerpc/include/asm/kvm_ppc.h | 10 +++--- arch/powerpc/include/asm/nohash/pgtable.h | 16 +++------ arch/powerpc/include/asm/pgtable.h | 12 +++++++ arch/powerpc/mm/book3s64/hash_utils.c | 11 +++--- arch/powerpc/mm/cacheflush.c | 41 ++++++++------------- arch/powerpc/mm/nohash/e500_hugetlbpage.c | 3 +- arch/powerpc/mm/pgtable.c | 53 ++++++++++++++++------------ 11 files changed, 89 insertions(+), 93 deletions(-)
Quoted 3 lines
And indeed when I revert commit
9fee28baa601f4dbf869b1373183b312d2d5ef3dI get a booting kernel again. I reverted the commit on top of864609c6a0b5f0464f6ec7869cb2a45a529c35d7(HEAD) as I get build issues when I revert it on top of 6.6-rc3.dmesg of the successful boot with the reverted commit attached, also kernel .config and the bisect.log.
Thanks for the report. To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot:
#regzbot ^introduced 9fee28baa601f4dbf869b1373183b312d #regzbot title powerpc: new page table range API causes PowerMac G5 to fail booting
#regzbot ignore-activity
This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail.
Developers: When fixing the issue, remember to add 'Link:' tags pointing to the report (the parent of this mail). See page linked in footer for details.
Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
That page also explains what to do if mails like this annoy you.
Quoted 105 lines · Erhard Furtner
Greetings!
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
[...]
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.NR_IRQS: 512,nr_irqs: 512, preallocated irqs: 16
mpic: Setting up MPIC " MPIC 1 " version 1.2 atf8040000, max 2 CPUs
mpic: ISU size: 124, shift: 7, mask: 7f
mpic: Initializing for 124 sources
mpic: Setting up HT PICs workarounds for U3/U4BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe Faulting instruction address: 0xc00000000005dc40 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc3-PMacGS #1 Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac NIP: c00000000005dc40 LR: c000000000066660 CTR: c000000000007730 REGS: c0000000022bf510 TRAP: 0380 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 44004242 XER: 00000000IRQMASK: 3
GPR00: 0000000000000000c0000000022bf7b0c0000000010c0b0000000000000001ac
GPR04:0000000003c800000000000000000300c0000000f20001ae0000000000000300
GPR08: 0000000000000006feffbb62ffec65ff0000000000000001 0000000000000000
GPR12: 9000000000001032c000000002362000c000000000f76b80000000000349ecd8
GPR16:0000000002367ba80000000002367f080000000000000006 0000000000000000
GPR20:00000000000001acc000000000f6f920c0000000022cd985000000000000000c
GPR24: 000000000000030000000003b0a3691dc0003e008030000e0000000000000000
GPR28:c00000000000000cc0000000f20001eefeffbb62ffec65fe00000000000001acNIP [c00000000005dc40]hash_page_do_lazy_icache+0x50/0x100
LR [c000000000066660]__hash_page_4K+0x420/0x590Call Trace:[
c0000000022bf7e0] [ffffffffffffffff]0xffffffffffffffff[c0000000022bf8c0] [c00000000005e164]hash_page_mm+0x364/0x6f0[c0000000022bf990] [c00000000005e684]do_hash_fault+0x114/0x2b0[c0000000022bf9c0] [c0000000000078e8]data_access_common_virt+0x198/0x1f0--- interrupt: 300 atmpic_init+0x4bc/0x10c4NIP: c000000002020a5c LR: c000000002020a04 CTR: 0000000000000000 REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 24004248 XER: 00000000 DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 GPR00: 0000000000000000 c0000000022bfc90 c0000000010c0b00 c0003e0080300000 GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR08: 0000000000000000 221b80894c06df2f 0000000000000000 0000000000000000 GPR12: 0000000000000000 c000000002362000 c000000000f76b80 000000000349ecd8 GPR16: 0000000002367ba8 0000000002367f08 0000000002367c70 0000000000000000 GPR20: 567ce25e8c9202b7 c000000000f6f920 0000000000000001 c0003e0080300000 GPR24: c00000000226f348 0000000000000004 c00000000404c640 0000000000000000 GPR28: c0003e0080300000 c00000000404c000 45886d8559cb69b4 c0000000022bfc90NIP [
c00000000005dc40]mpic_init+0x4bc/0x10c4
LR [c000000000066660]mpic_init+0x464/0x10c4
~~~ interrupt: 300
[c0000000022bfd90] [c000000002022ae4]pmac_setup_one_mpic+0x258/0x2dc[c0000000022bf2e0] [c000000002022df4]pmac_pic_init+0x28c/0x3d8[c0000000022bfef0] [c00000000200b750]init_IRQ+0x90/0x140[c0000000022bff30] [c0000000020053c0]start_kernel+0x57c/0x78c[c0000000022bffe0] [c00000000000cb48]start_here_common+0x1c/0x20Code: 09290000 7c292040 4081007c fbc10020 3d220127 78843664 3929d700 ebc90000 7fde2214 e93e0000 712a0001 40820064 <e93e0000> 71232000 40820048 e93e0000 ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Fatal exceptionRebooting in 40 seconds..
I bisected the issue and got
9fee28baa601f4dbf869b1373183b312d2d5ef3das 1st bad commit:# git bisect good 9fee28baa601f4dbf869b1373183b312d2d5ef3d is the first bad commit commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d Author: Matthew Wilcox (Oracle) <[email protected]> Date: Wed Aug 2 16:13:49 2023 +0100powerpc: implement the new page table range API
Add
set_ptes(),update_mmu_cache_range()andflush_dcache_folio(). Change thePG_arch_1(akaPG_dcache_dirty) flag from being per-page to per-folio.[[email protected]: re-export flush_dcache_icache_folio()]Signed-off-by Matthew Wilcox (Oracle) <[email protected]>Cc Michael Ellerman <[email protected]>Cc Nicholas Piggin <[email protected]>Cc Christophe Leroy <[email protected]>Signed-off-by Andrew Morton <[email protected]>arch/powerpc/include/asm/book3s/32/pgtable.h | 5 --- arch/powerpc/include/asm/book3s/64/pgtable.h | 6 +--- arch/powerpc/include/asm/book3s/pgtable.h | 11 ++---- arch/powerpc/include/asm/cacheflush.h | 14 +++++--- arch/powerpc/include/asm/kvm_ppc.h | 10 +++--- arch/powerpc/include/asm/nohash/pgtable.h | 16 +++------ arch/powerpc/include/asm/pgtable.h | 12 +++++++ arch/powerpc/mm/book3s64/hash_utils.c | 11 +++--- arch/powerpc/mm/cacheflush.c | 41 ++++++++------------- arch/powerpc/mm/nohash/e500_hugetlbpage.c | 3 +- arch/powerpc/mm/pgtable.c | 53 ++++++++++++++++------------ 11 files changed, 89 insertions(+), 93 deletions(-)
Quoted 2 lines
And indeed when I revert commit
9fee28baa601f4dbf869b1373183b312d2d5ef3dI get a booting kernel again. I reverted the commit on top of864609c6a0b5f0464f6ec7869cb2a45a529c35d7(HEAD) as I get build issues when I revert it on top of 6.6-rc3.
Matthew Wilcox, did you miss this regression report? You should look into it since it is (apparently) cause by a commit of yours.
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 2 lines · Bagas Sanjaya
Matthew Wilcox, did you miss this regression report? You should look into it since it is (apparently) cause by a commit of yours.
No, I didn't miss it. I'm simply choosing to work on other things. All this regression tracking nonsense and being told to work on things by people who've appointed themselves my manager has completely sapped my motivation to work on bugs. If you want me to work on things, *don't* harass me.
Quoted 10 lines · Matthew Wilcox
Quoted 2 lines · Bagas Sanjaya
Matthew Wilcox, did you miss this regression report? You should look into it since it is (apparently) cause by a commit of yours.
No, I didn't miss it. I'm simply choosing to work on other things. All this regression tracking nonsense and being told to work on things by people who've appointed themselves my manager has completely sapped my motivation to work on bugs. If you want me to work on things, *don't* harass me.
OK, thanks!
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Hi,
Quoted 6 lines · Erhard Furtner
Greetings!
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
I bisected the issue and got
9fee28baa601f4dbf869b1373183b312d2d5ef3das 1st bad commit:
Can you check this change?
arch/powerpc/mm/pgtable.c +13 -6
@@ -187,8 +187,8 @@ static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma,/* * set_pte stores a linux PTE into the linux page table. */ -void set_ptes (struct mm_struct *mm,unsigned long addr,pte_t *ptep, -pte_t pte,unsigned int nr) +static void set_pte_at (struct mm_struct *mm,unsigned long addr,pte_t *ptep, +pte_t pte) {/* * Make sure hardware valid bit is not set. We don't do
@@ -203,16 +203,23 @@ void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte =set_pte_filter (pte);/* Perform the setting of the PTE */ -arch_enter_lazy_mmu_mode (); +__set_pte_at (mm, addr, ptep, pte,0 ); +} + +/* +* set_pte stores a linux PTE into the linux page table. +*/ +void set_ptes (struct mm_struct *mm,unsigned long addr,pte_t *ptep, +pte_t pte,unsigned int nr) +{ +/* Perform the setting of the PTE */ for (;;) { -__set_pte_at (mm, addr, ptep, pte,0 ); +set_pte_at (mm, addr, ptep, pte);if (--nr ==0 )break ; ptep++; - pte =__pte (pte_val (pte) + (1UL <<PTE_RPN_SHIFT )); addr +=PAGE_SIZE ; } -arch_leave_lazy_mmu_mode (); }void unmap_kernel_page (unsigned long va)
Quoted 35 lines · On Fri, 06 Oct 2023 11:04:15 +0530 "Aneesh Kumar K.V"…
Can you check this change?
arch/powerpc/mm/pgtable.c +13
-4@@ -187,8 +187,8 @@ static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma,/* * set_pte stores a linux PTE into the linux page table. */ -void set_ptes (struct mm_struct *mm,unsigned long addr,pte_t *ptep, -pte_t pte,unsigned int nr) +static void set_pte_at (struct mm_struct *mm,unsigned long addr,pte_t *ptep, +pte_t pte) {/* * Make sure hardware valid bit is not set. We don't do @@ -203,16 +203,23 @@ void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte =set_pte_filter (pte);/* Perform the setting of the PTE */ -arch_enter_lazy_mmu_mode (); +__set_pte_at (mm, addr, ptep, pte,0 ); +} + +/* +* set_pte stores a linux PTE into the linux page table. +*/ +void set_ptes (struct mm_struct *mm,unsigned long addr,pte_t *ptep, +pte_t pte,unsigned int nr) +{ +/* Perform the setting of the PTE */ for (;;) { -__set_pte_at (mm, addr, ptep, pte,0 ); +set_pte_at (mm, addr, ptep, pte);
arch/powerpc/mm/pgtable.c void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, · line 225
Quoted 10 lines
arch/powerpc/mm/pgtable.c +0
-2if (--nr ==0 )break ; ptep++; - pte =__pte (pte_val (pte) + (1UL <<PTE_RPN_SHIFT )); addr +=PAGE_SIZE ; } -arch_leave_lazy_mmu_mode (); }void unmap_kernel_page (unsigned long va)
Thanks for having a look into the issue! Your patch applies but I got a build failure:
# make
CALL scripts/checksyscalls.sh
CC arch/powerpc/mm/pgtable.o
In file included from ./include/linux/mm.h:29,
from arch/powerpc/mm/pgtable.c:22:
./include/linux/pgtable.h:247:71: error: expected declaration specifiers or '...' before numeric constant
247 | #define set_pte_at(mm, addr, ptep, pte) set_ptes(mm, addr, ptep, pte, 1)
| ^
arch/powerpc/mm/pgtable.c:190:13: note: in expansion of macro 'set_pte_at'
190 | static void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
| ^~~~~~~~~~
make[4]: *** [scripts/Makefile.build:243: arch/powerpc/mm/pgtable.o] Fehler 1
make[3]: *** [scripts/Makefile.build:480: arch/powerpc/mm] Fehler 2
make[2]: *** [scripts/Makefile.build:480: arch/powerpc] Fehler 2
make[1]: *** [/usr/src/linux-stable/Makefile:1913: .] Fehler 2
make: *** [Makefile:234: __sub-make] Fehler 2Probably you forgot adding a parameter on this line of your patch:
- __set_pte_at(mm, addr, ptep, pte, 0);
+ set_pte_at(mm, addr, ptep, pte);
So I changed it to:
- __set_pte_at(mm, addr, ptep, pte, 0);
+ set_pte_at(mm, addr, ptep, pte, 0);
Got the kernel building after that but on booting I still run into the issue. Though details of the dmesg look different now:
BUG: Unable to handle kernel data access at 0xfffffb6affee6dfe Faulting instruction address: 0xc00000000005d150 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc4-PMacGS #1 Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac NIP: c00000000005d150 LR: c000000000065a70 CTR: c000000000007730 REGS: c0000000022bf4c0 TRAP: 0380 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 44004242 XER: 00000000
IRQMASK: 3
GPR00: 0000000000000000 c0000000022bf760 c0000000010bb900 00000000000001ac
GPR04: 0000000003c80000 0000000000000300 c0000000f20001ae 0000000000000300
GPR08: 0000000000000006 fffffb6affee6dff 0000000000000001 0000000000000000
GPR12: 9000000000001032 c000000002362000 c000000000f9eb80 0000000000000000
GPR16: 0000000000000000 000000047fb56ef0 0000000000000006 c000000000f62280
GPR20: 00000000000001ac c00000000000000c c0000000022ce985 000000000000000c
GPR24: 0000000000000300 00000003b0a3691d c0003e008030000e 0000000000000000
GPR28: c00000000000000c c0000000f20001ee fffffb6affee6dfe 00000000000001ac NIP [c00000000005d150] hash_page_do_lazy_icache+0x50/0x100
LR [c000000000065a70] __hash_page_4K+0x420/0x590
Call Trace:
[c0000000022bf760] [c0000000022bf7a0] 0xc0000000022bf7a0 (unreliable) [c0000000022bf790] [c0000000022bf7d0] 0xc0000000022bf7d0 [c0000000022bf870] [c00000000005d55c] hash_page_mm+0x24c/0x770 [c0000000022bf950] [c00000000005dc0c] do_hash_fault+0x10c/0x290 [c0000000022bf980] [c0000000000078e8] data_access_common_virt+0x198/0x1f0 --- interrupt: 300 at mpic_init+0x530/0x1164
NIP: c000000002020c10 LR: c000000002020b40 CTR: 0000000000000000 REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc4-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 24004248 XER: 00000000 DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 GPR00: 0000000000000000 c0000000022bfc50 c0000000010bb900 c0003e0080300000 GPR04: 0000000000000000 0000000000000000 f6331d6a321c0000 06d34d7094f60000 GPR08: 49fea3a513a00000 46082ea04e99f795 854c3f242ccc0000 0000000000000000 GPR12: 0000000000000000 c000000002362000 c000000000f9eb80 0000000000000000 GPR16: 0000000000000000 c00000047fb56ef0 0000000000000000 c000000000f62280 GPR20: c000000000f69bd0 eff371268bb2fcef f584c8e573e37e99 0000000000000001 GPR24: c0003e0080300000 c000000002270348 c00000000404c640 0000000000000000 GPR28: c0003e0080300000 c00000000404c000 2ecb2e344f558316 c0000000022bfc50
NIP [c000000002020c10] mpic_init+0x530/0x1164
LR [c000000002020b40] mpic_init+0x460/0x1164
~~~ interrupt: 300
[c0000000022bfd80] [c000000002022ca8] pmac_setup_one_mpic+0x258/0x2dc [c0000000022bfe10] [c000000002022f8c] pmac_pic_init+0x260/0x41c [c0000000022bfef0] [c00000000200b7d4] init_IRQ+0x90/0x144 [c0000000022bff30] [c000000002005408] start_kernel+0x57c/0x78c [c0000000022bffe0] [c00000000000cb48] start_here_common+0x1c/0x20
Code: e9290000 7c292040 4081007c fbc10020 3d220127 78843664 39292900 ebc90000 7fde2214 e93e0000 712a0001 40820064 <e93e0000> 71292000 40820048 e93e0000 ---[ end trace 0000000000000000 ]---
Regards,
Erhard
Quoted 8 lines · Erhard Furtner
Quoted 4 lines · On Fri, 06 Oct 2023 11:04:15 +0530 "Aneesh Kumar K.V"…
Can you check this change?
arch/powerpc/mm/pgtable.c +0
-0
...
Quoted 4 lines
Quoted 1 line
void
unmap_kernel_page(unsigned long va)Thanks for having a look into the issue! Your patch applies but I got a build failure:
Quoted 11 lines
# make
CALL scripts/checksyscalls.sh
CC arch/powerpc/mm/pgtable.o
In file included from ./include/linux/mm.h:29,
from arch/powerpc/mm/pgtable.c:22:
./include/linux/pgtable.h:247:71: error: expected declaration specifiers or '...' before numeric constant
247 | #define set_pte_at(mm, addr, ptep, pte) set_ptes(mm, addr, ptep, pte, 1)
| ^
arch/powerpc/mm/pgtable.c:190:13: note: in expansion of macro 'set_pte_at'
190 | static void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
| ^~~~~~~~~~Sorry that I shared a change without build testing. Here is the updated change
arch/powerpc/mm/pgtable.c +14 -15
@@ -190,29 +190,28 @@ static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma,void set_ptes (struct mm_struct *mm,unsigned long addr,pte_t *ptep,pte_t pte,unsigned int nr) { -/* -* Make sure hardware valid bit is not set. We don't do -* tlb flush for this update. -*/ -VM_WARN_ON (pte_hw_valid (*ptep) && !pte_protnone (*ptep)); - -/* Note: mm->context.id might not yet have been assigned as -* this context might not have been activated yet when this -* is called. -*/ - pte =set_pte_filter (pte); -/* Perform the setting of the PTE */ -arch_enter_lazy_mmu_mode ();for (;;) { + +/* +* Make sure hardware valid bit is not set. We don't do +* tlb flush for this update. +*/ +VM_WARN_ON (pte_hw_valid (*ptep) && !pte_protnone (*ptep)); + +/* Note: mm->context.id might not yet have been assigned as +* this context might not have been activated yet when this +* is called. +*/ + pte =set_pte_filter (pte); + +/* Perform the setting of the PTE */ __set_pte_at (mm, addr, ptep, pte,0 );if (--nr ==0 )break ; ptep++; - pte =__pte (pte_val (pte) + (1UL <<PTE_RPN_SHIFT )); addr +=PAGE_SIZE ; } -arch_leave_lazy_mmu_mode (); }void unmap_kernel_page (unsigned long va)
Quoted 40 lines · On Fri, 06 Oct 2023 17:38:14 +0530 "Aneesh Kumar K.V"…
Sorry that I shared a change without build testing. Here is the updated change
arch/powerpc/mm/pgtable.c +14
-13@@ -190,29 +190,28 @@ static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma,void set_ptes (struct mm_struct *mm,unsigned long addr,pte_t *ptep,pte_t pte,unsigned int nr) { -/* -* Make sure hardware valid bit is not set. We don't do -* tlb flush for this update. -*/ -VM_WARN_ON (pte_hw_valid (*ptep) && !pte_protnone (*ptep)); - -/* Note: mm->context.id might not yet have been assigned as -* this context might not have been activated yet when this -* is called. -*/ - pte =set_pte_filter (pte); -/* Perform the setting of the PTE */ -arch_enter_lazy_mmu_mode ();for (;;) { + +/* +* Make sure hardware valid bit is not set. We don't do +* tlb flush for this update. +*/ +VM_WARN_ON (pte_hw_valid (*ptep) && !pte_protnone (*ptep)); + +/* Note: mm->context.id might not yet have been assigned as +* this context might not have been activated yet when this +* is called. +*/ + pte =set_pte_filter (pte); + +/* Perform the setting of the PTE */ __set_pte_at (mm, addr, ptep, pte,0 );
arch/powerpc/mm/pgtable.c static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma, · line 217
Quoted 10 lines
arch/powerpc/mm/pgtable.c +0
-2if (--nr ==0 )break ; ptep++; - pte =__pte (pte_val (pte) + (1UL <<PTE_RPN_SHIFT )); addr +=PAGE_SIZE ; } -arch_leave_lazy_mmu_mode (); }void unmap_kernel_page (unsigned long va)
It applies cleanly on top of 6.6-rc4 but it doesn't work out.
I get the same Call Trace and very similar dmesg output like I posted in my last email.
Regards,
Erhard
Michael Ellerman
reviewerQuoted 5 lines · Erhard Furtner
Greetings!
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
Thanks for transcribing all that :)
I don't see this crash on my quad G5.
I notice that your config has CONFIG_FLATMEM=y. Can you try switching to SPARSEMEM and see if that helps? It might help us narrow down the bug at least.
cheers
Quoted 5 lines · On Thu, 12 Oct 2023 10:47:51 +1100 Michael Ellerman <[email protected]> wrote:
I don't see this crash on my quad G5.
I notice that your config has
CONFIG_FLATMEM=y. Can you try switching to SPARSEMEM and see if that helps? It might help us narrow down the bug at least.
Your assumption was right, interesting! With CONFIG_SpARSEMEM=y my G5 boots up just fine (dmesg attached).
I did set CONFIG_FLATMEM=y in the .config as it's a G5 11,2 with a Dual-Core 970MP, not Dual-CPU as the G5 7,3. So I saw no point in using SpARSEMEM as it's a single-CPU machine.
Regards,
Erhard
Michael Ellerman
reviewerQuoted 61 lines · Erhard Furtner
Greetings!
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
[...]
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.NR_IRQS: 512,nr_irqs: 512, preallocated irqs: 16
mpic: Setting up MPIC " MPIC 1 " version 1.2 atf8040000, max 2 CPUs
mpic: ISU size: 124, shift: 7, mask: 7f
mpic: Initializing for 124 sources
mpic: Setting up HT PICs workarounds for U3/U4BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe Faulting instruction address: 0xc00000000005dc40 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc3-PMacGS #1 Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac NIP: c00000000005dc40 LR: c000000000066660 CTR: c000000000007730 REGS: c0000000022bf510 TRAP: 0380 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 44004242 XER: 00000000IRQMASK: 3
GPR00: 0000000000000000c0000000022bf7b0c0000000010c0b0000000000000001ac
GPR04:0000000003c800000000000000000300c0000000f20001ae0000000000000300
GPR08: 0000000000000006feffbb62ffec65ff0000000000000001 0000000000000000
GPR12: 9000000000001032c000000002362000c000000000f76b80000000000349ecd8
GPR16:0000000002367ba80000000002367f080000000000000006 0000000000000000
GPR20:00000000000001acc000000000f6f920c0000000022cd985000000000000000c
GPR24: 000000000000030000000003b0a3691dc0003e008030000e0000000000000000
GPR28:c00000000000000cc0000000f20001eefeffbb62ffec65fe00000000000001acNIP [c00000000005dc40]hash_page_do_lazy_icache+0x50/0x100
LR [c000000000066660]__hash_page_4K+0x420/0x590Call Trace:[
c0000000022bf7e0] [ffffffffffffffff]0xffffffffffffffff[c0000000022bf8c0] [c00000000005e164]hash_page_mm+0x364/0x6f0[c0000000022bf990] [c00000000005e684]do_hash_fault+0x114/0x2b0[c0000000022bf9c0] [c0000000000078e8]data_access_common_virt+0x198/0x1f0--- interrupt: 300 atmpic_init+0x4bc/0x10c4NIP: c000000002020a5c LR: c000000002020a04 CTR: 0000000000000000 REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 24004248 XER: 00000000 DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 GPR00: 0000000000000000 c0000000022bfc90 c0000000010c0b00 c0003e0080300000 GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR08: 0000000000000000 221b80894c06df2f 0000000000000000 0000000000000000 GPR12: 0000000000000000 c000000002362000 c000000000f76b80 000000000349ecd8 GPR16: 0000000002367ba8 0000000002367f08 0000000002367c70 0000000000000000 GPR20: 567ce25e8c9202b7 c000000000f6f920 0000000000000001 c0003e0080300000 GPR24: c00000000226f348 0000000000000004 c00000000404c640 0000000000000000 GPR28: c0003e0080300000 c00000000404c000 45886d8559cb69b4 c0000000022bfc90NIP [
c00000000005dc40]mpic_init+0x4bc/0x10c4
LR [c000000000066660]mpic_init+0x464/0x10c4
~~~ interrupt: 300
[c0000000022bfd90] [c000000002022ae4]pmac_setup_one_mpic+0x258/0x2dc[c0000000022bf2e0] [c000000002022df4]pmac_pic_init+0x28c/0x3d8[c0000000022bfef0] [c00000000200b750]init_IRQ+0x90/0x140[c0000000022bff30] [c0000000020053c0]start_kernel+0x57c/0x78c[c0000000022bffe0] [c00000000000cb48]start_here_common+0x1c/0x20
Quoted 2 lines
Code: 09290000 7c292040 4081007c fbc10020 3d220127 78843664 3929d700 ebc90000 7fde2214 e93e0000 712a0001 40820064 <e93e0000> 71232000 40820048 e93e0000 ---[ end trace 0000000000000000 ]---
Can you checkout the exact commit that crash is from and do:
$ make arch/powerpc/mm/book3s64/hash_utils.lst
And paste/attach the content of that file.
cheers
Quoted 7 lines · On Thu, 12 Oct 2023 22:41:56 +1100 Michael Ellerman <[email protected]> wrote:
Can you checkout the exact commit that crash is from and do:
$ make arch/powerpc/mm/book3s64/hash_utils.lstAnd paste/attach the content of that file.
cheers
Ok, attached the output from:
git checkout 9fee28baa601f4dbf869b1373183b312d2d5ef3d make vmlinux -j16
make arch/powerpc/mm/book3s64/hash_utils.lst
Commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d is the 1st bad commit of my bisect.
Regards,
Erhard
Michael Ellerman
reviewerQuoted 11 lines · Erhard Furtner
Quoted 7 lines · On Thu, 12 Oct 2023 22:41:56 +1100 Michael Ellerman <[email protected]> wrote:
Can you checkout the exact commit that crash is from and do:
$ make arch/powerpc/mm/book3s64/hash_utils.lstAnd paste/attach the content of that file.
cheers
Quoted 7 lines
Ok, attached the output from:
git checkout
9fee28baa601f4dbf869b1373183b312d2d5ef3dmake vmlinux -j16
makearch/powerpc/mm/book3s64/hash_utils.lstCommit
9fee28baa601f4dbf869b1373183b312d2d5ef3dis the 1st bad commit of my bisect.
Thanks.
I think I've reproduced the crash on my Quad G5 by using your config with some things tweaked, but I don't get any output on the screen :/
Do you mind booting the commit above and taking a photo of the oops and attach it here. The oops you transcribed didn't entirely make sense, probably due to a typo here or there, so a photo would be best.
cheers
Quoted 2 lines · On Tue, 17 Oct 2023 14:40:49 +1100 Michael Ellerman <[email protected]> wrote:
I think I've reproduced the crash on my Quad G5 by using your config with some things tweaked, but I don't get any output on the screen :/
You could try PPC_EARLY_DEBUG=y with PPC_EARLY_DEBUG_BOOTX or PPC_EARLY_DEBUG_G5. It helped me on the G4 to get some output for the KASAN bug Christophe had a look at.
Quoted 5 lines
Do you mind booting the commit above and taking a photo of the oops and attach it here. The oops you transcribed didn't entirely make sense, probably due to a typo here or there, so a photo would be best.
cheers
No problem. Just thought transcribing the photo would make more sense for a mailing list. ;) But maybe some subtle errors slept crept in. Attached are 2 photos from the issue on current v6.6-rc6.
Regards,
Erhard
Michael Ellerman
reviewerQuoted 7 lines · Erhard Furtner
Quoted 2 lines · On Tue, 17 Oct 2023 14:40:49 +1100 Michael Ellerman <[email protected]> wrote:
I think I've reproduced the crash on my Quad G5 by using your config with some things tweaked, but I don't get any output on the screen :/
You could try PPC_EARLY_DEBUG=y with
PPC_EARLY_DEBUG_BOOTXorPPC_EARLY_DEBUG_G5.
I have tried PPC_EARLY_DEBUG_BOOTX but it didn't help :/
Quoted 9 lines
Quoted 5 lines
Do you mind booting the commit above and taking a photo of the oops and attach it here. The oops you transcribed didn't entirely make sense, probably due to a typo here or there, so a photo would be best.
cheers
No problem. Just thought transcribing the photo would make more sense for a mailing list. ;) But maybe some subtle errors slept crept in. Attached are 2 photos from the issue on current v6.6-rc6.
Thanks. Yeah text is generally better, it archives better and can be grepped etc. but in this case I was going a bit mad trying to make sense of the oops :)
In hindsight the bug is an obvious boot time ordering problem, can you confirm this fixes it. That should apply on top of Linus' current master.
cheers
arch/powerpc/kernel/setup-common.c +1 -0
@@ -948,6 +948,7 @@ void __init setup_arch(char **cmdline_p)/* Parse memory topology */ mem_topology_setup (); +set_max_mapnr (max_pfn);/* * Release secondary cpus out of their spinloops at 0x60 now that
arch/powerpc/mm/mem.c +0 -1
@@ -288,7 +288,6 @@ void __init mem_init(void)#endif high_memory = (void *)__va (max_low_pfn *PAGE_SIZE ); -set_max_mapnr (max_pfn);kasan_late_init ();
Quoted 27 lines · On Wed, 18 Oct 2023 16:45:04 +1100 Michael Ellerman <[email protected]> wrote:
Thanks. Yeah text is generally better, it archives better and can be grepped etc. but in this case I was going a bit mad trying to make sense of the oops :)
In hindsight the bug is an obvious boot time ordering problem, can you confirm this fixes it. That should apply on top of Linus' current master.
cheers
arch/powerpc/kernel/setup-common.c +1
-0@@ -948,6 +948,7 @@ void __init setup_arch(char **cmdline_p)/* Parse memory topology */ mem_topology_setup (); +set_max_mapnr (max_pfn);/* * Release secondary cpus out of their spinloops at 0x60 now that arch/powerpc/mm/mem.c +0
-0
arch/powerpc/mm/mem.c void __init mem_init(void) · line 293
Quoted 7 lines
arch/powerpc/mm/mem.c +0
-1@@ -288,7 +288,6 @@ void __init mem_init(void)#endif high_memory = (void *)__va (max_low_pfn *PAGE_SIZE ); -set_max_mapnr (max_pfn);kasan_late_init ();
Yes, this fix actually does the trick. v6.6-rc6 booting up fine now (dmesg attached) on the G5. Patch also applies on 6.5.7 with seemingly no side effects . Many thanks to all involved!
I'll check whether this also helps on a older memory related bug I bisected recently. And post the bug if not. ;)
Regards,
Erhard
Hi Erhard,
Le 29/09/2023 à 13:27, Erhard Furtner a écrit :
Quoted 3 lines
Greetings!
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
Would you be able to recheck this issue on kernel v6.15-rc1 ?
I fear that commit 8268af309d07 ("arch, mm: set max_mapnr when allocating memory map for FLATMEM") cancels the fix brought by commit daa9ada2093e ("powerpc/mm: Fix boot crash with FLATMEM")
Thanks
Christophe
Quoted 108 lines
[...]
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.NR_IRQS: 512,nr_irqs: 512, preallocated irqs: 16
mpic: Setting up MPIC " MPIC 1 " version 1.2 atf8040000, max 2 CPUs
mpic: ISU size: 124, shift: 7, mask: 7f
mpic: Initializing for 124 sources
mpic: Setting up HT PICs workarounds for U3/U4BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe Faulting instruction address: 0xc00000000005dc40 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc3-PMacGS #1 Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac NIP: c00000000005dc40 LR: c000000000066660 CTR: c000000000007730 REGS: c0000000022bf510 TRAP: 0380 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 44004242 XER: 00000000IRQMASK: 3
GPR00: 0000000000000000c0000000022bf7b0c0000000010c0b0000000000000001ac
GPR04:0000000003c800000000000000000300c0000000f20001ae0000000000000300
GPR08: 0000000000000006feffbb62ffec65ff0000000000000001 0000000000000000
GPR12: 9000000000001032c000000002362000c000000000f76b80000000000349ecd8
GPR16:0000000002367ba80000000002367f080000000000000006 0000000000000000
GPR20:00000000000001acc000000000f6f920c0000000022cd985000000000000000c
GPR24: 000000000000030000000003b0a3691dc0003e008030000e0000000000000000
GPR28:c00000000000000cc0000000f20001eefeffbb62ffec65fe00000000000001acNIP [c00000000005dc40]hash_page_do_lazy_icache+0x50/0x100
LR [c000000000066660]__hash_page_4K+0x420/0x590Call Trace:[
c0000000022bf7e0] [ffffffffffffffff]0xffffffffffffffff[c0000000022bf8c0] [c00000000005e164]hash_page_mm+0x364/0x6f0[c0000000022bf990] [c00000000005e684]do_hash_fault+0x114/0x2b0[c0000000022bf9c0] [c0000000000078e8]data_access_common_virt+0x198/0x1f0--- interrupt: 300 atmpic_init+0x4bc/0x10c4NIP: c000000002020a5c LR: c000000002020a04 CTR: 0000000000000000 REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 24004248 XER: 00000000 DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 GPR00: 0000000000000000 c0000000022bfc90 c0000000010c0b00 c0003e0080300000 GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR08: 0000000000000000 221b80894c06df2f 0000000000000000 0000000000000000 GPR12: 0000000000000000 c000000002362000 c000000000f76b80 000000000349ecd8 GPR16: 0000000002367ba8 0000000002367f08 0000000002367c70 0000000000000000 GPR20: 567ce25e8c9202b7 c000000000f6f920 0000000000000001 c0003e0080300000 GPR24: c00000000226f348 0000000000000004 c00000000404c640 0000000000000000 GPR28: c0003e0080300000 c00000000404c000 45886d8559cb69b4 c0000000022bfc90NIP [
c00000000005dc40]mpic_init+0x4bc/0x10c4
LR [c000000000066660]mpic_init+0x464/0x10c4
~~~ interrupt: 300
[c0000000022bfd90] [c000000002022ae4]pmac_setup_one_mpic+0x258/0x2dc[c0000000022bf2e0] [c000000002022df4]pmac_pic_init+0x28c/0x3d8[c0000000022bfef0] [c00000000200b750]init_IRQ+0x90/0x140[c0000000022bff30] [c0000000020053c0]start_kernel+0x57c/0x78c[c0000000022bffe0] [c00000000000cb48]start_here_common+0x1c/0x20Code: 09290000 7c292040 4081007c fbc10020 3d220127 78843664 3929d700 ebc90000 7fde2214 e93e0000 712a0001 40820064 <e93e0000> 71232000 40820048 e93e0000 ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Fatal exceptionRebooting in 40 seconds..
I bisected the issue and got
9fee28baa601f4dbf869b1373183b312d2d5ef3das 1st bad commit:# git bisect good 9fee28baa601f4dbf869b1373183b312d2d5ef3d is the first bad commit commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d Author: Matthew Wilcox (Oracle) <[email protected]> Date: Wed Aug 2 16:13:49 2023 +0100powerpc: implement the new page table range API
Add
set_ptes(),update_mmu_cache_range()andflush_dcache_folio(). Change thePG_arch_1(akaPG_dcache_dirty) flag from being per-page to per-folio.[[email protected]: re-export flush_dcache_icache_folio()]Signed-off-by Matthew Wilcox (Oracle) <[email protected]>Cc Michael Ellerman <[email protected]>Cc Nicholas Piggin <[email protected]>Cc Christophe Leroy <[email protected]>Signed-off-by Andrew Morton <[email protected]>arch/powerpc/include/asm/book3s/32/pgtable.h | 5 --- arch/powerpc/include/asm/book3s/64/pgtable.h | 6 +--- arch/powerpc/include/asm/book3s/pgtable.h | 11 ++---- arch/powerpc/include/asm/cacheflush.h | 14 +++++--- arch/powerpc/include/asm/kvm_ppc.h | 10 +++--- arch/powerpc/include/asm/nohash/pgtable.h | 16 +++------ arch/powerpc/include/asm/pgtable.h | 12 +++++++ arch/powerpc/mm/book3s64/hash_utils.c | 11 +++--- arch/powerpc/mm/cacheflush.c | 41 ++++++++------------- arch/powerpc/mm/nohash/e500_hugetlbpage.c | 3 +- arch/powerpc/mm/pgtable.c | 53 ++++++++++++++++------------ 11 files changed, 89 insertions(+), 93 deletions(-)And indeed when I revert commit
9fee28baa601f4dbf869b1373183b312d2d5ef3dI get a booting kernel again. I reverted the commit on top of864609c6a0b5f0464f6ec7869cb2a45a529c35d7(HEAD) as I get build issues when I revert it on top of 6.6-rc3.dmesg of the successful boot with the reverted commit attached, also kernel .config and the bisect.log.
Regards,
Erhard F.
Quoted 10 lines · On Tue, 8 Apr 2025 07:55:30 +0200 Christophe Leroy…
Hi Erhard,
Le 29/09/2023 à 13:27, Erhard Furtner a écrit :
Quoted 1 line
Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to boot with following dmesg shown on the OpenFirmware console (transcribed screenshot):
Would you be able to recheck this issue on kernel v6.15-rc1 ?
I fear that commit
8268af309d07("arch, mm: setmax_mapnrwhen allocating memory map for FLATMEM") cancels the fix brought by commitdaa9ada2093e("powerpc/mm: Fix boot crash with FLATMEM")
Hi Christophe!
v6.15-rc1 boots up just fine on my G5 with FLATMEM_MANUAL set. Seems commit 8268af309d07 does not harm the FLATMEM fix, at least on my G5.
Regards,
Erhard
Quoted 104 lines
Quoted 104 lines
[...]
SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
rcu: Hierarchical RCU implementation.
Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.NR_IRQS: 512,nr_irqs: 512, preallocated irqs: 16
mpic: Setting up MPIC " MPIC 1 " version 1.2 atf8040000, max 2 CPUs
mpic: ISU size: 124, shift: 7, mask: 7f
mpic: Initializing for 124 sources
mpic: Setting up HT PICs workarounds for U3/U4BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe Faulting instruction address: 0xc00000000005dc40 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash SMP NR_CPUS=2 PowerMac Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 6.6.0-rc3-PMacGS #1 Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac NIP: c00000000005dc40 LR: c000000000066660 CTR: c000000000007730 REGS: c0000000022bf510 TRAP: 0380 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 44004242 XER: 00000000IRQMASK: 3
GPR00: 0000000000000000c0000000022bf7b0c0000000010c0b0000000000000001ac
GPR04:0000000003c800000000000000000300c0000000f20001ae0000000000000300
GPR08: 0000000000000006feffbb62ffec65ff0000000000000001 0000000000000000
GPR12: 9000000000001032c000000002362000c000000000f76b80000000000349ecd8
GPR16:0000000002367ba80000000002367f080000000000000006 0000000000000000
GPR20:00000000000001acc000000000f6f920c0000000022cd985000000000000000c
GPR24: 000000000000030000000003b0a3691dc0003e008030000e0000000000000000
GPR28:c00000000000000cc0000000f20001eefeffbb62ffec65fe00000000000001acNIP [c00000000005dc40]hash_page_do_lazy_icache+0x50/0x100
LR [c000000000066660]__hash_page_4K+0x420/0x590Call Trace:[
c0000000022bf7e0] [ffffffffffffffff]0xffffffffffffffff[c0000000022bf8c0] [c00000000005e164]hash_page_mm+0x364/0x6f0[c0000000022bf990] [c00000000005e684]do_hash_fault+0x114/0x2b0[c0000000022bf9c0] [c0000000000078e8]data_access_common_virt+0x198/0x1f0--- interrupt: 300 atmpic_init+0x4bc/0x10c4NIP: c000000002020a5c LR: c000000002020a04 CTR: 0000000000000000 REGS: c0000000022bf9f0 TRAP: 0300 Tainted: G T (6.6.0-rc3-PMacGS) MSR: 9000000000001032 <SF,HV,ME,IR,DR,RI> CR: 24004248 XER: 00000000 DAR: c0003e008030000e DSISR: 40000000 IRQMASK: 1 GPR00: 0000000000000000 c0000000022bfc90 c0000000010c0b00 c0003e0080300000 GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR08: 0000000000000000 221b80894c06df2f 0000000000000000 0000000000000000 GPR12: 0000000000000000 c000000002362000 c000000000f76b80 000000000349ecd8 GPR16: 0000000002367ba8 0000000002367f08 0000000002367c70 0000000000000000 GPR20: 567ce25e8c9202b7 c000000000f6f920 0000000000000001 c0003e0080300000 GPR24: c00000000226f348 0000000000000004 c00000000404c640 0000000000000000 GPR28: c0003e0080300000 c00000000404c000 45886d8559cb69b4 c0000000022bfc90NIP [
c00000000005dc40]mpic_init+0x4bc/0x10c4
LR [c000000000066660]mpic_init+0x464/0x10c4
~~~ interrupt: 300
[c0000000022bfd90] [c000000002022ae4]pmac_setup_one_mpic+0x258/0x2dc[c0000000022bf2e0] [c000000002022df4]pmac_pic_init+0x28c/0x3d8[c0000000022bfef0] [c00000000200b750]init_IRQ+0x90/0x140[c0000000022bff30] [c0000000020053c0]start_kernel+0x57c/0x78c[c0000000022bffe0] [c00000000000cb48]start_here_common+0x1c/0x20Code: 09290000 7c292040 4081007c fbc10020 3d220127 78843664 3929d700 ebc90000 7fde2214 e93e0000 712a0001 40820064 <e93e0000> 71232000 40820048 e93e0000 ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Fatal exceptionRebooting in 40 seconds..
I bisected the issue and got
9fee28baa601f4dbf869b1373183b312d2d5ef3das 1st bad commit:# git bisect good 9fee28baa601f4dbf869b1373183b312d2d5ef3d is the first bad commit commit 9fee28baa601f4dbf869b1373183b312d2d5ef3d Author: Matthew Wilcox (Oracle) <[email protected]> Date: Wed Aug 2 16:13:49 2023 +0100powerpc: implement the new page table range API
Add
set_ptes(),update_mmu_cache_range()andflush_dcache_folio(). Change thePG_arch_1(akaPG_dcache_dirty) flag from being per-page to per-folio.[[email protected]: re-export flush_dcache_icache_folio()]Signed-off-by Matthew Wilcox (Oracle) <[email protected]>Cc Michael Ellerman <[email protected]>Cc Nicholas Piggin <[email protected]>Cc Christophe Leroy <[email protected]>Signed-off-by Andrew Morton <[email protected]>arch/powerpc/include/asm/book3s/32/pgtable.h | 5 --- arch/powerpc/include/asm/book3s/64/pgtable.h | 6 +--- arch/powerpc/include/asm/book3s/pgtable.h | 11 ++---- arch/powerpc/include/asm/cacheflush.h | 14 +++++--- arch/powerpc/include/asm/kvm_ppc.h | 10 +++--- arch/powerpc/include/asm/nohash/pgtable.h | 16 +++------ arch/powerpc/include/asm/pgtable.h | 12 +++++++ arch/powerpc/mm/book3s64/hash_utils.c | 11 +++--- arch/powerpc/mm/cacheflush.c | 41 ++++++++------------- arch/powerpc/mm/nohash/e500_hugetlbpage.c | 3 +- arch/powerpc/mm/pgtable.c | 53 ++++++++++++++++------------ 11 files changed, 89 insertions(+), 93 deletions(-)And indeed when I revert commit
9fee28baa601f4dbf869b1373183b312d2d5ef3dI get a booting kernel again. I reverted the commit on top of864609c6a0b5f0464f6ec7869cb2a45a529c35d7(HEAD) as I get build issues when I revert it on top of 6.6-rc3.dmesg of the successful boot with the reverted commit attached, also kernel .config and the bisect.log.