Skip to contentSkip to conversation

RTAS on PowerMac Newworld

DISCUSSION FASSINO Jean-Philippe 6 participants 13 messages Jul 25, 2000 – Jul 26, 2000 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

Just a question about RTAS on PowerMac G4, does linux kernel can call RTAS function ? And if not, why ?
I'm trying to do it and that fail...

JP

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 5 lines · FASSINO Jean-Philippe

Hello,

Just a question about RTAS on PowerMac G4,
does linux kernel can call RTAS function ?

Hi Jean-Philippe,

You can call RTAS on a PowerMac but I wouldn't do it. From what I understand
Apple doesn't recommend that you make use of RTAS on their hardware.

On RS/6000 hardware you most certainly can use RTAS.

Quoted 4 lines

And if not, why ?
I'm trying to do it and that fail...

JP

--
Tom Gall - PowerPC Linux Team "Where's the ka-boom? There was
Linux Technology Center supposed to be an earth
(w) [email protected] shattering ka-boom!"
(w) 507-253-4558 -- Marvin Martian
(h) [email protected]
http://oss.software.ibm.com/developerworks/opensource/linux

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw

Newbie question, what is RTAS?

Donald Cowart ([email protected])
Network Manager
Alachua County Library District
Gainesville, FL

Quoted 20 lines · On Tue, 25 Jul 2000 [email protected] wrote:
Quoted 5 lines · FASSINO Jean-Philippe

Hello,

Just a question about RTAS on PowerMac G4,
does linux kernel can call RTAS function ?

Hi Jean-Philippe,

You can call RTAS on a PowerMac but I wouldn't do it. From what I understand
Apple doesn't recommend that you make use of RTAS on their hardware.

On RS/6000 hardware you most certainly can use RTAS.

Quoted 4 lines

And if not, why ?
I'm trying to do it and that fail...

JP

Quoted 9 lines

--
Tom Gall - PowerPC Linux Team "Where's the ka-boom? There was
Linux Technology Center supposed to be an earth
(w) [email protected] shattering ka-boom!"
(w) 507-253-4558 -- Marvin Martian
(h) [email protected]
http://oss.software.ibm.com/developerworks/opensource/linux

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 2 lines · Donald Cowart

Newbie question, what is RTAS?

RTAS == Run-Time Abstraction Services

In a nutshell an API the OS may utilize to perform various tasks which without RTAS would be hardware dependant. For example: reading the level on a battery on a portable, and so on.

Quoted 1 line

Donald Cowart ([email protected])

--
Tom Gall - PowerPC Linux Team "Where's the ka-boom? There was
Linux Technology Center supposed to be an earth
(w) [email protected] shattering ka-boom!"
(w) 507-253-4558 -- Marvin Martian
(h) [email protected]
http://oss.software.ibm.com/developerworks/opensource/linux

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
In reply to Donald Cowart
Quoted 1 line · Donald Cowart

Newbie question, what is RTAS?

It is the Run-Time Abstraction Services which provide functions to insulate operating systems from having to know about and manipulating a number devices. It is a interface between hardware and software. For example, RTAS provide functions for reading and writing PCI configuration, shutdown, reboot, get time, managing power, ... of the CHRP computer.

JP

--
--------------------------------------------------------------------------
Jean-Philippe FASSINO France Telecom R&D : DTL/ASR
Tel : 04 76 76 45 52
mailto:[email protected]
--------------------------------------------------------------------------

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw
In reply to FASSINO Jean-Philippe
Quoted 6 lines

Just a question about RTAS on PowerMac G4, does linux kernel can call RTAS function ? And if not, why ?
I'm trying to do it and that fail...

RTAS in not correctly implemented in those machines. Apple is apparently abandonning it, the implementation in ROM for all core99 machines is bogus. What do you want to use RTAS for ?

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 5 lines

Just a question about RTAS on PowerMac G4, does linux kernel can call RTAS function ? And if not, why ?
I'm trying to do it and that fail...

RTAS in not correctly implemented in those machines. Apple is apparently abandonning it, the implementation in ROM for all core99 machines is bogus. What do you want to use RTAS for ?

