linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* altivec
@ 1999-09-10 10:32 Sacha Varma
  1999-09-10 11:59 ` altivec Benjamin Herrenschmidt
  1999-09-10 17:39 ` altivec David Edelsohn
  0 siblings, 2 replies; 26+ messages in thread
From: Sacha Varma @ 1999-09-10 10:32 UTC (permalink / raw)
  To: linuxppc-dev


Has any progress been made on LinuxPPC Altivec support? I posted a while back
and there was some discussion, I wondered if anyone was taking it further. I
suppose the arrival of G4 Macs in a few weeks' time will help kickstart things.
It would be great if AIM took the lead in this sort of work...

The issues as I remember them:

.. saving/restoring altivec registers (there's sample machine
  code for one of the ABIs in the Altivec documentation)

.. support in egcs for the Altivec C language extensions, 
  hopefully C++ also (someone said they had patches supplied
  by Motorola, but I've not found mention of these on the
  Motorola SPS site so I assume they're not for general
  consumption)


There was some talk of trapping an illegal instruction interrupt in
Altivec-compiled code on non-Altivec processors and then emulating it in
software, but as I recall this was thought to be maybe impossible (due to
limited information about the illegal instruction and limits on what you can do
in the trap) or more effort than it's worth.


In the meantime to learn more about Altivec I've been working on a library to
emulate the instructions in software (with appropriate #defines for the language
extensions in a header). If anyone's interested e-mail me and I'll let you know
if/when I'm done; I'm hoping to get the bulk of it done this weekend. (It'll be
C++ I'm afraid - the vector types lend themselves nicely to a template class,
and a lot of the vec_* instructions are overloaded).


--
sacha varma : system simulation ltd : sacha@ssl.co.uk

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

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: altivec
@ 1999-07-20 17:04 David DeHaven
  0 siblings, 0 replies; 26+ messages in thread
From: David DeHaven @ 1999-07-20 17:04 UTC (permalink / raw)
  To: linuxppc-dev


>Good lord!  Going the implement-your-own-of route sounds like the best 
>(only) way to go for something like this.

What? You think $500,000 is a lot of money? 'tis a pittance!

-DrD-

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: altivec
@ 1999-07-20 17:04 David DeHaven
  0 siblings, 0 replies; 26+ messages in thread
From: David DeHaven @ 1999-07-20 17:04 UTC (permalink / raw)
  To: linuxppc-dev


>Motorola or IBM will be happy to sell you a "non-apple non-MacOS PPC"
>machine for Linux, it's just nobody wants to pay the price. :)  A startup
>with a very low overhead could probably provide a reasonably priced mobo
>with an MPC107 and MPC750@400+mhz.  They would want to then sell them to a
>system manufacturer which already has volume discount commodity parts in
>their facility to build a consumer priced machine.  Selling 1-2 boards to
>each homebrew person isn't a business plan that will attract any
>investment, a decent volume distribution deal is needed.  Hrm, I wonder
>what the licensing cost of OF is or would it be better to do an open
>implementation of the standard...

The problem is, there's not enough demand right now to drive a non-PPC 
Linux box market. It's one of those things where we all sit around and 
say "Gosh, that would be cool if all of Intels plants just blew up 
suddenly and PowerPC would dominate the world!!!" It just aint gonna 
happen, at least not in the near future. (very much like the story of 
BeOS...)

As for OF, last I heard IBM will gladly license you to use and modify 
their OF implementation to your own needs. In the short term, it's 
cheaper and easier than trying to brew something up yourself.

-DrD-

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: altivec
@ 1999-07-20 17:04 David DeHaven
  0 siblings, 0 replies; 26+ messages in thread
From: David DeHaven @ 1999-07-20 17:04 UTC (permalink / raw)
  To: linuxppc-dev


>I would love to work with Altivec, does anyone have any idea where to get
>the hardware preferably cheap =)?

Bwah hah hah hah hah!!! That's a good one! :)

Seriously, you won't see G4's on the market until early next year, unless 
some serious strings are pulled.

-DrD-

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 26+ messages in thread
[parent not found: <Pine.PMDF.3.96.990715091130.538970498B-100000@uni.edu>]
* altivec
@ 1999-07-09 11:29 Sacha Varma
  1999-07-09 12:14 ` altivec Holger Bettag
  0 siblings, 1 reply; 26+ messages in thread
From: Sacha Varma @ 1999-07-09 11:29 UTC (permalink / raw)
  To: linuxppc-dev


Some questions about altivec & LinuxPPC:

1. is there a free C compiler supporting altivec instructions for
   linuxPPC?

2. would it be possible to trap altivec instructions on a non-altivec
   processor and reroute them through code using generic instructions?
   (I believe this is how Apple's MacOS altivec simulator does it).
   Presumably there is a bad instruction interrupt or something and
   code in the kernel to trap these interrupts? (Excuse my naivety;
   I'm more of a kernel user than hacker - for now!)

3. has anyone written a C library to simulate the altivec instructions?

--
sacha varma : system simulation ltd : sacha@ssl.co.uk

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Altivec
@ 1999-06-21 14:34 sean o'malley
  0 siblings, 0 replies; 26+ messages in thread
From: sean o'malley @ 1999-06-21 14:34 UTC (permalink / raw)
  To: linuxppc-dev


Does anyone know how to acquire the G-4 with Altivec? I know its still a
proto, but im not too keen on waiting for the G-4 to get here and I want to
see if I can get something to work with Altivec and I cant do it with the
emulator.



[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

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

end of thread, other threads:[~1999-09-10 18:02 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-10 10:32 altivec Sacha Varma
1999-09-10 11:59 ` altivec Benjamin Herrenschmidt
1999-09-10 12:27   ` altivec Sacha Varma
1999-09-10 17:43     ` altivec Brad Midgley
1999-09-10 17:51       ` altivec Brad Midgley
1999-09-10 18:02       ` altivec Vitaly Oratovsky
1999-09-10 17:39 ` altivec David Edelsohn
  -- strict thread matches above, loose matches on Subject: below --
1999-07-20 17:04 altivec David DeHaven
1999-07-20 17:04 altivec David DeHaven
1999-07-20 17:04 altivec David DeHaven
     [not found] <Pine.PMDF.3.96.990715091130.538970498B-100000@uni.edu>
1999-07-15 16:11 ` altivec Matt Porter
1999-07-15 16:22   ` altivec Jason Haas
1999-07-15 16:29     ` altivec Josh Huber
1999-07-15 12:14       ` altivec sean o'malley
1999-07-15 17:36     ` altivec Matt Porter
1999-07-16  6:29   ` altivec Geert Uytterhoeven
1999-07-16 14:47     ` altivec Matt Porter
1999-07-09 11:29 altivec Sacha Varma
1999-07-09 12:14 ` altivec Holger Bettag
1999-07-09 13:04   ` altivec Mike DeSimone
1999-07-09 15:33     ` altivec Holger Bettag
1999-07-10  0:41       ` altivec Mike DeSimone
1999-07-14 10:17         ` altivec sean o'malley
1999-07-14 21:04           ` altivec Matt Porter
1999-07-14 21:42             ` altivec Josh Huber
1999-06-21 14:34 Altivec sean o'malley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).