Thread (13 messages) 13 messages, 5 authors, 2004-09-24

RE: [parisc-linux] Re: a fix for NS87415 on C3K broken

From: Joel Soete <hidden>
Date: 2004-09-23 16:21:42

Hello Grant,

Sorry for auto-reply but an update:

[...]]
quoted
BTW, I've prepared a patch which moves IDE knowledge
out of superio.c driver and into drivers/ide/pci/ns87415.c.
I've not submitted it yet because I haven't successfully tested it
and it still contains debug printk's.
It builds and anyone curious is welcome to look at it:
    ftp://ftp.parisc-linux.org/patches/diff-2.6.9-rc2-ns87415_suckyio_cleanup-01
I will also try it :)
I apply Matthew's patch and it boot fine :)

I also launch a loop to build the kernel and seems to works fine (5 or 6
build already :) ; but could not be significant :( ).

But when I try to use the ide-cdrom the system carsh with such oops:
Backtrace:
 [<000000001017e0d8>] drain_array_locked+0x98/0x148
 [<000000001017e2c4>] cache_reap+0x13c/0x2b0
 [<000000001015e574>] worker_thread+0x284/0x330
 [<0000000010164714>] kthread+0x12c/0x138
 [<000000001010647c>] ret_from_kernel_thread+0x24/0x38


Kernel Fault: Code=15 regs=0000000010b4c600 (Addr=0000000390cc9ce4)

     YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00001000000001000000000000001110 Not tainted
r00-03  0000000000000000 0000000010433c80 000000001017d3f0 00000000104e9830
r04-07  00000000106c2680 00000000106c2690 0000000000000011 000000001061c420
r08-11  0000000000000018 00000000106c26b0 0000000010aea010 0000000000200000
r12-15  0000000000100000 000000003b9ac800 0000000000000000 00000000f0400004
r16-19  00000000f00008c4 00000000f000017c 00000000f0000174 0000000390cc9cbc
r20-23  ffffffffe01f8123 0000000010975628 0000000000000000 000000003f6ec800
r24-27  0000000000001fe0 000000001fe07edd 00000000000000cc 000000001061c420
r28-31  00000000e01f8123 0000000000007edd 0000000010b4c600 0000000000008000
sr0-3   0000000000309800 0000000000000000 0000000000000000 0000000000309800
sr4-7   0000000000000000 0000000000000000 0000000000000000 0000000000000000

IASQ: 0000000000000000 0000000000000000 IAOQ: 000000001017d420 000000001017d424
 IIR: 6a750050    ISR: 0000000000000000  IOR: 0000000390cc9ce4
 CPU:        0   CR30: 0000000010b4c000 CR31: 00000000105dc000
 ORIG_R28: 0000000010175f54
 IAOQ[0]: free_block+0xf8/0x1b8
 IAOQ[1]: free_block+0xfc/0x1b8
 RP(r2): free_block+0xc8/0x1b8
Kernel panic - not syncing: Kernel Fault

Sometime just after the mount of cdrom; sometime when I launch some ls -l
/cdrom or a find /cdrom ?

I tried to revert your patch and the crash seems to hapen at another place:
Backtrace:
 [<0000000010399934>] alloc_skb+0x6c/0x130
 [<00000000103986a0>] sock_alloc_send_pskb+0x180/0x300
 [<0000000010398848>] sock_alloc_send_skb+0x28/0x40
 [<00000000103c4168>] ip_append_data+0x6b8/0xa70
 [<00000000103eb138>] udp_sendmsg+0x188/0x758
 [<00000000103f5b5c>] inet_sendmsg+0x6c/0xb0
 [<0000000010394288>] sock_sendmsg+0xc8/0x108
 [<000000001041ff2c>] svc_sendto+0x2c4/0x2d8
 [<00000000104206f4>] svc_udp_sendto+0x2c/0x70
 [<0000000010422300>] svc_send+0x198/0x210
 [<000000001041ee54>] svc_process+0x2e4/0x8f8
 [<0000000010238be8>] nfsd+0x268/0x4e8
 [<000000001010647c>] ret_from_kernel_thread+0x24/0x38


Kernel Fault: Code=15 regs=000000001e204f00 (Addr=0000000191b09118)

     YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00001000000001001111111100001110 Not tainted
r00-03  0000000000000000 0000000010433b38 0000000010399934 000000001061c400
r04-07  000000000800000f 0000000000000600 000000001061c400 000000001f142a68
r08-11  0000000000000000 00000000000005fb 000000001e204b08 000000001f142b78
r12-15  0000000000000008 000000001ec10680 0000000000000000 0000000000000014
r16-19  00000000000005dc 000000001061c400 0000000000000008 0000000191b09108
r20-23  0000000030203009 0000000010af10c0 0000000000000000 0000000000000001
r24-27  0000000000000000 00000000000000d0 00000000106c2b00 000000001061c400
r28-31  000000001eb166c0 000000001e204e70 000000001e204f00 0000000000000001
sr0-3   000000000031c000 0000000000000000 0000000000000000 000000000031c000
sr4-7   0000000000000000 0000000000000000 0000000000000000 0000000000000000

IASQ: 0000000000000000 0000000000000000 IAOQ: 000000001017da18 000000001017da1c
 IIR: 527c0020    ISR: 0000000000000000  IOR: 0000000191b09118
 CPU:        0   CR30: 000000001e204000 CR31: 00000000105dc000
 ORIG_R28: 00000000103b12f0
 IAOQ[0]: __kmalloc+0xb0/0xd8
 IAOQ[1]: __kmalloc+0xb4/0xd8
 RP(r2): alloc_skb+0x6c/0x130
Kernel panic - not syncing: Kernel Fault

I do the same test with 2.6.8.1-pa7 and all seems ok.

I just noticed this following warning at the compile time:
hppa64-linux-gcc -Wp,-MD,drivers/ide/.ide-iops.o.d -nostdinc -iwithprefix
include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer  -pipe -mno-space-regs
-mfast-indirect-calls -ffunction-sections -march=2.0 -mschedule=8000 -Idrivers/ide
  -DKBUILD_BASENAME=ide_iops -DKBUILD_MODNAME=ide_core -c -o drivers/ide/ide-iops.o
drivers/ide/ide-iops.c
drivers/ide/ide-iops.c: In function `ide_mm_insw':
drivers/ide/ide-iops.c:125: warning: passing arg 1 of `__ide_mm_insw' makes
integer from pointer without a cast
drivers/ide/ide-iops.c: In function `ide_mm_insl':
drivers/ide/ide-iops.c:135: warning: passing arg 1 of `__ide_mm_insl' makes
integer from pointer without a cast
drivers/ide/ide-iops.c: In function `ide_mm_outsw':
drivers/ide/ide-iops.c:155: warning: passing arg 1 of `__ide_mm_outsw' makes
integer from pointer without a cast
drivers/ide/ide-iops.c: In function `ide_mm_outsl':
drivers/ide/ide-iops.c:165: warning: passing arg 1 of `__ide_mm_outsl' makes
integer from pointer without a cast

but don't think it had any matter related to the crash.

Sorry not enough time to investigate more right now but if somebody can
drive me to the right way, all idea are wellcome ;)

TIA,
    Joel


---------------------------------------------------------------------------
Tiscali ADSL GO, 29,50 Euro/mois pendant toute une année, profitez-en...
http://reg.tiscali.be/adsl/welcome.asp?lg=FR



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help