PS3RSX Binary driver support

Investigation into how Linux on the PS3 might lead to homebrew development.

Moderators: cheriff, emoon

Nodnol212
Posts: 13
Joined: Sat Jan 05, 2008 8:29 am

Post by Nodnol212 »

for some odd reasion the text is REALY small and hard to read (mainly due to a poor convergence on tis lame sony trinaton 34inch 1080i tv i have... i tryed adjusting it as best as i can and its still all out of focus...

ok i think it says

Boot Server error:
no screen found
eddd
Posts: 11
Joined: Wed Jan 16, 2008 4:15 am

Post by eddd »

Akta77 wrote: Don't worry with version report (i forgot to change the revision in the changelog... will correct this asap).

I have identified the problem. A new package has been posted (rev 3).


<!>This driver is still for < 2.10 firmware <!>

Regards
I have the same issue. I'm not using your binaries however I've compiled the kernel module and the Xorg driver and made the relevant Xorg.conf changes, but when loading the module I get the infamous "lv1_gpu_memory_allocate failed" error and a black screen on startx. How have you got round this on firmware 2.10?

Thanks.
Nodnol212
Posts: 13
Joined: Sat Jan 05, 2008 8:29 am

Post by Nodnol212 »

i found this thread mentioneds the push driver

http://psubuntu.com/forum/viewtopic.php?t=1805

it looks diffrent then the ps3rsx binary driver... is it similer?
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

eddd wrote:
Akta77 wrote: Don't worry with version report (i forgot to change the revision in the changelog... will correct this asap).

I have identified the problem. A new package has been posted (rev 3).


<!>This driver is still for < 2.10 firmware <!>

Regards
I have the same issue. I'm not using your binaries however I've compiled the kernel module and the Xorg driver and made the relevant Xorg.conf changes, but when loading the module I get the infamous "lv1_gpu_memory_allocate failed" error and a black screen on startx. How have you got round this on firmware 2.10?

Thanks.

Hi,

This driver is NOT working with firmware 2.10!

Regards
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

Nodnol212 wrote:i found this thread mentioneds the push driver

http://psubuntu.com/forum/viewtopic.php?t=1805

it looks diffrent then the ps3rsx binary driver... is it similer?
This is a different driver not using RSX features but SPEs to do the xv and EXA acceleration.

Look at unsolo's project for more informations about it :)

Regards
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

eddd wrote:
Akta77 wrote: Don't worry with version report (i forgot to change the revision in the changelog... will correct this asap).

I have identified the problem. A new package has been posted (rev 3).


<!>This driver is still for < 2.10 firmware <!>

Regards
I have the same issue. I'm not using your binaries however I've compiled the kernel module and the Xorg driver and made the relevant Xorg.conf changes, but when loading the module I get the infamous "lv1_gpu_memory_allocate failed" error and a black screen on startx. How have you got round this on firmware 2.10?

Thanks.
He hasn't. Read his post. It only works on firmware version less than 2.10.
eddd
Posts: 11
Joined: Wed Jan 16, 2008 4:15 am

Post by eddd »

jimparis wrote:
eddd wrote:
Akta77 wrote: Don't worry with version report (i forgot to change the revision in the changelog... will correct this asap).

I have identified the problem. A new package has been posted (rev 3).


<!>This driver is still for < 2.10 firmware <!>

Regards
I have the same issue. I'm not using your binaries however I've compiled the kernel module and the Xorg driver and made the relevant Xorg.conf changes, but when loading the module I get the infamous "lv1_gpu_memory_allocate failed" error and a black screen on startx. How have you got round this on firmware 2.10?

Thanks.
He hasn't. Read his post. It only works on firmware version less than 2.10.
Oh yeah, I misread. Cheers.
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Update

Post by Akta77 »

ps3rsx module updated to 1.0-4 for kernel 2.6.22 rev 51.

Regards,

Akta
leonhong
Posts: 10
Joined: Wed Jan 09, 2008 6:38 pm

Re: Update

Post by leonhong »

Akta77 wrote:ps3rsx module updated to 1.0-4 for kernel 2.6.22 rev 51.

Regards,

Akta
Many thanks Akta, very good efficiency !!
lullu
Posts: 3
Joined: Thu Dec 13, 2007 6:36 am
Location: Czech Republic

Post by lullu »

Seems to work fine :)
Thanks to all involved... :)

