The hunt for HV's FIFO/Push buffer...

Technical discussion on the newly released and hard to find PS3.

Moderators: cheriff, emoon

Post Reply
mitran
Posts: 19
Joined: Fri Nov 30, 2007 6:03 am

Post by mitran »

2.10 ends RSX !
after updateing to 2.10 linux do not boot !
it starts the kboot promt I hit enter linux boots, screen goes blank, stays that way for 10 min , after some time the sceen blanks , and reblanks and so on , after some time , but noting more.
is it posibel to uninstall the RSX driver and change back to the old driver from the Kboot promt ?
Sdw
Posts: 29
Joined: Tue Jul 17, 2007 9:50 am

Post by Sdw »

That really sucks, my interest in picking up a PS3 really dropped now. Even if it still is possible to buy a 2.00 PS3, having to stay at an older firmware is just so impractical since you won't be able to play games or use any of the new FW features like DivX.

Good going Sony...NOT!!!
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

I do not know yet if is RSX blocked in FW 2.1

I know that many linux clean Geoff kernels do not boot with FW 2.1. I do not want to make FW upgrade to investigate this problem.
Compound
Posts: 48
Joined: Thu May 12, 2005 10:29 am

Post by Compound »

damn i really hope not, bought my ps3 yesterday, was planning on buying warhawk today, ah well its sonys own fault that they wont get my cash. would test this out, but really need rsx access lol
billb
Posts: 32
Joined: Wed Dec 12, 2007 5:52 am

Post by billb »

mitran wrote:2.10 ends RSX !
after updateing to 2.10 linux do not boot !
it starts the kboot promt I hit enter linux boots, screen goes blank, stays that way for 10 min , after some time the sceen blanks , and reblanks and so on , after some time , but noting more.
I have had the same experience with my Fedora 7 install ... I changed to a different bootloader as described in this post and it boots again.

@ IronPeter, if there is something specific you want to see/test re: the new firmware just let us know.
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

billb wrote:
mitran wrote:2.10 ends RSX !
after updateing to 2.10 linux do not boot !
it starts the kboot promt I hit enter linux boots, screen goes blank, stays that way for 10 min , after some time the sceen blanks , and reblanks and so on , after some time , but noting more.
I have had the same experience with my Fedora 7 install ... I changed to a different bootloader as described in this post and it boots again.

@ IronPeter, if there is something specific you want to see/test re: the new firmware just let us know.
It's a good point: As some of us have made the upgrade, maybe some ps3's upgraded owners could give "ssh" access to their box to IronPeter & Glaurung in order to test the "new" hypothetic restrictions of the Hypervisor.
d-range
Posts: 60
Joined: Fri Oct 26, 2007 8:22 pm

Post by d-range »

billb wrote:
mitran wrote:2.10 ends RSX !
after updateing to 2.10 linux do not boot !
it starts the kboot promt I hit enter linux boots, screen goes blank, stays that way for 10 min , after some time the sceen blanks , and reblanks and so on , after some time , but noting more.
I have had the same experience with my Fedora 7 install ... I changed to a different bootloader as described in this post and it boots again.

@ IronPeter, if there is something specific you want to see/test re: the new firmware just let us know.
So does that mean you have a booting FC7 with the ps3rsx module and FW2.10? Confirming that would already be extremely useful. If so, you could post the dmesg output related to the ps3rsx module.

I won't be updating before this is confirmed. If they really plugged the hole beyond workaround I guess that means my PS3 will just stay at 2.01 and be a linux development machine and I'll just stick with buying 360 games...
billb
Posts: 32
Joined: Wed Dec 12, 2007 5:52 am

Post by billb »

d-range wrote:So does that mean you have a booting FC7 with the ps3rsx module and FW2.10? Confirming that would already be extremely useful. If so, you could post the dmesg output related to the ps3rsx module.
I have a booting F7 with FW2.1 but the ps3rsx module doesn't work -- I posted partial dmesg output here. I'll edit that in a minute to include the full output.
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

test

Post by IronPeter »

Test is very simple. Try in the kernel mode

u64 a = 0, b = 0;
lv1_gpu_memory_allocate( 0, 0, 0, 0, 0, &a, &b );
printk( "%8x %8x %8x %8x \n", (u32)a, (u32)(a>>32), (u32)b, (u32)(b>>32) );

It is better to try that call before any RSX stuff ( for example in the ps3fb.c ).

Peter.
d-range
Posts: 60
Joined: Fri Oct 26, 2007 8:22 pm

Re: test

Post by d-range »

IronPeter wrote:Test is very simple. Try in the kernel mode

