Subject: Re: weird kernel panic
To: Michael <macallan18@earthlink.net>
From: Matt Thomas <matt@3am-software.com>
List: port-macppc
Date: 11/18/2004 13:34:11
--=====================_447740375==_
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 01:25 PM 11/18/2004, Michael wrote:
>Hello,
> > >I just got this panic after leaving my S900 idle for a few hours:
> > >
> > >the bt:
> > >0x0045eea0: at kernel ISI trap by ADBDevTable+0xd4f4f494: srr1=0x10009032
> > >                 rl=0x45ef60 cr=0x80009032 xer=0x20000000 ctr=0xd535e24c
> > >0x0045ef60: at ext_intr:0x1d4
> > >0x0045efa0: at trapstart+0x8f4
> > >0xd5355e50: at idle:0x14
> > >0xd5355e60: at mi_switch+0x198
> > >0xd5355ea0: at ltsleep+0x41c
> > >0xd5355ee0: at sched_sync+0x184
> > >0xd5355f40: at cpu_switchto+0x44
> > >
> > >the kernel has no multiprocessor support and runs on a G3/300MHz with 1MB
> > >cache at 150MHz.
> >
> > Using LKMs?  It looks like an interrupt handler jumped into the mapped
> > kernel space.
>Yes, I'm working on a driver module.
>Ok, what did I do wrong? The Interrupt handler doesn't do anything besides 
>printf(some_register_content) and the card it's supposed to handle has 
>interrupts disabled ( although the IRQ is shared because the card sits 
>behind a PCI-PCI bridge )

The shared IRQ will cause your handler to be invoked.  Can you see if the
attached patch helps?  The current LKM code doesn't know how to synchronize
the instruction cache.


-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this message.

--=====================_447740375==_
Content-Type: application/octet-stream; name="lkm-procwr-patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="lkm-procwr-patch.txt"

SW5kZXg6IGtlcm5fbGttLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2c3Jvb3Qvc3JjL3N5cy9r
ZXJuL2tlcm5fbGttLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNzgKZGlmZiAtdSAtcjEuNzgg
a2Vybl9sa20uYwotLS0ga2Vybl9sa20uYwkyNSBPY3QgMjAwNCAyMzozNzo1OCAtMDAwMAkxLjc4
CisrKyBrZXJuX2xrbS5jCTE4IE5vdiAyMDA0IDIxOjMxOjM4IC0wMDAwCkBAIC00MDMsNiArNDAz
LDkgQEAKIAkJaWYgKGVycm9yKQogCQkJYnJlYWs7CiAKKyNpZmRlZiBQTUFQX05FRURfUFJPQ1dS
CisJCXBtYXBfcHJvY3dyKCZwcm9jMCwgY3VycC0+YXJlYSArIGN1cnAtPm9mZnNldCwgaSk7Cisj
ZW5kaWYKIAkJaWYgKChjdXJwLT5vZmZzZXQgKyBpKSA8IGN1cnAtPnNpemUpIHsKIAkJCWxrbV9z
dGF0ZSA9IExLTVNfTE9BRElORzsKICNpZmRlZiBERUJVRwo=
--=====================_447740375==_--