AMD Radeon 520 graphics card not detected in wayland session when using AMD/Intel hybrid laptop

Bug #1727877 reported by Abraham
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
X.Org X server
Invalid
Undecided
Unassigned
gnome-control-center
Confirmed
Medium
gnome-control-center (Ubuntu)
Triaged
Low
Unassigned

Bug Description

This is a new laptop HP 15-BS576TX which has Intel HD 620 Integrated graphics and a 2GB AMD Radeon 520 Graphics card running on Ubuntu wayland session. Intel integrated graphics is only listed, if you check gnome-control-centre details page (See attached images). But, if I run [code]DRI_PRIME=1 gnome-control-centre[/code] to reach details info it shows "AMD HAINAN" as the only card available. So, it seems the Xwayland session not automatically managing hybrid graphics (shifts to dedicated card for resource hungry apps). What I expected is Gnome control centre will list both the cards.

tl;dr: AMD/Intel hybrid graphics not configured correctly in wayland. Dedicated Card is not showing up in system informations.

Here are the details: lspci -knnn shows that AMD Radeon 520 card is detected:

01:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520] [1002:6660] (rev 83)
    Subsystem: Hewlett-Packard Company Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] [103c:832b]
    Kernel driver in use: radeon
    Kernel modules: radeon, amdgpu

and Integrated Intel HD 620 graphics:

00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
    Subsystem: Hewlett-Packard Company HD Graphics 620 [103c:832b]
    Kernel driver in use: i915
    Kernel modules: i915

lshw -C video
  *-display

       description: VGA compatible controller
       product: HD Graphics 620
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 02
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:128 memory:b0000000-b0ffffff memory:a0000000-afffffff ioport:6000(size=64) memory:c0000-dffff
  *-display
       description: Display controller
       product: Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 83
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi bus_master cap_list rom
       configuration: driver=radeon latency=0
       resources: irq:129 memory:90000000-9fffffff memory:b1200000-b123ffff ioport:5000(size=256) memory:b1240000-b125ffff

Now, if I run any app with DRI_PRIME=1 it works and shows below info:

:~$ DRI_PRIME=1 glxinfo |grep -i Opengl*
OpenGL vendor string: X.Org
OpenGL renderer string: AMD HAINAN (DRM 2.50.0 / 4.13.0-16-generic, LLVM 5.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.2
OpenGL core profile shading language version string: 4.50

So, I assumed Radeon 520 is working fine. Then, noticed that there is no mention of gallium 3d?
I see that there is amdgpu driver module also loaded. From the list, R520 card seems to be supported by the radeon driver.

lsmod |grep radeon
radeon 1470464 0
ttm 94208 2 amdgpu,radeon
i2c_algo_bit 16384 3 amdgpu,radeon,i915
drm_kms_helper 167936 3 amdgpu,radeon,i915
drm 356352 28 amdgpu,radeon,i915,ttm,drm_kms_helper

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: xwayland 2:1.19.5-0ubuntu2
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CompositorRunning: None
CurrentDesktop: GNOME
Date: Fri Oct 27 03:50:59 2017
DistUpgraded: Fresh install
DistroCodename: artful
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation HD Graphics 620 [8086:5916] (rev 02) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company HD Graphics 620 [103c:832b]
   Subsystem: Hewlett-Packard Company Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] [103c:832b]
InstallationDate: Installed on 2017-10-22 (4 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
MachineType: HP HP Laptop 15-bs0xx
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-16-generic.efi.signed root=UUID=50b901ea-f329-4a72-ae11-f7203ae53c2e ro quiet splash vt.handoff=7
SourcePackage: xorg-server
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/24/2017
dmi.bios.vendor: Insyde
dmi.bios.version: F.22
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 832B
dmi.board.vendor: HP
dmi.board.version: 23.38
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.22:bd07/24/2017:svnHP:pnHPLaptop15-bs0xx:pvrType1ProductConfigId:rvnHP:rn832B:rvr23.38:cvnHP:ct10:cvrChassisVersion:
dmi.product.family: 103C_5335KV HP Notebook
dmi.product.name: HP Laptop 15-bs0xx
dmi.product.version: Type1ProductConfigId
dmi.sys.vendor: HP
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.83-1
version.libgl1-mesa-dri: libgl1-mesa-dri 17.2.2-0ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 17.2.2-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.19.5-0ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.10.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20170309-0ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A

Revision history for this message
Abraham (abrahm79) wrote :
Revision history for this message
Abraham (abrahm79) wrote :

The FPS I get with AMD R 520 card seems to be very low, if I run glxgears when compared to Intel Integrated graphics:

-HP-Laptop-15-bs0xx:~$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
40135 frames in 5.0 seconds = 8026.788 FPS
41018 frames in 5.0 seconds = 8203.442 FPS
40897 frames in 5.0 seconds = 8179.312 FPS
40758 frames in 5.0 seconds = 8151.432 FPS

With Radeon card, seems to be very slow. vblank_mode=0 also results in horizontal lines in glxgears.
HP-Laptop-15-bs0xx:~$ DRI_PRIME=1 vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
13545 frames in 5.0 seconds = 2708.850 FPS
13765 frames in 5.0 seconds = 2752.917 FPS
13785 frames in 5.0 seconds = 2756.820 FPS
13785 frames in 5.0 seconds = 2756.957 FPS

Is there something I can do to enable full potential of the dedicated card?

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

glxgears is not a benchmark

no longer affects: xorg-server (Ubuntu)
Changed in xorg-server:
status: New → Invalid
affects: wayland → gnome-control-center (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
Revision history for this message
Abraham (abrahm79) wrote :

Thank you Timo and Sebastien for the acknowledgement. I have filed this bug to Gnome BTS and here is the link: https://bugzilla.gnome.org/show_bug.cgi?id=789570 . Please bear with me, but I'm confused whether this needs to be reported to the wayland upstream too? Do ask if I need to run anything more.

Revision history for this message
Abraham (abrahm79) wrote :

I installed Xonotic (3d game) benchmark to test both IGP and DGP. Here is the result:

with Intel HD 620 IGP:
HP-Laptop-15-bs0xx:~$ xonotic -benchmark demos/xonotic-0-8-d1 2>&1 | egrep -e '[0-9]+ frames'
356 frames 6.1346382 seconds 58.0311326 fps, one-second fps min/avg/max: 51 58 60 (12 seconds)

with AMD Radeon 520 2GB DDR3 DGP:
HP-Laptop-15-bs0xx:~$ DRI_PRIME=1 xonotic -benchmark demos/xonotic-0-8-d1 2>&1 | egrep -e '[0-9]+ frames'
356 frames 5.9962583 seconds 59.3703577 fps, one-second fps min/avg/max: 54 59 62 (12 seconds)

This is in 1080p mode. Is this looks normal for DGP? Thanks in advance.

Changed in gnome-control-center (Ubuntu):
status: New → Triaged
Changed in gnome-control-center:
importance: Unknown → Medium
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.