Re: linux-3.0.4, mv643xx_eth troubles on Pegasos2 G4

2011-10-18 Thread Gabriel Paubert
On Mon, Oct 17, 2011 at 11:40:54PM +0200, nello martuscielli wrote:
> i'm trying to enable marvel gigabit ethernet support but it doesn't work.
> Here my dmesg instead my config is attached.
[snipped]
> via_rhine: v1.10-LK1.5.0 2010-10-09 Written by Donald Becker
> mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
> uhci_hcd :00:0c.2: irq 9, io base 0x1040
> sysfs: cannot create duplicate filename '/class/mdio_bus/0'

I have 2 Pegasos running 3.0, but in my case mv643xx_eth is non-modular
and /sys/class/mdio_bus/0 exists and points to

../../devices/platform/mv643xx_eth.0/mdio_bus/0

which is correct as far as I can say. 

Is it a regression from 3.0 or not? Try to make it non modular and see
what happens. If it is a regression, could you try to bisect it?

I won't be close enough to the machines to do a regression
hunt myself before a week or 3 (really, maybe next week, 
I don't yet know, but for sure starting on Nov 8th).

>

> usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
> [ cut here ]
> WARNING: at fs/sysfs/dir.c:455
> Modules linked in: snd_via82xx(+) snd_ac97_codec mv643xx_eth(+)
> via_rhine(+) i2c_viapro(+) ac97_bus ohci_hcd(+) snd_mpu401_uart
> uhci_hcd(+) snd_rawmidi
> NIP: c00fa718 LR: c00fa718 CTR: 
> REGS: ef271c00 TRAP: 0700   Not tainted  (3.0.4)
> MSR: 00029032   CR: 22004428  XER: 
> TASK = ef294c60[94] 'modprobe' THREAD: ef27
> GPR00: c00fa718 ef271cb0 ef294c60 0042 c0008904 0001  
> GPR08: c06b6bd8  22004482 ef271c70 22004422 10024440 1000ba68 
> GPR16: 1000ba44 bf83e324  1000ba58  104410ec 0a30 
> GPR24: c0059210 0124  0001 ef271cd8 ef2ba480 ffef ef344000
> NIP [c00fa718] sysfs_add_one+0x88/0xa0
> LR [c00fa718] sysfs_add_one+0x88/0xa0
> Call Trace:
> [ef271cb0] [c00fa718] sysfs_add_one+0x88/0xa0 (unreliable)
> [ef271cd0] [c00faff4] sysfs_do_create_link+0x134/0x1e0
> [ef271d00] [c0392cf8] device_add+0x204/0x544
> [ef271d40] [c03d67e4] mdiobus_register+0xa4/0x198
> [ef271d60] [f26785a4] mv643xx_eth_shared_probe+0x144/0x428 [mv643xx_eth]
> [ef271d80] [c039685c] platform_drv_probe+0x20/0x30
> [ef271d90] [c0395578] driver_probe_device+0xe4/0x198
> [ef271db0] [c039569c] __driver_attach+0x70/0x98
> [ef271dd0] [c0394614] bus_for_each_dev+0x60/0x90
> [ef271e00] [c03951d0] driver_attach+0x24/0x34
> [ef271e10] [c0394d9c] bus_add_driver+0xbc/0x23c
> [ef271e30] [c0395ac8] driver_register+0xb8/0x144
> [ef271e50] [c0396bb4] platform_driver_register+0x68/0x78
> [ef271e60] [f2680024] mv643xx_eth_init_module+0x24/0x80 [mv643xx_eth]
> [ef271e80] [c000402c] do_one_initcall+0xe0/0x1c0
> [ef271eb0] [c005b438] sys_init_module+0x1600/0x17f4
> [ef271f40] [c0012df8] ret_from_syscall+0x0/0x38
> --- Exception: c01 at 0xff62ac0
>LR = 0x10003f2c
> Instruction dump:
> 807c 7fe4fb78 4bfff469 3c80c060 3884f131 4bf2051d 809d0010 4bf20515
> 7c641b78 3c60c060 3863f0fe 484650f9 <0fe0> 7fe3fb78 4bfa8009 39610020
> ---[ end trace cebed1f190337b77 ]---
> usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> usb usb2: Product: UHCI Host Controller
> usb usb2: Manufacturer: Linux 3.0.4 uhci_hcd
> usb usb2: SerialNumber: :00:0c.2
> hub 2-0:1.0: USB hub found
> mii_bus 0 failed to register
> mv643xx_eth: probe of mv643xx_eth.0 failed with error -12
> hub 2-0:1.0: 2 ports detected
> ohci_hcd :00:05.0: OHCI Host Controller
> ohci_hcd :00:05.0: new USB bus registered, assigned bus number 3
> Unable to handle kernel paging request for data at address 0x
> ohci_hcd :00:05.0: irq 9, io mem 0x8000
> Faulting instruction address: 0xf267b3a8
> Oops: Kernel access of bad area, sig: 11 [#1]
> PREEMPT CHRP
> Modules linked in: snd_via82xx(+) snd_ac97_codec mv643xx_eth(+)
> via_rhine(+) i2c_viapro(+) ac97_bus ohci_hcd(+) snd_mpu401_uart
> uhci_hcd(+) snd_rawmidi
> NIP: f267b3a8 LR: f267b3a0 CTR: c0394ff4
> REGS: ef271c90 TRAP: 0300   Tainted: GW(3.0.4)
> MSR: 9032   CR: 84004448  XER: 
> DAR: , DSISR: 4000
> TASK = ef294c60[94] 'modprobe' THREAD: ef27
> GPR00:  ef271d40 ef294c60  eec003c0 eec5 ef24bb3c 
> GPR08: ef24bb28 ef8a7600  0001 44004442 10024440 1000ba68 
> GPR16: 1000ba44 bf83e324  1000ba58  104410ec 0a30 
> GPR24: c0059210 c06b68c0 0020 c06b68b8 fff4 eec0 c06b6740 eec003c0
> NIP [f267b3a8] mv643xx_eth_probe+0x98/0x604 [mv643xx_eth]
> LR [f267b3a0] mv643xx_eth_probe+0x90/0x604 [mv643xx_eth]
> Call Trace:
> [ef271d40] [f267b394] mv643xx_eth_probe+0x84/0x604 [mv643xx_eth] (unreliable)
> [ef271d80] [c039685c] platform_drv_probe+0x20/0x30
> [ef271d90] [c0395578] driver_probe_device+0xe4/0x198
> [ef271db0] [c039569c] __driver_attach+0x70/0x98
> [ef271dd0] [c0394614] bus_for_each_dev+0x60/0x90
> [ef271e00] [c03951d0] driver_attach+0x24/0x34
> [ef271e10] [c0394d9c] bus_add_driver+0xbc/0x23c
> [ef

linux-3.0.4, mv643xx_eth troubles on Pegasos2 G4

2011-10-17 Thread nello martuscielli
i'm trying to enable marvel gigabit ethernet support but it doesn't work.
Here my dmesg instead my config is attached.

root@peg2:~# dmesg
:08.0: supports D1 D2
pci 0001:01:08.1: [1002:5940] type 0 class 0x000380
pci 0001:01:08.1: reg 10: [mem 0xd000-0xd7ff pref]
pci 0001:01:08.1: reg 14: [mem 0xc801-0xc801]
pci 0001:01:08.1: supports D1 D2
PCI :00 Cannot reserve Legacy IO [io  0x-0x0fff]
PCI: max bus depth: 0 pci_try_num: 1
pci_bus :00: resource 0 [io  0x-0x]
pci_bus :00: resource 1 [mem 0x8000-0xbfff]
pci_bus 0001:01: resource 0 [io  0x-0x]
pci_bus 0001:01: resource 1 [mem 0xc000-0xdfff]
bio: create slab  at 0
vgaarb: device added: PCI:0001:01:08.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
vgaarb: bridge control possible 0001:01:08.0
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.24.
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Switching to clocksource timebase
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
NET: Registered protocol family 1
pci :00:0c.1: Fixing VIA IDE, force legacy mode on
PCI: CLS 128 bytes, default 32
rtasd: scan rate is 0, not scanning
Thermal assist unit not available
highmem bounce pool size: 64 pages
NTFS driver 2.1.30 [Flags: R/W].
JFS: nTxBlock = 8044, nTxLock = 64358
SGI XFS with ACLs, security attributes, large block/inode numbers, no
debug enabled
Btrfs loaded
msgmni has been set to 1499
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler cfq registered (default)
radeonfb: Found Intel x86 BIOS ROM Image
radeonfb: No ATY,RefCLK property !
radeonfb: Retrieved PLL infos from BIOS
radeonfb: Reference=27.00 MHz (RefDiv=12) Memory=240.00 Mhz, System=166.00 MHz
radeonfb: PLL min 2 max 4
i2c i2c-1: unable to read EDID block.
i2c i2c-1: unable to read EDID block.
i2c i2c-1: unable to read EDID block.
i2c i2c-3: unable to read EDID block.
i2c i2c-3: unable to read EDID block.
i2c i2c-3: unable to read EDID block.
radeonfb: Monitor 1 type CRT found
radeonfb: EDID probed
radeonfb: Monitor 2 type no found
Console: switching to colour frame buffer device 100x37
radeonfb (0001:01:08.0): ATI Radeon 5960 "Y`"
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at I/O 0x2f8 (irq = 0) is a 16550A
Generic non-volatile memory driver v1.1
parport_pc: VIA 686A/8231 detected
parport_pc: probing current configuration
parport_pc: Current parallel port base: 0x3BC
parport0: PC-style at 0x3bc, irq 7 [PCSPP]
parport0: Device ID was 64 bytes while device told it would be 63 bytes
parport0 (addr 0): SCSI adapter, IMG VP1
parport_pc: VIA parallel port: io=0x3BC, irq=7
brd: module loaded
loop: module loaded
pata_via :00:0c.1: version 0.3.4
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/100 cmd 0x1000 ctl 0x100c bmdma 0x1020 irq 14
ata2: PATA max UDMA/100 cmd 0x1010 ctl 0x101c bmdma 0x1028 irq 15
Fixed MDIO Bus: probed
firewire_ohci :00:01.0: enabling device ( -> 0003)
firewire_ohci: Added fw-ohci device :00:01.0, OHCI v1.0, 8 IR + 8
IT contexts, quirks 0x11
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd :00:05.1: enabling device ( -> 0002)
ehci_hcd :00:05.1: EHCI Host Controller
ehci_hcd :00:05.1: new USB bus registered, assigned bus number 1
ehci_hcd :00:05.1: irq 9, io mem 0x80001800
ehci_hcd :00:05.1: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 3.0.4 ehci_hcd
usb usb1: SerialNumber: :00:05.1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mousedev: PS/2 mouse device common for all mice
rtc-generic rtc-generic: rtc core: registered rtc-generic as rtc0
i2c /dev entries driver
ata1.00: ATA-6: ST340810A, 3.39, max UDMA/100
ata1.00: 78165360 sectors, multi 0: L