lullu@localhost:~$ dmesg | grep ps3rsx
[ 52.445693] ps3rsx: PS3 RSX access module, 1.0.0
[ 52.445712] ps3rsx: reserved XDR memory is @c000000000900000, len 18874368
[ 52.448350] ps3rsx: 254MB of DDR video ram at 0x7001a0000000 mapped at d00008008046e000 handle 5a5a5a5b
[ 52.451613] ps3rsx: context 0x55555554 dma=4400003a1000 driver=4000001b4000 reports=480000710000 reports_size=10000
[ 52.451644] ps3rsx: ctrl=d00008009026e000 drv=d00008009026f000 reports=d00008009028f000
[ 52.451665] ps3rsx: version 2.11 RSX rev12 0MB RAM channel 1 core 500MHz mem 650MHz
[ 52.451710] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
[ 65.478659] ps3rsx: context 0x55555557 dma=4400003a2000 driver=4000001b8000 reports=480000720000 reports_size=10000
[ 65.478683] ps3rsx: ctrl=d0000800902a0000 drv=d0000800902a1000 reports=d0000800902c1000
[ 65.478703] ps3rsx: version 2.11 RSX rev12 0MB RAM channel 2 core 500MHz mem 650MHz
[ 65.478733] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
leonhong
Posts: 10
Joined: Wed Jan 09, 2008 6:38 pm

Post by leonhong »

Dear Akta77:

The kernel 2.6.22 rev 52 was released for about 1 month, but there is no further update of ps3rsxdriver for this rev presently. Can you update the ps3rsx driver for rev 52?

Regards
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

leonhong wrote:Dear Akta77:

The kernel 2.6.22 rev 52 was released for about 1 month, but there is no further update of ps3rsxdriver for this rev presently. Can you update the ps3rsx driver for rev 52?

Regards
I will post it this evening!

Regards

Akta
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Post by Akta77 »

Akta77 wrote:
leonhong wrote:Dear Akta77:

The kernel 2.6.22 rev 52 was released for about 1 month, but there is no further update of ps3rsxdriver for this rev presently. Can you update the ps3rsx driver for rev 52?

Regards
I will post it this evening!

Regards

Akta
Package Updated!

See 1st post for info.

Akta
leonhong
Posts: 10
Joined: Wed Jan 09, 2008 6:38 pm

Post by leonhong »

Dear Akta77:

Thanks for the update again. I had bought another 40GB model to upgrade FW and play DMC4. The 60 GB model have replaced my PC now. As you know, too many trojan, virus and worms made the Intel family computers very dangerous to surf the web. My credit card was once hacked on the internet, and the bank guys informed me to exchange me a new card, sigh...

Using PS3 makes me very happy not to worrying about being hacked or something...

Best Regards
alanine
Posts: 7
Joined: Thu Mar 13, 2008 12:53 pm

Post by alanine »

I'm using a PS3 80G with firmware 1.80, and followed d-range's instruction for Gentoo.

The ps3rsx.ko kernel module loads fine:

Code: Select all

$ dmesg|grep rsx
ps3rsx&#58; PS3 RSX access module, 1.0.0
ps3rsx&#58; reserved XDR memory is @c000000000d00000, len 18874368
ps3rsx&#58; 254MB of DDR video ram at 0x700190000000 mapped at d000080080780000 handle 5a5a5a5b
ps3rsx&#58; context 0x55555554 dma=440000381000 driver=480000684000 reports=4c0000d90000 reports_size=10000
ps3rsx&#58; ctrl=d00008008010c000 drv=d0000800905c0000 reports=d0000800804e0000
ps3rsx&#58; version 2.11 RSX rev17 0MB RAM channel 1 core 500MHz mem 650MHz
ps3rsx&#58; remapped XDR apperture at c000000000d00000 size 18432kB to RSX
and the ps3 driver for Xorg also loads fine:

Code: Select all

