ATI Radeon not working: from no rendering to system freeze

Bug #1570802 reported by nicola dmt
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Release: Ubuntu 16.04 LTS (pre-release daily build)

Hardware: Dell Inspiron 15 5000 Series (Intel(R)) - 5559, hybrid graphics: Intel integrated + AMD Radeon(TM) R5 M335 4GB DDR3 GPU.

I can't get the GPU to work properly. Examples: glxgears not showing output or crashing, blender causing the system to freeze.

What I've tried:

1] with the default configuration (integrated Intel card activated by default), glxgears works fine.

2] DRI_PRIME=1 glxgears: THe windows gets drawn, but no content is rendered

3]
Output from xrandr --listproviders:
   Providers: number : 3
   Provider 0: id: 0x66 cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 2 name:Intel
   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

So I change with:
xrandr --setprovideroffloadsink 0x3f 0x66

4] DRI_PRIME=1 glxgears now gives:

radeon: Failed to allocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 4
radeon: va : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: va : 0x0000000000800000
radeon: Failed to allocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 4
radeon: va : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: va : 0x0000000000800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 4
radeon: va : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: va : 0x0000000000800000
radeon: Failed to allocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: alignment : 4096 bytes
radeon: domains : 4
radeon: va : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon: size : 65536 bytes
radeon: va : 0x0000000000800000
radeonsi: Failed to create a context.
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 154 (GLX)
  Minor opcode of failed request: 3 (X_GLXCreateContext)
  Value in failed request: 0x0
  Serial number of failed request: 30
  Current serial number in output stream: 32

"Apport" for this bug was run after going back to "xrandr --setprovideroffloadsink 0x66 0x3f".

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-18-generic 4.4.0-18.34 [modified: boot/vmlinuz-4.4.0-18-generic]
ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: nicola 1402 F.... pulseaudio
CurrentDesktop: Unity
Date: Fri Apr 15 11:55:17 2016
HibernationDevice: RESUME=UUID=449a6774-7719-42e0-ad0d-0941778d2be5
InstallationDate: Installed on 2016-04-14 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160414)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 008: ID 8087:07dc Intel Corp.
 Bus 001 Device 007: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
 Bus 001 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. Inspiron 5559
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-18-generic.efi.signed root=UUID=1505ea58-b580-4f52-b408-26294cb50da1 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-18-generic N/A
 linux-backports-modules-4.4.0-18-generic N/A
 linux-firmware 1.157
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/16/2015
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.0.6
dmi.board.name: 0664DJ
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.0.6:bd09/16/2015:svnDellInc.:pnInspiron5559:pvr:rvnDellInc.:rn0664DJ:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: Inspiron 5559
dmi.sys.vendor: Dell Inc.

Revision history for this message
nicola dmt (nicola-dmt) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
nicola dmt (nicola-dmt)
tags: added: gpu graphics radeon
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.6 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc4-wily/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
nicola dmt (nicola-dmt) wrote :

It happened on a fresh install, and the computer is brand new so I don't have any clue about the past!

I've tested upstream kernel, and the bug seems to be fixed, but please check that I'm right:

- I turn on Ubuntu, I run glxgear, I get a normal frame rate of 60fps (I guess I'm using Intel graphics)

- xrandr --listproviders gives:
Providers: number : 2
Provider 0: id: 0x66 cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel
Provider 1: id: 0x3f cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:HAINAN @ pci:0000:01:00.0

Note that there were only 2 listed when I reported the bug

- DRI_PRIME=1 glxgears now works, gives extremely high frame rate (6000), renders smoothly

- xrandr --setprovideroffloadsink 0x3f 0x66 doesn't work anymore, now gives error:
 X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 140 (RANDR)
  Minor opcode of failed request: 34 (RRSetProviderOffloadSink)
  Value in failed request: 0x3f
  Serial number of failed request: 16
  Current serial number in output stream: 17

So, even if I don't understand exactly how to switch rendering engine systemwide, I think that using DRI_PRIME=1 actually turns the GPU on and it is working fine now!

I'm tagging accordingly, but please tell me if I understand correctly.

tags: added: kernel-fixed-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :

@ nicola:

Did you have activated the option "download updates during installation" ? If not, is the system updated to most current state?

Background: see Release Notes/Known issues [1] since you have a Intel Skylake-iGPU

I've seen that you are also capable to speak other languages from your profile, so if you like to lear more how to use the Hybrid-graphics on open-source drivers you can find some content on a local-community-wiki [2].

Please note also that AMDgpu is considered to still receive fixes [3]. Sound doesn't work for me with 4.6 RC4. It does with Mainline-Kernel 4.5.2

[1] https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#A6th_gen_Intel_Core_CPUs_and_llvmpipe_software_rasterizer
[2] http://wiki.ubuntu-it.org/Hardware/Video/GraficaIbrida/Prime]
[3] https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.6-APR21-DRM-Fixes

Revision history for this message
Vishal Bhando (vishal-bhando) wrote :

The last status is not as Fix Released -- I am too affected by this issue

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
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.