Linux kernel 3.5.7 and HD6670

AmigaOne X1000 platform specific issues related to Linux only.

Linux kernel 3.5.7 and HD6670

Postby zzd10h » Mon Dec 03, 2012 1:44 am

Hello,
I'm trying to enable 3D acceleration on Debian (or MintPPC) following the documentation with the 3.5.7 kernel but glxgears is still showing 160-170 fps and supertuxkart is very slow.

Is somebody knows if something special is to do for a Radeon HD 6670 ?

According to the doc
For MintPPC I have
1) copy the X1000 modules to /lib/modules on page 23
and
2) enabling the 2D/3D for MintPPC on page 43

For Debian,
1) copy the X1000 modules to /lib/modules on page 23
and
2) downloading the mesa-sw
I try, too, to make the MintPPC 2D/3D tips because it didn't work.

I boot on cf card with the vmlinux-3.5.7 image.

Thank for your help and advices
zzd10h
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
 
Posts: 544
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: Linux kernel 3.5.7 and HD6670

Postby trevordick » Mon Dec 03, 2012 5:54 am

Debian Squeeze does not yet support 2d/3d accelerations. See the "Important: read this first" section at the bottom of page 3.

However, MintPPC 11 does, unless you have Compositing activated as mentioned on Page 45.

"Note: Activating Compositing will cause the glxgears 3D test to report lower lower frame rate results. (~120/140 fps) and affect the performance of other 3D applications. You you be able to switch OFF compositing using the CompositeToggler screen let (see the Ubuntu installation). However, this OFF/ON switch does not appear to work. To switch OFF compositing delete or comment out the @xcompmgr -n line in /etc/xdg/lxsession/Mint-LXDE/autostart"

Trevor
I'm just Breezin'
User avatar
trevordick
A-Eon Technology
A-Eon Technology
 
Posts: 1376
Joined: Mon Dec 20, 2010 2:28 pm

Re: Linux kernel 3.5.7 and HD6670

Postby zzd10h » Mon Dec 03, 2012 8:54 am

Many thanks Trevor,
Therefore, I have to reinstall MintPPC...

Just something that is strange, during all my installations tests, I noticed that if the partition for Linux was > hda5, the boot didn't work.

The boot hang saying "please correct the roor=sda" or something similar. For me, now it's ok, I will not change my partition scheme.
See you and thanks again.
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
 
Posts: 544
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: Linux kernel 3.5.7 and HD6670

Postby zzd10h » Mon Dec 03, 2012 9:26 pm

I'm sorry, it doesn't work for me even after a reinstallation of MintPPC

1) I have copied all the 3.5.7 modules in /lib/modules

~ $ ls -l /lib/modules
total 12
drwxr-xr-x 3 root root 4096 déc. 3 17:43 3.2.0-3-powerpc64
drwxr-xr-x 3 root root 4096 déc. 3 17:54 3.2.0-4-powerpc64
drwxr-xr-x 3 root root 4096 déc. 3 19:29 3.5.7X1000

2) I have created the /etc/X11/xorg.conf.d/10-vsync.conf
~ $ cat /etc/X11/xorg.conf.d/10-vsync.conf
Section "Device"
Identifier "Radeon HD 6670"
Option "SwapbuffersWait" "False"
EndSection

3) and the /etc/profile.d/radeon.sh file
# export LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri_g/
# export R600_ENABLE_S3TC=1
export vblank_mode=0
export CLUTTER_VBLANK=none

4) after the "apt-get install xcompmgr"; I have checked the file to the inexistence of the @xcompmgr line
~ $ cat /etc/xdg/lxsession/Mint-LXDE/autostart
@/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
@setxkbmap -option terminate:ctrl_alt_bksp
@lxpanel --profile Mint-LXDE
@xscreensaver -no-splash
@pcmanfm --desktop
@bluetooth-applet
@sh -c 'test -e /var/cache/jockey/check || exec jockey-gtk --check'
@gnome-power-manager
@system-config-printer-applet
@mintupdate-launcher
@/usr/lib/linuxmint/mintUpload/launch-file-uploader.py
@mintwelcome-launcher

