Bug 90666

Summary: Stacktrace / Warning during switch (ctrl+alt+f1) to console on zbook 14 (Radeon/intel)
Product: DRI Reporter: Tomasz Fortuna <bla>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: medium CC: Rondom
Version: XOrg git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Artifacts on a screen connected via MST/Dock. Happens on FF/terminal scrolling too. none

Description Tomasz Fortuna 2015-05-26 18:43:17 UTC
Switching to console worked, in my attempt for 4.0 it didn't work at all. Including stack traces which might help fix some errors though.

This is zbook 14 - dual gpu with intel/vga_switcheroo.

Linux feather 4.1.0-rc5-bla+ #4 SMP PREEMPT Tue May 26 19:17:04 CEST 2015 x86_64 GNU/Linux

This is plain 4.1.0-rc5 with 2 more commits from main git. No `my' changes.

Rest is Debian Jessie:
ii  xserver-xorg-video-ati                       1:7.5.0-1


[   28.837695] ------------[ cut here ]------------
[   28.838452] WARNING: CPU: 0 PID: 4639 at drivers/gpu/drm/drm_ioctl.c:144 drm_setversion+0x176/0x180()
[   28.839231] No drm_driver.set_busid() implementation provided by 0xffffffff824e77c0. Use drm_dev_set_unique() to set the unique name explicitly.
[   28.839285] Modules linked in:
[   28.840540]  nfnetlink_queue nfnetlink_log nfnetlink btrfs xor tpm_infineon raid6_pq intel_rapl iosf_mbi x86_pkg_temp_thermal joydev crc32_pclmul iwlmvm iwlwifi xhci_pci xhci_hcd e1000e intel_smartconnect tpm_tis tpm_rng tpm
[   28.842975] CPU: 0 PID: 4639 Comm: Xorg Not tainted 4.1.0-rc5-bla+ #4
[   28.844343] Hardware name: Hewlett-Packard HP ZBook 14/198F, BIOS L71 Ver. 01.20 07/28/2014
[   28.845571]  00000000ffffffff 00000000671b4f82 ffffffff82175639 ffffffff81d55e44
[   28.846843]  ffff880087c47d10 ffffffff810e423c ffff880087c47de0 ffff88043a007000
[   28.848186]  ffff880438b10cc0 fffffffffffffff2 0000000000000007 ffffffff810e42c8
[   28.849439] Call Trace:
[   28.850708]  [<ffffffff81d55e44>] ? dump_stack+0x4a/0x74
[   28.851873]  [<ffffffff810e423c>] ? warn_slowpath_common+0x7c/0xb0
[   28.853236]  [<ffffffff810e42c8>] ? warn_slowpath_fmt+0x58/0x80
[   28.854588]  [<ffffffff81581806>] ? drm_setversion+0x176/0x180
[   28.855845]  [<ffffffff81581256>] ? drm_ioctl+0x316/0x5b0
[   28.856977]  [<ffffffff81581690>] ? drm_noop+0x30/0x30
[   28.858051]  [<ffffffff81221dee>] ? do_filp_open+0x3e/0xb0
[   28.859291]  [<ffffffff81224388>] ? do_vfs_ioctl+0x308/0x510
[   28.860191]  [<ffffffff81175f9c>] ? __audit_syscall_entry+0xbc/0x110
[   28.861068]  [<ffffffff8105c01b>] ? syscall_trace_enter_phase1+0x13b/0x1a0
[   28.861920]  [<ffffffff812245c6>] ? SyS_ioctl+0x36/0x80
[   28.862775]  [<ffffffff81d638d7>] ? system_call_fastpath+0x12/0x6a
[   28.863634] ---[ end trace fdbd327690626ad6 ]---
[

[   29.315320] ------------[ cut here ]------------
[   29.315328] WARNING: CPU: 0 PID: 4639 at drivers/gpu/drm/drm_ioctl.c:144 drm_setversion+0x176/0x180()
[   29.315334] No drm_driver.set_busid() implementation provided by 0xffffffff824e77c0. Use drm_dev_set_unique() to set the unique name explicitly.
[   29.315336] Modules linked in:
[   29.315337]  nfnetlink_queue nfnetlink_log nfnetlink btrfs xor tpm_infineon raid6_pq intel_rapl iosf_mbi x86_pkg_temp_thermal joydev crc32_pclmul iwlmvm iwlwifi xhci_pci xhci_hcd e1000e intel_smartconnect tpm_tis tpm_rng tpm
[   29.315351] CPU: 0 PID: 4639 Comm: Xorg Tainted: G        W       4.1.0-rc5-bla+ #4
[   29.315353] Hardware name: Hewlett-Packard HP ZBook 14/198F, BIOS L71 Ver. 01.20 07/28/2014
[   29.315354]  00000000ffffffff 00000000671b4f82 ffffffff82175639 ffffffff81d55e44
[   29.315357]  ffff880087c47d10 ffffffff810e423c ffff880087c47de0 ffff88043a007000
[   29.315360]  ffff880436fd8cc0 fffffffffffffff2 0000000000000007 ffffffff810e42c8
[   29.315362] Call Trace:
[   29.315368]  [<ffffffff81d55e44>] ? dump_stack+0x4a/0x74
[   29.315373]  [<ffffffff810e423c>] ? warn_slowpath_common+0x7c/0xb0
[   29.315376]  [<ffffffff810e42c8>] ? warn_slowpath_fmt+0x58/0x80
[   29.315378]  [<ffffffff81581806>] ? drm_setversion+0x176/0x180
[   29.315380]  [<ffffffff81581256>] ? drm_ioctl+0x316/0x5b0
[   29.315382]  [<ffffffff81581690>] ? drm_noop+0x30/0x30
[   29.315386]  [<ffffffff81221dee>] ? do_filp_open+0x3e/0xb0
[   29.315389]  [<ffffffff81224388>] ? do_vfs_ioctl+0x308/0x510
[   29.315393]  [<ffffffff81175f9c>] ? __audit_syscall_entry+0xbc/0x110
[   29.315396]  [<ffffffff8105c01b>] ? syscall_trace_enter_phase1+0x13b/0x1a0
[   29.315398]  [<ffffffff8122e163>] ? __fget+0x63/0xa0
[   29.315400]  [<ffffffff812245c6>] ? SyS_ioctl+0x36/0x80
[   29.315404]  [<ffffffff81d638d7>] ? system_call_fastpath+0x12/0x6a
[   29.315406] ---[ end trace fdbd327690626ad7 ]---
[   29.317397] dmar: DRHD: handling fault status reg 2
[   29.317400] dmar: DMAR:[DMA Write] Request device [00:02.0] fault addr 7300000000
DMAR:[fault reason 05] PTE Write access is not set
[   29.581646] dmar: DRHD: handling fault status reg 2
[   29.581651] dmar: DMAR:[DMA Write] Request device [00:02.0] fault addr 7300000000
DMAR:[fault reason 05] PTE Write access is not set
[   29.591198] dmar: DRHD: handling fault status reg 2
[   29.591205] dmar: DMAR:[DMA Write] Request device [00:02.0] fault addr 7300000000
DMAR:[fault reason 05] PTE Write access is not set
Comment 1 Tomasz Fortuna 2015-05-26 19:03:05 UTC
Additional non-errors (I guess) from booting related to DRM/DRI/Radeon.

00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8730M] (rev ff)


May 26 20:49:53 feather kernel: [    2.102797] Linux agpgart interface v0.103
May 26 20:49:53 feather kernel: [    2.102885] [drm] Initialized drm 1.1.0 20060810
May 26 20:49:53 feather kernel: [    2.102964] [drm] radeon kernel modesetting enabled.
May 26 20:49:53 feather kernel: [    2.103044] VGA switcheroo: detected switching method \_SB_.PCI0.GFX0.ATPX handle
May 26 20:49:53 feather kernel: [    2.103182] radeon 0000:03:00.0: enabling device (0000 -> 0003)
May 26 20:49:53 feather kernel: [    2.103480] [drm] initializing kernel modesetting (OLAND 0x1002:0x6601 0x103C:0x2100).
May 26 20:49:53 feather kernel: [    2.103572] [drm] register mmio base: 0xD0500000
May 26 20:49:53 feather kernel: [    2.103636] [drm] register mmio size: 262144
May 26 20:49:53 feather kernel: [    2.108539] ATOM BIOS: IEC/HP
May 26 20:49:53 feather kernel: [    2.108613] [drm] GPU not posted. posting now...
May 26 20:49:53 feather kernel: [    2.112627] radeon 0000:03:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
May 26 20:49:53 feather kernel: [    2.112717] radeon 0000:03:00.0: GTT: 1024M 0x0000000040000000 - 0x000000007FFFFFFF
May 26 20:49:53 feather kernel: [    2.112803] [drm] Detected VRAM RAM=1024M, BAR=256M
May 26 20:49:53 feather kernel: [    2.112867] [drm] RAM width 128bits DDR
May 26 20:49:53 feather kernel: [    2.112996] [TTM] Zone  kernel: Available graphics memory: 7950326 kiB
May 26 20:49:53 feather kernel: [    2.113064] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
May 26 20:49:53 feather kernel: [    2.113132] [TTM] Initializing pool allocator
May 26 20:49:53 feather kernel: [    2.113198] [TTM] Initializing DMA pool allocator
May 26 20:49:53 feather kernel: [    2.113279] [drm] radeon: 1024M of VRAM memory ready
May 26 20:49:53 feather kernel: [    2.113343] [drm] radeon: 1024M of GTT memory ready.
May 26 20:49:53 feather kernel: [    2.113415] [drm] Loading oland Microcode
May 26 20:49:53 feather kernel: [    2.113492] radeon 0000:03:00.0: Direct firmware load for radeon/oland_pfp.bin failed with error -2
May 26 20:49:53 feather kernel: [    2.113603] radeon 0000:03:00.0: Direct firmware load for radeon/oland_me.bin failed with error -2
May 26 20:49:53 feather kernel: [    2.113710] radeon 0000:03:00.0: Direct firmware load for radeon/oland_ce.bin failed with error -2
May 26 20:49:53 feather kernel: [    2.113818] radeon 0000:03:00.0: Direct firmware load for radeon/oland_rlc.bin failed with error -2
May 26 20:49:53 feather kernel: [    2.113923] radeon 0000:03:00.0: Direct firmware load for radeon/oland_mc.bin failed with error -2
May 26 20:49:53 feather kernel: [    2.114043] [drm] radeon/OLAND_mc2.bin: 31452 bytes
May 26 20:49:53 feather kernel: [    2.114115] radeon 0000:03:00.0: Direct firmware load for radeon/oland_smc.bin failed with error -2
May 26 20:49:53 feather kernel: [    2.114226] [drm] Internal thermal controller without fan control
May 26 20:49:53 feather kernel: [    2.114356] [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
May 26 20:49:53 feather kernel: [    2.123002] [drm] radeon: dpm initialized
May 26 20:49:53 feather kernel: [    2.123183] [drm] GART: num cpu pages 262144, num gpu pages 262144
May 26 20:49:53 feather kernel: [    2.123905] [drm] probing gen 2 caps for device 8086:9c18 = 5323c42/0
May 26 20:49:53 feather kernel: [    2.123988] [drm] PCIE gen 2 link speeds already enabled
May 26 20:49:53 feather kernel: [    2.126655] [drm] PCIE GART of 1024M enabled (table at 0x0000000000277000).
May 26 20:49:53 feather kernel: [    2.126828] radeon 0000:03:00.0: WB enabled
May 26 20:49:53 feather kernel: [    2.126892] radeon 0000:03:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff880439ddac00
May 26 20:49:53 feather kernel: [    2.126990] radeon 0000:03:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xffff880439ddac04
May 26 20:49:53 feather kernel: [    2.127086] radeon 0000:03:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xffff880439ddac08
May 26 20:49:53 feather kernel: [    2.127179] radeon 0000:03:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff880439ddac0c
May 26 20:49:53 feather kernel: [    2.127272] radeon 0000:03:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xffff880439ddac10
May 26 20:49:53 feather kernel: [    2.128932] radeon 0000:03:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90002035a18
May 26 20:49:53 feather kernel: [    2.129028] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
May 26 20:49:53 feather kernel: [    2.129096] [drm] Driver supports precise vblank timestamp query.
May 26 20:49:53 feather kernel: [    2.129164] radeon 0000:03:00.0: radeon: MSI limited to 32-bit
May 26 20:49:53 feather kernel: [    2.129293] radeon 0000:03:00.0: radeon: using MSI.
May 26 20:49:53 feather kernel: [    2.129383] [drm] radeon: irq initialized.
May 26 20:49:53 feather kernel: [    2.370486] [drm] ring test on 0 succeeded in 1 usecs
May 26 20:49:53 feather kernel: [    2.371531] [drm] ring test on 1 succeeded in 1 usecs
May 26 20:49:53 feather kernel: [    2.371600] [drm] ring test on 2 succeeded in 1 usecs
May 26 20:49:53 feather kernel: [    2.371674] [drm] ring test on 3 succeeded in 5 usecs
May 26 20:49:53 feather kernel: [    2.371746] [drm] ring test on 4 succeeded in 5 usecs
May 26 20:49:53 feather kernel: [    2.549176] [drm] ring test on 5 succeeded in 2 usecs
May 26 20:49:53 feather kernel: [    2.549246] [drm] UVD initialized successfully.
May 26 20:49:53 feather kernel: [    2.549555] [drm] ib test on ring 0 succeeded in 0 usecs
May 26 20:49:53 feather kernel: [    2.549653] [drm] ib test on ring 1 succeeded in 0 usecs
May 26 20:49:53 feather kernel: [    2.549752] [drm] ib test on ring 2 succeeded in 0 usecs
May 26 20:49:53 feather kernel: [    2.549857] [drm] ib test on ring 3 succeeded in 0 usecs
May 26 20:49:53 feather kernel: [    2.549952] [drm] ib test on ring 4 succeeded in 0 usecs
May 26 20:49:53 feather kernel: [    2.968746] tsc: Refined TSC clocksource calibration: 2693.764 MHz
May 26 20:49:53 feather kernel: [    2.968815] clocksource tsc: mask: 0xffffffffffffffff max_cycles: 0x26d43bb7f27, max_idle_ns: 440795270902 ns
May 26 20:49:53 feather kernel: [    3.201750] [drm] ib test on ring 5 succeeded
May 26 20:49:53 feather kernel: [    3.202271] [drm] Radeon Display Connectors
May 26 20:49:53 feather kernel: [    3.202336] [drm] Connector 0:
May 26 20:49:53 feather kernel: [    3.202396] [drm]   DP-1
May 26 20:49:53 feather kernel: [    3.202455] [drm]   HPD1
May 26 20:49:53 feather kernel: [    3.202514] [drm]   DDC: 0x6530 0x6530 0x6534 0x6534 0x6538 0x6538 0x653c 0x653c
May 26 20:49:53 feather kernel: [    3.202612] [drm]   Encoders:
May 26 20:49:53 feather kernel: [    3.202672] [drm]     DFP1: INTERNAL_UNIPHY
May 26 20:49:53 feather kernel: [    3.202734] [drm] Connector 1:
May 26 20:49:53 feather kernel: [    3.202794] [drm]   DP-2
May 26 20:49:53 feather kernel: [    3.202853] [drm]   HPD2
May 26 20:49:53 feather kernel: [    3.202912] [drm]   DDC: 0x6540 0x6540 0x6544 0x6544 0x6548 0x6548 0x654c 0x654c
May 26 20:49:53 feather kernel: [    3.202997] [drm]   Encoders:
May 26 20:49:53 feather kernel: [    3.203057] [drm]     DFP2: INTERNAL_UNIPHY
May 26 20:49:53 feather kernel: [    3.213748] radeon 0000:03:00.0: No connectors reported connected with modes
May 26 20:49:53 feather kernel: [    3.213824] [drm] Cannot find any crtc or sizes - going 1024x768
May 26 20:49:53 feather kernel: [    3.216039] [drm] fb mappable at 0xB0479000
May 26 20:49:53 feather kernel: [    3.216102] [drm] vram apper at 0xB0000000
May 26 20:49:53 feather kernel: [    3.216164] [drm] size 3145728
May 26 20:49:53 feather kernel: [    3.216224] [drm] fb depth is 24
May 26 20:49:53 feather kernel: [    3.216285] [drm]    pitch is 4096
May 26 20:49:53 feather kernel: [    3.221709] Console: switching to colour frame buffer device 128x48
May 26 20:49:53 feather kernel: [    3.224218] radeon 0000:03:00.0: fb0: radeondrmfb frame buffer device
May 26 20:49:53 feather kernel: [    3.224247] radeon 0000:03:00.0: registered panic notifier
May 26 20:49:53 feather kernel: [    3.234852] [drm] Initialized radeon 2.42.0 20080528 for 0000:03:00.0 on minor 0
May 26 20:49:53 feather kernel: [    3.235831] [drm] Memory usable by graphics device = 2048M
May 26 20:49:53 feather kernel: [    3.235885] [drm] VT-d active for gfx access
May 26 20:49:53 feather kernel: [    3.235905] [drm] Replacing VGA console driver
May 26 20:49:53 feather kernel: [    3.242721] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
May 26 20:49:53 feather kernel: [    3.242784] [drm] Driver supports precise vblank timestamp query.
May 26 20:49:53 feather kernel: [    3.242865] vga_switcheroo: enabled
May 26 20:49:53 feather kernel: [    3.242987] ATPX version 1, functions 0x00000003
May 26 20:49:53 feather kernel: [    3.243081] [drm] DMAR active, disabling use of stolen memory
May 26 20:49:53 feather kernel: [    3.243166] vgaarb: device changed decodes: PCI:0000:03:00.0,olddecodes=io+mem,decodes=none:owns=none
May 26 20:49:53 feather kernel: [    3.243208] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem
May 26 20:49:53 feather kernel: [    3.260130] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
May 26 20:49:53 feather kernel: [    3.260470] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3
May 26 20:49:53 feather kernel: [    3.260615] [Firmware Bug]: ACPI(DGFX) defines _DOD but not _DOS
May 26 20:49:53 feather kernel: [    3.260970] ACPI: Video Device [DGFX] (multi-head: yes  rom: no  post: no)
May 26 20:49:53 feather kernel: [    3.261210] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:3f/LNXVIDEO:01/input/input4
May 26 20:49:53 feather kernel: [    3.261317] [drm] Initialized i915 1.6.0 20150327 for 0000:00:02.0 on minor 1


May 26 20:49:53 feather kernel: [    3.299331] fbcon: inteldrmfb (fb1) is primary device
May 26 20:49:53 feather kernel: [    3.299332] fbcon: Remapping primary device, fb1, to tty 1-63


feather log # cat /sys/kernel/debug/vgaswitcheroo/switch 
0:DIS: :DynOff:0000:03:00.0
1:IGD:+:Pwr:0000:00:02.0
2:DIS-Audio: :Off:0000:03:00.1



1) Computer restarted upon connecting to dock station
2) I'm a bit afraid to try to connect HDMI ports to station yet, I'll fill in next comment probably.
Comment 2 Tomasz Fortuna 2015-05-26 19:11:34 UTC
Yeah - MST works first time ever. There were some artifacts after enabling display, but for short time. Thank you for it.

Also - sorry for a bit random bug description. It ended up more like `how does bleeding edge radeon driver works on zbook 14'. I hope it's useful. Way better than 4.0 - Last thing to check is suspend/hibernate.



