Bug 53685

Summary: X not starting with ATI Caicos
Product: xorg Reporter: bugzilla.dummy
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.conf, Xorg.0.log, dmesg
none
new dmesg
none
new x log
none
working xorg.conf none

Description bugzilla.dummy 2012-08-18 20:29:31 UTC
Created attachment 65745 [details]
xorg.conf, Xorg.0.log, dmesg

X fails to start, and I am pretty sure that I have done everything described at http://www.x.org/wiki/radeonBuildHowTo.  Full xorg.conf, Xorg.0.log, and dmesg files are attached (cat'ed into a single text file), but here are the highlights:

# lspci -vv | grep Radeon
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Caicos [Radeon HD 7400 Series] (prog-if 00 [VGA controller])
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Caicos HDMI Audio [Radeon HD 6400 Series]

# dmesg | grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon kernel modesetting enabled.

# grep RADEON /usr/src/linux-2.6.39.4/.config
CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_KMS=y
# CONFIG_FB_RADEON is not set

# grep FRAMEBUFFER /usr/src/linux-2.6.39.4/.config
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set

# grep FIRMWARE /usr/src/linux-2.6.39.4/.config
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/CAICOS_me.bin radeon/CAICOS_mc.bin radeon/CAICOS_pfp.bin radeon/R600_rlc.bin radeon/R600_me.bin radeon/R700_rlc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# CONFIG_HOSTAP_FIRMWARE is not set
CONFIG_RT2X00_LIB_FIRMWARE=y
# CONFIG_FIRMWARE_EDID is not set
CONFIG_FIRMWARE_MEMMAP=y

# ldd /usr/lib/dri/radeon_dri.so | grep drm
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb74cf000)
        libdrm_radeon.so.1 => /usr/lib/libdrm_radeon.so.1 (0xb747f000)
# ldd /usr/lib/xorg/modules/drivers/radeon_drv.so | grep drm
        libdrm_radeon.so.1 => /usr/lib/libdrm_radeon.so.1 (0xb7686000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb767a000)

# grep KMS /var/log/Xorg.0.log
[  2039.310] (II) [KMS] drm report modesetting isn't supported.
[  2039.310] (II) GPU only supported with KMS, using vesa instead.


Everything was built from source on this system.

libdrm v2.4.38
mesa v8.0.4
ddx v6.14.6
xserver v1.12.3

