Skip to contentSkip to conversation

Couple of questions

parisc-linux [email protected] 5 participants 6 messages Mar 28, 2000 – Mar 29, 2000

lore
Share & tools
lore
#0 lore raw

Greetings,

Quoted 8 lines · Corne' Beerse

As I read this, the TOC button can have the next implementations:
- hardware reset, as the button on intel platforms
- three finger salute (<ctrl><alt><del>) as on intel platforms
- Boot prom prompt (if available, like Sun's <Stop><A>)
- Kernel core dump and [stop|halt|reboot|continue|shutdown]
- What does HPUX with it?
a combination of the above.

HP-UX provides an OS_TOC vector which is invoked by the platform firmware's PDCE_TOC handler. When control is transferred to the OS_TOC handler, the OS proceeds to perform a core dump. Then reboots (resets) the system.

Quoted 3 lines

The main reason for this button is a kernel debugging aid. Not that I'm a kernel hacker, I follow this group out of interest.

Correct! TOC is used as a diagnostic tool when debugging systems which appear to be hung and are no longer responding, i.e. TOC is a high priority interrupt (although it's not technically classified as an interrupt - rather, it is a special form of reset which preserves machine state) which ideally invokes a core dump then reboots (resets) the system. The core can then be reviewed after reboot to determine the potential cause of the hang condition.

Quoted 6 lines

BTW, Where can I find this TOC button on my 9000/712/60 machine? is it the white button on the front? If so, please give some software control to it. In the past, I frequently pushed my keyboard against it, rebooting the machine while typing......

There is no TOC button available on the Model 712. A special debug card is used by HP hardware and OS developers for TOC among other things on this platform.

BTW, the white button on the front left side of the Model 712 is a soft power switch. Upon initial application of power, the switch operates as a hard power switch which immediately affects the power supply state (ON/OFF). After the OS (HP-UX) has booted and initialized, a bit buried in the Lasi power control register can be flipped by the OS to enable the soft power feature which, with proper setup of the hardware and inclusion of the necessary OS hooks, invokes an interrupt when depressed thus allowing a clean shutdown of the system, i.e. the soft power switch interrupt handler invokes 'shutdown -h now' to perform a clean unmount of all file systems, etc,. Note that not all systems which use Lasi utilize this feature - some don't implement any form of soft power feature, while others use a different method entirely. But in the case of the Model 712...

Regards,
Geoge G. Davis
Software Engineer, Celestica Chelmsford Design Center 20 Alpha Road
Chelmsford, MA 01824

#1 lore raw
Quoted 6 lines · [email protected] wrote:

There is no TOC button available on the Model 712. A special debug card is used by HP hardware and OS developers for TOC among other things on this platform.

Not sure about it, but I think that pushing the white button 3 time, i.e from ON state going OFF/ON/OFF (may be more don't remember) does trig a TOC, and this is High prio, i.e for dump capable OS, this mean post mortem dump analysis due to a hang possible (i.e what I like :-)

Cheers,
Phi

--
mailto:[email protected]
WTEC Project. Kernel debugging tools

#2 lore raw
In reply to [email protected]
Quoted 39 lines · [email protected] wrote:

Greetings,

Quoted 8 lines · Corne' Beerse

As I read this, the TOC button can have the next implementations:
- hardware reset, as the button on intel platforms
- three finger salute (<ctrl><alt><del>) as on intel platforms
- Boot prom prompt (if available, like Sun's <Stop><A>)
- Kernel core dump and [stop|halt|reboot|continue|shutdown]
- What does HPUX with it?
a combination of the above.

HP-UX provides an OS_TOC vector which is invoked by the platform firmware's PDCE_TOC handler. When control is transferred to the OS_TOC handler, the OS proceeds to perform a core dump. Then reboots (resets) the system.

Quoted 3 lines

The main reason for this button is a kernel debugging aid. Not that I'm a kernel hacker, I follow this group out of interest.

Correct! TOC is used as a diagnostic tool when debugging systems which appear to be hung and are no longer responding, i.e. TOC is a high priority interrupt (although it's not technically classified as an interrupt - rather, it is a special form of reset which preserves machine state) which ideally invokes a core dump then reboots (resets) the system. The core can then be reviewed after reboot to determine the potential cause of the hang condition.

Quoted 6 lines

BTW, Where can I find this TOC button on my 9000/712/60 machine? is it the white button on the front? If so, please give some software control to it. In the past, I frequently pushed my keyboard against it, rebooting the machine while typing......

There is no TOC button available on the Model 712. A special debug card is used by HP hardware and OS developers for TOC among other things on this platform.

Quoted 13 lines

BTW, the white button on the front left side of the Model 712 is a soft power switch. Upon initial application of power, the switch operates as a hard power switch which immediately affects the power supply state (ON/OFF). After the OS (HP-UX) has booted and initialized, a bit buried in the Lasi power control register can be flipped by the OS to enable the soft power feature which, with proper setup of the hardware and inclusion of the necessary OS hooks, invokes an interrupt when depressed thus allowing a clean shutdown of the system, i.e. the soft power switch interrupt handler invokes 'shutdown -h now' to perform a clean unmount of all file systems, etc,. Note that not all systems which use Lasi utilize this feature - some don't implement any form of soft power feature, while others use a different method entirely. But in the case of the Model 712...

To my experience, in power-off state it is the power-on. I think it is a pushbutton which activates a hold-relais to keep the power on. In power-on mode it invokes shutdown -h now as you describe. This is on a machine running HPUX 10.20, same experience (as I recal by head) on 10.10, 10.01 and 9.x.

For the ease of use in the future, my wich is to control the behavoure from linux. I think of an entry in the init.tab file, similar to the <ctrl><alt><delete> entry which is in there for intel platforms. For Sun sparc machines, there is a similar switch. How is that handled in sparc linux?

CB

btw, if I reply to messages received trouth [email protected], it replies only to the originator, not to the puffin list. Other maillists generate a Reply-to: header line with the maillist address. Can this be added to the puffin headers too? Or are there reasons not to do it?

Signature · 4 lines
Everything should be as simple as possible but not simpler - A. Einstein
Corne' Beerse					| Alcatel Telecom Nederland
mailto:[email protected]		| Postbus 3292
talkto:+31(70)3079108 faxto:+31(70)3079191	| NL-2280 GG  Rijswijk
#3 lore raw
Quoted 4 lines · Corne Beerse

btw, if I reply to messages received trouth [email protected], it replies only to the originator, not to the puffin list. Other maillists generate a Reply-to: header line with the maillist address. Can this be added to the puffin headers too? Or are there reasons not to do it?

The current behaviour is correct. If you want to reply to the person sending the message privately, you reply; if you want to reply to the list, you reply to all (possibly trimming the cc list as appropriate). With the reply-to header, there is no way to accomplish this. I'm sure I've seen more than one `Considered Harmful' document on this subject.

#4 lore raw

Quoting [email protected]:

Quoted 11 lines · Corne Beerse
Quoted 4 lines

btw, if I reply to messages received trouth [email protected], it replies only to the originator, not to the puffin list. Other maillists generate a Reply-to: header line with the maillist address. Can this be added to the puffin headers too? Or are there reasons not to do it?

The current behaviour is correct. If you want to reply to the person sending the message privately, you reply; if you want to reply to the list, you reply to all (possibly trimming the cc list as appropriate). With the reply-to header, there is no way to accomplish this. I'm sure I've seen more than one `Considered Harmful' document on this subject.

'Reply-to Munging' is, I believe, the proper term for 'reply' being header-forced to operate as 'reply-to-all'.

The Goodness of reply-to and reply-to-all being separate will become clear with time, when after some period here, you go back to another list and accidentally send a extremely personal message to *everyone*.

Speaking as one who has sent such messages,

Peter

PS: I just got an HP-9000 E45... soon to be a Linux box!

#5 lore raw
Quoted 1 line · Peter A. Peterson II

PS: I just got an HP-9000 E45... soon to be a Linux box!

let's hope so :-) It's got lots of devices in it which are not top of our list to get HP to relelase docs on, nor support in any way, but eventually it should be supportable.