grep PS3 /var/log/Xorg.0.log
&#40;II&#41; PS3&#58; driver for framebuffer&#58; ps3
&#40;II&#41; PS3&#40;0&#41;&#58; using default device
&#40;**&#41; PS3&#40;0&#41;&#58; Depth 24, &#40;**&#41; framebuffer bpp 32
&#40;==&#41; PS3&#40;0&#41;&#58; RGB weight 888
&#40;==&#41; PS3&#40;0&#41;&#58; Default visual is TrueColor
&#40;==&#41; PS3&#40;0&#41;&#58; Using gamma correction &#40;1.0, 1.0, 1.0&#41;
&#40;II&#41; PS3&#40;0&#41;&#58; hardware&#58; ps3fb &#40;video memory&#58; 18368kB&#41;
&#40;II&#41; PS3&#40;0&#41;&#58; checking modes against framebuffer device...
&#40;II&#41; PS3&#40;0&#41;&#58; checking modes against monitor...
&#40;II&#41; PS3&#40;0&#41;&#58; use current mode
&#40;--&#41; PS3&#40;0&#41;&#58; Virtual size is 1280x1024 &#40;pitch 1280&#41;
&#40;**&#41; PS3&#40;0&#41;&#58;  Built-in mode "current"&#58; 108.0 MHz, 64.0 kHz, 60.0 Hz
&#40;II&#41; PS3&#40;0&#41;&#58; Modeline "current"  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync -csync
&#40;++&#41; PS3&#40;0&#41;&#58; DPI set to &#40;100, 100&#41;
&#40;II&#41; PS3&#40;0&#41;&#58;   Control registers &#58; 0x4000002b000
&#40;II&#41; PS3&#40;0&#41;&#58;   DMA command buffer&#58; 0x40000039000
&#40;II&#41; PS3&#40;0&#41;&#58;   DMA cmdbuf length &#58; 63 KiB
&#40;II&#41; PS3&#40;0&#41;&#58;   DMA base PUT      &#58; 0x0e1d0000
&#40;==&#41; PS3&#40;0&#41;&#58; Backing store disabled
But my problem is that no acceleration would work for me! If I enable Composite in Xorg.conf, then my entire screen would appear scrambled (random color dots everywhere) in xfce4. So I had to disable it.

I tried mplayer -vo xv, it works, but I can't tell if anything is accelerated.

What could be wrong here?

[Edit]: I must add that libps3rsx works for me, and I can display the troll in 3D. So clearly it's not an issue of rsx not working, but somehow xorg can't make use of it.
alanine
Posts: 7
Joined: Thu Mar 13, 2008 12:53 pm

Post by alanine »

ok, problem solved after I re-installed 32-bit userland instead of the 64-bit I was using. It seems that Xorg's fbdev has broken composite support in 64-bit. Users trying this RSX driver must be aware.

It seems Gentoo won't allow running 64-bit binaries in 32-bit userland, but to have WPA encryption for wireless 64-bit wireless-tools must be used because 32-bit is broken. Oh, well...
nGine_fuuL
Posts: 1
Joined: Mon Mar 31, 2008 8:54 am

Post by nGine_fuuL »

hey there,

forgive my ignorance, but im very new to linux. i just got yellow dog 6 installed two days ago, and was wondering if anyone could please point me in the right direction to installing the rsx driver for yellow dog 6. preferably a quick tutorial.

thanks allot
dlai
Posts: 1
Joined: Tue Apr 08, 2008 9:43 pm

Post by dlai »

lullu wrote:Seems to work fine :)
Thanks to all involved... :)

lullu@localhost:~$ dmesg | grep ps3rsx
[ 52.445693] ps3rsx: PS3 RSX access module, 1.0.0
[ 52.445712] ps3rsx: reserved XDR memory is @c000000000900000, len 18874368
[ 52.448350] ps3rsx: 254MB of DDR video ram at 0x7001a0000000 mapped at d00008008046e000 handle 5a5a5a5b
[ 52.451613] ps3rsx: context 0x55555554 dma=4400003a1000 driver=4000001b4000 reports=480000710000 reports_size=10000
[ 52.451644] ps3rsx: ctrl=d00008009026e000 drv=d00008009026f000 reports=d00008009028f000
[ 52.451665] ps3rsx: version 2.11 RSX rev12 0MB RAM channel 1 core 500MHz mem 650MHz
[ 52.451710] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
[ 65.478659] ps3rsx: context 0x55555557 dma=4400003a2000 driver=4000001b8000 reports=480000720000 reports_size=10000
[ 65.478683] ps3rsx: ctrl=d0000800902a0000 drv=d0000800902a1000 reports=d0000800902c1000
[ 65.478703] ps3rsx: version 2.11 RSX rev12 0MB RAM channel 2 core 500MHz mem 650MHz
[ 65.478733] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
Does this mean that the rsx driver works for fw > 2.10?
phaielip
Posts: 6
Joined: Fri Apr 11, 2008 11:36 pm

