Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* milo, srm, pal code questions
@ 2000-11-07  5:39 terrylr
  2000-11-07 17:52 ` Jay Estabrook
  0 siblings, 1 reply; 8+ messages in thread
From: terrylr @ 2000-11-07  5:39 UTC (permalink / raw)
  To: axp-list

hello;

on my pc164 i have only used milo. in attempting
to get rlinux-3.0-pre9 working i am wondering if
there is any difference between the pal code in
milo and srm. 

i thought i was close to getting rtlinux to work
but now when it needs to execute a rdps statment
(really a call_pal inline) the machine hangs solid.

would anyone have any ideas?

-- 
Terry L. Ridder
Blue Danube Artistic Forge (Blaue Donau Kunstschmiede)
"We do not bend metal, we sculpt it."

digging deep, i feel my conscience burn
i need to know who and what i am
this hunger jolts me from complacency
rocks me, makes me meet myself
----kendall payne---closer to myself---




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: milo, srm, pal code questions
  2000-11-07  5:39 milo, srm, pal code questions terrylr
@ 2000-11-07 17:52 ` Jay Estabrook
  2000-11-08  5:54   ` Richard Henderson
  0 siblings, 1 reply; 8+ messages in thread
From: Jay Estabrook @ 2000-11-07 17:52 UTC (permalink / raw)
  To: axp-list

On Mon, Nov 06, 2000 at 11:39:15PM -0600, terrylr@blauedonau.com wrote:
> 
> on my pc164 i have only used milo. in attempting
> to get rlinux-3.0-pre9 working i am wondering if
> there is any difference between the pal code in
> milo and srm. 
> 
> i thought i was close to getting rtlinux to work
> but now when it needs to execute a rdps statment
> (really a call_pal inline) the machine hangs solid.
> 
> would anyone have any ideas?

It's almost certain that the PALcode supplied by MILO is missing
certain functionality, among which ight be the "rdps".

Since RTLinux was originally ported to DS10 with SRM console, it
may very well have dependencies on that level of support in PALcode.

Best bet is to go to SRM console and see. Be aware that there can be
problems associated with this, as noted by Bob Williams in another
posting (lack of support in SRM for devices that were fine under ARC).

Good luck.

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: milo, srm, pal code questions
  2000-11-07 17:52 ` Jay Estabrook
@ 2000-11-08  5:54   ` Richard Henderson
  2000-11-08 16:27     ` Terry L. Ridder
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Henderson @ 2000-11-08  5:54 UTC (permalink / raw)
  To: axp-list

On Tue, Nov 07, 2000 at 12:52:15PM -0500, Jay Estabrook wrote:
> It's almost certain that the PALcode supplied by MILO is missing
> certain functionality, among which ight be the "rdps".

Not a chance -- rdps is used by __save_flags.


r~




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: milo, srm, pal code questions
  2000-11-08  5:54   ` Richard Henderson
@ 2000-11-08 16:27     ` Terry L. Ridder
  2000-11-08 17:31       ` Richard Henderson
  0 siblings, 1 reply; 8+ messages in thread
From: Terry L. Ridder @ 2000-11-08 16:27 UTC (permalink / raw)
  To: axp-list; +Cc: rth

hello;

richard, would you have any idea, hint, or
suggestion as to why in the rtlinux rtl.o
when rdps statement is reached the alpha
would just lock up? this is on a pc164, the
alpha with the broken interrupt mask.

also is there any chance that this could be
caused by a differene between booting with
milo vs. booting with srm & aboot?

i have been attempting to get rtlinux running
on my alpha, but not being able to get beyond
the rdps problem is a show stopper.

On Tue, 7 Nov 2000, Richard Henderson wrote:

On Tue, Nov 07, 2000 at 12:52:15PM -0500, Jay Estabrook wrote:
jay> It's almost certain that the PALcode supplied by MILO is missing
jay> certain functionality, among which ight be the "rdps".
jay>

richard> 
richard> Not a chance -- rdps is used by __save_flags.
richard> 
richard> 
richard> richard

-- 
Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

digging deep, i feel my conscience burn
i need to know who and what i am
this hunger jolts me from complacency
rocks me, makes me meet myself
----kendall payne---closer to myself---





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: milo, srm, pal code questions
  2000-11-08 16:27     ` Terry L. Ridder
@ 2000-11-08 17:31       ` Richard Henderson
  2000-11-08 21:25         ` Re[1]: " Terry L. Ridder
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Henderson @ 2000-11-08 17:31 UTC (permalink / raw)
  To: Terry L. Ridder; +Cc: axp-list

On Wed, Nov 08, 2000 at 10:27:42AM -0600, Terry L. Ridder wrote:
> richard, would you have any idea, hint, or
> suggestion as to why in the rtlinux rtl.o
> when rdps statement is reached the alpha
> would just lock up? this is on a pc164, the
> alpha with the broken interrupt mask.

Nope, and I really don't believe it either -- rdps consists
of exactly three instructions:

        bis     zero, ps, v0
        nop
        hw_rei

which doesn't leave much room for something to go wrong.  It
seems much more likely that the culprit is actually swpipl,
and that you've got an interrupt pending.

> also is there any chance that this could be
> caused by a differene between booting with
> milo vs. booting with srm & aboot?

Not really.  More likely the difference between working
interrupt hardware and not.  Given the games rtlinux plays
with soft interrupt supression, I'd kinda doubt it works
on the pc164.


