Fedora Linux Support Community & Resources Center
  #1  
Old 3rd May 2011, 10:08 PM
Krusadr Offline
Registered User
 
Join Date: Oct 2010
Location: Mumbai, India
Posts: 37
linuxfedorafirefox
Hardware acceleration using open source radeon

Hey all!

First, thanks to any and all for a wonderful Linux OS. Fedora rocks!

My system config is in my sig.

I want to know if I have hardware acceleration using radeon open source driver.

I did substantial searching on the internet and have come across this post:

ATI Hardware Acceleration - XBMC Community Forum


Quote:
Just a side note from my experience with an on board Radeon HD4200...

On my system i'm using the radeon (not radeonhd or proprietary) driver with the kernal modesetting option (modesetting gains audio over HDMI with radeon driver). I had to install special firmware files into my kernal to make acceleration work properly due to some upstream issue of some sort.

Snip-it from x.org (original link):
Quote:
Troubleshooting Extra Firmware for R600/R700/Evergreen

All R600/R700/Evergreen gfxcards require extra firmware (ucode) files [1] to work properly with acceleration (Thanks agd5f for clarification on IRC). According to license issues [2] and the fact that no new firmware files will be shipped in upstream kernels, you need to activate the following kernel-config parameters:

CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
CONFIG_EXTRA_FIRMWARE="radeon/CEDAR_me.bin radeon/CEDAR_pfp.bin radeon/CEDAR_rlc.bin radeon/CYPRESS_me.bin radeon/CYPRESS_pfp.bin radeon/CYPRESS_rlc.bin radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin radeon/JUNIPER_rlc.bin radeon/R600_rlc.bin radeon/R700_rlc.bin radeon/REDWOOD_me.bin radeon/REDWOOD_pfp.bin radeon/REDWOOD_rlc.bin"

You can omit those firmware files for which you do not actually have hardware. Copy *.bin to /lib/firmware/radeon directory.

UPDATE: Extra ucode files are now in linux-firmware GIT repository [3] (Thanks airlied for information on IRC).

[1] http://people.freedesktop.org/~agd5f/radeon_ucode/

[2] http://people.freedesktop.org/~agd5f...LICENSE.radeon

[3] See commit d9076a54d74e371a11e1206b4a26e2e428045b9e "radeon: add RLC firmwares from AMD."
After doing that and recompiling my kernel, acceleration worked right off the bat with no problems. Your mileage may vary.

Good Luck,
~NSW

Now, I have found out that the kernel-config parameters are to be set in
/boot/config-2.6.35.12-90.fc14.x86_64
and that I can use

Building a custom kernel - FedoraProject

to accomplish the kernel recompile task.

Here's my current glxinfo snippet:

Code:
[root@kanad boot]# glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap, 
    GLX_INTEL_swap_event
GLX version: 1.4
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap, 
    GLX_INTEL_swap_event
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV740 94B3) 20090101  TCL DRI2
OpenGL version string: 2.1 Mesa 7.9
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_ARB_depth_clamp, GL_ARB_depth_texture, GL_ARB_draw_buffers, 
    GL_ARB_draw_elements_base_vertex, GL_ARB_fragment_program, 
    GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, GL_ARB_imaging, 
    GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query, 
    GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite, 
    GL_ARB_provoking_vertex, GL_ARB_shader_objects, 
    GL_ARB_shading_language_100, GL_ARB_shadow, GL_ARB_shadow_ambient, 
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression, 
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, 
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar, 
    GL_ARB_texture_env_dot3, GL_MESAX_texture_float, 
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two, 
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, 
    GL_ARB_vertex_array_bgra, GL_ARB_vertex_buffer_object, 
    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos, 
    GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color, 
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, 
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract, 
    GL_EXT_compiled_vertex_array, GL_EXT_convolution, GL_EXT_copy_texture, 
    GL_EXT_draw_range_elements, GL_EXT_framebuffer_object, GL_EXT_fog_coord, 
    GL_EXT_gpu_program_parameters, GL_EXT_histogram, GL_EXT_multi_draw_arrays, 
    GL_EXT_packed_depth_stencil, GL_EXT_packed_pixels, 
    GL_EXT_pixel_buffer_object, GL_EXT_point_parameters, 
    GL_EXT_polygon_offset, GL_EXT_provoking_vertex, GL_EXT_rescale_normal, 
    GL_EXT_secondary_color, GL_EXT_separate_specular_color, 
    GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, 
    GL_EXT_subtexture, GL_EXT_texture, GL_EXT_texture3D, 
    GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp, 
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine, 
    GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic, 
    GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp, 
    GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, 
    GL_EXT_vertex_array, GL_EXT_vertex_array_bgra, GL_APPLE_packed_pixels, 
    GL_ATI_blend_equation_separate, GL_ATI_texture_env_combine3, 
    GL_ATI_texture_mirror_once, GL_ATI_separate_stencil, 
    GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip, 
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate, 
    GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos, 
    GL_NV_blend_square, GL_NV_depth_clamp, GL_NV_light_max_exponent, 
    GL_NV_packed_depth_stencil, GL_NV_texgen_reflection, 
    GL_NV_texture_rectangle, GL_NV_vertex_program, GL_OES_read_format, 
    GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_generate_mipmap, 
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp, 
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays
So my question is: Do I have to do what I am about to do? If yes, do I have to recompile the kernel after making changes in the config file?