feather log # xrandr  
Screen 0: minimum 320 x 200, current 3840 x 1200, maximum 8192 x 8192
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 175mm
   1920x1080     60.01*+  59.93    40.01
   1680x1050     59.95    59.88
   1600x1024     60.17
(...)
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1200+1920+0 (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1600x1200     60.00
(...)
DP4 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)


% xrandr --setprovideroutputsource 1 0
(...)
DisplayPort-1-0 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1600x1200     60.00
   1680x1050     59.95
   1280x1024     75.02    60.02
(...)
DisplayPort-1-1 disconnected (normal left inverted right x axis y axis)
(...)


feather log # xrandr --output DisplayPort-1-0 --mode 1920x1080 --right-of eDP1  
feather log # xrandr --output eDP1 --left-of DisplayPort-1-0 --output DisplayPort-1-0 --left-of HDMI1
Comment 3 Tomasz Fortuna 2015-05-26 19:18:39 UTC
Created attachment 116057 [details]
Artifacts on a screen connected via MST/Dock. Happens on FF/terminal scrolling too.
Comment 4 Tomasz Fortuna 2016-11-02 19:24:37 UTC
I'm currently fighting on 4.7.8 with pretty much other bugs. In general everything works, almost stable except for MST - but that's a case for a different bug.

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.