u64 a = 0, b = 0;
lv1_gpu_memory_allocate( 0, 0, 0, 0, 0, &a, &b );
printk( "%8x %8x %8x %8x \n", (u32)a, (u32)(a>>32), (u32)b, (u32)(b>>32) );

It is better to try that call before any RSX stuff ( for example in the ps3fb.c ).

Peter.
What would it mean for the RSX module if it cannot do lv1_gpu_memory_allocate with zero size parameter anymore? Is it essential to the way the RSX is accessed? Or would a non-zero allocate still enable you to get to the FIFO/RAMIN/etc?
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

It is for direct RAMIN access. I can init 3D only with this call ( but I am pretty sure that there are undocumented HV calls for 3D initialization ).
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

This is the problem with new kernels and 2.10:
http://git.kernel.org/?p=linux/kernel/g ... -2.10.diff
Geert Uytterhoeven wrote:Subject: ps3fb: Update for firmware 2.10

ps3fb: Update for firmware 2.10

As of PS3 firmware version 2.10, the GPU command buffer size must be at least 2
MiB large. Since we use only a small part of the GPU command buffer and don't
want to waste precious XDR memory, move the GPU command buffer back to the
start of the XDR memory reserved for ps3fb and let the unused part overlap with
the actual frame buffer.
LoaderDude
Posts: 2
Joined: Wed Dec 19, 2007 10:54 am

Post by LoaderDude »

Well, I took the leap and upgraded my Gutsy + ps3rsx to 2.10.

Petitboot came up but failed while attempting to start the X-server.
Backing off to fbdev still works with the same old (painful) performance. Needless to say, the rsx is sorely missed.

I'm ready to pull down source and start tinkering.
Give me a shout if there's something you'd like me to try.
- </\\/\\> -
stesmi
Posts: 9
Joined: Wed Dec 19, 2007 2:13 pm

Post by stesmi »

LoaderDude wrote:Well, I took the leap and upgraded my Gutsy + ps3rsx to 2.10.

Petitboot came up but failed while attempting to start the X-server.
Backing off to fbdev still works with the same old (painful) performance. Needless to say, the rsx is sorely missed.

I'm ready to pull down source and start tinkering.
Give me a shout if there's something you'd like me to try.
I'd try what IronPeter asked for although I'm pretty sure it'll fail ...
IronPeter wrote:Test is very simple. Try in the kernel mode

u64 a = 0, b = 0;
lv1_gpu_memory_allocate( 0, 0, 0, 0, 0, &a, &b );
printk( "%8x %8x %8x %8x \n", (u32)a, (u32)(a>>32), (u32)b, (u32)(b>>32) );

It is better to try that call before any RSX stuff ( for example in the ps3fb.c ).
Note that you don't need ps3rsx, etc at all for this, you just need a kernel tree that you've configured correctly, modify ps3fb.c and compile it, start it and see what it displays. So all the ps3rsx/modifying xorg.conf is not necessary at all for this test. Then write here what the results were.
User avatar
boxbuilder
Posts: 15
Joined: Sat Nov 17, 2007 3:13 pm

Post by boxbuilder »

Troll and Triangle are now working :-D
I found the new (different) mknods.sh in the init directory, and ran it, worked beautiful. Thanks for the n00b support IronPeter, I'm anxious to see the New Year's version. It would be cool if the demo moved, and made the rsx draw it's max number of triangles per frame (although anything cool is usually super hard to code.)

Should I make a howto or (try to) put my patched kernel build onto a gentoo live cd, and put the 3d stuff in the init script?
ps2devman
Posts: 259
Joined: Mon Oct 09, 2006 3:56 pm

Post by ps2devman »

Sure, boxbuilder, the more tutorial we get, the merrier Xmas will be!

Just don't upgrade fw to 2.10 now...

Message to all (nasty) hackers : Need to design a downgrade procedure...
ralferoo
Posts: 122
Joined: Sat Mar 03, 2007 9:14 am
Contact:

Post by ralferoo »

Geert Uytterhoeven wrote:As of PS3 firmware version 2.10, the GPU command buffer size must be at least 2 MiB large.
Now, I got to wondering why the command buffer size was increased unless they're expecting to fill it with lots of commands... perhaps there are now methods that allow the queue to be manipulated and official 3D isn't far off? </hoping>
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

> official 3D isn't far off

I hope also. Nice thing is that fb offset is still 64K. fb and fifo alias in memory. Looks like bug or preparing to 2D driver.
ps2devman
Posts: 259
Joined: Mon Oct 09, 2006 3:56 pm

Post by ps2devman »

Let's cross fingers but we can't be sure about what Sony has in mind...

So, in case it turns into a bloody war, here are the links to 2.01 fw
(lastest fw known to allow 70% of RSX control under Linux)

