Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Radeon no direct rendering after kernel upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 422
Location: Cracow, Poland

PostPosted: Mon Nov 25, 2013 8:10 pm    Post subject: Radeon no direct rendering after kernel upgrade Reply with quote

Hi,
Recantly I upgrade kernel from 3.10.* to 3.12.* and decide configure preboot splash. So, I followed gentoo wiki Xorg/Configuration and Radeon
My previous kernel in terms og graphics card worked really well even wasn't smartest config (take a look CONFIG_EXTRA_FIRMWARE_DIR was lackinf '/' so no fw was loaded:
Code:
#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH="/sbin/udevadm"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/SUMO_me.bin radeon/SUMO_pfp.bin radeon/SUMO_rlc.bin radeon/SUMO_uvd.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=m
CONFIG_DMA_SHARED_BUFFER=y

#
# Graphics support
#
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_DRM=m
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_TTM=m

#
# I2C encoder or helper chips
#
CONFIG_DRM_RADEON=m
CONFIG_VIDEO_OUTPUT_CONTROL=m
CONFIG_HDMI=y
CONFIG_FB=y
CONFIG_FB_DDC=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=m
CONFIG_FB_SYS_COPYAREA=m
CONFIG_FB_SYS_IMAGEBLIT=m
CONFIG_FB_SYS_FOPS=m
CONFIG_FB_BACKLIGHT=y
CONFIG_FB_MODE_HELPERS=y

#
# Frame buffer hardware drivers
#
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=m
CONFIG_BACKLIGHT_CLASS_DEVICE=y

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_FB_CON_DECOR=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_FONT_ISO_LATIN_1_8x16=y
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_CLUT224=y
CONFIG_LOGO_LARRY_CLUT224=y
CONFIG_LOGO_LARRY_HEAD_CLUT224=y


and new one 'better':

Code:
#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH="/sbin/udevadm"
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/SUMO_me.bin radeon/SUMO_pfp.bin radeon/SUMO_rlc.bin radeon/SUMO_uvd.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware/"
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=m
CONFIG_DMA_SHARED_BUFFER=y

#
# Graphics support
#
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_TTM=y

#
# I2C encoder or helper chips
#
CONFIG_DRM_RADEON=y
CONFIG_VIDEO_OUTPUT_CONTROL=m
CONFIG_HDMI=y
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=m
CONFIG_FB_SYS_COPYAREA=m
CONFIG_FB_SYS_IMAGEBLIT=m
CONFIG_FB_SYS_FOPS=m
CONFIG_FB_MODE_HELPERS=y

#
# Frame buffer hardware drivers
#
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=m
CONFIG_BACKLIGHT_CLASS_DEVICE=y

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_FB_CON_DECOR=y
CONFIG_LOGO=y
CONFIG_LOGO_LARRY_CLUT224=y
CONFIG_LOGO_LARRY_HEAD_CLUT224=y


OK, and now I have preboot splash but i.e. mplayer is unable to plat movie in full screen mode, some problem with compiz under XFCE4. What I can see:
Code:
# grep -E "EE|WW" /var/log/Xorg.0.log
[    52.691] Current Operating System: Linux gopher 3.12.1-geek #1 SMP PREEMPT Sun Nov 24 15:41:32 CET 2013 x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    52.822] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[    52.822] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    52.822] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    52.864] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    52.865] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    52.875] Initializing built-in extension MIT-SCREEN-SAVER
[    53.076] (WW) Warning, couldn't open module vesa
[    53.076] (EE) Failed to load module "vesa" (module does not exist, 0)
[    53.077] (WW) Warning, couldn't open module modesetting
[    53.077] (EE) Failed to load module "modesetting" (module does not exist, 0)
[    53.078] (WW) Warning, couldn't open module fbdev
[    53.078] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    57.578] (WW) RADEON(0): Direct rendering disabled

Code:
# glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.1, 128 bits)
    GL_NV_conditional_render, GL_NV_fog_distance, GL_NV_light_max_expone

Code:
# eselect opengl list
Available OpenGL implementations:
  [1]   ati
  [2]   xorg-x11 *

