Radeon VCE Init Error

Bug #1512848 reported by schmod
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Since upgrading to Ubuntu 15.10, I have encountered graphics performance issues, and have occasionally experienced lockups during boot.

 dmesg | grep -E 'drm|radeon'
[ 2.164605] [drm] Initialized drm 1.1.0 20060810
[ 2.192852] [drm] radeon kernel modesetting enabled.
[ 2.201268] [drm] Memory usable by graphics device = 2048M
[ 2.201274] fb: switching to inteldrmfb from EFI VGA
[ 2.201394] [drm] Replacing VGA console driver
[ 2.204234] radeon 0000:01:00.0: enabling device (0000 -> 0003)
[ 2.207919] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.207921] [drm] Driver supports precise vblank timestamp query.
[ 2.242929] fbcon: inteldrmfb (fb0) is primary device
[ 3.529125] [drm:intel_pipe_config_compare [i915]] *ERROR* mismatch in has_drrs (expected 1, found 0)
[ 3.529141] WARNING: CPU: 1 PID: 195 at /home/kernel/COD/linux/drivers/gpu/drm/i915/intel_display.c:12700 intel_modeset_check_state+0x5aa/0x870 [i915]()
[ 3.529150] Modules linked in: hid_logitech_hidpp hid_logitech_dj usbhid hid rtsx_usb_sdmmc rtsx_usb amdkfd amd_iommu_v2 i915(+) radeon(+) i2c_algo_bit ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops psmouse r8169 ahci drm libahci mii fjes wmi video
[ 3.529201] [<ffffffffc005d407>] drm_atomic_commit+0x37/0x60 [drm]
[ 3.529206] [<ffffffffc010d92f>] drm_atomic_helper_set_config+0x1bf/0x420 [drm_kms_helper]
[ 3.529212] [<ffffffffc004cca2>] drm_mode_set_config_internal+0x62/0x100 [drm]
[ 3.529215] [<ffffffffc0110743>] restore_fbdev_mode+0xb3/0x110 [drm_kms_helper]
[ 3.529219] [<ffffffffc01125f5>] drm_fb_helper_restore_fbdev_mode_unlocked+0x25/0x70 [drm_kms_helper]
[ 3.529221] [<ffffffffc011266d>] drm_fb_helper_set_par+0x2d/0x50 [drm_kms_helper]
[ 3.529253] [<ffffffffc01128e0>] drm_fb_helper_initial_config+0x250/0x3e0 [drm_kms_helper]
[ 3.535608] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 3.546293] [drm] Initialized i915 1.6.0 20150731 for 0000:00:02.0 on minor 0
[ 3.546469] [drm] initializing kernel modesetting (OLAND 0x1002:0x6600 0x144D:0xC0E6).
[ 3.546483] [drm] register mmio base: 0xF7E00000
[ 3.546484] [drm] register mmio size: 262144
[ 3.574408] [drm] GPU not posted. posting now...
[ 3.587216] radeon 0000:01:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[ 3.587218] radeon 0000:01:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[ 3.587220] [drm] Detected VRAM RAM=1024M, BAR=256M
[ 3.587220] [drm] RAM width 128bits DDR
[ 3.587314] [drm] radeon: 1024M of VRAM memory ready
[ 3.587315] [drm] radeon: 2048M of GTT memory ready.
[ 3.587322] [drm] Loading oland Microcode
[ 3.587398] [drm] Internal thermal controller without fan control
[ 3.587450] [drm] probing gen 2 caps for device 8086:151 = 261ad03/e
[ 3.593155] [drm] radeon: dpm initialized
[ 3.594806] [drm] Found VCE firmware/feedback version 50.0.1 / 17!
[ 3.594811] [drm] GART: num cpu pages 524288, num gpu pages 524288
[ 3.595617] [drm] probing gen 2 caps for device 8086:151 = 261ad03/e
[ 3.595620] [drm] enabling PCIE gen 3 link speeds, disable with radeon.pcie_gen2=0
[ 4.815819] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[ 4.815912] radeon 0000:01:00.0: WB enabled
[ 4.815914] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff880416408c00
[ 4.815916] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xffff880416408c04
[ 4.815917] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xffff880416408c08
[ 4.815918] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff880416408c0c
[ 4.815919] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xffff880416408c10
[ 4.816694] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90003035a18
[ 4.917369] radeon 0000:01:00.0: VCE init error (-110).
[ 4.917391] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 4.917391] [drm] Driver supports precise vblank timestamp query.
[ 4.917393] radeon 0000:01:00.0: radeon: MSI limited to 32-bit
[ 4.917461] radeon 0000:01:00.0: radeon: using MSI.
[ 4.917484] [drm] radeon: irq initialized.
[ 5.062349] [drm] ring test on 0 succeeded in 2 usecs
[ 5.062353] [drm] ring test on 1 succeeded in 1 usecs
[ 5.062356] [drm] ring test on 2 succeeded in 1 usecs
[ 5.062362] [drm] ring test on 3 succeeded in 3 usecs
[ 5.062367] [drm] ring test on 4 succeeded in 3 usecs
[ 5.238473] [drm] ring test on 5 succeeded in 2 usecs
[ 5.238477] [drm] UVD initialized successfully.
[ 5.238625] [drm] ib test on ring 0 succeeded in 0 usecs
[ 5.238658] [drm] ib test on ring 1 succeeded in 0 usecs
[ 5.238688] [drm] ib test on ring 2 succeeded in 0 usecs
[ 5.238707] [drm] ib test on ring 3 succeeded in 0 usecs
[ 5.238723] [drm] ib test on ring 4 succeeded in 0 usecs
[ 5.887107] [drm] ib test on ring 5 succeeded
[ 5.888414] [drm] Radeon Display Connectors
[ 5.910200] radeon 0000:01:00.0: No connectors reported connected with modes
[ 5.910204] [drm] Cannot find any crtc or sizes - going 1024x768
[ 5.911310] [drm] fb mappable at 0xE06EA000
[ 5.911311] [drm] vram apper at 0xE0000000
[ 5.911311] [drm] size 3145728
[ 5.911312] [drm] fb depth is 24
[ 5.911313] [drm] pitch is 4096
[ 5.911436] radeon 0000:01:00.0: fb1: radeondrmfb frame buffer device
[ 5.920102] [drm] Initialized radeon 2.43.0 20080528 for 0000:01:00.0 on minor 1
[ 14.467677] [drm] probing gen 2 caps for device 8086:151 = 261ad03/e
[ 14.467681] [drm] enabling PCIE gen 3 link speeds, disable with radeon.pcie_gen2=0
[ 15.465352] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[ 15.465436] radeon 0000:01:00.0: WB enabled
[ 15.465438] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff880416408c00
[ 15.465440] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xffff880416408c04
[ 15.465441] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xffff880416408c08
[ 15.465442] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff880416408c0c
[ 15.465443] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xffff880416408c10
[ 15.466225] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90003035a18
[ 15.566919] radeon 0000:01:00.0: VCE init error (-110).
[ 15.711996] [drm] ring test on 0 succeeded in 2 usecs
[ 15.712000] [drm] ring test on 1 succeeded in 1 usecs
[ 15.712003] [drm] ring test on 2 succeeded in 1 usecs
[ 15.712010] [drm] ring test on 3 succeeded in 3 usecs
[ 15.712015] [drm] ring test on 4 succeeded in 3 usecs
[ 15.888137] [drm] ring test on 5 succeeded in 2 usecs
[ 15.888142] [drm] UVD initialized successfully.
[ 15.888170] [drm] ib test on ring 0 succeeded in 0 usecs
[ 15.888194] [drm] ib test on ring 1 succeeded in 0 usecs
[ 15.888217] [drm] ib test on ring 2 succeeded in 0 usecs
[ 15.888235] [drm] ib test on ring 3 succeeded in 0 usecs
[ 15.888252] [drm] ib test on ring 4 succeeded in 0 usecs
[ 16.536138] [drm] ib test on ring 5 succeeded
[ 22.724487] [drm] probing gen 2 caps for device 8086:151 = 261ad03/e
[ 22.724491] [drm] enabling PCIE gen 3 link speeds, disable with radeon.pcie_gen2=0
[ 23.722289] [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
[ 23.722389] radeon 0000:01:00.0: WB enabled
[ 23.722392] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff880416408c00
[ 23.722393] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xffff880416408c04
[ 23.722394] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xffff880416408c08
[ 23.722395] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff880416408c0c
[ 23.722397] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xffff880416408c10
[ 23.723173] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90003035a18
[ 23.823853] radeon 0000:01:00.0: VCE init error (-110).
[ 23.969234] [drm] ring test on 0 succeeded in 2 usecs
[ 23.969239] [drm] ring test on 1 succeeded in 1 usecs
[ 23.969242] [drm] ring test on 2 succeeded in 1 usecs
[ 23.969247] [drm] ring test on 3 succeeded in 3 usecs
[ 23.969252] [drm] ring test on 4 succeeded in 3 usecs
[ 24.145512] [drm] ring test on 5 succeeded in 2 usecs
[ 24.145519] [drm] UVD initialized successfully.
[ 24.145547] [drm] ib test on ring 0 succeeded in 0 usecs
[ 24.145571] [drm] ib test on ring 1 succeeded in 0 usecs
[ 24.145594] [drm] ib test on ring 2 succeeded in 0 usecs
[ 24.145613] [drm] ib test on ring 3 succeeded in 0 usecs
[ 24.145631] [drm] ib test on ring 4 succeeded in 0 usecs
[ 24.795392] [drm] ib test on ring 5 succeeded
[ 3972.992305] [drm:intel_pipe_config_compare [i915]] *ERROR* mismatch in has_drrs (expected 1, found 0)
[ 3972.992344] WARNING: CPU: 0 PID: 1512 at /home/kernel/COD/linux/drivers/gpu/drm/i915/intel_display.c:12700 intel_modeset_check_state+0x5aa/0x870 [i915]()
[ 3972.992415] mac_hid tpm_infineon parport_pc ppdev lp parport autofs4 hid_logitech_hidpp hid_logitech_dj usbhid hid rtsx_usb_sdmmc rtsx_usb amdkfd amd_iommu_v2 i915 radeon i2c_algo_bit ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops psmouse r8169 ahci drm libahci mii fjes wmi video
[ 3972.992564] [<ffffffffc005d407>] drm_atomic_commit+0x37/0x60 [drm]
[ 3972.992576] [<ffffffffc010d92f>] drm_atomic_helper_set_config+0x1bf/0x420 [drm_kms_helper]
[ 3972.992595] [<ffffffffc004cca2>] drm_mode_set_config_internal+0x62/0x100 [drm]
[ 3972.992614] [<ffffffffc00510e8>] drm_mode_setcrtc+0x3a8/0x4c0 [drm]
[ 3972.992628] [<ffffffffc0042408>] drm_ioctl+0x138/0x500 [drm]
[ 3972.992646] [<ffffffffc0050d40>] ? drm_mode_setplane+0x1b0/0x1b0 [drm]

xrandr --listproviders
Providers: number : 3
Provider 0: id: 0x6a cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 2 name:Intel
Provider 1: id: 0x41 cap: 0x6, Sink Output, Source Offload crtcs: 2 outputs: 0 associated providers: 2 name:radeon
Provider 2: id: 0x41 cap: 0x6, Sink Output, Source Offload crtcs: 2 outputs: 0 associated providers: 2 name:radeon

lspci -k
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
        Subsystem: Samsung Electronics Co Ltd Device c0e6
        Kernel driver in use: ivb_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
        Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
        DeviceName: Onboard IGD
        Subsystem: Samsung Electronics Co Ltd Device c0e6
        Kernel driver in use: i915
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8670A/8670M/8750M] (rev ff)
        Kernel driver in use: radeon

