Bug 94874 - radeon: Failed to allocate virtual address for buffer
Summary: radeon: Failed to allocate virtual address for buffer
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg git
Hardware: Other All
: medium critical
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-08 20:07 UTC by Paulo Dias
Modified: 2016-04-25 17:26 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg nopm (66.23 KB, text/plain)
2016-04-20 02:52 UTC, Paulo Dias
no flags Details
xorg nopm (43.32 KB, text/plain)
2016-04-20 02:52 UTC, Paulo Dias
no flags Details
DRI_PRIME=1 glxinfo nopm (25.25 KB, text/plain)
2016-04-20 02:53 UTC, Paulo Dias
no flags Details
DRI_PRIME=1 glxinfo kernel 4.6.0 rc4 (25.21 KB, text/plain)
2016-04-20 03:14 UTC, Paulo Dias
no flags Details
dmesg kernel 4.6.0 rc4 (77.25 KB, text/plain)
2016-04-20 03:14 UTC, Paulo Dias
no flags Details

Description Paulo Dias 2016-04-08 20:07:38 UTC
with mesa git after 2abe4f8d7dcdcff75c28958e1a691ebf6cdee1ac, radeon is failing intermittently, with the following errors:

DRI_PRIME=1 glxgears 
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

dmesg:
[  999.461532] [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
[  999.461537] [drm] PCIE gen 2 link speeds already enabled
[  999.468703] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[  999.468827] radeon 0000:03:00.0: WB enabled
[  999.468829] radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a322bc00
[  999.468831] radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a322bc04
[  999.468832] radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a322bc08
[  999.468834] radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a322bc0c
[  999.468835] radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a322bc10
[  999.470457] radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
[  999.480817] radeon 0000:03:00.0: VCE init error (-22).
[ 1000.212739] [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[ 1000.212764] [drm:si_resume [radeon]] *ERROR* si startup failed on resume
Comment 1 Paulo Dias 2016-04-08 20:10:50 UTC
groo@hydra:~/devel/opencl/clpeak/clpeak$ lspci 
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus PRO [Radeon HD 8850M / R9 M265X]

Linux hydra 4.6.0-rc2-custom #4 SMP Mon Apr 4 16:23:21 BRT 2016 x86_64 x86_64 x86_64 GNU/Linux

ii  xserver-xorg-video-amdgpu                                   1.1.0+git1604071915.a04f401~x~padoka0      amd64        X.Org X server -- AMDGPU display driver
ii  xserver-xorg-video-ati                                      1:7.7.0+git1604071806.df66628~x~padoka0    amd64        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-intel                                    2:2.99.917+git1604071802.59d371a~x~padoka0 amd64        X.Org X server -- Intel i8xx, i9xx display driver
ii  xserver-xorg-video-radeon                                   1:7.7.0+git1604071806.df66628~x~padoka0    amd64        X.Org X server -- AMD/ATI Radeon display driver
mesa 11.3~git160408135300.4420f18~x~padoka0
llvm-3.9                                                    1:3.9~svn265705-0~x~padoka0
Comment 2 Paulo Dias 2016-04-08 21:24:07 UTC
wheni reboot, the first run works, but with errors

Abr 08 18:23:08 hydra kernel: [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
Abr 08 18:23:08 hydra kernel: [drm] PCIE gen 2 link speeds already enabled
Abr 08 18:23:08 hydra kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: WB enabled
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a31c5c00
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a31c5c04
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a31c5c08
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a31c5c0c
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a31c5c10
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
Abr 08 18:23:08 hydra kernel: radeon 0000:03:00.0: VCE init error (-22).
Abr 08 18:23:09 hydra kernel: [drm] ring test on 0 succeeded in 1 usecs
Abr 08 18:23:09 hydra kernel: [drm] ring test on 1 succeeded in 1 usecs
Abr 08 18:23:09 hydra kernel: [drm] ring test on 2 succeeded in 1 usecs
Abr 08 18:23:09 hydra kernel: [drm] ring test on 3 succeeded in 10 usecs
Abr 08 18:23:09 hydra kernel: [drm] ring test on 4 succeeded in 5 usecs
Abr 08 18:23:09 hydra kernel: [drm] ring test on 5 succeeded in 2 usecs
Abr 08 18:23:09 hydra kernel: [drm] UVD initialized successfully.
Abr 08 18:23:09 hydra kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Abr 08 18:23:09 hydra kernel: [drm] ib test on ring 1 succeeded in 0 usecs
Abr 08 18:23:09 hydra kernel: [drm] ib test on ring 2 succeeded in 0 usecs
Abr 08 18:23:09 hydra kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Abr 08 18:23:09 hydra kernel: [drm] ib test on ring 4 succeeded in 0 usecs
Abr 08 18:23:10 hydra kernel: [drm:uvd_v1_0_ib_test [radeon]] *ERROR* radeon: fence wait timed out.
Abr 08 18:23:10 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 5 (-110).
Abr 08 18:23:10 hydra kernel: radeon 0000:03:00.0: scheduling IB failed (-12).
Abr 08 18:23:10 hydra kernel: [drm:radeon_vce_get_create_msg [radeon]] *ERROR* radeon: failed to schedule ib (-12).
Abr 08 18:23:10 hydra kernel: [drm:radeon_vce_ib_test [radeon]] *ERROR* radeon: failed to get create msg (-12).
Abr 08 18:23:10 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 6 (-12).
Abr 08 18:23:10 hydra kernel: radeon 0000:03:00.0: scheduling IB failed (-12).
Abr 08 18:23:10 hydra kernel: [drm:radeon_vce_get_create_msg [radeon]] *ERROR* radeon: failed to schedule ib (-12).
Abr 08 18:23:10 hydra kernel: [drm:radeon_vce_ib_test [radeon]] *ERROR* radeon: failed to get create msg (-12).
Abr 08 18:23:10 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 7 (-12).
Comment 3 Paulo Dias 2016-04-08 21:25:47 UTC
second run, still works

Abr 08 18:24:29 hydra kernel: [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
Abr 08 18:24:29 hydra kernel: [drm] PCIE gen 2 link speeds already enabled
Abr 08 18:24:29 hydra kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: WB enabled
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a31c5c00
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a31c5c04
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a31c5c08
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a31c5c0c
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a31c5c10
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
Abr 08 18:24:29 hydra kernel: radeon 0000:03:00.0: VCE init error (-22).
Abr 08 18:24:29 hydra kernel: [drm] ring test on 0 succeeded in 2 usecs
Abr 08 18:24:29 hydra kernel: [drm] ring test on 1 succeeded in 1 usecs
Abr 08 18:24:29 hydra kernel: [drm] ring test on 2 succeeded in 1 usecs
Abr 08 18:24:29 hydra kernel: [drm] ring test on 3 succeeded in 10 usecs
Abr 08 18:24:29 hydra kernel: [drm] ring test on 4 succeeded in 4 usecs
Abr 08 18:24:30 hydra kernel: [drm] ring test on 5 succeeded in 2 usecs
Abr 08 18:24:30 hydra kernel: [drm] UVD initialized successfully.
Abr 08 18:24:30 hydra kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Abr 08 18:24:30 hydra kernel: [drm] ib test on ring 1 succeeded in 0 usecs
Abr 08 18:24:30 hydra kernel: [drm] ib test on ring 2 succeeded in 0 usecs
Abr 08 18:24:30 hydra kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Abr 08 18:24:30 hydra kernel: [drm] ib test on ring 4 succeeded in 0 usecs
Abr 08 18:24:31 hydra kernel: [drm:uvd_v1_0_ib_test [radeon]] *ERROR* radeon: fence wait timed out.
Abr 08 18:24:31 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 5 (-110).

third run onward it fails everytime till i reboot:

Abr 08 18:24:53 hydra kernel: [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
Abr 08 18:24:53 hydra kernel: [drm] PCIE gen 2 link speeds already enabled
Abr 08 18:24:53 hydra kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Abr 08 18:24:53 hydra kernel: radeon 0000:03:00.0: WB enabled
Abr 08 18:24:53 hydra kernel: radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a31c5c00
Abr 08 18:24:53 hydra kernel: radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a31c5c04
Abr 08 18:24:53 hydra kernel: radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a31c5c08
Abr 08 18:24:53 hydra kernel: radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a31c5c0c
Abr 08 18:24:53 hydra kernel: radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a31c5c10
Abr 08 18:24:53 hydra kernel: radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
Abr 08 18:24:54 hydra kernel: radeon 0000:03:00.0: VCE init error (-22).
Abr 08 18:24:54 hydra kernel: [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
Abr 08 18:24:54 hydra kernel: [drm:si_resume [radeon]] *ERROR* si startup failed on resume
Comment 4 Paulo Dias 2016-04-08 23:35:01 UTC
Abr 08 20:33:29 hydra kernel: [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
Abr 08 20:33:29 hydra kernel: [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: Wait for MC idle timedout !
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: Wait for MC idle timedout !
Abr 08 20:33:29 hydra kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: WB enabled
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a332cc00
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a332cc04
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a332cc08
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a332cc0c
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a332cc10
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
Abr 08 20:33:29 hydra kernel: radeon 0000:03:00.0: VCE init error (-110).
Abr 08 20:33:29 hydra kernel: [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xFFFFFFFF)
Abr 08 20:33:29 hydra kernel: [drm:si_resume [radeon]] *ERROR* si startup failed on resume
Abr 08 20:33:29 hydra kernel: [drm:si_dpm_enable [radeon]] *ERROR* si_init_smc_table failed
Abr 08 20:33:29 hydra kernel: [drm:radeon_pm_resume [radeon]] *ERROR* radeon: dpm resume failed
Abr 08 20:33:29 hydra kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Abr 08 20:33:29 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CFA0 (len 62, WS 0, PS 0) @ 0xCFBC
Abr 08 20:33:29 hydra kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Abr 08 20:33:29 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CFA0 (len 62, WS 0, PS 0) @ 0xCFBC
Abr 08 20:33:29 hydra kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Abr 08 20:33:29 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CFA0 (len 62, WS 0, PS 0) @ 0xCFBC
Abr 08 20:33:29 hydra kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Abr 08 20:33:29 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CFA0 (len 62, WS 0, PS 0) @ 0xCFBC
Abr 08 20:33:29 hydra kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Abr 08 20:33:29 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CFA0 (len 62, WS 0, PS 0) @ 0xCFBC
Abr 08 20:33:29 hydra kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Abr 08 20:33:29 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing CFA0 (len 62, WS 0, PS 0) @ 0xCFBC
Abr 08 20:33:42 hydra kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Abr 08 20:33:42 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing C810 (len 320, WS 0, PS 0) @ 0xC937
Abr 08 20:33:42 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing BAF6 (len 231, WS 4, PS 0) @ 0xBBBC
Abr 08 20:33:42 hydra kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing BA44 (len 90, WS 0, PS 8) @ 0xBA4C
Abr 08 20:33:42 hydra kernel: [drm:si_dpm_enable [radeon]] *ERROR* si_init_smc_table failed
Abr 08 20:33:42 hydra kernel: [drm:radeon_pm_resume [radeon]] *ERROR* radeon: dpm resume failed
Comment 5 Paulo Dias 2016-04-15 16:40:23 UTC
still getting errors with latest mesa git, llvm git, radeonsi git in PRIME

Abr 15 13:35:49 hydra kernel: [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
Abr 15 13:35:49 hydra kernel: [drm] PCIE gen 2 link speeds already enabled
Abr 15 13:35:49 hydra kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: WB enabled
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a3202c00
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a3202c04
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a3202c08
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a3202c0c
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a3202c10
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
Abr 15 13:35:49 hydra kernel: radeon 0000:03:00.0: VCE init error (-22).
Abr 15 13:35:49 hydra kernel: [drm] ring test on 0 succeeded in 1 usecs
Abr 15 13:35:49 hydra kernel: [drm] ring test on 1 succeeded in 1 usecs
Abr 15 13:35:49 hydra kernel: [drm] ring test on 2 succeeded in 1 usecs
Abr 15 13:35:49 hydra kernel: [drm] ring test on 3 succeeded in 10 usecs
Abr 15 13:35:49 hydra kernel: [drm] ring test on 4 succeeded in 5 usecs
Abr 15 13:35:49 hydra kernel: [drm] ring test on 5 succeeded in 2 usecs
Abr 15 13:35:49 hydra kernel: [drm] UVD initialized successfully.
Abr 15 13:35:49 hydra kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Abr 15 13:35:49 hydra kernel: [drm] ib test on ring 1 succeeded in 0 usecs
Abr 15 13:35:49 hydra kernel: [drm] ib test on ring 2 succeeded in 0 usecs
Abr 15 13:35:49 hydra kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Abr 15 13:35:49 hydra kernel: [drm] ib test on ring 4 succeeded in 0 usecs
Abr 15 13:35:51 hydra kernel: [drm:uvd_v1_0_ib_test [radeon]] *ERROR* radeon: fence wait timed out.
Abr 15 13:35:51 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 5 (-110).
Abr 15 13:35:51 hydra kernel: radeon 0000:03:00.0: scheduling IB failed (-12).
Abr 15 13:35:51 hydra kernel: [drm:radeon_vce_get_create_msg [radeon]] *ERROR* radeon: failed to schedule ib (-12).
Abr 15 13:35:51 hydra kernel: [drm:radeon_vce_ib_test [radeon]] *ERROR* radeon: failed to get create msg (-12).
Abr 15 13:35:51 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 6 (-12).
Abr 15 13:35:51 hydra kernel: radeon 0000:03:00.0: scheduling IB failed (-12).
Abr 15 13:35:51 hydra kernel: [drm:radeon_vce_get_create_msg [radeon]] *ERROR* radeon: failed to schedule ib (-12).
Abr 15 13:35:51 hydra kernel: [drm:radeon_vce_ib_test [radeon]] *ERROR* radeon: failed to get create msg (-12).
Abr 15 13:35:51 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 7 (-12).

second run:

Abr 15 13:37:29 hydra kernel: [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
Abr 15 13:37:29 hydra kernel: [drm] PCIE gen 2 link speeds already enabled
Abr 15 13:37:29 hydra kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: WB enabled
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a3202c00
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a3202c04
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a3202c08
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a3202c0c
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a3202c10
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
Abr 15 13:37:29 hydra kernel: radeon 0000:03:00.0: VCE init error (-22).
Abr 15 13:37:29 hydra kernel: [drm] ring test on 0 succeeded in 2 usecs
Abr 15 13:37:29 hydra kernel: [drm] ring test on 1 succeeded in 1 usecs
Abr 15 13:37:29 hydra kernel: [drm] ring test on 2 succeeded in 1 usecs
Abr 15 13:37:29 hydra kernel: [drm] ring test on 3 succeeded in 10 usecs
Abr 15 13:37:29 hydra kernel: [drm] ring test on 4 succeeded in 5 usecs
Abr 15 13:37:29 hydra kernel: [drm] ring test on 5 succeeded in 2 usecs
Abr 15 13:37:29 hydra kernel: [drm] UVD initialized successfully.
Abr 15 13:37:29 hydra kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Abr 15 13:37:29 hydra kernel: [drm] ib test on ring 1 succeeded in 0 usecs
Abr 15 13:37:29 hydra kernel: [drm] ib test on ring 2 succeeded in 0 usecs
Abr 15 13:37:29 hydra kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Abr 15 13:37:29 hydra kernel: [drm] ib test on ring 4 succeeded in 0 usecs
Abr 15 13:37:30 hydra kernel: [drm:uvd_v1_0_ib_test [radeon]] *ERROR* radeon: fence wait timed out.
Abr 15 13:37:30 hydra kernel: [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 5 (-110).


after the third run, i get:

groo@hydra:~$ DRI_PRIME=1 glxinfo 
name of display: :0
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        : 0x800000
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        : 0x800000
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        : 0x800000
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        : 0x800000
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        : 0x800000                                                                                                                                                                                      
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        : 0x800000                                                                                                                                                                                      
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        : 0x800000                                                                                                                                                                                      
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        : 0x800000                                                                                                                                                                                      
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        : 0x800000
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        : 0x800000
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        : 0x800000
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        : 0x800000
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        : 0x800000
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        : 0x800000
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        : 0x800000
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        : 0x800000
radeonsi: Failed to create a context.
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  43
  Current serial number in output stream:  42

and in dmesg:

Abr 15 13:37:57 hydra kernel: [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
Abr 15 13:37:57 hydra kernel: [drm] PCIE gen 2 link speeds already enabled
Abr 15 13:37:57 hydra kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: WB enabled
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff8801a3202c00
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff8801a3202c04
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff8801a3202c08
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff8801a3202c0c
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff8801a3202c10
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
Abr 15 13:37:57 hydra kernel: radeon 0000:03:00.0: VCE init error (-22).
Abr 15 13:37:58 hydra kernel: [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
Abr 15 13:37:58 hydra kernel: [drm:si_resume [radeon]] *ERROR* si startup failed on resume

same behaviour with opencl call, like clinfo

mesa git eeff13315858fcb09eefba9a94e6bae5820572e0
llvm svn266408
xf86-video-ati 1ca677309720e2f6c953c9e76f5b34c22a4416c6
Comment 6 Paulo Dias 2016-04-17 01:55:49 UTC
i get this when i try to run a game on steam, this error is after the first successful run as always:

Abr 16 22:53:20 hydra kernel: WARNING: CPU: 1 PID: 5857 at drivers/gpu/drm/radeon/radeon_object.c:84 radeon_ttm_bo_destroy+0xea/0xf0 [radeon]
Abr 16 22:53:20 hydra kernel: Modules linked in: uas usb_storage drbg ansi_cprng ctr ccm cmac rfcomm bnep rtsx_usb_ms memstick pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) binfmt_misc nls_iso8859_1 uvcvideo videobuf2_vmalloc dcdbas videobuf2_memops videobuf2_v4l2 videobuf2_core dell_smm_hwmon videodev ath3k btusb btrtl media btbcm btintel snd_hda_codec_realtek intel_rapl bluetooth snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp snd_hda_intel coretemp kvm_intel snd_hda_codec kvm irqbypass snd_hda_core snd_hwdep crct10dif_pclmul crc32_pclmul arc4 snd_pcm ghash_clmulni_intel aesni_intel ath9k aes_x86_64 lrw gf128mul snd_seq_midi ath9k_common glue_helper snd_seq_midi_event ablk_helper cryptd snd_rawmidi ath9k_hw ath input_leds joydev snd_seq mac80211 snd_seq_device snd_timer serio_raw snd
Abr 16 22:53:20 hydra kernel:  lpc_ich cfg80211 mei_me soundcore mei shpchp mac_hid soc_button_array dell_rbtn parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq rtsx_usb_sdmmc rtsx_usb hid_generic usbhid hid amdkfd amd_iommu_v2 radeon i915 ttm i2c_algo_bit drm_kms_helper psmouse syscopyarea ahci sysfillrect sysimgblt libahci fb_sys_fops drm r8169 mii wmi video fjes
Abr 16 22:53:20 hydra kernel: CPU: 1 PID: 5857 Comm: SatelliteReignL Tainted: G        W  OE   4.6.0-rc2-custom #4
Abr 16 22:53:20 hydra kernel: Hardware name: Dell Inc. Latitude 3540/02R0J9, BIOS A10 01/28/2015
Abr 16 22:53:20 hydra kernel:  0000000000000286 00000000910ea653 ffff8800c8a639a0 ffffffff813ee293
Abr 16 22:53:20 hydra kernel:  0000000000000000 0000000000000000 ffff8800c8a639e0 ffffffff8108269b
Abr 16 22:53:20 hydra kernel:  00000054811db4e1 ffff880115fe5068 ffffffffffffffff ffff880115fe5000
Abr 16 22:53:20 hydra kernel: Call Trace:
Abr 16 22:53:20 hydra kernel:  [<ffffffff813ee293>] dump_stack+0x63/0x90
Abr 16 22:53:20 hydra kernel:  [<ffffffff8108269b>] __warn+0xcb/0xf0
Abr 16 22:53:20 hydra kernel:  [<ffffffff810827cd>] warn_slowpath_null+0x1d/0x20
Abr 16 22:53:20 hydra kernel:  [<ffffffffc031bd7a>] radeon_ttm_bo_destroy+0xea/0xf0 [radeon]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc017b604>] ttm_bo_release_list+0xa4/0x140 [ttm]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc017b88e>] ttm_bo_release+0x1ee/0x2d0 [ttm]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc017b994>] ttm_bo_unref+0x24/0x30 [ttm]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc031c2a9>] radeon_bo_unref+0x39/0x70 [radeon]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc032f5f7>] radeon_gem_object_free+0x57/0x70 [radeon]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc004d3d0>] drm_gem_object_free+0x30/0x50 [drm]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc004dd44>] drm_gem_object_handle_unreference_unlocked+0xc4/0x110 [drm]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc004dde5>] drm_gem_object_release_handle+0x55/0xa0 [drm]
Abr 16 22:53:20 hydra kernel:  [<ffffffff813eecfe>] idr_for_each+0xae/0x110
Abr 16 22:53:20 hydra kernel:  [<ffffffffc004dd90>] ? drm_gem_object_handle_unreference_unlocked+0x110/0x110 [drm]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc004e4d0>] drm_gem_release+0x20/0x30 [drm]
Abr 16 22:53:20 hydra kernel:  [<ffffffffc004d2b3>] drm_release+0x3e3/0x4d0 [drm]
Abr 16 22:53:20 hydra kernel:  [<ffffffff81220b87>] __fput+0xe7/0x230
Abr 16 22:53:20 hydra kernel:  [<ffffffff81220d0e>] ____fput+0xe/0x10
Abr 16 22:53:20 hydra kernel:  [<ffffffff810a1113>] task_work_run+0x73/0x90
Abr 16 22:53:20 hydra kernel:  [<ffffffff810863c7>] do_exit+0x2e7/0xb50
Abr 16 22:53:20 hydra kernel:  [<ffffffff81086cb3>] do_group_exit+0x43/0xb0
Abr 16 22:53:20 hydra kernel:  [<ffffffff810929bf>] get_signal+0x28f/0x600
Abr 16 22:53:20 hydra kernel:  [<ffffffff8102e577>] do_signal+0x37/0x770
Abr 16 22:53:20 hydra kernel:  [<ffffffff8109179c>] ? do_send_sig_info+0x6c/0xa0
Abr 16 22:53:20 hydra kernel:  [<ffffffff8100320c>] exit_to_usermode_loop+0x8c/0xd0
Abr 16 22:53:20 hydra kernel:  [<ffffffff81003c6e>] syscall_return_slowpath+0x4e/0x60
Abr 16 22:53:20 hydra kernel:  [<ffffffff818399be>] entry_SYSCALL_64_fastpath+0xa6/0xa8
Abr 16 22:53:20 hydra kernel: ---[ end trace 01c303ed186e23a9 ]---
Comment 7 Michel Dänzer 2016-04-19 06:22:54 UTC
Please attach the full dmesg.

Looks like the fundamental issue may be the kernel driver failing to initialize hardware acceleration after turning the GPU back on, related to UVD/VCE. Does radeon.runpm=0 on the kernel command line avoid the problem?
Comment 8 Paulo Dias 2016-04-20 02:52:16 UTC
Created attachment 123076 [details]
dmesg nopm
Comment 9 Paulo Dias 2016-04-20 02:52:41 UTC
Created attachment 123077 [details]
xorg nopm
Comment 10 Paulo Dias 2016-04-20 02:53:14 UTC
Created attachment 123078 [details]
DRI_PRIME=1 glxinfo nopm
Comment 11 Paulo Dias 2016-04-20 02:54:14 UTC
you are indeed correct, if i add radeon.nopm=0 to the kernel boot, the problem goes away. of course the dedicated radeon card never turns off but thats to be expected.
Comment 12 Michel Dänzer 2016-04-20 02:57:29 UTC
Did it work with runpm enabled with older kernels? If so, can you bisect the kernel?
Comment 13 Paulo Dias 2016-04-20 03:05:13 UTC
yes it did, i tested with 4.4.0 and 4.5.0 (ubuntu mainline).

so its 4.6.0 related.

and no, i cant bisect, this laptop cant handle the stress :( i can test patches, because i can patch linus git and send it to my ppa, but i cant bisect locally.
Comment 14 Paulo Dias 2016-04-20 03:14:02 UTC
Created attachment 123080 [details]
DRI_PRIME=1 glxinfo kernel 4.6.0 rc4
Comment 15 Paulo Dias 2016-04-20 03:14:20 UTC
Created attachment 123081 [details]
dmesg kernel 4.6.0 rc4
Comment 16 Paulo Dias 2016-04-25 17:18:24 UTC
fixed in 4.6.0 rc5.

commit bfaddd9fc8ac048b99475f000dbef6f08297417f
Author: Alex Deucher <alexander.deucher@amd.com>
Date:   Mon Apr 18 11:19:19 2016 -0400

    Revert "drm/radeon: disable runtime pm on PX laptops without dGPU power control"
    
    This reverts commit e64c952efb8e0c15ae82cec8e455ab4910690ef1.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.