http://dus01.ps3.update.playstation.net ... 3UPDAT.PUP

http://deu01.ps3.update.playstation.net ... 3UPDAT.PUP

They won't remain online for long...

2.01 will allow to get both RSX funs and ability to play recent games.
(But if are not forced to, no need to upgrade at all)
jonwil
Posts: 18
Joined: Mon Nov 12, 2007 8:57 pm

Post by jonwil »

Have Sony made any official comments about 3D? Is there evidence that they are deliberatly blocking 3D?
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

jonwil, you do not understand. With this update Sony also breaks half of linux installations. PS3 linux code holder Levand Geoff did not know about these changes.
Panajev2001a
Posts: 100
Joined: Sat Aug 20, 2005 3:25 am

Post by Panajev2001a »

IronPeter wrote:jonwil, you do not understand. With this update Sony also breaks half of linux installations. PS3 linux code holder Levand Geoff did not know about these changes.
Luckily I did not update to the very latest kboot.bld, I updated to FW 2.10 and the only thing that is not working anymore is ps3rsx kmod and naturally the ps3rsx Xorg driver, but Linux boots fine on the very latest custom kernel (compiled it this morning).
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post by Oobles »

I've just posted a message to the main page.

http://ps2dev.org/News/Is_Sony_blocking_3D_access%3F

Have a read and let me know what you think?

Reply in this other thread I setup.

http://forums.ps2dev.org/viewtopic.php?p=62372

David. aka Oobles.
laichung
Posts: 123
Joined: Fri May 06, 2005 2:02 pm

Post by laichung »

Does this matter?

ps3fb: Update for firmware 2.10

As of PS3 firmware version 2.10, the GPU command buffer size must be at least 2
MiB large. Since we use only a small part of the GPU command buffer and don't
want to waste precious XDR memory, move the GPU command buffer back to the
start of the XDR memory reserved for ps3fb and let the unused part overlap with
the actual frame buffer.

From here:
http://git.kernel.org/?p=linux/kernel/g ... e263b14a7e
ps2devman
Posts: 259
Joined: Mon Oct 09, 2006 3:56 pm

Post by ps2devman »

You told everything we wanted to express oobles. Thanks a lot.
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

2.10 features

Post by IronPeter »

Nice if somebody is able to test lv1_gpu_context_attribute entries.

You can follow testing methodology from this page:
http://wiki.ps2dev.org/ps3:hypervisor:l ... _attribute

I very want to see push buffer after valid FB_SETUP call in FW 2.1. Just dump fifo buffer after that call in ps3fb.c and post that dump.

FIFO hunting is started again :).

Peter.
d-range
Posts: 60
Joined: Fri Oct 26, 2007 8:22 pm

Re: 2.10 features

Post by d-range »

IronPeter wrote:Nice if somebody is able to test lv1_gpu_context_attribute entries.

You can follow testing methodology from this page:
http://wiki.ps2dev.org/ps3:hypervisor:l ... _attribute

I very want to see push buffer after valid FB_SETUP call in FW 2.1. Just dump fifo buffer after that call in ps3fb.c and post that dump.

FIFO hunting is started again :).

Peter.
Is it of any use to you if I try different calls with different parameters on my 2.01 FW? If so, what exactly should I be looking for?
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

d-range, any nontrivial push buffers.

So you must memset( 0 ) fifo buffer, make lv1_gpu_context_attribute call, dump fifo bufer ( if there are any non zero values ). Any nonzero values are interesting for me.

Push buffer after FB_SETUP in ps3fb.c is the first candidate to investigate.

PS. FW 2.01 is not very interesting. FW 2.10 is.
d-range
Posts: 60
Joined: Fri Oct 26, 2007 8:22 pm

Post by d-range »

IronPeter wrote:...

PS. FW 2.01 is not very interesting. FW 2.10 is.
Ok... I don't want to upgrade to 2.10 for the moment (or anytime for that matter, if RSX turns out impossible after 2.01), so I guess I can only wait until someone finds something for 2.10+. How probable do you think it is you could find another hidden HV call if you had a box with 2.10 yourself? Maybe we could set up some donation scheme to get you a second PS3 to play with ;-). I know I'd be willing to chip in for some $$$ if it would mean a robust and safe RSX driver that won't be bombed by every fw upgrade.
dispo4
Posts: 1
Joined: Fri Dec 21, 2007 5:26 am

Post by dispo4 »

Hello, I follow your discussion, and even if I don't understand all about that your saying, I can test something for you, because I've PS3 EU 40GB model, and I want to help you :)
I'm still at 2.01, and Iwon't upgrade since the 2.1 fw don't allow good rsx...
I've got PS3, and I want to help people who want to test hacked possibility on PS3 ;)
Post Reply