Reiser4 on powerpc; unresolved symbol, panic
Hi,
Seing that reiser4 was pretty much stable on my i386 workstation, I decided to give it a try on my iBook 2001 dual-usb.
While compiling the new kernel for my laptop (2.6.15 + debian, reiser4 patched, built-in), it gave new_page as an unresolved symbol in fs/reiser4/plugin/item/tail.c . By looking at the context of the file, I changed new_page for page.
With that, I was able to start rsyncing my system back on the laptop (using a rescue partition, with the same kernel). Unfortunately, about halfway through, it gave a pretty ugly panic; the dmesg output is attached. Running 'sync' or 'umount' on the filesystem resulted in that userspace program to stop responding completely. After a reboot, a fsck on the reiser4 filesystem resulted in total anhilation (thousands of files in lost+found, none in the rest of the filesystem).
Hopefully, I have good backup habits (my workstation is backed up twice a week in case of reiser4 snafu), no data was lost, so I wont be suing namesys ;P.
Thanks for the great filesystem,
Keep up the great work,
Jonathan
Total memory = 192MB; using 512kB for hash table (at c0400000)
Linux version 2.6.15 (Version: joe1) (joe@freedom4) (gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)) #2 PREEMPT Thu Feb 2 23:38:54 EST 2006 Found UniNorth memory controller & host bridge, revision: 192
Mapped at 0xfdf00000
Found a Pangea mac-io controller, rev: 0, mapped at 0xfde80000
Processor NAP mode on idle enabled.
PowerMac motherboard: iBook 2
Found UniNorth PCI host bridge at 0xf0000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf2000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf4000000. Firmware bus number: 0->0
via-pmu: Server Mode is disabled
PMU driver 2 initialized for Core99, firmware: 0c
nvram: Checking bank 0...
nvram: gen0=423, gen1=422
nvram: Active bank is: 0
nvram: OF partition at 0x210
nvram: XP partition at 0xffffffff
nvram: NR partition at 0xffffffff
On node 0 totalpages: 49152
DMA zone: 49152 pages, LIFO batch:15
DMA32 zone: 0 pages, LIFO batch:0
Normal zone: 0 pages, LIFO batch:0
HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: root=/dev/hda4 ro
PowerMac using OpenPIC irq controller at 0x80040000
OpenPIC Version 1.2 (4 CPUs and 64 IRQ sources) at fc62f000
OpenPIC timer frequency is 4.160000 MHz
PID hash table entries: 1024 (order: 10, 16384 bytes)
GMT Delta read from XPRAM: 0 minutes, DST: ontime_init: decrementer frequency = 16.640000 MHz
Console: colour dummy device 80x25serial8250_console_init: nothing to do on PowerMacpmac_zilog: i2c-modem detected, id: 1
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 187136k available (2804k kernel code, 920k data, 216k init, 0k highmem)
AGP special page: 0xcbfff000
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
device-tree: property "l2-cache" name conflicts with node in /cpus/PowerPC,750@0
checking if image is initramfs... it is
Freeing initrd memory: 2917k freed
NET: Registered protocol family 16
PCI: Probing PCI hardware
Registering openpic with sysfs...
Thermal assist unit using timers, shrink_timer: 500 jiffies
Registering PowerMac CPU frequency driver
Low: 400 Mhz, High: 499 Mhz, Boot: 499 Mhz
audit: initializing netlink socket (disabled)
audit(1138971851.840:1): initialized
Loading Reiser4. See www.namesys.com for a description of Reiser4.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
PCI: Enabling device 0000:00:10.0 (0086 -> 0087)
aty128fb: Invalid ROM signature 631c should be 0xaa55
aty128fb: BIOS not located, guessing timings.
aty128fb: Rage128 LF M3 AGP [chip rev 0x0] 8M 128-bit SDR SGRAM (1:1)
Console: switching to colour frame buffer device 128x48
Registered "ati" backlight controller,level: 15/15
fb0: ATY Rage128 frame buffer device on Rage128 LF M3 AGP
Generic RTC Driver v1.07
Macintosh non-volatile memory driver v1.1serial8250_init: nothing to do on PowerMacpmac_zilog: 0.6 (Benjamin Herrenschmidt <[email protected]>)
ttyS0 at MMIO 0x80013020 (irq = 22) is a Z85c30 ESCC - Internal modem
ttyS1 at MMIO 0x80013000 (irq = 23) is a Z85c30 ESCC - Serial port
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
MacIO PCI driver attached to Pangea chipset
input: Macintosh mouse button emulation as /class/input/input0apm_emu: APM Emulation 0.5 initialized.
adb: starting probe task...
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
ADB keyboard at 2, handler 1
Detected ADB keyboard, type ISO, swapping keys.
input: ADB keyboard as /class/input/input1
input: ADB Powerbook buttons as /class/input/input2
ADB mouse at 3, handler set to 4 (trackpad)
input: ADB mouse as /class/input/input3
adb: finished probe task...
ide0: Found Apple KeyLargo ATA-4 controller, bus ID 2, irq 19
Probing IDE interface ide0...
hda: FUJITSU MHS2020AT, ATA DISK drive
hdb: MATSHITA CR-176, ATAPI CD/DVD-ROM drive
hda: Enabling Ultra DMA 2
hdb: Enabling Ultra DMA 2
ide0 at 0xcd00e000-0xcd00e007,0xcd00e160 on irq 19
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Freeing unused kernel memory: 216k init
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: [email protected]
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected Apple UniNorth/Pangea chipset
agpgart: configuring for size idx: 4
agpgart: AGP aperture is 16M @ 0x0
hda: max request size: 128KiB
hda: 39070080 sectors (20003 MB) w/2048KiB Cache, CHS=38760/16/63, UDMA(33)
hda: cache flushes supported
hda: [mac] hda1 hda2 hda3 hda4 hda5
usbcore: registered new driver usbfs
usbcore: registered new driver hubohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
PCI: Enabling device 0001:10:18.0 (0000 -> 0002)ohci_hcd 0001:10:18.0: OHCI Host Controllerohci_hcd 0001:10:18.0: new USB bus registered, assigned bus number 1ohci_hcd 0001:10:18.0: irq 27, io mem 0x80081000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Enabling device 0001:10:19.0 (0000 -> 0002)ohci_hcd 0001:10:19.0: OHCI Host Controllerohci_hcd 0001:10:19.0: new USB bus registered, assigned bus number 2ohci_hcd 0001:10:19.0: irq 28, io mem 0x80080000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
sungem.c:v0.98 8/24/03 David S. Miller ([email protected])
PHY ID: 4061e3, addr: 0
eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:03:93:48:88:52
eth0: Found BCM5221 PHY
hdb: ATAPI 24X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ReiserFS: hda4: found reiserfs format "3.6" with standard journal
ReiserFS: hda4: using ordered data mode
ReiserFS: hda4: journal params: device hda4, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda4: checking transaction log (hda4)
ReiserFS: hda4: Using r5 hash to sort names
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1313 $ Ben Collins <[email protected]>
ohci1394: fw-host0: Unexpected PCI resource length of 1000!
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[40] MMIO=[f5000000-f50007ff] Max Packet=[2048]
orinoco 0.15rc3 (David Gibson <[email protected]>, Pavel Roskin <[email protected]>, et al)
airport 0.15rc3 (Benjamin Herrenschmidt <[email protected]>)
airport: Physical address 80030000
eth1: Hardware identity 0005:0001:0001:0002
eth1: Station identity 001f:0001:0008:0046
eth1: Firmware determined as Lucent/Agere 8.70
eth1: Ad-hoc demo mode supported
eth1: IEEE standard IBSS ad-hoc mode supported
eth1: WEP supported, 104-bit key
eth1: MAC address 00:30:65:13:00:75
eth1: Station name "HERMES I"
eth1: ready
airport: Card registered for interface eth1
eth1: New link status: Connected (0001)
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth1: no IPv6 routers present
eth1: MAC controller error (WTERR). Ignoring.
<4>reiser4[rsync(2446)]: parse_node40 (fs/reiser4/plugin/node/node40.c:673)[nikita-494]:
WARNING: Wrong level found in node: 1 != 52
<4>reiser4[rsync(2446)]: make_space (fs/reiser4/carry_ops.c:495)[nikita-1065]:
WARNING: Error accessing right neighbor: -5
Oops: kernel access of bad area, sig: 11 [#1]
PREEMPT
NIP: C00D7B88 LR: C00D7B70 SP: C6A0BC40 REGS: c6a0bb90 TRAP: 0300 Not tainted
MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 00000078, DSISR: 40000000
TASK = cbb6c7f0[2446] 'rsync' THREAD: c6a0a000
Last syscall: 5
GPR00: 00000000 C6A0BC40 CBB6C7F0 C83BAE80 C6A0BC50 00000000 C98D20B0 35840100
GPR08: 00000000 00000000 0006EE29 C92FF930 22008488 100574C8 10050000 7FF91758
GPR16: 7FF8F748 00000000 C25CFF20 C0316AE8 C40A5100 C7B2FB30 C0316848 C6A0BD88
GPR24: C92FFAD0 C0310000 C92FFAA4 C92FFA84 C92FFA7C C92FFA78 00000000 C92FFA74 NIP [c00d7b88] carry+0x1d8/0x330
LR [c00d7b70] carry+0x1c0/0x330
Call trace: [c00dca6c] insert_into_item+0x1ec/0x290 [c00dcb80] resize_item+0x70/0xc0 [c011bc08] add_entry_cde+0x118/0x140 [c0110c6c] add_entry_common+0xfc/0x190 [c00febfc] create_vfs_object+0x4bc/0x640 [c00fef14] create_common+0x54/0x70 [c009c3b8] vfs_create+0xe8/0x130 [c009caf0] open_namei+0x6f0/0x790 [c008304c] filp_open+0x2c/0x80 [c008358c] do_sys_open+0x4c/0xe0 [c00039a8] ret_from_syscall+0x0/0x4c
I tried the same change with the 2.6.15-1 patch on my beige g3 and got a hard lock attempting to mount a reiser4 filesystem and no messages logged. The previous behavior has been for reiser4 filesystems, even created on a working architecture, to gracefully fail to mount.
I don't think Namesys is prioritizing PPC support yet, which is understandable.
Quoted 24 lines · Jonathan Bastien-Filiatrault
Hi,
Seing that reiser4 was pretty much stable on my i386 workstation, I decided to give it a try on my iBook 2001 dual-usb.While compiling the new kernel for my laptop (2.6.15 + debian, reiser4 patched, built-in), it gave
new_pageas an unresolved symbol infs/reiser4/plugin/item/tail.c. By looking at the context of the file, I changednew_pagefor page.With that, I was able to start rsyncing my system back on the laptop (using a rescue partition, with the same kernel). Unfortunately, about halfway through, it gave a pretty ugly panic; the dmesg output is attached. Running 'sync' or 'umount' on the filesystem resulted in that userspace program to stop responding completely. After a reboot, a fsck on the reiser4 filesystem resulted in total anhilation (thousands of files in lost+found, none in the rest of the filesystem).
Hopefully, I have good backup habits (my workstation is backed up twice a week in case of reiser4 snafu), no data was lost, so I wont be suing namesys ;P.
Thanks for the great filesystem,
Keep up the great work,
Jonathan
Signature · 1 line
Jake Maciejewski <[email protected]>
Next week vs will look at changing new_page for page. Thanks for finding a bug. We don't have an iBook, so we can't really do more than fix the bugs you identify for us.
Hans
As I believe I've recommended before, PearPC on a high-end i386 machine (I don't think JIT support is available for amd64) should be an adequate PowerPC test platform.
Quoted 5 lines · Hans Reiser
Next week vs will look at changing
new_pagefor page. Thanks for finding a bug. We don't have an iBook, so we can't really do more than fix the bugs you identify for us.Hans
Signature · 1 line
Jake Maciejewski <[email protected]>