On Tue, Apr 24, 2007 at 08:07:42PM -0600, Diana Eichert wrote:
> I have a couple of Plextor PX-EH25L running a 4.1 snapshot from March 11, 
> 2007 that panic when the power button is turned to the off position.  If I 
> type in "cont\r" the shutdown continues on properly, including powering 
> off the system.

Just a guess, but did you compile with the DEBUG option? power_intr()
in arch/landisk/dev/power.c includes

        if ((status & BTN_POWER_BIT) && (kbd_reset == 1)) {
#ifdef DEBUG
                printf("%s switched\n", sc->sc_dev.dv_xname);
                Debugger();
#endif
                kbd_reset = 0;
                _reg_write_1(LANDISK_PWRSW_INTCLR, 1);
                psignal(initproc, SIGUSR1);
                return (1);
        }

which would line up with the stack trace showing Debugger() called.

Tangentially, should the above code instead be something like below so
that the interrupt is acknowledged even when kbd_reset is disabled?

        if (status & BTN_POWER_BIT) {
#ifdef DEBUG
                printf("%s switched\n", sc->sc_dev.dv_xname);
                Debugger();
#endif
                _reg_write_1(LANDISK_PWRSW_INTCLR, 1);
                if (kbd_reset == 1) {
                        kbd_reset = 0;
                        psignal(initproc, SIGUSR1);
                }
                return (1);
        }

Reply via email to