I am doing all this because I have read on the internet that the open source radeon driver does not enable H/w acceleration properly which means that choppy performance while playing HD movies and / or while playing OpenGL games. Not that OpenGL games don't work, they just work very slowly even with Direct Rendering of Mesa drivers. Then there's this thing about Kernel Mode Setting as well which isn't available in the proprietary ATI driver.

Am a beginner in Linux but have some experience in Red Hat 5 command line.

Thanks for your time and cheers!
__________________
Fedora 20 KDE Spin
Intel Corei5 3470 3.20 GHz, 8 GB DDR3 RAM, nVidia GeForce GTX650 1024 MB, Gigabyte B75M-D3H (Intel B75 Express Chipset)
Reply With Quote
  #2  
Old 4th May 2011, 05:02 AM
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 17
Posts: 907
windows_7chrome
Re: Hardware acceleration using open source radeon

You already have hardware acceleration enabled:
Code:
OpenGL renderer string: Mesa DRI R600 (RV740 94B3) 20090101  TCL DRI2
That would have been "Software Renderer" instead of "Mesa DRI etc" if you didn't have H/W acceleration enabled. IMHO the Mesa drivers are awful, you might have better luck with the proprietary driver. You might want to try this guide.
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #3  
Old 4th May 2011, 05:44 AM
solo2101 Offline
Registered User
 
Join Date: Jan 2010
Location: behind that screen...
Posts: 790
windows_7chrome
Re: Hardware acceleration using open source radeon

proprietary driver are really easy to install... if you go to AMD website and download the corresponding driver for your card, in the download page you will find a "Release Notes" which is a PDF file with some instructions... you will have two option of install "automatic" and "custom"... I alway do the automatic (i haven't done the custom) and its extremely easy...I haven't experience any lagginess at all...

take in consideration that if you want to do a kernel update you will have to uninstall these drivers (actually for almost any video drivers), but again its really easy to uninstall also, just follow that guide...

Personally I follow these instructions also.. and they work for me too...

Last edited by solo2101; 4th May 2011 at 05:46 AM.
Reply With Quote
  #4  
Old 5th May 2011, 07:45 AM
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 17
Posts: 907
windows_7chrome
Re: Hardware acceleration using open source radeon

Quote:
Originally Posted by solo2101 View Post
take in consideration that if you want to do a kernel update you will have to uninstall these drivers (actually for almost any video drivers), but again its really easy to uninstall also, just follow that guide...
Not if you use akmod. (mentioned in the guide)
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus
Reply With Quote
  #5  
Old 5th May 2011, 03:49 PM
solo2101 Offline
Registered User
 
Join Date: Jan 2010
Location: behind that screen...
Posts: 790
linuxchrome
Re: Hardware acceleration using open source radeon

Quote:
Originally Posted by JamesNZ View Post
Not if you use akmod. (mentioned in the guide)
that is true... no need for uninstall for a kernel update if you have akmod...
Reply With Quote
  #6  
Old 13th March 2012, 12:35 PM
FatLobyte Offline
Registered User
 
Join Date: Nov 2011
Posts: 2
linuxfirefox
Re: Hardware acceleration using open source radeon

Hello, sorry to bump this old post, but my question seemed to fit here.

I use Fedora 16,
I have a Radeon HD 4870 ( RV770 Chipset), and I have recompiled a stock 3.2.9-2 kernel with the required options:

Code:
$ grep FIRMWARE /boot/config-$(uname -r) 
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/R600_rlc.bin radeon/R700_rlc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
...
The uname -a is now:
Code:
Linux desktop-fedora.local 3.2.9-2.radeonfw.fc16.x86_64 #1 SMP Tue Mar 13 10:53:25 CET 2012 x86_64 x86_64 x86_64 GNU/Linux
Also, it seems that the microcode is successfully loaded:
Code:
$ dmesg | grep '\[drm\]'
[    1.200529] [drm] Initialized drm 1.1.0 20060810
[    1.217952] [drm] radeon defaulting to kernel modesetting.
[    1.217955] [drm] radeon kernel modesetting enabled.
[    1.219834] [drm] initializing kernel modesetting (RV770 0x1002:0x9440 0x174B:0xE114).
[    1.219853] [drm] register mmio base: 0xCFFE0000
[    1.219856] [drm] register mmio size: 65536
[    1.222341] [drm] Detected VRAM RAM=1024M, BAR=256M
[    1.222346] [drm] RAM width 256bits DDR
[    1.226884] [drm] radeon: 1024M of VRAM memory ready
[    1.226887] [drm] radeon: 512M of GTT memory ready.
[    1.226907] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    1.226909] [drm] Driver supports precise vblank timestamp query.
[    1.227021] [drm] radeon: irq initialized.
[    1.227027] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    1.228120] [drm] Loading RV770 Microcode
[    1.234885] [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
[    1.281544] [drm] ring test succeeded in 0 usecs
[    1.281826] [drm] radeon: ib pool ready.
[    1.281948] [drm] ib test succeeded in 0 usecs
[    1.283580] [drm] Radeon Display Connectors
[    1.283584] [drm] Connector 0:
...
(look at the line "Loading RV770 Microcode")

However, I still get the Software rendering using "llvmpipe", instead of "Mesa DRI Rxxx" like the in the first post of thist thread:
Code:
$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on llvmpipe
Several sources indicate that it should work "out of the box", once the microcode is installed. What did I do wrong? Do I have to drop some config files in /etc/X11/xorg.conf.d or /etc/modprobe.d ?

I do not want to use the proprietary ATI drivers, because a) they're proprietary and b) they're a buggy piece of crap: gnome-shell regulary hangs, glib segfaults and vlc restarts the X-Server, if the catalyst drivers are used.

