amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
A Dell Inspiron 5448 / 0YDTG3 laptop (BIOS A06 10/12/2015), which used to work well with Ubuntu trusty and Ubuntu wily releases (using fglrx driver), has an issue in Xenial where when the amdgpu driver tries to activate the Radeon GPU, a NULL pointer dereference occurs, causing the caller process to hang. This practically causes the system to hang when trying a logoff or shutdown.
The bug can be easily reproduced by calling:
DRI_PRIME=1 glxgears
Which hangs the glxgears process and causes the stacktrace attached below.
---[cut]---
$ dmesg
[...]
[ 129.188685] [drm] PCIE GART of 2048M enabled (table at 0x0000000000040
[ 129.429667] [drm] ring test on 0 succeeded in 14 usecs
[ 131.087501] [drm:gfx_
[ 131.087520] [drm:gfx_
[ 131.087533] [drm:gfx_
[ 131.087547] [drm:gfx_
[ 131.087558] [drm:gfx_
[ 131.087571] [drm:gfx_
[ 131.087582] [drm:gfx_
[ 131.087595] [drm:gfx_
[ 131.191024] [drm:sdma_
[ 131.191034] [drm:amdgpu_resume [amdgpu]] *ERROR* resume 5 failed -22
[ 131.191043] [drm:amdgpu_
[ 131.191149] amdgpu 0000:04:00.0: couldn't schedule ib
[ 131.191179] [drm:amdgpu_
[ 131.191203] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job!
[ 131.201417] amdgpu 0000:04:00.0: couldn't schedule ib
[ 131.201444] [drm:amdgpu_
[ 131.201462] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job!
[ 131.201465] amdgpu 0000:04:00.0: couldn't schedule ib
[ 131.201479] [drm:amdgpu_
[ 131.201493] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job!
[ 131.201494] amdgpu 0000:04:00.0: couldn't schedule ib
[ 131.201508] [drm:amdgpu_
[ 131.201523] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job!
[ 131.201524] amdgpu 0000:04:00.0: couldn't schedule ib
[ 131.201535] [drm:amdgpu_
[ 131.201546] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job!
[ 131.201548] amdgpu 0000:04:00.0: couldn't schedule ib
[ 131.201558] [drm:amdgpu_
[ 131.201569] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job!
[ 131.201571] amdgpu 0000:04:00.0: couldn't schedule ib
[ 131.201581] [drm:amdgpu_
[ 131.201592] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job!
[ 131.201616] BUG: unable to handle kernel NULL pointer dereference at 0000000000000248
[ 131.201648] IP: [<ffffffffc041c
[ 131.201684] PGD 0
[ 131.201693] Oops: 0000 [#1] SMP
[ 131.201707] Modules linked in: ctr ccm rfcomm pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) bnep binfmt_misc rtsx_usb_ms memstick nls_iso8859_1 dell_wmi sparse_keymap dell_laptop intel_rapl x86_pkg_
[ 131.202004] serio_raw snd_timer mei snd shpchp lpc_ich elan_i2c soundcore spi_pxa2xx_platform snd_soc_sst_acpi dw_dmac acpi_pad dw_dmac_core dell_rbtn i2c_designware_
[ 131.202242] CPU: 3 PID: 189 Comm: gfx Tainted: G OE 4.4.0-22-generic #39-Ubuntu
[ 131.202268] Hardware name: Dell Inc. Inspiron 5448/0YDTG3, BIOS A06 10/12/2015
[ 131.202291] task: ffff88024ee544c0 ti: ffff880035088000 task.ti: ffff880035088000
[ 131.202317] RIP: 0010:[<
[ 131.202389] RSP: 0018:ffff880035
[ 131.202418] RAX: 0000000000000000 RBX: ffff88024f348000 RCX: ffff88024d472000
[ 131.202457] RDX: 000003e8000003e8 RSI: ffff88024f34ad78 RDI: ffff88024b030240
[ 131.202498] RBP: ffff88003508bdb0 R08: ffff88024d472000 R09: 0000000000000000
[ 131.202533] R10: 00000000ffff5b25 R11: 0000000000001061 R12: ffff88024f34ad78
[ 131.202575] R13: ffff88024b030240 R14: ffff88024f348838 R15: 0000000000000001
[ 131.202617] FS: 000000000000000
[ 131.202664] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 131.202698] CR2: 0000000000000248 CR3: 0000000002e0a000 CR4: 00000000003406e0
[ 131.202741] Stack:
[ 131.202754] ffff8802506e8648 0000000000000000 ffff88024d472000 0000000000000000
[ 131.202804] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 131.202855] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 131.202905] Call Trace:
[ 131.202942] [<ffffffffc041e
[ 131.203004] [<ffffffffc045b
[ 131.203065] [<ffffffffc045a
[ 131.203107] [<ffffffff810c3
[ 131.203163] [<ffffffffc045a
[ 131.203207] [<ffffffff810a0
[ 131.203238] [<ffffffff810a0
[ 131.203278] [<ffffffff81825
[ 131.203311] [<ffffffff810a0
[ 131.203350] Code: c0 44 89 bc 85 48 ff ff ff 41 83 c7 01 44 39 bb 1c 09 00 00 76 4f 49 83 c6 10 4d 8b 6e f0 4d 85 ed 74 66 4c 89 ef e8 fe 2e ff ff <8b> b8 48 02 00 00 48 8b b4 fd 50 ff ff ff 48 85 f6 74 b2 41 8b
[ 131.203558] RIP [<ffffffffc041c
[ 131.203628] RSP <ffff88003508bce0>
[ 131.203645] CR2: 0000000000000248
[ 131.208801] ---[ end trace 8aa5d3e55e43b8c1 ]---
WORKAROUND: Kernel http://
WORKAROUND: In /etc/default/grub add amdgpu.runpm=0 to: GRUB_CMDLINE_
In /etc/rc.local add the following command:
echo OFF > /sys/kernel/
Create the file /etc/X11/xorg.conf if it doesn't exist, and add the following in order to get the backlight controls working:
Section "Device"
Identifier "Card0"
Driver "intel"
Option "Backlight" "intel_backlight"
EndSection
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: i3
Date: Sat May 7 10:56:56 2016
HibernationDevice: RESUME=
InstallationDate: Installed on 2015-08-12 (268 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: Dell Inc. Inspiron 5448
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.157
SourcePackage: linux
UpgradeStatus: Upgraded to xenial on 2016-04-26 (11 days ago)
dmi.bios.date: 10/12/2015
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A06
dmi.board.name: 0YDTG3
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: Inspiron 5448
dmi.product.
dmi.sys.vendor: Dell Inc.
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in linux (Ubuntu): | |
status: | Fix Released → Confirmed |
tags: |
added: kernel-fixed-upstream-4.5.0 removed: kernel-fixed-upstream-4.6-rc7 |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in linux (Ubuntu): | |
status: | Confirmed → Incomplete |
tags: |
added: bios-outdated-a07 kernel-fixed-upstream-4.5 removed: kernel-fixed-upstream-4.5.0 latest-bios-a06 |
tags: |
added: needs-upstream-testing yakkety removed: kernel-fixed-upstream |
description: | updated |
This change was made by a bot.