* [parisc-linux] Re: two minor c3k bugs
[not found] <200111300743.AAA03588@puffin.external.hp.com>
@ 2001-11-30 8:46 ` Helge Deller
0 siblings, 0 replies; 3+ messages in thread
From: Helge Deller @ 2001-11-30 8:46 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
Forwarded to the list, since it may be of interest for others too:
On Friday 30 November 2001 08:43, Grant Grundler wrote:
> Hi helge!
Hi Grant,
> It's totally cool that I can shutdown the c3k with just power button!
> playing with 2.4.16-pa5 today I noticed to really minor bugs.
> 1) LCD shows "Linux 2.4.1-pa5" in the top line.
> UTS_RELEASE is definitely 2.4.16 since uname -a prints that too.
> It wasn't obvious to me where the "6" was getting lost.
> I only looked at led.c for a bit - just enough to understand
> that UTS_RELEASE was used to generate the string.
Hmm, I still have 2.4.16-pa4 here and it definately shows
"2.4.16-pa4" for me. Maybe a SMP problem ?
You could try to double the size of the udelay() parameter
in lcd_print to see if it cures your problem.
> 2) When powering off with poweroff button, the last msg is
> "Restarting ...". Are we running the wrong event chain?
> I haven't had a chance to look at this yet. (reviewing
> code for bame and dug up the DIAG register access code.)
Currently I use "kill_proc(1, SIGINT, 0);" to kill the init-process -
which is normally a reboot-command and gives the above messages.
That's AFAICS not the right solution, but nfortunately I don't know
how to do it correct right now.
The other thing is, that this call will not work if the init-process
doesn't has PID 1 - this happened to me after a kernel crash, where
init needed to fsck.
> thanks!
> grant
Greetings,
Helge
^ permalink raw reply [flat|nested] 3+ messages in thread
* [parisc-linux] Re: two minor c3k bugs
[not found] <200111300843.BAA03660@puffin.external.hp.com>
@ 2001-12-01 6:11 ` Grant Grundler
2001-12-02 22:46 ` Helge Deller
0 siblings, 1 reply; 3+ messages in thread
From: Grant Grundler @ 2001-12-01 6:11 UTC (permalink / raw)
To: Helge Deller; +Cc: parisc-linux
Helge Deller wrote:
> Forwarded to the list, since it may be of interest for others too:
>
sure.
> On Friday 30 November 2001 08:43, Grant Grundler wrote:
...
> Hmm, I still have 2.4.16-pa4 here and it definately shows
> "2.4.16-pa4" for me. Maybe a SMP problem ?
No. I only build UP kernels for the C3k.
> You could try to double the size of the udelay() parameter
> in lcd_print to see if it cures your problem.
After a reboot it worked fine. Could be a timing problem.
Since I can't reproduce it reliably and it's minor, I'm not
going to chase this. Someday when I get bored and ate too much
chocolate (dark, organic, Belgian from Trader Joe's), I might
try to run IRC on the LCD... ;^)
...
> Currently I use "kill_proc(1, SIGINT, 0);" to kill the init-process -
> which is normally a reboot-command and gives the above messages.
Ok. that makes sense.
> That's AFAICS not the right solution, but nfortunately I don't know
> how to do it correct right now.
./kernel/sys.c: printk(KERN_EMERG "Power down.\n");
That chunk of code seems to do the right thing:
case LINUX_REBOOT_CMD_POWER_OFF:
notifier_call_chain(&reboot_notifier_list, SYS_POWER_OFF, NULL);
printk(KERN_EMERG "Power down.\n");
machine_power_off();
do_exit(0);
break;
I know that msg since I regularly "powerdown" my c3k.
Perhaps replicate that code?
cheers,
grant
^ permalink raw reply [flat|nested] 3+ messages in thread
* [parisc-linux] Re: two minor c3k bugs
2001-12-01 6:11 ` Grant Grundler
@ 2001-12-02 22:46 ` Helge Deller
0 siblings, 0 replies; 3+ messages in thread
From: Helge Deller @ 2001-12-02 22:46 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
Hi Grant,
On Saturday 01 December 2001 07:11, Grant Grundler wrote:
> > Currently I use "kill_proc(1, SIGINT, 0);" to kill the init-process -
> > which is normally a reboot-command and gives the above messages.
>
> Ok. that makes sense.
>
> > That's AFAICS not the right solution, but nfortunately I don't know
> > how to do it correct right now.
>
> ./kernel/sys.c: printk(KERN_EMERG "Power down.\n");
>
> That chunk of code seems to do the right thing:
> case LINUX_REBOOT_CMD_POWER_OFF:
> notifier_call_chain(&reboot_notifier_list, SYS_POWER_OFF,
> NULL); printk(KERN_EMERG "Power down.\n");
> machine_power_off();
> do_exit(0);
> break;
>
> I know that msg since I regularly "powerdown" my c3k.
> Perhaps replicate that code?
Yes, that's the right code-path, but sadly calling this function
would immediately power off the computer without doing a nice
system shutdown.
I'll need to investigate how to first find the PID of the init process and
then how to tell it to shut down the system cleanly.
Helge
> cheers,
> grant
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-02 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200111300743.AAA03588@puffin.external.hp.com>
2001-11-30 8:46 ` [parisc-linux] Re: two minor c3k bugs Helge Deller
[not found] <200111300843.BAA03660@puffin.external.hp.com>
2001-12-01 6:11 ` Grant Grundler
2001-12-02 22:46 ` Helge Deller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.