Post by phaielip »

Hello,
don't know for you dlai...
cause I have the same problem that alanine,
I use a kubuntu designed for the PS3, with firmware 1.81, on a 60 Gb PS3 :
playstation@localhost:~$ dmesg | grep ps3rsx
[ 54.019609] ps3rsx: PS3 RSX access module, 1.0.0
[ 54.019629] ps3rsx: reserved XDR memory is @c000000000900000, len 18874368
[ 54.022255] ps3rsx: 254MB of DDR video ram at 0x700260000000 mapped at d00008008046e000 handle 5a5a5a5b
[ 54.025624] ps3rsx: context 0x55555554 dma=440000521000 driver=4800009c4000 reports=4c0001410000 reports_size=10000
[ 54.025660] ps3rsx: ctrl=d00008009026e000 drv=d00008009026f000 reports=d00008009028f000
[ 54.025683] ps3rsx: version 2.11 RSX rev17 0MB RAM channel 1 core 500MHz mem 650MHz
[ 54.025733] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
[ 94.049836] ps3rsx: context 0x55555557 dma=440000522000 driver=4800009c8000 reports=4c0001420000 reports_size=10000
[ 94.050581] ps3rsx: ctrl=d0000800902a0000 drv=d0000800902a1000 reports=d0000800902c1000
[ 94.050606] ps3rsx: version 2.11 RSX rev17 0MB RAM channel 2 core 500MHz mem 650MHz
[ 94.050637] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
[ 540.277855] ps3rsx: context 0x55555557 dma=440000522000 driver=4800009c8000 reports=4c0001420000 reports_size=10000
[ 540.278583] ps3rsx: ctrl=d0000800902a0000 drv=d0000800902a1000 reports=d0000800902c1000
[ 540.278607] ps3rsx: version 2.11 RSX rev17 0MB RAM channel 2 core 500MHz mem 650MHz
[ 540.278638] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
[ 791.277876] ps3rsx: context 0x55555557 dma=440000522000 driver=4800009c8000 reports=4c0001420000 reports_size=10000
[ 791.278661] ps3rsx: ctrl=d0000800902a0000 drv=d0000800902a1000 reports=d0000800902c1000
[ 791.278705] ps3rsx: version 2.11 RSX rev17 0MB RAM channel 2 core 500MHz mem 650MHz
[ 791.278738] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
[ 1716.430758] ps3rsx: context 0x55555557 dma=440000522000 driver=4800009c8000 reports=4c0001420000 reports_size=10000
[ 1716.431737] ps3rsx: ctrl=d0000800902a0000 drv=d0000800902a1000 reports=d0000800902c1000
[ 1716.431760] ps3rsx: version 2.11 RSX rev17 0MB RAM channel 2 core 500MHz mem 650MHz
[ 1716.431802] ps3rsx: remapped XDR apperture at c000000000900000 size 18432kB to RSX
and for xorg :
playstation@localhost:~$ grep PS3 /var/log/Xorg.0.log
(II) PS3: driver for framebuffer: ps3
(II) PS3(0): using default device
(II) PS3(0): Creating default Display subsection in Screen section
(**) PS3(0): Depth 24, (--) framebuffer bpp 32
(==) PS3(0): RGB weight 888
(==) PS3(0): Default visual is TrueColor
(==) PS3(0): Using gamma correction (1.0, 1.0, 1.0)
(II) PS3(0): hardware: ps3fb (video memory: 18368kB)
(II) PS3(0): checking modes against framebuffer device...
(II) PS3(0): checking modes against monitor...
(II) PS3(0): use current mode
(--) PS3(0): Virtual size is 1280x720 (pitch 1280)
(**) PS3(0): Built-in mode "current": 74.2 MHz, 45.0 kHz, 59.9 Hz
(II) PS3(0): Modeline "current" 74.18 1280 1350 1430 1650 720 726 731 750 bcast -hsync -vsync -csync
(++) PS3(0): DPI set to (100, 100)
(II) PS3(0): Control registers : 0xe5e5d000
(II) PS3(0): DMA command buffer: 0xe5e5e000
(II) PS3(0): DMA cmdbuf length : 63 KiB
(II) PS3(0): DMA base PUT : 0x0e1d0000
(==) PS3(0): Backing store disabled
(**) PS3(0): DPMS enabled
I think the problem is the same, I should have a 64 bit userland (I don't know, cause I didn't even know what is a userland...), but here is my question :
I have a lot of artifacts when I move a window on firefox for example, but if I execute xcompmgr, all is ok, so I though 2D acceleration graphics was ok.
But, if I execute a little game like superTux for example, it don't work at all... but, if 2D graphics were ok, it should run fluently, don't he ?
bergquist
Posts: 1
Joined: Wed Oct 22, 2008 11:22 pm

