Bug 91238 - 1002:9583 [iMac7,1] X fails to automatically detect ATI radeon RV600 card
Summary: 1002:9583 [iMac7,1] X fails to automatically detect ATI radeon RV600 card
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xorg (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2015-07-06 10:15 UTC by Raffaele Candeliere
Modified: 2018-12-13 18:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg with system booted thru kernel's efi stub (115.28 KB, text/plain)
2015-07-06 16:51 UTC, Raffaele Candeliere
no flags Details
XOrg.2.log when booting thru EFI Stub (22.74 KB, text/plain)
2015-07-07 07:35 UTC, Raffaele Candeliere
no flags Details

Description Raffaele Candeliere 2015-07-06 10:15:05 UTC
X fails to autodetect ATI Radeon RV600 card on iMac 7,1 if linux is booted using *directly* the kernel's EFI stub.
For details see:

https://bugs.launchpad.net/bugs/1453052


Thanks
Comment 1 Alex Deucher 2015-07-06 13:00:13 UTC
Please attach the dmesg output when booting in the problematic case.  The dmesg output attached to the ubunutu bug looks fine, but it's not clear whether this is the problematic case or the working case.  I'm inclined to say this is an efi stub issue.
Comment 2 Raffaele Candeliere 2015-07-06 16:51:31 UTC
Created attachment 116979 [details]
dmesg with system booted thru kernel's efi stub
Comment 3 Raffaele Candeliere 2015-07-06 17:00:21 UTC
Hi Alex.
Right now, I've attached the dmesg output you're requesting.
Regarding the bug related the the efi stub, I'd rather say no. I don't think so because one of the first thing I've tried is to boot the the system with the old kernel, the one shipped with the older version of Ubuntu (i.e. the one involved when system used to work perfectly), and the bug was still there.
In other words, I've tested the following combinations:
Old kernel (3.19.0-16) + Ubuntu 14 --> Working
Old kernel (3.19.0-16) + Ubuntu 15 --> Not working
New kernel (3.19.0-22) + Ubuntu 15 --> Not working
Comment 4 Alex Deucher 2015-07-06 19:21:01 UTC
(In reply to Raffaele Candeliere from comment #2)
> Created attachment 116979 [details]
> dmesg with system booted thru kernel's efi stub

The kernel driver is loading fine.
Comment 5 Alex Deucher 2015-07-06 19:27:49 UTC
(In reply to Raffaele Candeliere from comment #3)
> In other words, I've tested the following combinations:
> Old kernel (3.19.0-16) + Ubuntu 14 --> Working
> Old kernel (3.19.0-16) + Ubuntu 15 --> Not working
> New kernel (3.19.0-22) + Ubuntu 15 --> Not working

It's likely a packaging or configuration issue with the newer version of Ubuntu then.  X has no dependencies on what was used to boot the system.  Are you using any special xorg config file?  Can you start X manually or as root?
Comment 6 Raffaele Candeliere 2015-07-06 19:48:22 UTC
(In reply to Alex Deucher from comment #5)
> It's likely a packaging or configuration issue with the newer version of
> Ubuntu then.  X has no dependencies on what was used to boot the system. 
> Are you using any special xorg config file?  Can you start X manually or as
> root?
Mmhhh. Not sure about that, but, again I don't think so. As you can see in the Ubuntu bug report, there's no xorg.conf file. I'm simply using the default shipped with Ubuntu, that is, no config file. I simply install Ubuntu with the usual iso image and that's it. It used to work out of the box. The tweak I'm using is only about the way Ubuntu boots (either via GRUB or directly via the EFI stub). No other system wide tweak is in place.
Can I start X manually? No, I can't if I issue a startx command I get the same error.
What I haven't tried is to configure X manually, that is, writing my own xorg.conf specifying the radeon driver, but it would be a gross workaround, not a fix. But if you need it as a test, I can try that.
Comment 7 Alex Deucher 2015-07-06 19:54:50 UTC
(In reply to Raffaele Candeliere from comment #6)
> What I haven't tried is to configure X manually, that is, writing my own
> xorg.conf specifying the radeon driver, but it would be a gross workaround,
> not a fix. But if you need it as a test, I can try that.

Can you try that?  It would help narrow down what the problem is.  Additionally does using the same ddx (xf86-video-ati) and xserver version from the previous version of ubuntu work?  Can you try that similar to how you tested the older kernel with a newer ubunutu?  Also does starting X as root work?  It could be that the configuration with the efi stub loader sets device permissions differently or something like that.
Comment 8 Michel Dänzer 2015-07-07 01:54:24 UTC
(In reply to Alex Deucher from comment #7)
> Also does starting X as root work?  It could be that the configuration with
> the efi stub loader sets device permissions differently or something like that.

Indeed, I'd try that first.
Comment 9 Raffaele Candeliere 2015-07-07 07:35:43 UTC
Created attachment 116990 [details]
XOrg.2.log when booting thru EFI Stub
Comment 10 Raffaele Candeliere 2015-07-07 07:48:53 UTC
(In reply to Michel Dänzer from comment #8)
> (In reply to Alex Deucher from comment #7)
> > Also does starting X as root work?  It could be that the configuration with
> > the efi stub loader sets device permissions differently or something like that.
> 
> Indeed, I'd try that first.

Hi Michel.
I've tried it. Same result. Doesn't work.
My sensation is that X *is* detecting the card. As you can see in the Xorg.log (right now I've attached one) X is detecting an ATI video card because it tries first to load the fglrx module. Upon failure (I have no fglrx driver installed indeed) it then tries to load the ati module and it *loads* it. But when it comes to setting all the roundabout up it fails: "no device detected"
Comment 11 Michel Dänzer 2015-07-07 07:58:08 UTC
The line

 (II) [KMS] Kernel modesetting enabled.

in the log means the radeon driver Probe hook returns TRUE, so this looks like a Xorg issue.
Comment 12 Raffaele Candeliere 2015-12-18 18:51:13 UTC
I've tried the latest Ubuntu update (Ubuntu 15.10, Xorg server 1.7.2, kernel 4.2.0-21).
Same problem.
Comment 13 GitLab Migration User 2018-12-13 18:29:23 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/xserver/issues/167.


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.