Please let me know if you'd like to see any other system files.  Thank you in advance.
Comment 1 Alex Deucher 2012-08-20 13:35:59 UTC
Can you try a newer kernel?
Comment 2 bugzilla.dummy 2012-08-21 00:12:17 UTC
(In reply to comment #1)
> Can you try a newer kernel?

OK, built new kernel and here are the details of the problem now:

# lspci -vv | grep Radeon
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Caicos [Radeon HD 7400 Series] (prog-if 00 [VGA controller])
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Caicos HDMI Audio [Radeon HD 6400 Series]


# uname -a
Linux sci314-c01 3.2.28 #1 Mon Aug 20 16:27:45 EDT 2012 x86_64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz GenuineIntel GNU/Linux

# grep RADEON /usr/src/linux-3.2.28/.config
CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_KMS=y
# CONFIG_FB_RADEON is not set


# grep FRAMEBUFFER /usr/src/linux-3.2.28/.config
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set


# grep FIRMWARE /usr/src/linux-3.2.28/.config
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/CAICOS_me.bin radeon/CAICOS_mc.bin radeon/CAICOS_pfp.bin radeon/R600_rlc.bin radeon/R700_rlc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# CONFIG_HOSTAP_FIRMWARE is not set
CONFIG_RT2X00_LIB_FIRMWARE=y
# CONFIG_FIRMWARE_EDID is not set
CONFIG_FIRMWARE_MEMMAP=y
# CONFIG_GOOGLE_FIRMWARE is not set


# lsmod | egrep -i 'drm|radeon|fb'
radeon                625469  1 
ttm                    40941  1 radeon
drm_kms_helper         20873  1 radeon
drm                   149203  3 radeon,ttm,drm_kms_helper
hwmon                   1233  1 radeon
i2c_algo_bit            5688  1 radeon
cfbcopyarea             2833  1 radeon
cfbimgblt               1841  1 radeon
cfbfillrect             2861  1 radeon
agpgart                22061  4 ttm,drm,intel_agp,intel_gtt


# dmesg | grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon kernel modesetting enabled.
[drm] initializing kernel modesetting (CAICOS 0x1002:0x677B 0x103C:0x90B7).
[drm] register mmio base: 0xFE620000
[drm] register mmio size: 131072
[drm] Detected VRAM RAM=1024M, BAR=256M
[drm] RAM width 64bits 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 CAICOS Microcode
[drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
[drm] ring test succeeded in 3 usecs
[drm] radeon: ib pool ready.
[drm] ib test succeeded in 0 usecs
[drm] Radeon Display Connectors
[drm] Connector 0:
[drm]   DisplayPort
[drm]   HPD2
[drm]   DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c 0x646c
[drm]   Encoders:
[drm]     DFP1: INTERNAL_UNIPHY1
[drm] Connector 1:
[drm]   DVI-I
[drm]   HPD4
[drm]   DDC: 0x6450 0x6450 0x6454 0x6454 0x6458 0x6458 0x645c 0x645c
[drm]   Encoders:
[drm]     DFP2: INTERNAL_UNIPHY
[drm]     CRT1: INTERNAL_KLDSCP_DAC1
[drm] Internal thermal controller with fan control
[drm] radeon: power management initialized
[drm] fb mappable at 0xD0142000
[drm] vram apper at 0xD0000000
[drm] size 14745600
[drm] fb depth is 24
[drm]    pitch is 10240
fbcon: radeondrmfb (fb0) is primary device
fb0: radeondrmfb frame buffer device
drm: registered panic notifier
[drm] Initialized radeon 2.12.0 20080528 for 0000:01:00.0 on minor 0


# ldd /usr/lib/dri/radeon_dri.so | grep drm
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007fca90f31000)
        libdrm_radeon.so.1 => /usr/lib/libdrm_radeon.so.1 (0x00007fca906dd000)


# ldd /usr/lib/xorg/modules/drivers/radeon_drv.so | grep drm
        libdrm_radeon.so.1 => /usr/lib/libdrm_radeon.so.1 (0x00007f81219c3000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007f81215b5000)



# X -configure

X.Org X Server 1.12.3
Release Date: 2012-07-09
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.28 x86_64 
Current Operating System: Linux sci314-c01 3.2.28 #1 Mon Aug 20 16:27:45 EDT 2012 x86_64
Kernel command line: auto BOOT_IMAGE=CRUX ro root=805 splash
Build Date: 20 August 2012  07:34:30PM
 
Current version of pixman: 0.26.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug 20 19:53:09 2012
List of video drivers:
        ati
        radeonhd
        radeon
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] No DRICreatePCIBusID symbol, no kernel modesetting.
(II) GPU only supported with KMS, using vesa instead.

Backtrace:
0: X (xorg_backtrace+0x36) [0x56ab56]
1: X (0x400000+0x16e609) [0x56e609]
2: /lib/libpthread.so.0 (0x7f6280eaa000+0xefa0) [0x7f6280eb8fa0]

Segmentation fault at address (nil)

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Server terminated with error (1). Closing log file.
Aborted
Comment 3 bugzilla.dummy 2012-08-21 00:15:01 UTC
Created attachment 65857 [details]
new dmesg
Comment 4 bugzilla.dummy 2012-08-21 00:15:25 UTC
Created attachment 65858 [details]
new x log
Comment 5 Michel Dänzer 2012-08-21 08:11:42 UTC
(In reply to comment #2)
> (++) Using config file: "/root/xorg.conf.new"
[...]
> (II) [KMS] No DRICreatePCIBusID symbol, no kernel modesetting.

For some reason, your X server doesn't seem to be loading the usual support modules before calling the driver probe hooks, which prevents the radeon driver from using KMS.

Is /root/xorg.conf.new the configuration file you want to use? If not, does moving it away help?
Comment 6 bugzilla.dummy 2012-08-21 15:14:32 UTC
Created attachment 65895 [details]
working xorg.conf
Comment 7 bugzilla.dummy 2012-08-21 15:15:28 UTC
(In reply to comment #5)
> (In reply to comment #2)
> > (++) Using config file: "/root/xorg.conf.new"
> [...]
> > (II) [KMS] No DRICreatePCIBusID symbol, no kernel modesetting.
> 
> For some reason, your X server doesn't seem to be loading the usual support
> modules before calling the driver probe hooks, which prevents the radeon driver
> from using KMS.
> 
> Is /root/xorg.conf.new the configuration file you want to use? If not, does
> moving it away help?


I got it working with a new kernel (3.4.9) and my own xorg.conf.  X -configure is still failing, but I am up and running now.
Comment 8 Martin Peres 2019-11-19 07:35:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/37.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.