In the kernel for PPC, a lot a code is here just to do what doing RTAS :
pci config,
via (CUDA and PMU) (no need if no ADB keyboard), ...
When doing embedded systems, this drivers is very big and can be saving by using
RTAS which i think is a very good thing in CHRP specification. It's strange that
apple do not provide it fully.

JP

--
--------------------------------------------------------------------------
Jean-Philippe FASSINO France Telecom R&D : DTL/ASR
Tel : 04 76 76 45 52
mailto:[email protected]
--------------------------------------------------------------------------

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#9 lore raw
Quoted 6 lines · FASSINO Jean-Philippe

When doing embedded systems, this drivers is very big and can be saving by using
RTAS which i think is a very good thing in CHRP specification. It's strange that
apple do not provide it fully.

I don't think Apple makes any embedded systems. As Tom mentioned though, other hardware vendors care...

-Hollis

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#10 lore raw
In reply to FASSINO Jean-Philippe
Quoted 9 lines

In the kernel for PPC, a lot a code is here just to do what doing RTAS :
pci config,
via (CUDA and PMU) (no need if no ADB keyboard), ...
When doing embedded systems, this drivers is very big and can be saving by using
RTAS which i think is a very good thing in CHRP specification. It's strange that
apple do not provide it fully.

Well, they didn't care about it. Note that Macs are far from beeing embedded boxes ;)

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#11 lore raw
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 8 lines

In the kernel for PPC, a lot a code is here just to do what doing RTAS :
pci config,
via (CUDA and PMU) (no need if no ADB keyboard), ...
When doing embedded systems, this drivers is very big and can be saving by using
RTAS which i think is a very good thing in CHRP specification. It's strange that
apple do not provide it fully.

Well, they didn't care about it. Note that Macs are far from beeing embedded boxes ;)

Yes, but i'm using embedded term for small system that doing dedicate task and only one (for example firewall, gateway, ... in only 50-100k kernel size).

I'm actually experienced that with G4 with 4 network card.

JP

--
--------------------------------------------------------------------------
Jean-Philippe FASSINO France Telecom R&D : DTL/ASR
Tel : 04 76 76 45 52
mailto:[email protected]
--------------------------------------------------------------------------

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#12 lore raw
Quoted 10 lines · FASSINO Jean-Philippe
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 8 lines

In the kernel for PPC, a lot a code is here just to do what doing RTAS :
pci config,
via (CUDA and PMU) (no need if no ADB keyboard), ...
When doing embedded systems, this drivers is very big and can be saving by using
RTAS which i think is a very good thing in CHRP specification. It's strange that
apple do not provide it fully.

Quoted 7 lines
Quoted 2 lines

Well, they didn't care about it. Note that Macs are far from beeing embedded boxes ;)

Yes, but i'm using embedded term for small system that doing dedicate task and only one (for example firewall, gateway, ... in only 50-100k kernel size).

I'm actually experienced that with G4 with 4 network card.

And what's the smallest amount of memory you can put in a G4? I guess it's an order of magnitude larger than a kernel containing all possible drivers :-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#13 lore raw
Quoted 14 lines · Geert Uytterhoeven
Quoted 13 lines · FASSINO Jean-Philippe
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 8 lines

In the kernel for PPC, a lot a code is here just to do what doing RTAS :
pci config,
via (CUDA and PMU) (no need if no ADB keyboard), ...
When doing embedded systems, this drivers is very big and can be saving by using
RTAS which i think is a very good thing in CHRP specification. It's strange that
apple do not provide it fully.

Well, they didn't care about it. Note that Macs are far from beeing embedded boxes ;)

Quoted 7 lines
Quoted 4 lines

Yes, but i'm using embedded term for small system that doing dedicate task and only one (for example firewall, gateway, ... in only 50-100k kernel size).

I'm actually experienced that with G4 with 4 network card.

And what's the smallest amount of memory you can put in a G4? I guess it's an order of magnitude larger than a kernel containing all possible drivers :-)

Sure, but G4 is just a good computer for experimentation !

JP

--
--------------------------------------------------------------------------
Jean-Philippe FASSINO France Telecom R&D : DTL/ASR
Tel : 04 76 76 45 52
mailto:[email protected]
--------------------------------------------------------------------------

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/