Code:
# eselect mesa list
64bit i915 (Intel 915, 945)
64bit i965 (Intel 965, G/Q3x, G/Q4x)
64bit r300 (Radeon R300-R500)
  [1]   gallium *
64bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
  [1]   gallium *
64bit sw (Software renderer)
  [1]   classic
  [2]   gallium *
32bit i915 (Intel 915, 945)
  [1]   classic *
  [2]   gallium
32bit i965 (Intel 965, G/Q3x, G/Q4x)
  [1]   classic *
32bit r300 (Radeon R300-R500)
  [1]   gallium *
32bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
  [1]   gallium *
32bit sw (Software renderer)
  [1]   classic
  [2]   gallium *
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1678
Location: Berlin, Germany

PostPosted: Wed Dec 04, 2013 3:32 pm    Post subject: Reply with quote

dmesg will probably tell you why direct rendering does not work.
Back to top
View user's profile Send private message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 422
Location: Cracow, Poland

PostPosted: Wed Dec 04, 2013 11:56 pm    Post subject: Reply with quote

chithanh wrote:
dmesg will probably tell you why direct rendering does not work.

I do not see anything special...
http://pastebin.com/8pdxr5HJ
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4732
Location: Saint Amant, Acadiana

PostPosted: Thu Dec 05, 2013 12:06 am    Post subject: Reply with quote

See Xorg log in /var/log/?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1678
Location: Berlin, Germany

PostPosted: Thu Dec 05, 2013 1:08 am    Post subject: Reply with quote

dmesg:
[    1.551956] r600_cp: Failed to load firmware "radeon/PALM_pfp.bin"
[    1.552056] [drm:evergreen_startup] *ERROR* Failed to load firmware!
[    1.552106] radeon 0000:00:01.0: disabling GPU acceleration
It looks like you don't have the correct firmware for your graphics chipset set in CONFIG_EXTRA_FIRMWARE. You probably need those mentioned under "PALM" in https://wiki.gentoo.org/wiki/Radeon#Firmware

The reason why it worked with previous kernels is possibly that radeon was built as module, so could load firmware from disk after boot.
Back to top
View user's profile Send private message
szatox
Guru
Guru


Joined: 27 Aug 2013
Posts: 411

PostPosted: Thu Dec 05, 2013 10:40 am    Post subject: Reply with quote

Quote:
# eselect opengl list
Available OpenGL implementations:
[1] ati
[2] xorg-x11 *


If you didn't want to use fglrx, you would probably not install it. this means
emerge -1 ati-drivers
eselect opengl set ati

should should do the trick.
Back to top
View user's profile Send private message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 422
Location: Cracow, Poland

PostPosted: Thu Dec 12, 2013 10:01 pm    Post subject: Reply with quote

chithanh wrote:
dmesg:
[    1.551956] r600_cp: Failed to load firmware "radeon/PALM_pfp.bin"
[    1.552056] [drm:evergreen_startup] *ERROR* Failed to load firmware!
[    1.552106] radeon 0000:00:01.0: disabling GPU acceleration
It looks like you don't have the correct firmware for your graphics chipset set in CONFIG_EXTRA_FIRMWARE. You probably need those mentioned under "PALM" in https://wiki.gentoo.org/wiki/Radeon#Firmware

The reason why it worked with previous kernels is possibly that radeon was built as module, so could load firmware from disk after boot.

Just for record, I was busy so I took me a while to compile kernel. I've change CONFIG_EXTRA_FIRMWARE from:
Code:
radeon/SUMO_me.bin radeon/SUMO_pfp.bin radeon/SUMO_rlc.bin radeon/SUMO_uvd.bin

to:
Code:
radeon/PALM_me.bin radeon/PALM_pfp.bin radeon/SUMO_me.bin radeon/SUMO_pfp.bin radeon/SUMO_rlc.bin radeon/SUMO_uvd.bin

In meantime I upgrade kernel from 12.1-geek to 12.4 geek and change some other config setting for different problem and I got kernel panic.
So, let me compile 12.1 and see what happend.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum