Problems with SuperTuxKart 0.8 PowerPC

AmigaOne X1000 platform specific issues related to Linux only.
Post Reply
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Problems with SuperTuxKart 0.8 PowerPC

Post by xeno74 »

Hi,

I've downloaded SuperTuxKart 0.8 from http://sourceforge.net/projects/supertu ... 2/download. The most tracks are OK but I have sometimes a freeze of the complete desktop with following error message:

Code: Select all

radeon 0000:01:00.0 couldn't schedule ib
drm:radeon_cs_lib_chunk error Failed to schedule ib!
I think this is a graphics driver problem. What do you think?

My System: Debian Wheezy (Kernel 3.5.7)

glxinfo | grep OpenGL

Code: Select all

OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS
OpenGL version string: 2.1 Mesa 8.0.5
OpenGL shading language version string: 1.20
OpenGL extensions:
dmesg | grep drm

Code: Select all

[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to kernel modesetting.
[drm] radeon kernel modesetting enabled.
[drm] initializing kernel modesetting (BARTS 0x1002:0x6738 0x1682:0x3107).
[drm] register mmio base: 0xA0020000
[drm] register mmio size: 131072
[drm] Detected VRAM RAM=1024M, BAR=256M
[drm] RAM width 256bits DDR
[drm] radeon: 1024M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] Driver supports precise vblank timestamp query.
[drm] radeon: irq initialized.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] Loading BARTS Microcode
[drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
[drm] ring test on 0 succeeded in 3 usecs
[drm] ib test on ring 0 succeeded in 0 usecs
[drm] Radeon Display Connectors
[drm] Connector 0:
[drm]   DP-1
[drm]   HPD4
[drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
[drm]   Encoders:
[drm]     DFP1: INTERNAL_UNIPHY2
[drm] Connector 1:
[drm]   DP-2
[drm]   HPD5
[drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
[drm]   Encoders:
[drm]     DFP2: INTERNAL_UNIPHY2
[drm] Connector 2:
[drm]   HDMI-A-1
[drm]   HPD3
[drm]   DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c 0x646c
[drm]   Encoders:
[drm]     DFP3: INTERNAL_UNIPHY1
[drm] Connector 3:
[drm]   DVI-D-1
[drm]   HPD1
[drm]   DDC: 0x6480 0x6480 0x6484 0x6484 0x6488 0x6488 0x648c 0x648c
[drm]   Encoders:
[drm]     DFP4: INTERNAL_UNIPHY1
[drm] Connector 4:
[drm]   DVI-I-1
[drm]   HPD6
[drm]   DDC: 0x6470 0x6470 0x6474 0x6474 0x6478 0x6478 0x647c 0x647c
[drm]   Encoders:
[drm]     DFP5: INTERNAL_UNIPHY
[drm]     CRT1: INTERNAL_KLDSCP_DAC1
[drm] Internal thermal controller with fan control
[drm] radeon: power management initialized
[drm] fb mappable at 0x90142000
[drm] vram apper at 0x90000000
[drm] size 5242880
[drm] fb depth is 24
[drm]    pitch is 5120
fb0: radeondrmfb frame buffer device
drm: registered panic notifier
[drm] Initialized radeon 2.18.0 20080528 for 0000:01:00.0 on minor 0
Can you help me, please?

Best wishes,

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Problems with SuperTuxKart 0.8 PowerPC

Post by xeno74 »

Image

I have tried to compile STK with optimizations. But I don't have more speed.

This is what I have done:

Code: Select all

export TARGET=powerpc-linux-gnualtivec

Code: Select all

export CFLAGS="-mcpu=power4 -mtune=power4 -maltivec -mabi=altivec -fno-strict-aliasing -O2 -pipe"

Code: Select all

export CXXFLAGS="${CFLAGS}"
I have compiled all STK dependencies with optimizations:

libogg-1.3.0

libvorbis-1.3.3

fribidi-0.19.5

openal-soft-1.15.1

Environment variables for Irrlicht:

Code: Select all

CXXFLAGS += -fexpensive-optimizations -O3 -mcpu=power4 -mtune=power4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe^M

Code: Select all

CFLAGS := -O3 -fexpensive-optimizations -mcpu=power4 -mtune=power4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES^M

Code: Select all

mkdir cmake_build
cd cmake_build
cmake ..
STK was compiled with all optimizations and optimized libraries. But the speed is the same as the STK package without optimizations.

Any ideas?

My system:

Image
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
trevordick
A-Eon Technology
A-Eon Technology
Posts: 1385
Joined: Mon Dec 20, 2010 1:28 pm

Re: Problems with SuperTuxKart 0.8 PowerPC

Post by trevordick »

What RadeonHD gfx card do you have installed?

Trevor
I'm just Breezin'
User avatar
Raziel
Posts: 1170
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: Problems with SuperTuxKart 0.8 PowerPC

Post by Raziel »

trevordick wrote:What RadeonHD gfx card do you have installed?

Trevor
He posted the same question on several other forums, here's the missing information:
My system: Debian Wheezy PowerPC on an AmigaONE X1000, 4 GB RAM, AMD
Radeon HD 6870 1GB (Gallium 0.4 on AMD Barts)
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Problems with SuperTuxKart 0.8 PowerPC

Post by xeno74 »

Raziel wrote:
trevordick wrote:
My system: Debian Wheezy PowerPC on an AmigaONE X1000, 4 GB RAM, AMD
Radeon HD 6870 1GB (Gallium 0.4 on AMD Barts)
Yes, that's right :)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply