Bug 199139 - System freezes (kernel, amdgpu NULL pointer dereference) when video enters powersafe state
Summary: System freezes (kernel, amdgpu NULL pointer dereference) when video enters po...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-19 09:04 UTC by Eduard
Modified: 2020-01-24 10:48 UTC (History)
6 users (show)

See Also:
Kernel Version: 4.15.10
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
kernel-4.15.config (210.81 KB, text/x-mpsub)
2018-03-19 09:04 UTC, Eduard
Details
dmidecode.info (11.70 KB, text/plain)
2018-03-19 09:05 UTC, Eduard
Details
pci.info (100.46 KB, text/plain)
2018-03-19 09:05 UTC, Eduard
Details
0001-drm-amd-display-Don-t-blow-up-if-TG-is-NULL-in-dce11.patch (1.14 KB, patch)
2018-03-19 14:49 UTC, Harry Wentland
Details | Diff
boot log 4.18 (72.77 KB, text/plain)
2018-09-17 07:09 UTC, Eduard
Details
fail log 4.18 (10.16 KB, text/plain)
2018-09-17 07:11 UTC, Eduard
Details
Xorg 4.18 (47.59 KB, text/plain)
2018-09-17 07:11 UTC, Eduard
Details

Description Eduard 2018-03-19 09:04:46 UTC
Created attachment 274807 [details]
kernel-4.15.config

[1.] Summary: System freezes (kernel, amdgpu NULL pointer dereference) when video enters powersafe state
[2.] Detailed: When using lightdm/xfwm: locking the screen makes lightdm to switch video to power safe mode. The system does not recover from this state any more.
[3.] Keywords: amdgpu 4.15 power management
[4.] Kernel information
[4.1.] Kernel version (from /proc/version):
		Linux version 4.15.10-1-MANJARO (builduser@development) (gcc version 7.3.0 (GCC)) #1 SMP PREEMPT Thu Mar 15 19:50:50 UTC 2018
[4.2.] kernel-4.15.config file attached
[5.] Most recent kernel version which did not have the bug: 4.14.27-1-MANJARO
[6.] Kernel output:
		kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
		kernel: IP: dce110_vblank_set+0x4f/0xb0 [amdgpu]
		kernel: PGD e70545067 P4D e70545067 PUD fd2b24067 PMD 0 
		kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
		kernel: Modules linked in: cmac rfcomm fuse ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack libcrc32c crc32c_generic br_netfilter bridge stp llc overlay bnep amdkfd amd_iommu_v2 arc4 amdgpu iwlmvm nls_>
		kernel:  snd agpgart syscopyarea sysfillrect sysimgblt soundcore fb_sys_fops aesni_intel sp5100_tco aes_x86_64 crypto_simd glue_helper cryptd pcspkr i2c_piix4 k10temp shpchp rtc_cmos evdev wmi mac_hid gpio_amdpt pinctrl_amd acpi_cpufreq crypto_user ip_tables x_tables ext4 crc16 mbcache jbd2 fscrypto sr_mod cdrom hid_generic usbhid hid ahci xhci_pci crc32c_i>
		kernel: CPU: 10 PID: 1113 Comm: xfwm4 Not tainted 4.15.10-1-MANJARO #1
		kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./X370 Taichi, BIOS P3.30 01/15/2018
		kernel: RIP: 0010:dce110_vblank_set+0x4f/0xb0 [amdgpu]
		kernel: RSP: 0018:ffffb37007f87bc0 EFLAGS: 00010002
		kernel: RAX: ffffa22c4ffbc000 RBX: 0000000000000001 RCX: 0000000000000000
		kernel: RDX: 0000000000000000 RSI: 000000000000000c RDI: 0000000000000000
		kernel: RBP: ffffa22dd38e37c0 R08: 0000000000000000 R09: 0000000000000000
		kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffffa22c92d2aa00
		kernel: R13: ffffffffc0ebcc40 R14: ffffa22c86c68000 R15: ffffb37007f87d90
		kernel: FS:  00007f9f5aa9d980(0000) GS:ffffa22e1ee80000(0000) knlGS:0000000000000000
		kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
		kernel: CR2: 0000000000000000 CR3: 0000000e7ab7e000 CR4: 00000000003406e0
		kernel: Call Trace:
		kernel:  amdgpu_dm_set_crtc_irq_state+0x31/0x60 [amdgpu]
		kernel:  amdgpu_irq_update+0x55/0x90 [amdgpu]
		kernel:  drm_vblank_enable+0x84/0x100 [drm]
		kernel:  drm_vblank_get+0x8d/0xb0 [drm]
		kernel:  drm_wait_vblank_ioctl+0x12a/0x660 [drm]
		kernel:  ? unix_stream_recvmsg+0x53/0x70
		kernel:  ? drm_legacy_modeset_ctl_ioctl+0x100/0x100 [drm]
		kernel:  drm_ioctl_kernel+0x5b/0xb0 [drm]
		kernel:  drm_ioctl+0x2d5/0x370 [drm]
		kernel:  ? drm_legacy_modeset_ctl_ioctl+0x100/0x100 [drm]
		kernel:  ? do_iter_write+0xdc/0x190
		kernel:  ? vfs_writev+0xb9/0x110
		kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
		kernel:  do_vfs_ioctl+0xa4/0x630
		kernel:  ? __sys_recvmsg+0x4e/0x90
		kernel:  ? __sys_recvmsg+0x7d/0x90
		kernel:  SyS_ioctl+0x74/0x80
		kernel:  do_syscall_64+0x74/0x190
		kernel:  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
		kernel: RIP: 0033:0x7f9f570f2d87
		kernel: RSP: 002b:00007fff29a4ed78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
		kernel: RAX: ffffffffffffffda RBX: 00007fff29a4eda0 RCX: 00007f9f570f2d87
		kernel: RDX: 00007fff29a4eda0 RSI: 00000000c018643a RDI: 000000000000000c
		kernel: RBP: 00000000010a9590 R08: 0000000000800105 R09: 0000000000000000
		kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c018643a
		kernel: R13: 0000000000801290 R14: 0000000001194810 R15: 0000000000000000
		kernel: Code: e8 a7 1f 04 00 83 e8 4e 0f b6 d0 48 89 d0 48 c1 e0 05 48 01 d0 48 c1 e0 05 49 03 86 60 01 00 00 84 db 48 8b b8 78 02 00 00 74 18 <48> 8b 07 be 02 00 00 00 48 8b 80 d8 00 00 00 e8 5d 34 be fd 84 
		kernel: RIP: dce110_vblank_set+0x4f/0xb0 [amdgpu] RSP: ffffb37007f87bc0
		kernel: CR2: 0000000000000000
		kernel: ---[ end trace 53fc1155564badc6 ]---
		kernel: note: xfwm4[1113] exited with preempt_count 3
		blueman-mechanism[1683]: Exiting
		kernel: [drm] {3840x2160, 4000x2222@533250Khz}
[8.] Environment
[8.1.] Software. Output of the ver_linux script:
		Linux anton 4.15.10-1-MANJARO #1 SMP PREEMPT Thu Mar 15 19:50:50 UTC 2018 x86_64 GNU/Linux

		GNU C               	7.3.0
		GNU Make            	4.2.1
		Binutils            	2.29.1
		Util-linux          	2.31.1
		Mount               	2.31.1
		Module-init-tools   	24
		E2fsprogs           	1.44.0
		Jfsutils            	1.1.15
		Reiserfsprogs       	3.6.27
		Xfsprogs            	4.15.1
		Pcmciautils         	018
		PPP                 	2.4.7
		Nfs-utils           	3.1.1
		Linux C Library     	2.26
		Dynamic linker (ldd)	2.26
		Linux C++ Library   	6.0.24
		Procps              	3.3.12
		Net-tools           	2.10
		Kbd                 	2.0.4
		Console-tools       	2.0.4
		Sh-utils            	8.29
		Udev                	238
		Wireless-tools      	30
		Modules Loaded      	acpi_cpufreq aesni_intel aes_x86_64 agpgart ahci amdgpu amd_iommu_v2 amdkfd arc4 bluetooth bnep bridge br_netfilter btbcm btintel btrtl btusb ccp cdrom cfg80211 chash cmac crc16 crc32c_generic crc32c_intel crc32_pclmul crct10dif_pclmul cryptd crypto_simd crypto_user dca drm drm_kms_helper ecdh_generic edac_mce_amd evdev ext4 fat fb_sys_fops fscrypto fuse ghash_clmulni_intel glue_helper gpio_amdpt hid hid_generic i2c_algo_bit i2c_piix4 igb input_leds iptable_filter iptable_nat ip_tables ipt_MASQUERADE irqbypass iwlmvm iwlwifi jbd2 k10temp kvm led_class libahci libata libcrc32c llc mac80211 mac_hid mbcache mousedev mxm_wmi nf_conntrack nf_conntrack_ipv4 nf_conntrack_netlink nf_defrag_ipv4 nf_nat nf_nat_ipv4 nf_nat_masquerade_ipv4 nfnetlink nls_cp437 nls_iso8859_1 overlay pcbc pcspkr pinctrl_amd pps_core ptp rfcomm rfkill rng_core rtc_cmos scsi_mod shpchp snd snd_hda_codec snd_hda_codec_generic snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_core snd_hda_intel snd_hwdep snd_pcm snd_timer soundcore sp5100_tco sr_mod stp syscopyarea sysfillrect sysimgblt ttm usb_common usbcore usbhid vfat wmi wmi_bmof xfrm_algo xfrm_user xhci_hcd xhci_pci x_tables xt_addrtype xt_conntrack

[8.2.] Processor information
		vendor_id	: AuthenticAMD
		cpu family	: 23
		model		: 1
		model name	: AMD Ryzen 7 1800X Eight-Core Processor
		stepping	: 1
		microcode	: 0x8001129
		cpu MHz		: 1844.566
		cache size	: 512 KB
		physical id	: 0
		siblings	: 16
		core id		: 7
		cpu cores	: 8
		apicid		: 15
		initial apicid	: 15
		fpu		: yes
		fpu_exception	: yes
		cpuid level	: 13
		wp		: yes
		flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca
		bugs		: sysret_ss_attrs null_seg spectre_v1 spectre_v2
		bogomips	: 7202.78
		TLB size	: 2560 4K pages
		clflush size	: 64
		cache_alignment	: 64
		address sizes	: 43 bits physical, 48 bits virtual
		power management: ts ttp tm hwpstate eff_freq_ro [13] [14]

[8.3.] Module information (from /proc/modules):
		cmac 16384 1 - Live 0x0000000000000000
		rfcomm 86016 16 - Live 0x0000000000000000
		fuse 118784 5 - Live 0x0000000000000000
		ipt_MASQUERADE 16384 1 - Live 0x0000000000000000
		nf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE, Live 0x0000000000000000
		nf_conntrack_netlink 49152 0 - Live 0x0000000000000000
		nfnetlink 16384 2 nf_conntrack_netlink, Live 0x0000000000000000
		xfrm_user 45056 1 - Live 0x0000000000000000
		xfrm_algo 16384 1 xfrm_user, Live 0x0000000000000000
		iptable_nat 16384 1 - Live 0x0000000000000000
		nf_conntrack_ipv4 16384 3 - Live 0x0000000000000000
		nf_defrag_ipv4 16384 1 nf_conntrack_ipv4, Live 0x0000000000000000
		nf_nat_ipv4 16384 1 iptable_nat, Live 0x0000000000000000
		xt_addrtype 16384 2 - Live 0x0000000000000000
		iptable_filter 16384 1 - Live 0x0000000000000000
		xt_conntrack 16384 1 - Live 0x0000000000000000
		nf_nat 36864 2 nf_nat_masquerade_ipv4,nf_nat_ipv4, Live 0x0000000000000000
		nf_conntrack 155648 7 ipt_MASQUERADE,nf_nat_masquerade_ipv4,nf_conntrack_netlink,nf_conntrack_ipv4,nf_nat_ipv4,xt_conntrack,nf_nat, Live 0x0000000000000000
		libcrc32c 16384 2 nf_nat,nf_conntrack, Live 0x0000000000000000
		crc32c_generic 16384 0 - Live 0x0000000000000000
		br_netfilter 24576 0 - Live 0x0000000000000000
		bridge 188416 1 br_netfilter, Live 0x0000000000000000
		stp 16384 1 bridge, Live 0x0000000000000000
		llc 16384 2 bridge,stp, Live 0x0000000000000000
		overlay 86016 0 - Live 0x0000000000000000
		bnep 24576 2 - Live 0x0000000000000000
		arc4 16384 2 - Live 0x0000000000000000
		amdkfd 151552 1 - Live 0x0000000000000000
		amd_iommu_v2 20480 1 amdkfd, Live 0x0000000000000000
		amdgpu 3104768 7 - Live 0x0000000000000000
		nls_iso8859_1 16384 1 - Live 0x0000000000000000
		nls_cp437 20480 1 - Live 0x0000000000000000
		vfat 20480 1 - Live 0x0000000000000000
		iwlmvm 425984 0 - Live 0x0000000000000000
		fat 77824 1 vfat, Live 0x0000000000000000
		snd_hda_codec_realtek 110592 1 - Live 0x0000000000000000
		mac80211 909312 1 iwlmvm, Live 0x0000000000000000
		snd_hda_codec_generic 86016 1 snd_hda_codec_realtek, Live 0x0000000000000000
		edac_mce_amd 28672 0 - Live 0x0000000000000000
		chash 16384 1 amdgpu, Live 0x0000000000000000
		snd_hda_codec_hdmi 57344 1 - Live 0x0000000000000000
		btusb 53248 0 - Live 0x0000000000000000
		input_leds 16384 0 - Live 0x0000000000000000
		ttm 118784 1 amdgpu, Live 0x0000000000000000
		iwlwifi 315392 1 iwlmvm, Live 0x0000000000000000
		btrtl 16384 1 btusb, Live 0x0000000000000000
		snd_hda_intel 45056 5 - Live 0x0000000000000000
		btbcm 16384 1 btusb, Live 0x0000000000000000
		btintel 16384 1 btusb, Live 0x0000000000000000
		kvm 704512 0 - Live 0x0000000000000000
		mousedev 24576 0 - Live 0x0000000000000000
		led_class 16384 2 iwlmvm,input_leds, Live 0x0000000000000000
		drm_kms_helper 200704 1 amdgpu, Live 0x0000000000000000
		bluetooth 634880 41 rfcomm,bnep,btusb,btrtl,btbcm,btintel, Live 0x0000000000000000
		snd_hda_codec 151552 4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel, Live 0x0000000000000000
		irqbypass 16384 1 kvm, Live 0x0000000000000000
		crct10dif_pclmul 16384 0 - Live 0x0000000000000000
		crc32_pclmul 16384 0 - Live 0x0000000000000000
		ecdh_generic 24576 2 bluetooth, Live 0x0000000000000000
		cfg80211 741376 3 iwlmvm,mac80211,iwlwifi, Live 0x0000000000000000
		drm 466944 7 amdgpu,ttm,drm_kms_helper, Live 0x0000000000000000
		igb 245760 0 - Live 0x0000000000000000
		snd_hda_core 94208 5 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec, Live 0x0000000000000000
		mxm_wmi 16384 0 - Live 0x0000000000000000
		wmi_bmof 16384 0 - Live 0x0000000000000000
		snd_hwdep 20480 1 snd_hda_codec, Live 0x0000000000000000
		ghash_clmulni_intel 16384 0 - Live 0x0000000000000000
		ptp 20480 1 igb, Live 0x0000000000000000
		snd_pcm 135168 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core, Live 0x0000000000000000
		pcbc 16384 0 - Live 0x0000000000000000
		pps_core 20480 1 ptp, Live 0x0000000000000000
		i2c_algo_bit 16384 2 amdgpu,igb, Live 0x0000000000000000
		agpgart 49152 2 ttm,drm, Live 0x0000000000000000
		dca 16384 1 igb, Live 0x0000000000000000
		syscopyarea 16384 1 drm_kms_helper, Live 0x0000000000000000
		snd_timer 36864 1 snd_pcm, Live 0x0000000000000000
		rfkill 28672 5 bluetooth,cfg80211, Live 0x0000000000000000
		sysfillrect 16384 1 drm_kms_helper, Live 0x0000000000000000
		ccp 81920 0 - Live 0x0000000000000000
		sysimgblt 16384 1 drm_kms_helper, Live 0x0000000000000000
		aesni_intel 188416 2 - Live 0x0000000000000000
		snd 98304 18 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer, Live 0x0000000000000000
		aes_x86_64 20480 1 aesni_intel, Live 0x0000000000000000
		fb_sys_fops 16384 1 drm_kms_helper, Live 0x0000000000000000
		rng_core 16384 1 ccp, Live 0x0000000000000000
		soundcore 16384 1 snd, Live 0x0000000000000000
		crypto_simd 16384 1 aesni_intel, Live 0x0000000000000000
		glue_helper 16384 1 aesni_intel, Live 0x0000000000000000
		cryptd 28672 3 ghash_clmulni_intel,aesni_intel,crypto_simd, Live 0x0000000000000000
		shpchp 40960 0 - Live 0x0000000000000000
		sp5100_tco 16384 0 - Live 0x0000000000000000
		i2c_piix4 24576 0 - Live 0x0000000000000000
		k10temp 16384 0 - Live 0x0000000000000000
		pcspkr 16384 0 - Live 0x0000000000000000
		rtc_cmos 24576 1 - Live 0x0000000000000000
		evdev 20480 9 - Live 0x0000000000000000
		wmi 28672 2 mxm_wmi,wmi_bmof, Live 0x0000000000000000
		mac_hid 16384 0 - Live 0x0000000000000000
		pinctrl_amd 28672 0 - Live 0x0000000000000000
		gpio_amdpt 16384 0 - Live 0x0000000000000000
		acpi_cpufreq 24576 0 - Live 0x0000000000000000
		crypto_user 16384 0 - Live 0x0000000000000000
		ip_tables 28672 2 iptable_nat,iptable_filter, Live 0x0000000000000000
		x_tables 45056 5 ipt_MASQUERADE,xt_addrtype,iptable_filter,xt_conntrack,ip_tables, Live 0x0000000000000000
		ext4 712704 1 - Live 0x0000000000000000
		crc16 16384 2 bluetooth,ext4, Live 0x0000000000000000
		mbcache 16384 1 ext4, Live 0x0000000000000000
		jbd2 122880 1 ext4, Live 0x0000000000000000
		fscrypto 32768 1 ext4, Live 0x0000000000000000
		sr_mod 28672 0 - Live 0x0000000000000000
		cdrom 69632 1 sr_mod, Live 0x0000000000000000
		hid_generic 16384 0 - Live 0x0000000000000000
		usbhid 57344 0 - Live 0x0000000000000000
		hid 131072 2 hid_generic,usbhid, Live 0x0000000000000000
		ahci 40960 0 - Live 0x0000000000000000
		xhci_pci 16384 0 - Live 0x0000000000000000
		crc32c_intel 24576 1 - Live 0x0000000000000000
		libahci 40960 1 ahci, Live 0x0000000000000000
		xhci_hcd 258048 1 xhci_pci, Live 0x0000000000000000
		libata 278528 2 ahci,libahci, Live 0x0000000000000000
		usbcore 286720 4 btusb,usbhid,xhci_pci,xhci_hcd, Live 0x0000000000000000
		scsi_mod 258048 2 sr_mod,libata, Live 0x0000000000000000
		usb_common 16384 1 usbcore, Live 0x0000000000000000

[8.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem)
	/proc/ioports:
		0000-0000 : PCI Bus 0000:00
		  0000-0000 : dma1
		  0000-0000 : pic1
		  0000-0000 : timer0
		  0000-0000 : timer1
		  0000-0000 : keyboard
		  0000-0000 : PNP0800:00
		  0000-0000 : keyboard
		  0000-0000 : rtc0
		  0000-0000 : dma page reg
		  0000-0000 : pic2
		  0000-0000 : dma2
		  0000-0000 : fpu
		  0000-0000 : pnp 00:03
		  0000-0000 : pnp 00:03
		  0000-0000 : pnp 00:03
		  0000-0000 : pnp 00:03
		0000-0000 : PCI Bus 0000:00
		0000-0000 : PCI Bus 0000:00
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		    0000-0000 : ACPI PM1a_EVT_BLK
		    0000-0000 : ACPI PM1a_CNT_BLK
		    0000-0000 : ACPI PM_TMR
		    0000-0000 : ACPI CPU throttle
		    0000-0000 : ACPI GPE0_BLK
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		    0000-0000 : piix4_smbus
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		  0000-0000 : pnp 00:04
		    0000-0000 : smba_idx
		  0000-0000 : pnp 00:04
		0000-0000 : PCI conf1
		0000-0000 : PCI Bus 0000:00
		  0000-0000 : PCI Bus 0000:03
		    0000-0000 : PCI Bus 0000:04
		      0000-0000 : PCI Bus 0000:07
		        0000-0000 : PCI Bus 0000:08
		          0000-0000 : PCI Bus 0000:0b
		          0000-0000 : 0000:0b:00.0
		      0000-0000 : PCI Bus 0000:06
		        0000-0000 : 0000:06:00.0
		          0000-0000 : ahci
		        0000-0000 : 0000:06:00.0
		          0000-0000 : ahci
		        0000-0000 : 0000:06:00.0
		          0000-0000 : ahci
		        0000-0000 : 0000:06:00.0
		          0000-0000 : ahci
		        0000-0000 : 0000:06:00.0
		          0000-0000 : ahci
		  0000-0000 : PCI Bus 0000:0e
		    0000-0000 : 0000:0e:00.0

	/proc/iomem:
		0000000-00000000 : Reserved
		00000000-00000000 : System RAM
		00000000-00000000 : Reserved
		  00000000-00000000 : PCI Bus 0000:00
		  00000000-00000000 : PCI Bus 0000:00
		    00000000-00000000 : Video ROM
		  00000000-00000000 : System ROM
		00000000-00000000 : System RAM
		00000000-00000000 : Reserved
		00000000-00000000 : System RAM
		00000000-00000000 : Reserved
		00000000-00000000 : System RAM
		00000000-00000000 : ACPI Non-volatile Storage
		00000000-00000000 : Reserved
		00000000-00000000 : Unknown E820 type
		00000000-00000000 : System RAM
		00000000-00000000 : Reserved
		00000000-00000000 : PCI Bus 0000:00
		  00000000-00000000 : PCI Bus 0000:0e
		    00000000-00000000 : 0000:0e:00.0
		    00000000-00000000 : 0000:0e:00.0
		  00000000-00000000 : PCI MMCONFIG 0000 [bus 00-3f]
		    00000000-00000000 : Reserved
		      00000000-00000000 : pnp 00:00
		  00000000-00000000 : Reserved
		  00000000-00000000 : PCI Bus 0000:03
		    00000000-00000000 : PCI Bus 0000:04
		      00000000-00000000 : PCI Bus 0000:07
		        00000000-00000000 : PCI Bus 0000:08
		          00000000-00000000 : PCI Bus 0000:0b
		          00000000-00000000 : 0000:0b:00.0
		          00000000-00000000 : igb
		          00000000-00000000 : 0000:0b:00.0
		          00000000-00000000 : igb
		          00000000-00000000 : PCI Bus 0000:09
		          00000000-00000000 : 0000:09:00.0
		          00000000-00000000 : iwlwifi
		      00000000-00000000 : PCI Bus 0000:06
		        00000000-00000000 : 0000:06:00.0
		          00000000-00000000 : ahci
		    00000000-00000000 : 0000:03:00.1
		    00000000-00000000 : 0000:03:00.1
		      00000000-00000000 : ahci
		    00000000-00000000 : 0000:03:00.0
		      00000000-00000000 : xhci-hcd
		  00000000-00000000 : PCI Bus 0000:11
		    00000000-00000000 : 0000:11:00.3
		      00000000-00000000 : xhci-hcd
		    00000000-00000000 : 0000:11:00.2
		      00000000-00000000 : ccp
		    00000000-00000000 : 0000:11:00.2
		      00000000-00000000 : ccp
		  00000000-00000000 : PCI Bus 0000:12
		    00000000-00000000 : 0000:12:00.3
		      00000000-00000000 : ICH HD audio
		    00000000-00000000 : 0000:12:00.2
		      00000000-00000000 : ahci
		  00000000-00000000 : PCI Bus 0000:0e
		    00000000-00000000 : 0000:0e:00.0
		    00000000-00000000 : 0000:0e:00.1
		      00000000-00000000 : ICH HD audio
		  00000000-00000000 : PCI Bus 0000:01
		    00000000-00000000 : 0000:01:00.0
		      00000000-00000000 : nvme
		  00000000-00000000 : Reserved
		  00000000-00000000 : Reserved
		    00000000-00000000 : amd_iommu
		    00000000-00000000 : IOAPIC 0
		    00000000-00000000 : IOAPIC 1
		  00000000-00000000 : Reserved
		    00000000-00000000 : pnp 00:04
		00000000-00000000 : Reserved
		  00000000-00000000 : AMDIF030:00
		    00000000-00000000 : AMDIF030:00
		00000000-00000000 : Reserved
		  00000000-00000000 : HPET 0
		    00000000-00000000 : PNP0103:00
		00000000-00000000 : Reserved
		00000000-00000000 : Reserved
		  00000000-00000000 : AMDI0030:00
		00000000-00000000 : pnp 00:04
		00000000-00000000 : Reserved
		00000000-00000000 : Reserved
		00000000-00000000 : PCI Bus 0000:00
		  00000000-00000000 : Reserved
		    00000000-00000000 : Local APIC
		      00000000-00000000 : pnp 00:04
		  00000000-00000000 : Reserved
		    00000000-00000000 : pnp 00:04
		00000000-00000000 : System RAM
		  00000000-00000000 : Kernel code
		  00000000-00000000 : Kernel data
		  00000000-00000000 : Kernel bss
		00000000-00000000 : RAM buffer

[8.5.] PCI information ('lspci -vvv' as root): attached 'pci.info'
[8.6.] SCSI information (from /proc/scsi/scsi):
		Attached devices:
		Host: scsi5 Channel: 00 Id: 00 Lun: 00
		  Vendor: HL-DT-ST Model: DVDRAM GH24NSD1  Rev: LG00
		  Type:   CD-ROM                           ANSI  SCSI revision: 05

[8.7.] Output of dmidecode: attached as dmidecode.info
Comment 1 Eduard 2018-03-19 09:05:22 UTC
Created attachment 274809 [details]
dmidecode.info
Comment 2 Eduard 2018-03-19 09:05:43 UTC
Created attachment 274811 [details]
pci.info
Comment 3 Harry Wentland 2018-03-19 14:49:24 UTC
Created attachment 274819 [details]
0001-drm-amd-display-Don-t-blow-up-if-TG-is-NULL-in-dce11.patch

Does this patch help?
Comment 4 Eduard 2018-03-20 07:36:53 UTC
Indeed, it does.
Comment 5 Eduard 2018-03-20 07:41:14 UTC
But it causes follow up problems:

kernel: [drm:dm_logger_write [amdgpu]] *ERROR* Failed to get VBLANK!
kernel: [drm:dm_vblank_get_counter [amdgpu]] *ERROR* dc_stream_state is NULL for crtc '1'!
kernel: [drm:dm_crtc_get_scanoutpos [amdgpu]] *ERROR* dc_stream_state is NULL for crtc '1'!
kernel: [drm:dm_vblank_get_counter [amdgpu]] *ERROR* dc_stream_state is NULL for crtc '1'!
kernel: WARNING: CPU: 10 PID: 1119 at drivers/gpu/drm/drm_vblank.c:612 drm_calc_vbltimestamp_from_scanoutpos+0x2c5/0x340 [drm]
kernel: Modules linked in: cmac rfcomm fuse ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack libcr>
kernel:  wmi_bmof mxm_wmi fb_sys_fops soundcore dca rng_core pcbc rfkill aesni_intel aes_x86_64 crypto_simd glue_helper sp5100_tco cryptd pcspkr i2c_piix4 k10temp shpchp rtc_cmos wmi pinctrl_amd gpio_amdpt evdev mac_hid acpi_cpufreq crypto_user ip_tables >
kernel: CPU: 10 PID: 1119 Comm: xfwm4 Not tainted 4.15.10-1.1-MANJARO #1
kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./X370 Taichi, BIOS P3.30 01/15/2018
kernel: RIP: 0010:drm_calc_vbltimestamp_from_scanoutpos+0x2c5/0x340 [drm]
kernel: RSP: 0018:ffffb128c747fb30 EFLAGS: 00010086
kernel: RAX: ffffffffc143c540 RBX: ffffa30e940cf000 RCX: 0000000000000001
kernel: RDX: ffffffffc12303c8 RSI: 0000000000000001 RDI: ffffffffc122e26e
kernel: RBP: ffffb128c747fb98 R08: 0000000000000000 R09: ffffffffc120f8b0
kernel: R10: ffffffffc1262320 R11: ffffffffb55ccf2d R12: 0000000000000001
kernel: R13: ffffb128c747fbac R14: ffffb128c747fbe0 R15: ffffa30d496af800
kernel: FS:  00007fa8a541a980(0000) GS:ffffa30edee80000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007fbf500135b8 CR3: 0000000e7e82a000 CR4: 00000000003406e0
kernel: Call Trace:
kernel:  ? set_cursor+0x80/0x80
kernel:  ? set_cursor+0x80/0x80
kernel:  drm_get_last_vbltimestamp+0x54/0x90 [drm]
kernel:  drm_update_vblank_count+0x77/0x250 [drm]
kernel:  drm_vblank_enable+0xbd/0x100 [drm]
kernel:  drm_vblank_get+0x8d/0xb0 [drm]
kernel:  drm_wait_vblank_ioctl+0x12a/0x660 [drm]
kernel:  ? unix_stream_recvmsg+0x53/0x70
kernel:  ? drm_legacy_modeset_ctl_ioctl+0x100/0x100 [drm]
kernel:  drm_ioctl_kernel+0x5b/0xb0 [drm]
kernel:  drm_ioctl+0x2d5/0x370 [drm]
kernel:  ? drm_legacy_modeset_ctl_ioctl+0x100/0x100 [drm]
kernel:  ? do_iter_write+0xdc/0x190
kernel:  ? vfs_writev+0xb9/0x110
kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
kernel:  do_vfs_ioctl+0xa4/0x630
kernel:  ? __sys_recvmsg+0x4e/0x90
kernel:  ? __sys_recvmsg+0x7d/0x90
kernel:  SyS_ioctl+0x74/0x80
kernel:  do_syscall_64+0x74/0x190
kernel:  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
kernel: RIP: 0033:0x7fa8a1a6fd87
kernel: RSP: 002b:00007fff3c9e7a48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
kernel: RAX: ffffffffffffffda RBX: 00007fff3c9e7a70 RCX: 00007fa8a1a6fd87
kernel: RDX: 00007fff3c9e7a70 RSI: 00000000c018643a RDI: 000000000000000c
kernel: RBP: 0000000002251590 R08: 0000000000800105 R09: 0000000000000000
kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c018643a
kernel: R13: 0000000000801813 R14: 000000000233d510 R15: 0000000000000000
kernel: Code: e1 48 c7 c2 c8 03 23 c1 be 01 00 00 00 48 c7 c7 6e e2 22 c1 e8 5d 62 fe ff 48 8b 83 98 03 00 00 48 83 78 20 00 0f 84 6f fd ff ff <0f> 0b e9 68 fd ff ff 48 c7 c2 90 03 23 c1 31 f6 48 c7 c7 6b e2 
kernel: ---[ end trace d9312f249097de3a ]---



And the system freezes every 7s for 3s.
Comment 6 Eduard 2018-03-20 07:41:33 UTC
Do you want me to create a new bug report?
Comment 7 Harry Wentland 2018-03-20 13:23:07 UTC
Thanks for testing. No need for a new bug report. It seems like it's still the same problem at the core. The patch I sent doesn't address the root cause, but tries to alleviate the symptom (i.e. don't crash the kernel).
Comment 8 Eduard 2018-09-04 09:37:42 UTC
Is there anything I could do to work around the problem?
Comment 9 mistarzy 2018-09-14 06:21:22 UTC
I would like to confirm this issue is also present on 4.18.6
Comment 10 Nicholas Kazlauskas 2018-09-14 13:00:19 UTC
Please post a full dmesg log and Xorg log from your 4.18 kernel.

If your setup differs from the original poster then it would likely help if you noted your distro/desktop environment as well.
Comment 11 Eduard 2018-09-17 07:09:04 UTC
Created attachment 278577 [details]
boot log 4.18
Comment 12 Eduard 2018-09-17 07:11:15 UTC
Created attachment 278579 [details]
fail log 4.18
Comment 13 Eduard 2018-09-17 07:11:44 UTC
Created attachment 278581 [details]
Xorg 4.18
Comment 14 Eduard 2018-09-17 07:13:24 UTC
Attached dmesg output right after boot (boot log 4.18) and the additional failure lines after display woke up from power save (fail log 4.18). As well as Xorg log (Xorg 4.18).

The problem behavior is the same as with 4.15. After waking up the display from power save, the system freezes every 10s for a couple of seconds.
Comment 15 Eduard 2018-09-24 06:50:14 UTC
@Nicholas: you got some insights from the logs?
Comment 16 Nicholas Kazlauskas 2018-09-24 13:10:05 UTC
The logs are sufficient in case to understand what issue you're experiencing.

However, I'm surprised that this is occurring with xf86-video-amdgpu. Another user with a similar setup was reporting this problem only occurring with the modesetting driver - but they were using GNOME instead of xfce.
Comment 17 juliolokooo 2018-10-01 13:26:32 UTC
It can be reproduced on 4.19.0-rc6 too, same dmesg and Xorg output as with 4.18.
I tested on XFCE with xf86-video-amdgpu and modesetting, this bug happens with both.
Comment 18 Eduard 2018-10-26 08:18:37 UTC
Even after updating to 4.19 release did not solve the problem.

I was able to work around it by disabling monitor power management in Xorg settings:

Section "Monitor"
	Identifier	"Monitor0"
	Option "DPMS" "false"
EndSection


I sill get this error:

kernel: [drm:dce110_vblank_set [amdgpu]] *ERROR* Failed to get VBLANK!

But it does not repeat every 10s any more, and also my system does not freeze. So I can finally upgrade from 4.14.
Comment 19 Eduard 2018-10-26 14:58:43 UTC
I figured out it is not true. After a longer period of turned off screen (lightDM automatically turns it off if you lock the station), the hangs appeared again. So I'm back again on 4.14. :(
Comment 20 Eduard 2018-10-30 09:11:20 UTC
@Nicholas: If you understand the root cause, can you suggest a work around for this problem?
Comment 21 Eduard 2019-01-04 07:53:49 UTC
I was able to work around the problem after a hint by Michel Dänzer by disabling new amdgpu display code: https://bugs.freedesktop.org/show_bug.cgi?id=109001#c11
Comment 22 mistarzy 2019-01-04 09:18:19 UTC
I got rid of the issue by clean installation of Xubuntu 18.04.1 with 4.15. Same kernel on old installation (xubuntu being upgraded over the years from 15.04 to 18.04.1) that I mentioned on 2018-09-14 still has issues. I was trying to find source of the issue but I do not believe that was kernel related. Since on fresh installation everything works fine. Also when switched to mainline https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20/ no issues found. My skills are limited but would guess is how system is handling amdgpu driver. If you would like me to test something I have both installations available - with and without drm issue.
Comment 23 Nicholas Kazlauskas 2019-01-07 15:22:20 UTC
Does this still occur on kernels for 4.21 and higher?

It isn't directly related to power management, but there are many of these classes of edge cases with atomic commit flow that get fixed with the following patches:

https://patchwork.freedesktop.org/patch/263411/
https://patchwork.freedesktop.org/series/53324/

So I would be interested in knowing whether this is a separate issue.

Note You need to log in before you can comment on or make changes to this bug.