Public bug reported:

Hello.

I have a laptop with two graphic cards, one integrated and one dedicated. The 
relevant lines in lspci are:
00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated 
Graphics (rev 09)
09:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT 
[Radeon R7 M260/M265]

I had the laptop working nicely in Ubuntu 14.04 using the dedicated card (AMD 
R7 M260/265) trough the propietary fglrx driver.
But I had the idea of updating to 16.04 without reading all the stuff I have 
read afterwards about fglrx not been usable with this version of Ubuntu and the 
problems with the amdgpu free driver, that render the upgrade to 16.04 a bad 
idea when dealing with AMD cards.

>From that moment, I can use only the Intel integrated card and I have
not been able to make the AMD card work at all. Xorg starts
automatically the Intel card (with no xorg.conf file which was deleted
in the upgrade process) and if I try to force the use of the AMD card
with a xorg.conf file with the following contents:

Section "Device"
    Identifier "amd-device"
    Driver "amdgpu"
    BusID "PCI:9:0:0"
EndSection

Xorg will not start and I check the Xorg.0.log file, I can see that the
card seems to be correctly detected (I am pasting just some relevant
lines of the file):

...
[   104.585] (II) xfree86: Adding drm device (/dev/dri/card0)
[   104.586] (II) xfree86: Adding drm device (/dev/dri/card1)
[   104.588] (--) PCI:*(0:0:2:0) 8086:1616:1179:f920 rev 9, Mem @ 0xc2000000/167
77216, 0xd0000000/268435456, I/O @ 0x00006000/64, BIOS @ 0x????????/131072
[   104.588] (--) PCI: (0:9:0:0) 1002:6900:1179:f923 rev 0, Mem @ 0xb0000000/268
435456, 0xc0000000/2097152, 0xc4100000/262144, I/O @ 0x00003000/256, BIOS @ 0x??
??????/131072
...
[   104.589] (II) Module amdgpu: vendor="X.Org Foundation"
[   104.589]    compiled for 1.18.3, module version = 1.1.0
[   104.589]    Module class: X.Org Video Driver
[   104.589]    ABI class: X.Org Video Driver, version 20.0
[   104.589] (II) AMDGPU: Driver for AMD Radeon chipsets: ..., TOPAZ, ...
[   104.590] (II) [KMS] Kernel modesetting enabled.
[   104.620] (II) AMDGPU(0): Creating default Display subsection in Screen 
section
        "Default Screen Section" for depth/fbbpp 24/32
[   104.620] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[   104.620] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp 
pixmaps)
[   104.620] (==) AMDGPU(0): Default visual is TrueColor
[   104.620] (==) AMDGPU(0): RGB weight 888
[   104.620] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[   104.620] (--) AMDGPU(0): Chipset: "TOPAZ" (ChipID = 0x6900)
...
[   104.640] (II) AMDGPU(0): glamor detected, initialising EGL layer.
[   104.640] (II) AMDGPU(0): KMS Pageflipping: enabled

But after this, the problems arise:

[   104.640] (WW) AMDGPU(0): No outputs definitely connected, trying again...
[   104.640] (WW) AMDGPU(0): Unable to find connected outputs - setting 
1024x768 initial framebuffer
[   104.640] (II) AMDGPU(0): mem size init: gart size :7fe7a000 vram size: 
s:7fbbd000 visible:fbbd000
[   104.640] (==) AMDGPU(0): DPI set to (96, 96)
[   104.640] (==) AMDGPU(0): Using gamma correction (1.0, 1.0, 1.0)
[   104.640] (II) Loading sub module "ramdac"
[   104.640] (II) LoadModule: "ramdac"
[   104.640] (II) Module "ramdac" already built-in
[   104.640] (EE) AMDGPU(0): No modes.
[   104.640] (II) UnloadModule: "amdgpu"

It seems that xorg find no outputs connected to the AMD card and aborts.
I have tried also to play with vgaswitcheroo using the procedures
described here: https://help.ubuntu.com/community/HybridGraphics but
when I prepare the thing to use the AMD card and try to start xorg (via
lightdm) I land in a blank screen and I must shutdown the laptop the
hard way. I think this behaviour is consistent with the idea of no
output connected to the AMD card.

After some googling here and there and trying different things, I have
landed in the /sys/class/drm folder and I think that its contents are
interesting and may help (or not) in focusing the problem. This folder
contains some simlinks, ls -l yields:

lrwxrwxrwx 1 root root    0 dic 11 08:17 card0 -> 
../../devices/pci0000:00/0000:00:02.0/drm/card0
lrwxrwxrwx 1 root root    0 dic 11 08:17 card0-DP-1 -> 
../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1
lrwxrwxrwx 1 root root    0 dic 11 08:17 card0-eDP-1 -> 
../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1
lrwxrwxrwx 1 root root    0 dic 11 08:17 card0-HDMI-A-1 -> 
../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-1
lrwxrwxrwx 1 root root    0 dic 11 08:17 card1 -> 
../../devices/pci0000:00/0000:00:1c.4/0000:09:00.0/drm/card1
lrwxrwxrwx 1 root root    0 dic 11 08:17 controlD64 -> 
../../devices/pci0000:00/0000:00:02.0/drm/controlD64
lrwxrwxrwx 1 root root    0 dic 11 08:17 controlD65 -> 
../../devices/pci0000:00/0000:00:1c.4/0000:09:00.0/drm/controlD65
lrwxrwxrwx 1 root root    0 dic 11 08:17 renderD128 -> 
../../devices/pci0000:00/0000:00:02.0/drm/renderD128
lrwxrwxrwx 1 root root    0 dic 11 08:17 renderD129 -> 
../../devices/pci0000:00/0000:00:1c.4/0000:09:00.0/drm/renderD129
lrwxrwxrwx 1 root root    0 dic 11 08:17 ttm -> ../../devices/virtual/drm/ttm
-r--r--r-- 1 root root 4096 dic 11 08:17 version

Looking to the names of the target files, it seems obvious that card0
refers to the integrated card and card1 is the dedicated (AMD) one. I
can see that there are also links related to the output involving card0
(DP, eDP, HDMI) but the corresponding ones corresponding to card1 are
missing. Could this explain why xorg find no outputs when using card1? I
can see also that the target folders for card1 are a level deeper
(subfolder 0000:00:1c.4) that those of card0, which I do not know if it
is relevant or not.

Supposing this is the source of the problem, I do not know which piece
of software is responsible for the population of this /sys structure, if
the kernel itself, the amdgpu module, udev or whatever (and hence, which
is the culprit of the bug if this is the bug).

I would like to give a try to amdgpu prior to surrender and downgrade
back to Ubuntu 14 or 15 and fglrx (probably involving a fresh install,
with data backup and reinstallation of all the software).

I thanks for any reply or any hint, if you need any further information,
just ask.

** Affects: xserver-xorg-video-amdgpu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-video-amdgpu in Ubuntu.
https://bugs.launchpad.net/bugs/1649060

Title:
  amdgpu does not find any output when using dedicated (AMD) card

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-amdgpu/+bug/1649060/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to