5) the dmesg | grep radeon command return me (I have 2 Radeon, a 9250 and a HD 6670)
~ $ dmesg | grep radeon
[drm] radeon defaulting to kernel modesetting.
[drm] radeon kernel modesetting enabled.
radeon 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)
radeon 0000:01:00.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF
[drm] radeon: 2048M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
[drm] radeon: irq initialized.
radeon 0000:01:00.0: WB enabled
radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xc00000017a338c00
[drm] radeon: power management initialized
fb0: radeondrmfb frame buffer device
[drm] Initialized radeon 2.18.0 20080528 for 0000:01:00.0 on minor 0
radeon 0000:06:06.0: VRAM: 128M 0x00000000A8000000 - 0x00000000AFFFFFFF (128M used)
radeon 0000:06:06.0: GTT: 512M 0x0000000088000000 - 0x00000000A7FFFFFF
[drm] radeon: irq initialized.
[drm] radeon: 128M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
radeon 0000:06:06.0: WB disabled
radeon 0000:06:06.0: fence driver on ring 0 use gpu addr 0x0000000088000000 and cpu addr 0xc000000178235000
[drm] radeon: ring at 0x0000000088001000
fb1: radeondrmfb frame buffer device
[drm] Initialized radeon 2.18.0 20080528 for 0000:06:06.0 on minor 1

and a dmesg | grep Radeon give me
[drm] Radeon Display Connectors
[drm] Radeon Display Connectors


6) glxgears returns me (worst than with Debian) :
349 frames in 5.0 seconds = 69.778 FPS
350 frames in 5.0 seconds = 69.933 FPS
350 frames in 5.0 seconds = 69.992 FPS

Where is my mistake ? Are my config files OK or is my 6670 who is not compatible ?

Thank a lot, by advance.
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
 
Posts: 544
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: Linux kernel 3.5.7 and HD6670

Postby trevordick » Mon Dec 03, 2012 9:58 pm

I have a tested a Radeon HD 6670 (R6670 MDIGD5) and can confirm it should work OK. However, I seem to recall that when a 9250 is installed alongside a RadeonHD is messes up the initialisation of the 3D on the RadeonHD card.

As a test, remove the 2nd graphics cards and re-try glxgears.

Thanks

Trevor



zzd10h wrote:I'm sorry, it doesn't work for me even after a reinstallation of MintPPC

1) I have copied all the 3.5.7 modules in /lib/modules

~ $ ls -l /lib/modules
total 12
drwxr-xr-x 3 root root 4096 déc. 3 17:43 3.2.0-3-powerpc64
drwxr-xr-x 3 root root 4096 déc. 3 17:54 3.2.0-4-powerpc64
drwxr-xr-x 3 root root 4096 déc. 3 19:29 3.5.7X1000

2) I have created the /etc/X11/xorg.conf.d/10-vsync.conf
~ $ cat /etc/X11/xorg.conf.d/10-vsync.conf
Section "Device"
Identifier "Radeon HD 6670"
Option "SwapbuffersWait" "False"
EndSection

3) and the /etc/profile.d/radeon.sh file
# export LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri_g/
# export R600_ENABLE_S3TC=1
export vblank_mode=0
export CLUTTER_VBLANK=none

4) after the "apt-get install xcompmgr"; I have checked the file to the inexistence of the @xcompmgr line
~ $ cat /etc/xdg/lxsession/Mint-LXDE/autostart
@/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
@setxkbmap -option terminate:ctrl_alt_bksp
@lxpanel --profile Mint-LXDE
@xscreensaver -no-splash
@pcmanfm --desktop
@bluetooth-applet
@sh -c 'test -e /var/cache/jockey/check || exec jockey-gtk --check'
@gnome-power-manager
@system-config-printer-applet
@mintupdate-launcher
@/usr/lib/linuxmint/mintUpload/launch-file-uploader.py
@mintwelcome-launcher

