Public bug reported:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial
Kernel:         4.4
Fresh install of Ubuntu 16.04.1 Point Release

##Hardware: 
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Mullins [Radeon R3 Graphics] (rev 45) → AMD APU A4-7210 with R3 integrated 
graphics "MULLINS"
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT 
[Radeon HD 8670A/8670M/8690M / R5 M330] (rev ff) → AMD R5 M330 dedicated GPU 
"HAINAN"

##What works:
As system boots, only R3 integrated graphics is used by Ubuntu (as it should, 
all ok):
 *  glxinfo | grep render
OpenGL renderer string: Gallium 0.4 on AMD MULLINS (DRM 2.43.0, LLVM 3.8.0)
 * lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] 
Mullins [Radeon R3 Graphics] (rev 45)
 * sudo lshw -c display
  *-display               
       description: VGA compatible controller
       product: Mullins [Radeon R3 Graphics]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 1
       bus info: pci@0000:00:01.0
       version: 45
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=0
       resources: irq:39 memory:e0000000-efffffff memory:f0000000-f07fffff 
ioport:3000(size=256) memory:f1100000-f113ffff memory:f0d00000-f0d1ffff

##What doesn't work
With DRI_PRIME=1, I should be able to launch applications with the dedicated 
GPU (R5 M330). However, every time I try, the OS hangs and returns to the 
lightdm login screen.

This is what I did:
1. xrandr --listproviders 
 Providers: number : 3
 Provider 0: id: 0x73 cap: 0x9, Source Output, Sink Offload crtcs: 2 outputs: 2 
associated 
 providers: 2 name:MULLINS @ pci:0000:00:01.0
 Provider 1: id: 0x3f cap: 0x6, Sink Output, Source Offload crtcs: 0 outputs: 0 
associated 
 providers: 2 name:HAINAN @ pci:0000:01:00.0
 Provider 2: id: 0x3f cap: 0x6, Sink Output, Source Offload crtcs: 0 outputs: 0 
associated 
 providers: 2 name:HAINAN @ pci:0000:01:00.0
2. xrandr --setprovideroffloadsink  0x3f 0x73
3. sudo apt install mesa-utils
4. DRI_PRIME=1 glxgears 
5. then, the system hangs with a black screen and returns to the login screen

I've tried with DRI_PRIME=1 supertuxkart/redeclipse/other 3D
applications, but the result is always the same.

I've also tried to install a different DE with different compositing
window managers: XFCE+xfwm and XFCE+compton. However, if I try to use
DRI_PRIME=1 the result is always the same.

No problems when using DRI_PRIME=0 (mullins integrated graphics),
therefore the initial configuration should be ok.

It seems not related to compiz, but to something regarding the graphics
stack (radeon? mesa?)

As of now, I can't use my dedicated GPU.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xserver-xorg-video-radeon 1:7.7.0-1
ProcVersionSignature: Ubuntu 4.4.0-34.53-generic 4.4.15
Uname: Linux 4.4.0-34-generic x86_64
.tmp.unity_support_test.0:
 
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CompizPlugins: No value set for 
`/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Wed Aug 24 09:42:56 2016
DistUpgraded: Fresh install
DistroCodename: xenial
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R3 Graphics] 
[1002:9850] (rev 45) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Mullins [Radeon R3 Graphics] [17aa:3803]
InstallationDate: Installed on 2016-08-16 (7 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
MachineType: LENOVO 80NA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-34-generic.efi.signed 
root=UUID=c90f65d5-a1c1-4d83-93ff-397b3b670708 ro quiet splash vt.handoff=7
SourcePackage: xserver-xorg-video-ati
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/07/2015
dmi.bios.vendor: Lenovo
dmi.bios.version: BECN51WW
dmi.board.asset.tag: No Asset Tag
dmi.board.name: Lenovo Yoga 500-14ACL
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40700 WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo Yoga 500-14ACL
dmi.modalias: 
dmi:bvnLenovo:bvrBECN51WW:bd08/07/2015:svnLENOVO:pn80NA:pvrLenovoYoga500-14ACL:rvnLENOVO:rnLenovoYoga500-14ACL:rvrSDK0J40700WIN:cvnLENOVO:ct10:cvrLenovoYoga500-14ACL:
dmi.product.name: 80NA
dmi.product.version: Lenovo Yoga 500-14ACL
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.12.2+16.04.20160714-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.67-1ubuntu0.16.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2.1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2.1
version.xserver-xorg-core: xserver-xorg-core 2:1.18.3-1ubuntu2.3
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20160325-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.12-1build2
xserver.bootTime: Wed Aug 24 09:34:25 2016
xserver.configfile: default
xserver.errors: RADEON(G0): [XvMC] Failed to initialize extension.
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.18.3-1ubuntu2.3
xserver.video_driver: radeon

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


** Tags: amd64 apport-bug compiz-0.9 ubuntu xenial

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

Title:
  DRI_PRIME GPU offloading not working on AMD APU + AMD GPU laptop with
  ubuntu 16.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1616364/+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