forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SCEI EE gcc patches?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Sat Mar 19, 2005 2:09 am    Post subject: SCEI EE gcc patches? Reply with quote

Something I noticed when reading the (publicly available) paper from SCEA Research Procedural Rendering on PlayStation 2:
Quote:
Unlike the early days of the PS2 where everything had to be painstakingly pieced together from the manuals and example code, lately there are some new tools to help you program PS2. Most of these are freely available for registered developers from the PS2 support websites and nearly all come with source.

Quote:
The GCC inline assembler patch adds a number of new features to the inline assembler:
  • Introduces a new j register type for 128-bit vector registers, allowing the compiler to know that these values are to be assigned to VU0 Macro Mode registers
  • Allows register naming, so more descriptive symbols can be used.
  • Allows access to fields in VU0 broadcast instructions allowing you to, say, template a function across broadcast fields (x, xy, xyz, xyzw)
  • No more volatile inline assembly, the compiler is free to reorder instructions as the context is properly described.
  • No more explicit loading and moving registers to and from VU registers, the compiler is free to keep values in VU registers as long as possible.
  • No need to use explicit registers, unless you want to. The compiler can assign free registers

I've tried using some of this based on the examples, but with no success, so I'm assuming that these changes are not in our toolchain, but in one that's only available to registered developers. Has SCEI released this patch to the public? It would seem like a violation of the GPL if they haven't...

The "j" register type, along with better native support for the 128-bit data types, would be very nice.
Back to top
View user's profile Send private message AIM Address
modman



Joined: 12 Feb 2005
Posts: 31
Location: Philadelphia, PA

PostPosted: Sat Mar 19, 2005 2:23 am    Post subject: Reply with quote

This was on slashdot recently:

http://developers.slashdot.org/developers/05/03/18/0315241.shtml?tid=117&tid=156&tid=17

Seems that maybe we should give Sony a call:

http://www.yellowpages.com/SearchResult.aspx?page=home&searchform=homesearch&typeorname=name&search=Sony&searchfor=Sony&method=and&city=New+York&state=NY

Maybe http://www.eff.org/ can help us if we have a case.

"We want teh source!" :-)
_________________
SCPH-50001/N
HD SCPH-20401 U
Eyetoy SLEH-00031
Network Adaptor SCPH-10281
Logitech Z680 via FIber w00t!
Sony Wega TV + USB Keyboard
http://staff.philau.edu/barberej/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Sat Mar 19, 2005 3:00 am    Post subject: Reply with quote

Just to be clear, I don't want this to turn into a SCEI-bashing flamewar...

I'm just curious: if they're distributing a patch to product(s) licensed under the GPL (e.g., gcc, binutils), are they required to redistribute the source to anyone, even if the tools are only available to licensed developers? Since their changes are not being distributed to the public at large, are there requirements in the GPL that require them to distribute the source to the public at large? I don't know the answer to this, and reading the GPL doesn't shed any light on it.

Correspondingly, are there any restrictions on licensed developers who have received this patch? In other words, even if you've signed Sony's NDA, do you still have the right to distribute the patches that SCEI made to GPL'd code?

Of course, I could be jumping to conclusions here -- maybe the source is somewhere, and I just haven't been able to find it ;-)
Back to top
View user's profile Send private message AIM Address
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Mar 19, 2005 3:42 am    Post subject: Reply with quote

mharris: Talk to some of the GCC hackers in #ps2dev, chances are (well I guarantee :) that they have the patches and are willng to share with you.

And no, SCEA is not in GPL violation, since they only distribute the binaries to licensed developers. Ignore anyone who suggests otherwise - that one seems to make the top ten of the misunderstood GPL list :). I don't know about the NDA bit, I remember Sparky asking for permission to distribute the patches out of courtesy to SCEE and they told him yes. But that was awhile ago, and I'm a bit fuzzy on the details. Better ask him :).
_________________
"He was warned..."
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Mar 19, 2005 5:17 am    Post subject: Reply with quote

Actually, any registred developper is allowed to distribute the binutils/gcc patches. mrbrown is right: the GPL is allowing SONY to distribute his crafted binaries to some people only, and not giving out the patches to anyone directly. But, indirectly, as long as only the patches are given out, the NDA doesn't apply, because THAT would be a GPL violation (that is, unallowing people to redistribute the patches freely)

So any people who gets the patches (that is, any developper) is perfectly and utterly allowed to distribute them. And sony is perfectly "allowed" to frankly dislike this developper afterward. So, it is maybe a bit difficult to convince a registered developper to give out the patches.

So I don't know. Maybe some of you may want to try to convince registered developpers to ask the patches out and redistribute them to us. *shrug*
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Mar 19, 2005 9:05 am    Post subject: Reply with quote

*slaps forehead*

There are #ps2dev'rs that already have the SCEA GCC patches. Just ask them for them. Since they haven't posted in the affirmative, I'll tell you who it is: blackdroid and MrHTFord.
_________________
"He was warned..."
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Mar 19, 2005 9:26 am    Post subject: Reply with quote

I'll try to taunt them to death then.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sat Mar 19, 2005 9:59 am    Post subject: Reply with quote

modman wrote:
This was on slashdot recently:

http://developers.slashdot.org/developers/05/03/18/0315241.shtml?tid=117&tid=156&tid=17

Seems that maybe we should give Sony a call:


Please get lost with your viral outcry, as mr.b has said Sony is following the license by the book.

I have a gcc-3.2 source that includes these datatypes, when using those you will get mmi and cop2 generated code.
Back to top
View user's profile Send private message Visit poster's website
modman



Joined: 12 Feb 2005
Posts: 31
Location: Philadelphia, PA

PostPosted: Mon Mar 21, 2005 10:50 am    Post subject: Reply with quote

sorry blackdroid...

i was not taught the finer points of the GPL license in college... i have read about two paragraphs and do not wish to read anymore :)

the post was mostly meant to be a joke, as i don't think u will be able to reach anyone directly calling that number.

sorry sony ;-)
_________________
SCPH-50001/N
HD SCPH-20401 U
Eyetoy SLEH-00031
Network Adaptor SCPH-10281
Logitech Z680 via FIber w00t!
Sony Wega TV + USB Keyboard
http://staff.philau.edu/barberej/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group