5) the dmesg | grep radeon command return me (I have 2 Radeon, a 9250 and a HD 6670)
~ $ dmesg | grep radeon
[drm] radeon defaulting to kernel modesetting.
[drm] radeon kernel modesetting enabled.
radeon 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)
radeon 0000:01:00.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF
[drm] radeon: 2048M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
[drm] radeon: irq initialized.
radeon 0000:01:00.0: WB enabled
radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xc00000017a338c00
[drm] radeon: power management initialized
fb0: radeondrmfb frame buffer device
[drm] Initialized radeon 2.18.0 20080528 for 0000:01:00.0 on minor 0
radeon 0000:06:06.0: VRAM: 128M 0x00000000A8000000 - 0x00000000AFFFFFFF (128M used)
radeon 0000:06:06.0: GTT: 512M 0x0000000088000000 - 0x00000000A7FFFFFF
[drm] radeon: irq initialized.
[drm] radeon: 128M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
radeon 0000:06:06.0: WB disabled
radeon 0000:06:06.0: fence driver on ring 0 use gpu addr 0x0000000088000000 and cpu addr 0xc000000178235000
[drm] radeon: ring at 0x0000000088001000
fb1: radeondrmfb frame buffer device
[drm] Initialized radeon 2.18.0 20080528 for 0000:06:06.0 on minor 1

and a dmesg | grep Radeon give me
[drm] Radeon Display Connectors
[drm] Radeon Display Connectors


6) glxgears returns me (worst than with Debian) :
349 frames in 5.0 seconds = 69.778 FPS
350 frames in 5.0 seconds = 69.933 FPS
350 frames in 5.0 seconds = 69.992 FPS

Where is my mistake ? Are my config files OK or is my 6670 who is not compatible ?

Thank a lot, by advance.
I'm just Breezin'
User avatar
trevordick
A-Eon Technology
A-Eon Technology
 
Posts: 1376
Joined: Mon Dec 20, 2010 2:28 pm

Re: Linux kernel 3.5.7 and HD6670

Postby zzd10h » Mon Dec 03, 2012 11:35 pm

Yes ! You are right, it was the second Radeon the problem...unfortunately!

Now, Linux (glxgears and supertuxkart) works very fast but I habe to keep my 9250 to watch DVD and movie with AOS4.
Thank you Trevor for your support :P
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
 
Posts: 544
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: Linux kernel 3.5.7 and HD6670

Postby trevordick » Tue Dec 04, 2012 5:36 am

zzd10h wrote:Yes ! You are right, it was the second Radeon the problem...unfortunately!

Now, Linux (glxgears and supertuxkart) works very fast but I habe to keep my 9250 to watch DVD and movie with AOS4.
Thank you Trevor for your support :P


That's good. However, you can also watch DVD's and movies on the RadeonHD gfx card under OS4.

I think there is even better news? I could be wrong but I think 3D worked OK with Ubuntu with a dual gfx card installation. I will check this out when I get a chance and amend the Installation guide accordingly.

Trevor
I'm just Breezin'
User avatar
trevordick
A-Eon Technology
A-Eon Technology
 
Posts: 1376
Joined: Mon Dec 20, 2010 2:28 pm

Re: Linux kernel 3.5.7 and HD6670

Postby mbrantley » Tue Dec 04, 2012 7:38 am

Aha! This has been my exact circumstance as well. Informative thread, guys.
User avatar
mbrantley
Beta Tester
Beta Tester
 
Posts: 90
Joined: Sat Jun 09, 2012 4:49 am
Location: Mobile, Alabama USA

Re: Linux kernel 3.5.7 and HD6670

Postby zzd10h » Tue Dec 04, 2012 8:15 am

It would be great if the 2 cards could work on Ubuntu, sure !

For the video on OS4, I wanted to say that it doesn't work, for me, in full-screen (with DVPlayer) or it is slow (with MPlayer even with -vo sdl or cgx_wpa) when watching replay video on Internet.
I thougt that we are lacking Overlay, but it's another story... ;)
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
zzd10h
 
Posts: 544
Joined: Sun Sep 16, 2012 6:40 am
Location: France

Re: Linux kernel 3.5.7 and HD6670

Postby trevordick » Tue Dec 04, 2012 11:02 am

OK I have just re-installed my Radeon 9250 and tested the Ubuntu installation with a dual-graphic card setup alongside the HD4650.

2D/3D acceleration works OK with one of Daz's earlier kernel. I will now test it with the most recent kernel and a higher series Radeon card.

Trevor
I'm just Breezin'
User avatar
trevordick
A-Eon Technology
A-Eon Technology
 
Posts: 1376
Joined: Mon Dec 20, 2010 2:28 pm

Next

Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: No registered users and 2 guests