Last edited by FatLobyte; 13th March 2012 at 12:52 PM.
Reply With Quote
  #7  
Old 13th March 2012, 03:59 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 895
linuxopera
Re: Hardware acceleration using open source radeon

Quote:
Originally Posted by FatLobyte View Post
[…]b) they're a buggy piece of crap: gnome-shell regulary hangs, glib segfaults and vlc restarts the X-Server, if the catalyst drivers are used.
you probably use the older Catalyst 12.1 then. In Catalyst 12.2 this xv-video driver bug, which restarts the X-Server, is fixed.

But generally I agree that the default Radeon driver is in many cases better than the proprietary driver. Only install it if you really need it for a game. If you need power saving features on the default Radeon driver, you can try this (if you want that this is excecuted at every startup, you can add the lines to /etc/rc.d/rc.local).

Last edited by Fenrin; 13th March 2012 at 04:03 PM.
Reply With Quote
  #8  
Old 4th May 2011, 07:15 PM
Krusadr Offline
Registered User
 
Join Date: Oct 2010
Location: Mumbai, India
Posts: 37
linuxfedorafirefox
Re: Hardware acceleration using open source radeon

Thanks solo and James!

I have tried the proprietary drivers, but they don't give me video acceleration. I always get video tearing, whether I play it in Kaffine or VLC.

Also, even though I updated to the latest drivers, the Catalyst control centre always reports 10.9 as the version installed whereas in the list of installed software I can clearly see 11 series drivers installed.

I have tried both the automatic install and custom install, the only difference being custom install lets you create distro specific packages which install natively whereas the automatic installs it immediately from inside the wizard.

Anyways, I will follow the guide again and see how it goes. Also have a few things in my mind to accomplish the task in my first post. Will try those and post back with results.

Again the reason being, as quoted in my first post, the kernel is NOT compiled with firmware files for my specific graphic card and it might never will be. Thus the kernel loads a generic HD 4xxxx series firmware.

Lets see, thanks again!
__________________
Fedora 20 KDE Spin
Intel Corei5 3470 3.20 GHz, 8 GB DDR3 RAM, nVidia GeForce GTX650 1024 MB, Gigabyte B75M-D3H (Intel B75 Express Chipset)
Reply With Quote
  #9  
Old 4th May 2011, 08:16 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 895
linuxopera
Re: Hardware acceleration using open source radeon

Quote:
Originally Posted by Krusadr View Post
Thanks solo and James!

I have tried the proprietary drivers, but they don't give me video acceleration. I always get video tearing, whether I play it in Kaffine or VLC.
...
There is a option in the Catalyst Control Center which solves tearing issues. But for games it's probably better to disable this tear-free feature if 3D performance is important.
Reply With Quote
  #10  
Old 5th May 2011, 01:35 AM
solo2101 Offline
Registered User
 
Join Date: Jan 2010
Location: behind that screen...
Posts: 790
linuxchrome
Re: Hardware acceleration using open source radeon

sorry to hear that...

just out of curiosity... did you run:
Code:
/usr/bin/aticonfig --initial
command after installing the drivers?
Reply With Quote
Reply

Tags
acceleration, hardware, open, radeon, source

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
open source radeon ati driver? pedora Fedora 12 Alpha, Beta & Release Candidates 5 16th November 2009 02:04 PM
New open source radeon driver leigh123linux Using Fedora 4 13th November 2007 02:41 PM
Radeon 9600 Hardware Acceleration = Lose Belderan Hardware & Laptops 0 11th October 2006 01:56 PM
Open Source Radeon Driver...3D? xero.03 Hardware & Laptops 5 8th October 2006 03:47 PM
ATI radeon: hardware acceleration working, but unusable due to artifacts. Maleficus Hardware & Laptops 0 14th March 2005 09:18 PM


Current GMT-time: 04:18 (Tuesday, 23-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat