Bug 97987 - xf86-video-ati-7.7.1: "(EE) No devices detected.", ppc
Summary: xf86-video-ati-7.7.1: "(EE) No devices detected.", ppc
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.7 (2012.06)
Hardware: PowerPC All
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-30 14:34 UTC by erhard_f
Modified: 2016-10-12 09:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xorg.log (17.25 KB, text/plain)
2016-09-30 14:34 UTC, erhard_f
no flags Details
dmesg (42.58 KB, text/plain)
2016-09-30 14:35 UTC, erhard_f
no flags Details
.config for gentoo-sources-4.7.5 (74.59 KB, text/plain)
2016-09-30 14:36 UTC, erhard_f
no flags Details
xorg.log_v2 (27.32 KB, text/x-log)
2016-10-05 22:37 UTC, erhard_f
no flags Details

Description erhard_f 2016-09-30 14:34:37 UTC
Created attachment 126900 [details]
xorg.log

X is unable to start with "radeon" driver on my PowerMac G5, 7,3 with the ultimate error "(EE) No devices detected.". I am curious because Xorg.0.log and dmesg do not show obrious errorIMHO.

Forcing "fbdev" driver via the configfile works and X starts.

# cat /etc/X11/xorg.conf.d/05-driver.conf
Section "Device"
	Identifier "Radeon"
	Driver "radeon"
	#Option "DRI" "2"
	#Option "AccelMethod" "exa"
EndSection

# inxi -b
Resuming in non X mode: glxinfo not found. For package install advice run: inxi --recommends
System:    Host: T800 Kernel: 4.7.5-gentoo ppc64 (32 bit) Desktop: MATE 1.14.1
           Distro: Gentoo Base System release 2.2
Machine:   No /sys/class/dmi; using dmidecode: dmidecode is not installed.
CPU:       Dual core PPC970FX altivec supported (-MCP-) speed/max: 1800.000000MHz/2300 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RV350 [Radeon 9550/9600/X1050 Series]
           Display Server: X.org 1.18.4 driver: fbdev tty size: 132x24 Advanced Data: N/A for root
Network:   Card: Apple K2 GMAC (Sun GEM) driver: gem
Drives:    HDD Total Size: 500.1GB (3.3% used)
Info:      Processes: 129 Uptime: 20 min Memory: 353.1/7867.8MB Init: systemd Client: Shell (bash) inxi: 2.3.0
Comment 1 erhard_f 2016-09-30 14:35:17 UTC
Created attachment 126901 [details]
dmesg
Comment 2 erhard_f 2016-09-30 14:36:50 UTC
Created attachment 126904 [details]
.config for gentoo-sources-4.7.5
Comment 3 Alex Deucher 2016-09-30 14:39:39 UTC
Make sure the radeon kernel driver is loaded before starting X.
Comment 4 erhard_f 2016-09-30 15:01:05 UTC
Just verified it is.

# lsmod | grep -i radeon
radeon               1716688  1
i2c_algo_bit            7428  1 radeon
hwmon                   4272  1 radeon
ttm                    76692  1 radeon
drm_kms_helper        119440  1 radeon
drm                   337184  4 ttm,drm_kms_helper,radeon

