AMD Radeon 520 graphics card not detected in wayland session when using AMD/Intel hybrid laptop
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-
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
resources: irq:128 memory:
*-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
resources: irq:129 memory:
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,
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: xwayland 2:1.19.5-0ubuntu2
ProcVersionSign
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
ExtraDebuggingI
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=
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.
dmi.board.name: 832B
dmi.board.vendor: HP
dmi.board.version: 23.38
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.chassis.
dmi.modalias: dmi:bvnInsyde:
dmi.product.family: 103C_5335KV HP Notebook
dmi.product.name: HP Laptop 15-bs0xx
dmi.product.
dmi.sys.vendor: HP
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.83-1
version.
version.
version.
version.
version.
version.
version.
Changed in gnome-control-center (Ubuntu): | |
status: | New → Triaged |
Changed in gnome-control-center: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
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. 15-bs0xx: ~$ DRI_PRIME=1 vblank_mode=0 glxgears
HP-Laptop-
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?