Possible upstream Debian bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803087
---
ApportVersion: 2.19.1-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: aschmadel 2152 F.... pulseaudio
CurrentDesktop: KDE
DistroRelease: Ubuntu 15.10
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=5208c4c8-b199-4f3f-92ad-9ad0000dd6bd
InstallationDate: Installed on 2013-09-23 (771 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
JournalErrors:
 No journal files were found.
 -- No entries --
MachineType: SAMSUNG ELECTRONICS CO., LTD. 870Z5E/880Z5E/680Z5E
Package: linux (not installed)
ProcFB:
 0 inteldrmfb
 1 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-16-generic.efi.signed root=UUID=b124016a-e48b-4674-bae5-4ae7c488276e ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
RelatedPackageVersions:
 linux-restricted-modules-4.2.0-16-generic N/A
 linux-backports-modules-4.2.0-16-generic N/A
 linux-firmware 1.149
Tags: wily
Uname: Linux 4.2.0-16-generic x86_64
UpgradeStatus: Upgraded to wily on 2015-10-28 (6 days ago)
UserGroups: docker sudo vboxusers
WifiSyslog:

_MarkForUpload: True
dmi.bios.date: 06/04/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P02ADH.008.130604.SK
dmi.board.asset.tag: No Asset Tag
dmi.board.name: NP680Z5E-X01US
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: SEC_SW_REVISION_1234567890ABCD
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP02ADH.008.130604.SK:bd06/04/2013:svnSAMSUNGELECTRONICSCO.,LTD.:pn870Z5E/880Z5E/680Z5E:pvrP02ADH:rvnSAMSUNGELECTRONICSCO.,LTD.:rnNP680Z5E-X01US:rvrSEC_SW_REVISION_1234567890ABCD:cvnSAMSUNGELECTRONICSCO.,LTD.:ct9:cvrN/A:
dmi.product.name: 870Z5E/880Z5E/680Z5E
dmi.product.version: P02ADH
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1512848

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.3 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.3-unstable/

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
schmod (schmod) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected wily
description: updated
Revision history for this message
schmod (schmod) wrote : CRDA.txt

apport information

Revision history for this message
schmod (schmod) wrote : CurrentDmesg.txt

apport information

Revision history for this message
schmod (schmod) wrote : IwConfig.txt

apport information

Revision history for this message
schmod (schmod) wrote : Lspci.txt

apport information

Revision history for this message
schmod (schmod) wrote : Lsusb.txt

apport information

Revision history for this message
schmod (schmod) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
schmod (schmod) wrote : ProcEnviron.txt

apport information

Revision history for this message
schmod (schmod) wrote : ProcInterrupts.txt

apport information

Revision history for this message
schmod (schmod) wrote : ProcModules.txt

apport information

Revision history for this message
schmod (schmod) wrote : PulseList.txt

apport information

Revision history for this message
schmod (schmod) wrote : RfKill.txt

apport information

Revision history for this message
schmod (schmod) wrote : UdevDb.txt

apport information

Revision history for this message
schmod (schmod) wrote : UdevLog.txt

apport information

schmod (schmod)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
status: Confirmed → Incomplete
Revision history for this message
schmod (schmod) wrote :

Confirmed with 4.3.0-040300-generic

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream
schmod (schmod)
description: updated
Changed in linux (Debian):
status: Unknown → New
penalvch (penalvch)
tags: added: needs-bisect regression-release
Revision history for this message
penalvch (penalvch) wrote :

schmod, the next step is to fully commit bisect from kernel 3.19 to 4.2 in order to identify the last good kernel commit, followed immediately by the first bad one. This will allow for a more expedited analysis of the root cause of your issue. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection ?

Please note, finding adjacent kernel versions is not fully commit bisecting.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
madbiologist (me-again) wrote :

VCE 1.0 support was added in kernel 4.2. If you are able to build your own kernel with this commit reverted it should fix the issue:

https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=a918efab631a5112d9d168700458317ad77f269c

Revision history for this message
madbiologist (me-again) wrote :

Does this still occur on an up to date installation of Ubuntu 16.04 "Xenial Xerus"?

Revision history for this message
Jean-Pierre van Riel (jpvr) wrote :

It's still happening to me on 16.04 (Xenial), fully up to date.

@madbiologist, thanks, good to know where the cause might be.

Still, having to rebuild a kernel with one commit reverted is a fairly cumbersome work-around and painful given fairly frequent kernel updates...

As far as I can see, no fixes have been worked on? 0 commits to vce_v1_0.c (my graphics card is only VCE 1 capable) `CHIP_PITCAIRN`

https://github.com/torvalds/linux/commits/master/drivers/gpu/drm/radeon/vce_v1_0.c

https://github.com/torvalds/linux/commits/master/drivers/gpu/drm/radeon/radeon_vce.c

However, there might be a way to disable VCE (I need to look into it more)

https://github.com/torvalds/linux/commit/fabb5935871db1f31fcd2684fd154e24de04d917#diff-9bc1b4aaf15dd521a1991717e4e2a2e0

Changed in linux (Fedora):
importance: Unknown → Low
status: Unknown → Won't Fix
penalvch (penalvch)
no longer affects: linux (Ubuntu)
affects: linux (Fedora) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Low → Undecided
status: Won't Fix → New
no longer affects: linux (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

OR using EOL release, and no response since 2015.

affects: linux (Debian) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Unknown → Undecided
no longer affects: linux (Ubuntu)
affects: linux → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
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.