At the moment I am starting X manually via "systemctl start lightdm".
Comment 5 Michel Dänzer 2016-10-03 08:03:02 UTC
This report reminds me of bug 92478. Have you tried moving away all xorg.conf(.d/*) files you created?

(In reply to erhard_f from comment #4)
> radeon               1716688  1

Looks like something is using a radeon driver character device file. What does

 sudo lsof /dev/dri/*

say?
Comment 6 erhard_f 2016-10-04 00:32:09 UTC
"lsof /dev/dri/*" as root shows no output.
Comment 7 erhard_f 2016-10-05 22:36:30 UTC
I built a new kernel and added following config options: CONFIG_VGA_ARB=y, CONFIG_FB_RADEON=m, CONFIG_DEVTMPFS_MOUNT=y. I removed: CONFIG_FB_OF, CONFIG_FB_SIMPLE. Still activated is; CONFIG_DRM_KMS_HELPER=m, CONFIG_DRM_KMS_FB_HELPER=y, CONFIG_DRM_FBDEV_EMULATION=y.

"radeon"-driver still does not work, but at least the Xorg.0.log (see attatched xorg.log_v2) and dmesg are more verbose. It seems to look for /dev/dri/ devices but there are none. I only got /dev/fb0.

# cat /proc/fb
0 ATI Radeon 4150

# lsmod | grep -i radeon
radeon               1717072  0
hwmon                   4272  1 radeon
ttm                    76692  1 radeon
drm_kms_helper        119440  1 radeon
drm                   339744  3 ttm,drm_kms_helper,radeon
radeonfb               78368  2
cfbfillrect             4224  2 drm_kms_helper,radeonfb
cfbcopyarea             3584  2 drm_kms_helper,radeonfb
cfbimgblt               2560  2 drm_kms_helper,radeonfb
i2c_algo_bit            7428  2 radeonfb,radeon
fb_ddc                  2560  1 radeonfb

# dmesg | grep -i radeon
[    8.398541] radeonfb_pci_register BEGIN
[    8.398558] radeonfb 0000:f0:10.0: enabling device (0006 -> 0007)
[    8.596608] radeonfb (0000:f0:10.0): Found 131072k of DDR 128 bits wide videoram
[    8.596828] radeonfb (0000:f0:10.0): mapped 16384k videoram
[    8.596864] radeonfb: Found Open Firmware ROM Image
[    8.596876] radeonfb: Retrieved PLL infos from Open Firmware
[    8.596880] radeonfb: Reference=27.00 MHz (RefDiv=12) Memory=200.00 Mhz, System=325.00 MHz
[    8.596884] radeonfb: PLL min 12000 max 35000
[    8.597003] radeonfb 0000:f0:10.0: I2C bus monid registered.
[    8.597068] radeonfb 0000:f0:10.0: I2C bus dvi registered.
[    8.597133] radeonfb 0000:f0:10.0: I2C bus vga registered.
[    8.597199] radeonfb 0000:f0:10.0: I2C bus crt2 registered.
[    9.030027] radeonfb: I2C (port 1) ... not found
[    9.460042] radeonfb: I2C (port 2) ... not found
[    9.890070] radeonfb: I2C (port 3) ... not found
[   10.143428] radeonfb: I2C (port 4) ... not found
[   10.143436] radeon_probe_OF_head
[   10.143453] radeon_probe_OF_head
[   10.576689] radeonfb: I2C (port 3) ... not found
[   10.826683] radeonfb: I2C (port 4) ... not found
[   10.827682] radeonfb: Monitor 1 type DFP found
[   10.827689] radeonfb: EDID probed
[   10.827692] radeonfb: Monitor 2 type no found
[   10.851080] radeonfb (0000:f0:10.0): ATI Radeon 4150 "AP"
[   10.851081] radeonfb_pci_register END
[   12.484886] [drm] radeon kernel modesetting enabled.
Comment 8 erhard_f 2016-10-05 22:37:07 UTC
Created attachment 127041 [details]
xorg.log_v2
Comment 9 Michel Dänzer 2016-10-06 02:46:27 UTC
(In reply to erhard_f from comment #7)
> [   10.851080] radeonfb (0000:f0:10.0): ATI Radeon 4150 "AP"
> [   10.851081] radeonfb_pci_register END
> [   12.484886] [drm] radeon kernel modesetting enabled.

radeonfb initializes first, so the radeon driver cannot initialize in KMS mode. You need to prevent radeonfb from initializing before the radeon driver, either via something like video=radeonfb:off on the kernel command line, or by preventing the radeonfb module from loading at all.
Comment 10 erhard_f 2016-10-09 12:58:46 UTC
Finally sorted it out with your help from here. The main issue was "VGA Arbitration" in the kernel-config, Device Drivers -> Graphics support. On my config (PowerMac G5, AGP graphics card) I need to have CONFIG_VGA_ARB=y enabled.

With CONFIG_VGA_ARB=y in combination with CONFIG_DRM_FBDEV_EMULATION=y and CONFIG_FB_OF=y I get a working concole and working X with "radeon"-driver. Other framebuffer drivers must not be selected in the kernel config.

With these options set correctly no xorg.conf is needed. The framebuffer console switches from Open Firmware to the radeon driver and the output looks like this:

# dmesg | grep -i rade
[    8.365707] [drm] radeon kernel modesetting enabled.
[    8.365765] fb: switching to radeondrmfb from OFfb ATY,Piton_
[    8.390327] fb: switching to radeondrmfb from OFfb ATY,Piton_
[    8.393385] radeon 0000:f0:10.0: enabling device (0006 -> 0007)
[    8.395828] radeon 0000:f0:10.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
[    8.500921] radeon 0000:f0:10.0: VRAM: 256M 0x00000000A0000000 - 0x00000000AFFFFFFF (128M used)
[    8.500927] radeon 0000:f0:10.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF
[    8.504153] [drm] radeon: 128M of VRAM memory ready
[    8.504157] [drm] radeon: 512M of GTT memory ready.
[    8.506559] [drm] radeon: 1 quad pipes, 1 Z pipes initialized.
[    8.506661] radeon 0000:f0:10.0: WB enabled
[    8.506670] radeon 0000:f0:10.0: fence driver on ring 0 use gpu addr 0x0000000080000000 and cpu addr 0xc00000026a6c7000
[    8.506754] [drm] radeon: irq initialized.
[    8.665381] [drm] radeon: ring at 0x0000000080001000
[    8.666957] [drm] Radeon Display Connectors
[    8.882890] radeon 0000:f0:10.0: fb0: radeondrmfb frame buffer device
[    8.886343] [drm] Initialized radeon 2.45.0 20080528 for 0000:f0:10.0 on minor 0

# cat /proc/fb 
0 radeondrmfb
Comment 11 Michel Dänzer 2016-10-12 09:00:31 UTC
Looks like it was a kernel configuration issue, not a (radeon driver) bug. Anyway, glad you got it working.


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.