If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
No announcement yet.
Open-Source 2D, 3D For ATI Radeon HD 5000 Series GPUs
How I can compile R800 support on Ubuntu Maverick? I like to try and test it.
I'm using gentoo, but these are the general steps. If some of them seem unclear to you, you may be better off not installing an experimental driver in the first place
- get rid of fglrx if possible. At the very least, you must be able to boot without loading fglrx.ko, and fglrx's opengl libraries must not conflict with mesa's.
- install the firmware package. Check /lib/firmware/radeon/ if it's installed already. For evergreen, there's three files for each GPU type. Check wikipedia if your model is cedar, cypress, juniper or redwood (or just include them all).
- install kernel 3.5.35 or later, activate radeon DRI and KMS. Either compile them as modules, or force your kernel to include the firmware.
- install mesa git from last saturday or newer. If you're lucky, there's a package on PPA. Disable gallium, evergreen support is classic mesa only.
- install radeon, evergreen branch. I suggest installing to something like /opt/evergreen/ (create that directory first) to avoid messing with system files.
git clone 'git://anongit.freedesktop.org/xorg/driver/xf86-video-ati'
git co evergreen_accel
sudo make install
- adjust xorg.conf to search the module where you installed it. You need to change the ModulePath
Using today's git master of all Xorg libs, protos, server, mesa drm, and mesa/mesa. Linux 2.6.36-rc2-git3. Have a HD5970. Fully preemptible 1000 Hz. drm and radeon modules built-in to kernel.
Boot-up takes an extremely long time to switch to the KMS framebuffer. On the dmesg I see:
[ 62.288248] r600_cp: Failed to load firmware "radeon/CYPRESS_pfp.bin"
[ 62.288309] [drm:evergreen_startup] *ERROR* Failed to load firmware!
[ 123.205570] r600_cp: Failed to load firmware "radeon/CYPRESS_pfp.bin"
[ 123.205611] [drm:evergreen_startup] *ERROR* Failed to load firmware!
[ 123.205645] radeon 0000:05:00.0: disabling GPU acceleration
[ 123.206744] radeon 0000:05:00.0: ffff8801b653b400 unpin not necessary
[ 123.206769] radeon 0000:05:00.0: ffff8801b653b400 unpin not necessary
[ 123.206799] failed to evaluate ATIF got AE_BAD_PARAMETER
Later on, in Xorg.0.log, I see
[ 464.362] (II) RADEON(0): GPU accel disabled or not working, using shadowfb for KMS
[ 464.362] (II) Loading sub module "shadow"
[ 464.362] (II) LoadModule: "shadow"
[ 464.362] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[ 464.368] (II) Module shadow: vendor="X.Org Foundation"
[ 464.545] (II) RADEON(1): GPU accel disabled or not working, using shadowfb for KMS
[ 464.545] (II) Loading sub module "shadow"
[ 464.545] (II) LoadModule: "shadow"
[ 464.546] (II) Reloading /usr/lib64/xorg/modules/libshadow.so
I've therefore got no 3d accel, but 2d accel is nice and stable, and actually quite fast, even with the core set to its minimum clock frequency using the power management profiles. Verified:
I've got both DVI outputs plugged into an LCD; could this be related to using dual monitors?
FWIW, the firmware seemed to have worked with 220.127.116.11, but I was still stuck in software rendering. I had a lot of different variables there though, such as building drm and radeon as modules.
Right now I'm going on 45 minutes running X without a crash, but since it's a shadowfb on top of KMS, this isn't very surprising; developers have presumably been testing this configuration for months while 2d/3d support was in the works.