I have to say...

Post by bergquist »

Great work on this.

But I kind of... fubared my ps3 and installed firmware 2.10 and was wondering if there still was any development to make it work?
Akta77
Posts: 40
Joined: Sun Dec 09, 2007 9:57 pm
Location: France (Paris)

Re: I have to say...

Post by Akta77 »

bergquist wrote:Great work on this.

But I kind of... fubared my ps3 and installed firmware 2.10 and was wondering if there still was any development to make it work?
Nope...Don't think so :(

Anyway, as many of us, i also had to switch tu fw > 2.4x.

Only hope will result on unsolo's team work.

Akta
PimpDawg
Posts: 1
Joined: Fri Apr 03, 2009 3:53 pm

New ps3rsx .deb for 2.6.28-6-powerpc64-smp?

Post by PimpDawg »

I'm looking to install the accelerated xorg driver in the latest Ubuntu. Anyone know if it's available somewhere? I'm using 2.6.28-6-powerpc64-smp. Nevermind, I compiled from source. Althought I can't get it working. I will try YDL.

Thanks.
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Dump Request for initial objects prior to 2.10

Post by unsolo »

Hi guys
After 2.10 the RSX 3d part doesnt really work bu i spendt some time looking into using the pre defined 2d objects to make a faster more convinient driver.
In order to do so I need a dump of the objects from ramin (last 4 mb of the vram)

anyone capable of providing me with that dump file from a ps3 pre 2.10 prior to the ps3rsx driver overwriting the content?
Don't do it alone.
ps2devman
Posts: 259
Joined: Mon Oct 09, 2006 3:56 pm

Post by ps2devman »

First step would be to publish the simpliest and easiest source code producing that dump at the exact moment you want. That way you will get many responses on many configs (I will be glad to dump it on Pal 40gb 2.01 and Ntsc 60gb -fw version much older-).
mattruby
Posts: 13
Joined: Sun Jan 13, 2008 11:18 am

Re: Dump Request for initial objects prior to 2.10

Post by mattruby »

unsolo wrote:Hi guys
After 2.10 the RSX 3d part doesnt really work bu i spendt some time looking into using the pre defined 2d objects to make a faster more convinient driver.
In order to do so I need a dump of the objects from ramin (last 4 mb of the vram)

anyone capable of providing me with that dump file from a ps3 pre 2.10 prior to the ps3rsx driver overwriting the content?
Hi again :). Does this mean that you're working on completing the accelerated SPU driver for X?

I loaned out an old Ubuntu PS3 to a friend about a year and a half ago. I'm going to find out whether it's still got a pre-2.10 firmware installed. If so, I can run a program if you've got one to dump the objects you need.
unsolo
Posts: 155
Joined: Mon Apr 16, 2007 2:39 am
Location: OSLO Norway

Post by unsolo »

Well yes i am also looking at more spu stuff .
However this was simply so we can make things like ps3vram driver some day.
perhaps a GPU vga framebuffer or something that doesnt use 9MB of XDR ram
Don't do it alone.
speedxl
Posts: 24
Joined: Thu Aug 07, 2008 5:39 am

Post by speedxl »

I have a PS3 US NTSC with FW 1.36, it has YDL 5 installed, i could set it up, to do some tests if anyone wants me to do it, but im not really sharp using linux.

The other option is that i could set it up so you can use it via Rdesktop, the problem is that i have no Public IP, if someone knows how to do it this way just tell.
mattruby
Posts: 13
Joined: Sun Jan 13, 2008 11:18 am

Post by mattruby »

unsolo wrote:Well yes i am also looking at more spu stuff .
However this was simply so we can make things like ps3vram driver some day.
perhaps a GPU vga framebuffer or something that doesnt use 9MB of XDR ram
Where do you publish your work?
Post Reply