[laptop-discuss] Re: Re: solaris with ral driver panic at boot time
Masayuki Murayama
KHF04453 at nifty.ne.jp
Tue Nov 21 11:41:31 PST 2006
I'm sorry for late response.
>>BTW, I found another problem that the system hangs right after SunOS
>>copyright message when I rebooted the system without power cycle.
>>I tried to narrow the root-cause by modifying the ral source code,
>>but no luck. It may be a cardbus issue, not ral.
>
>Have you tried creating a reset entry point which disables the driver's
>interrupt? (as in iprbreset()).
Yes. I added a function below which will reset the wifi controller and
mask interrupts and be called right after the registers in rt2560
are mapped in rt2560_attach, but no luck.
void
rt2560_hw_reset(struct rt2560_softc *sc)
{
/* abort Tx */
RAL_WRITE(sc, RT2560_TXCSR0, RT2560_ABORT_TX);
/* disable Rx */
RAL_WRITE(sc, RT2560_RXCSR0, RT2560_DISABLE_RX);
/* reset ASIC (imply reset BBP) */
RAL_WRITE(sc, RT2560_CSR1, RT2560_RESET_ASIC);
RAL_WRITE(sc, RT2560_CSR1, 0);
/* disable interrupts */
RAL_WRITE(sc, RT2560_CSR8, 0xffffffff);
}
I also changed the calling order of gld_register() and ddi_add_intr(),
because I think ddi_add_intr() should be called after gld_register(),
but no luck.
>In some cases, a warm reboot does not reset all hardware and that may
>cause a stuck interrupt.
I did an additional test. That was:
(1) insert the wifi card into a cardbus slot.
(2) turn on the laptop and boot solaris
(3) shutdown solaris by init 0
(4) remove the wificard when the system halt with "Press any key to reboot".
(5) press a key to reboot the system without power cycle.
(6) the system starts to boot
But the system stopped while booting.
As there was no card in the cardbus slot at the time, I think this
is an initialization issue except ral.
The messages showed in console were:
module /platform/i86pc/kernel/unix: text at [0xfe800000, 0xfe8b752f] data at 0xfec00000
module misc/krtld: text at [0xfe8b7530, 0xfe8c7c8f] data at 0xfec49108
module /kernel/genunix: text at [0xfe8c7c90, 0xfeab690f] data at 0xfec4e5a0
Loading kmdb...
module /kernel/misc/kmdbmod: text at [0xfeab6910, 0xfeb1d90f] data at 0xfec9c080module /kernel/misc/ctf: text at [0xfeb1d910, 0xfeb24adf] data at 0xfecad6d0
module /kernel/misc/zmod: text at [0xfeb24ae0, 0xfeb28e77] data at 0xfecadfb0
SunOS Release 5.11 Version opensolaris 32-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
DEBUG enabled
features: 1003fdf<cpuid,sse,sep,pat,cx8,pae,mca,mmx,cmov,pge,mtrr,msr,tsc,lgpg>
cpuid 0: initialized cpumod: cpu.generic
mem = 261684K (0xff8d000)
root nexus = i86pc
pseudo0 at root
pseudo0 is /pseudo
scsi_vhci0 at root
scsi_vhci0 is /scsi_vhci
isa0 at root
(the system stopped here)
-masa
This message posted from opensolaris.org
More information about the laptop-discuss
mailing list