r~




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re[1]: milo, srm, pal code questions
  2000-11-08 17:31       ` Richard Henderson
@ 2000-11-08 21:25         ` Terry L. Ridder
  2000-11-09  5:19           ` Jay Estabrook
  0 siblings, 1 reply; 8+ messages in thread
From: Terry L. Ridder @ 2000-11-08 21:25 UTC (permalink / raw)
  To: axp-list; +Cc: rth

hello richard;

thank you for the pointer. you were right
in that it was the rtlinux wrapped swpipl.
at least now i am able to debug a little
further.

i would normally agree about the working
interrupt hardware, but it would seem to
me that if linux is able to run on the pc164
with it's broken irq mask that rtlinux should
be able to run also. 

On Wed, 8 Nov 2000, Richard Henderson wrote:

On Wed, Nov 08, 2000 at 10:27:42AM -0600, Terry L. Ridder wrote:
<snip>
richard> 
richard> > also is there any chance that this could be
richard> > caused by a differene between booting with
richard> > milo vs. booting with srm & aboot?
richard> 
richard> Not really.  More likely the difference between working
richard> interrupt hardware and not.  Given the games rtlinux plays
richard> with soft interrupt supression, I'd kinda doubt it works
richard> on the pc164.
richard> 
richard> 
richard> r~

-- 
Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

digging deep, i feel my conscience burn
i need to know who and what i am
this hunger jolts me from complacency
rocks me, makes me meet myself
----kendall payne---closer to myself---





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: milo, srm, pal code questions
  2000-11-08 21:25         ` Re[1]: " Terry L. Ridder
@ 2000-11-09  5:19           ` Jay Estabrook
  2000-11-09  9:35             ` Re[2]: " Terry L. Ridder
  0 siblings, 1 reply; 8+ messages in thread
From: Jay Estabrook @ 2000-11-09  5:19 UTC (permalink / raw)
  To: axp-list

On Wed, Nov 08, 2000 at 03:25:23PM -0600, Terry L. Ridder wrote:
> 
> i would normally agree about the working
> interrupt hardware, but it would seem to
> me that if linux is able to run on the pc164
> with it's broken irq mask that rtlinux should
> be able to run also. 

Not necessarily; if the rtlinux kernel expects to be able to mask
the interrupt (which doesn't work on pc164), and doesn't actually
get to calling the linux interrupt handler for that device, the
interrupt will stay active until that handler does get called to
process and turn off the interrupt cause.

Example (not rtlinux but milo/linux):

1. linux kernel exits with ethernet interrupt still posted,
2. milo gets entered, and eventually enables interrupts,
3. interrupt for ethernet card comes through,
4. milo finds no handler for the interrupt, masks it off, and returns,
5. interrupt comes through again, as masking doesn't work,
6. goto 3.

System looks hung, but is actually in *really* tight interrupt loop.

One can verify whether this is the current case by putting a printk at
the generic device interrupt handler entry; in 2.2.17, it would be in
arch/alpha/kernel/irq.c:do_entInt(), case 3.

Good luck.

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re[2]: milo, srm, pal code questions
  2000-11-09  5:19           ` Jay Estabrook
@ 2000-11-09  9:35             ` Terry L. Ridder
  0 siblings, 0 replies; 8+ messages in thread
From: Terry L. Ridder @ 2000-11-09  9:35 UTC (permalink / raw)
  To: axp-list

hello;

have made so good headway into getting rtlinux
working. now it at least loads the rtl.o
module without locking the alpha up. the system
is really slow so i assume it is spending too
much time in a handler loop somewhere. i will
debug that later today.

i am thinking i may end up implementing a 
psuedo-mask inside rtlinux to prevent recursion. 

i am running linux-2.4.0-test9 so i will have
to look a little for this location to put the
printk jay suggested.

thank you to both jay & richard for their help.

On Thu, 9 Nov 2000, Jay Estabrook wrote:

>On Wed, Nov 08, 2000 at 03:25:23PM -0600, Terry L. Ridder wrote:
>> 
>> i would normally agree about the working
>> interrupt hardware, but it would seem to
>> me that if linux is able to run on the pc164
>> with it's broken irq mask that rtlinux should
>> be able to run also. 
>
> Not necessarily; if the rtlinux kernel expects to be able to mask
> the interrupt (which doesn't work on pc164), and doesn't actually
> get to calling the linux interrupt handler for that device, the
> interrupt will stay active until that handler does get called to
> process and turn off the interrupt cause.
>
> Example (not rtlinux but milo/linux):
>
> 1. linux kernel exits with ethernet interrupt still posted,
> 2. milo gets entered, and eventually enables interrupts,
> 3. interrupt for ethernet card comes through,
> 4. milo finds no handler for the interrupt, masks it off, and returns,
> 5. interrupt comes through again, as masking doesn't work,
> 6. goto 3.
>
> System looks hung, but is actually in *really* tight interrupt loop.
>
> One can verify whether this is the current case by putting a printk at
> the generic device interrupt handler entry; in 2.2.17, it would be in
> arch/alpha/kernel/irq.c:do_entInt(), case 3.
>
> Good luck.
>
> --Jay++

-- 
Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

digging deep, i feel my conscience burn
i need to know who and what i am
this hunger jolts me from complacency
rocks me, makes me meet myself
----kendall payne---closer to myself---




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-11-09  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-07  5:39 milo, srm, pal code questions terrylr
2000-11-07 17:52 ` Jay Estabrook
2000-11-08  5:54   ` Richard Henderson
2000-11-08 16:27     ` Terry L. Ridder
2000-11-08 17:31       ` Richard Henderson
2000-11-08 21:25         ` Re[1]: " Terry L. Ridder
2000-11-09  5:19           ` Jay Estabrook
2000-11-09  9:35             ` Re[2]: " Terry L. Ridder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox