You are not logged in.

#26 2019-08-25 19:20:02

sinatosk
Member
Registered: 2010-11-28
Posts: 84

Re: Black screen on lid open

With kernel 5.2.10 I've noticed this change on arch linux set of patches

https://git.archlinux.org/linux.git/com … 8c3c11a479

and the kernel config has changed "CONFIG_AMD_IOMMU_V2=m" changed too "CONFIG_AMD_IOMMU_V2=y"

let us know if it's improved anything, I'm going to try it soon

Last edited by sinatosk (2019-08-25 19:21:55)

Offline

#27 2019-08-25 19:38:14

adim
Member
Registered: 2016-09-04
Posts: 12

Re: Black screen on lid open

Likun Gao wrote:

drm/amdgpu: pin the csb buffer on hw init for gfx v8

I'm pretty sure these APUs are gfx9.

There are however a few other interesting commits, like:

Pierre-Eric Pelloux-Prayer wrote:

drm/amdgpu: fix gfx9 soft recovery

Maybe I'll give it a shot.


ThinkPad E560, ThinkPad T495s
Desktop: Intel Core i7 2600 | 32GB DDR3 1600Mhz | AMD Radeon RX480 8GB | 512GB Samsung 850 PRO | 3TB HDD | 500GB HDD

Offline

#28 2019-08-25 19:44:30

sinatosk
Member
Registered: 2010-11-28
Posts: 84

Re: Black screen on lid open

I think you mean we have gfx 9 gpu's and yes it does look like that

I thought gfx 8 thinking vega 8 when I saw that commit

but looking at gfx 8 it does have in there VEGAM which I think means vega mobile... maybe? we are gfx 8

but then glxinfo does report RAVEN

I dunno, bloody confusing code names

Last edited by sinatosk (2019-08-25 21:12:04)

Offline

#29 2019-08-26 02:40:30

sinatosk
Member
Registered: 2010-11-28
Posts: 84

Re: Black screen on lid open

Maybe I'm speaking to soon but I've sleep/resumed over 20 times now in some hours and while I do still see the error about dcn_10_hw_sequencer, My sleep/wake issue looks like it might be gone ( this is with the amd_iommu option removed )

thats with the patch I showed in my earlier post, applied

I've not tested hibernation yet

Last edited by sinatosk (2019-08-26 11:51:00)

Offline

#30 2019-08-26 12:13:52

adim
Member
Registered: 2016-09-04
Posts: 12

Re: Black screen on lid open

sinatosk wrote:

I think you mean we have gfx 9 gpu's and yes it does look like that

I thought gfx 8 thinking vega 8 when I saw that commit

but looking at gfx 8 it does have in there VEGAM which I think means vega mobile... maybe? we are gfx 8

but then glxinfo does report RAVEN

I dunno, bloody confusing code names

Vega M refers to the GPU found in certain Intel CPUs with Vega graphics.
https://ark.intel.com/content/www/us/en … 0-ghz.html


ThinkPad E560, ThinkPad T495s
Desktop: Intel Core i7 2600 | 32GB DDR3 1600Mhz | AMD Radeon RX480 8GB | 512GB Samsung 850 PRO | 3TB HDD | 500GB HDD

Offline

#31 2019-08-26 12:18:59

sinatosk
Member
Registered: 2010-11-28
Posts: 84

Re: Black screen on lid open

adim wrote:
sinatosk wrote:

I think you mean we have gfx 9 gpu's and yes it does look like that

I thought gfx 8 thinking vega 8 when I saw that commit

but looking at gfx 8 it does have in there VEGAM which I think means vega mobile... maybe? we are gfx 8

but then glxinfo does report RAVEN

I dunno, bloody confusing code names

Vega M refers to the GPU found in certain Intel CPUs with Vega graphics.
https://ark.intel.com/content/www/us/en … 0-ghz.html

heh I forgot intel licensed that from amd

looking at the source code from the kernel tree at "drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c", looking at the line that says

"{0x1002, 0x15d8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RAVEN|AMD_IS_APU},"

yeah we have RAVEN which is gfx 9

Last edited by sinatosk (2019-08-26 13:07:26)

Offline

#32 2019-09-05 12:54:21

adim
Member
Registered: 2016-09-04
Posts: 12

Re: Black screen on lid open

Been using 5.2.11 for a while and I think this is gone for good now.


ThinkPad E560, ThinkPad T495s
Desktop: Intel Core i7 2600 | 32GB DDR3 1600Mhz | AMD Radeon RX480 8GB | 512GB Samsung 850 PRO | 3TB HDD | 500GB HDD

Offline

#33 2019-09-05 13:25:05

sinatosk
Member
Registered: 2010-11-28
Posts: 84

Re: Black screen on lid open

Yeah, things been fine for me since 5.2.10 with that patch and since 5.2.11 no issues

However I have another issue but I'll start another thread for that.

I'm unable to hibernate my system. Hibernate fails because it's unable to reset the GPU as reported by drm amdgpu

And something odd, kernel saying it's unable to find the image even though the swap partition is mounted and I've checked the path and uuid over and over to make sure it's correct.

After seeing the message about GPU failing to reset, laptop powers off, I turn it back on, then boots to try in stead of resuming. There are sometimes it does resume but it's saying it's unable to find image

Offline

#34 2019-09-05 16:54:35

Preycon
Member
From: México, D.F.
Registered: 2009-02-14
Posts: 31

Re: Black screen on lid open

This still happens to me on a plasma session.

Offline

#35 2019-09-05 16:58:05

sinatosk
Member
Registered: 2010-11-28
Posts: 84

Re: Black screen on lid open

Preycon wrote:

This still happens to me on a plasma session.

Suspension or Hibernation?

Offline

#36 2019-09-06 12:54:23

sinatosk
Member
Registered: 2010-11-28
Posts: 84

Re: Black screen on lid open

ok, I've compiled and installed 5.2.13 and both suspension and hibernation works successfuly

the dcn10 warnings/errors I was talking about earlier are gone however they are patches that have not been submitted to the stable queue but a link reffered to by an AMD member

they are here. these patches are what got rid of the dcn10 warnings/errors

however I'm still seeing the error about amdgpu failed to reset on hibernate but resuming from hibernate ( so far ) seems to be working for me

edit: hibernation for me still seems to cause me problems where after hibernation... my desktop will eventually just stop responding and have to force reboot, no errors or warnings in my logs though that I see on my console. I will work on getting those warnings/errors but suspension is all good now

Last edited by sinatosk (2019-09-07 10:48:16)

Offline

#37 2019-09-09 14:48:49

Ploppz
Member
Registered: 2013-09-14
Posts: 223

Re: Black screen on lid open

With 5.2.13 I still have what seems like the same problem as before.
But `journalctl -b -1` shows only logs up until suspension - nothing after opening the lid (which was all black and unresponsivE) and forcing it to shut down.

Offline

#38 2019-09-10 08:29:53

runninghorse
Member
Registered: 2019-07-20
Posts: 10
Website

Re: Black screen on lid open

I have this same issue. Thanks

Offline

#39 2019-09-13 15:02:19

dimischiavone
Member
From: Turin
Registered: 2019-09-13
Posts: 3

Re: Black screen on lid open

Hi everyone, Lenovo Thinkpad t495s aswell here with the latest bios (v1.11) and 5.2.14-arch2-1-ARCH #1 SMP PREEMPT kernel. I have issues resuming from hibernation (goes to black screen after sudden flash becoming unresponsive and needing a force reboot), whereas it resumes fine from suspend. As suggested some posts back with the kernel 5.1.16 it all works but it also worked well with the kernel 5.2.11 (even though reverting to that kernel doesn't fix it, probably due to mesa and other stuff being updated meanwhile). I guess we can wait for a future kernel release that fixes these problems (i was quite impressed that such a new machine had it all working immediately).

Last edited by dimischiavone (2019-09-13 15:03:46)

Offline

#40 2019-09-13 23:13:04

adim
Member
Registered: 2016-09-04
Posts: 12

Re: Black screen on lid open

T495s owner chiming in again. It sems like this device also suffers from some strange xhci bug during suspend, similar to the issue described here.

It was working fine on a previous BIOS but v1.11 seems to have broken it again, anways following the advice from the wiki makes that xhci error go away and make suspend work again. I was getting the same xhci errors on previous BIOS versions too but didn't think much of it, maybe it actually had something to do with broken suspends as well.

dmesg before the fix:

xhci_hcd 0000:05:00.4: WARN: xHC CMD_RUN timeout
PM: suspend_common(): xhci_pci_suspend+0x0/0xd0 [xhci_pci] returns -110
PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -110
PM: dpm_run_callback(): pci_pm_suspend+0x0/0x120 returns -110
PM: Device 0000:05:00.4 failed to suspend async: error -110
PM: Some devices failed to suspend, or early wake event detected

Let me know if this fixes things for you @dimischiavone


ThinkPad E560, ThinkPad T495s
Desktop: Intel Core i7 2600 | 32GB DDR3 1600Mhz | AMD Radeon RX480 8GB | 512GB Samsung 850 PRO | 3TB HDD | 500GB HDD

Offline

#41 2019-09-14 06:23:42

dimischiavone
Member
From: Turin
Registered: 2019-09-13
Posts: 3

Re: Black screen on lid open

@adim resuming from suspend works fine for me but after reading the issue described in the link you mentioned i tried  to suspend while plugging in a usb flash drive and got a frozen/black screen on resume (in the logs i could see the spurious wakeup mentioned in the wiki). Resuming from hibernate still doesn't work for me, i guess it might have to do with the integrated vega gpu; because on resuming i can briefly see the screen turning on and then it goes black and freezes. Other times the device doesn't even get to shutdown while hibernating, the lid blinks for a while and the screen turns off, then it turns back on with a light black colour shows the cursor and freezes.

Last edited by dimischiavone (2019-09-14 06:24:46)

Offline

#42 2019-09-15 04:22:07

Charles_Carmichael
Member
From: North Dakota
Registered: 2018-10-07
Posts: 6

Re: Black screen on lid open

Hello, HP Envy x360 here

Operating System: Arch Linux 
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.61.0
Qt Version: 5.13.1
Kernel Version: 5.2.14-arch2-1-ARCH
OS Type: 64-bit
Processors: 8 × AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
Memory: 6.8 GiB of RAM

Last time sleep worked for me was kernel 5.1.16. I'm not sure about hibernate as my swapfile does not like to work for hibernate. I have noticed when trying to wake from sleep my keyboard becomes unresponsive, therefore I can't switch to a virtual terminal. When I try to wake from suspend, I believe this is relevant journalctl output except it cycles through all CPU cores.

Sep 14 23:00:05 archlinux kernel: ------------[ cut here ]------------
Sep 14 23:00:05 archlinux kernel: WARNING: CPU: 7 PID: 1170 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:854 dcn10_verify_allow_pstate_change_high.cold+0xc/0x229 [amdgpu]
Sep 14 23:00:05 archlinux kernel: Modules linked in: rfcomm ccm bnep hid_logitech_hidpp mousedev joydev amdgpu edac_mce_amd kvm_amd ccp arc4 kvm hid_multitouch hid_logitech_dj rtwpci rtw88 btusb uvcvideo btrtl btbcm irqbypass btintel vi>
Sep 14 23:00:05 archlinux kernel:  mac_hid pcc_cpufreq acpi_cpufreq vboxnetflt(OE) vboxnetadp(OE) vboxpci(OE) vboxdrv(OE) crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc mmc_core serio_raw atkbd libp>
Sep 14 23:00:05 archlinux kernel: CPU: 7 PID: 1170 Comm: kworker/u32:46 Tainted: G        W  OE     5.2.14-arch2-1-ARCH #1
Sep 14 23:00:05 archlinux kernel: Hardware name: HP HP ENVY x360 Convertible 15-cp0xxx/8497, BIOS F.19 08/20/2018
Sep 14 23:00:05 archlinux kernel: Workqueue: events_unbound commit_work [drm_kms_helper]
Sep 14 23:00:05 archlinux kernel: RIP: 0010:dcn10_verify_allow_pstate_change_high.cold+0xc/0x229 [amdgpu]
Sep 14 23:00:05 archlinux kernel: Code: 83 c8 ff e9 08 80 f9 ff 48 c7 c7 a8 d0 2e c1 e8 3b a7 2a f8 0f 0b 83 c8 ff e9 f2 7f f9 ff 48 c7 c7 a8 d0 2e c1 e8 25 a7 2a f8 <0f> 0b 80 bb 93 01 00 00 00 75 05 e9 dc a5 f9 ff 48 8b 83 80 02 00
Sep 14 23:00:05 archlinux kernel: RSP: 0018:ffff9d468378fb18 EFLAGS: 00010246
Sep 14 23:00:05 archlinux kernel: RAX: 0000000000000024 RBX: ffff97910e1dc000 RCX: 0000000000000000
Sep 14 23:00:05 archlinux kernel: RDX: 0000000000000000 RSI: 0000000000000092 RDI: 00000000ffffffff
Sep 14 23:00:05 archlinux kernel: RBP: ffff9d468378fba0 R08: 000000000002389f R09: 0000000000000001
Sep 14 23:00:05 archlinux kernel: R10: 0000000000000000 R11: 0000000000000001 R12: ffff97910e1dc000
Sep 14 23:00:05 archlinux kernel: R13: 0000000000000000 R14: ffff979114be81b8 R15: ffff979114be9318
Sep 14 23:00:05 archlinux kernel: FS:  0000000000000000(0000) GS:ffff979117bc0000(0000) knlGS:0000000000000000
Sep 14 23:00:05 archlinux kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 14 23:00:05 archlinux kernel: CR2: 00007f8c5ebd6008 CR3: 0000000201674000 CR4: 00000000003406e0
Sep 14 23:00:05 archlinux kernel: Call Trace:
Sep 14 23:00:05 archlinux kernel:  dc_commit_updates_for_stream+0x91b/0xc20 [amdgpu]
Sep 14 23:00:05 archlinux kernel:  amdgpu_dm_atomic_commit_tail+0xabe/0x19a0 [amdgpu]
Sep 14 23:00:05 archlinux kernel:  ? commit_tail+0x3c/0x70 [drm_kms_helper]
Sep 14 23:00:05 archlinux kernel:  commit_tail+0x3c/0x70 [drm_kms_helper]
Sep 14 23:00:05 archlinux kernel:  process_one_work+0x1d1/0x3e0
Sep 14 23:00:05 archlinux kernel:  worker_thread+0x4a/0x3d0
Sep 14 23:00:05 archlinux kernel:  kthread+0xfb/0x130
Sep 14 23:00:05 archlinux kernel:  ? process_one_work+0x3e0/0x3e0
Sep 14 23:00:05 archlinux kernel:  ? kthread_park+0x80/0x80
Sep 14 23:00:05 archlinux kernel:  ret_from_fork+0x22/0x40
Sep 14 23:00:05 archlinux kernel: ---[ end trace f9a7093f9e5a0b3d ]---
Sep 14 23:00:05 archlinux kernel: [drm] pstate TEST_DEBUG_DATA: 0x36F60000
Sep 14 23:00:05 archlinux kernel: ------------[ cut here ]------------
Sep 14 23:00:05 archlinux kernel: WARNING: CPU: 0 PID: 1170 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:854 dcn10_verify_allow_pstate_change_high.cold+0xc/0x229 [amdgpu]
Sep 14 23:00:05 archlinux kernel: Modules linked in: rfcomm ccm bnep hid_logitech_hidpp mousedev joydev amdgpu edac_mce_amd kvm_amd ccp arc4 kvm hid_multitouch hid_logitech_dj rtwpci rtw88 btusb uvcvideo btrtl btbcm irqbypass btintel vi>
Sep 14 23:00:05 archlinux kernel:  mac_hid pcc_cpufreq acpi_cpufreq vboxnetflt(OE) vboxnetadp(OE) vboxpci(OE) vboxdrv(OE) crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc mmc_core serio_raw atkbd libp>
Sep 14 23:00:05 archlinux kernel: CPU: 0 PID: 1170 Comm: kworker/u32:46 Tainted: G        W  OE     5.2.14-arch2-1-ARCH #1
Sep 14 23:00:05 archlinux kernel: Hardware name: HP HP ENVY x360 Convertible 15-cp0xxx/8497, BIOS F.19 08/20/2018
Sep 14 23:00:05 archlinux kernel: Workqueue: events_unbound commit_work [drm_kms_helper]
Sep 14 23:00:05 archlinux kernel: RIP: 0010:dcn10_verify_allow_pstate_change_high.cold+0xc/0x229 [amdgpu]
Sep 14 23:00:05 archlinux kernel: Code: 83 c8 ff e9 08 80 f9 ff 48 c7 c7 a8 d0 2e c1 e8 3b a7 2a f8 0f 0b 83 c8 ff e9 f2 7f f9 ff 48 c7 c7 a8 d0 2e c1 e8 25 a7 2a f8 <0f> 0b 80 bb 93 01 00 00 00 75 05 e9 dc a5 f9 ff 48 8b 83 80 02 00
Sep 14 23:00:05 archlinux kernel: RSP: 0018:ffff9d468378faf8 EFLAGS: 00010246
Sep 14 23:00:05 archlinux kernel: RAX: 0000000000000024 RBX: ffff97910e1dc000 RCX: 0000000000000000
Sep 14 23:00:05 archlinux kernel: RDX: 0000000000000000 RSI: 0000000000000096 RDI: 00000000ffffffff
Sep 14 23:00:05 archlinux kernel: RBP: ffff97910e1dc000 R08: 00000000000238be R09: 0000000000000001
Sep 14 23:00:05 archlinux kernel: R10: 0000000000000000 R11: 0000000000000001 R12: ffff979114be81b8
Sep 14 23:00:05 archlinux kernel: R13: 0000000000000000 R14: ffff979114be81b8 R15: 0000000000000004
Sep 14 23:00:05 archlinux kernel: FS:  0000000000000000(0000) GS:ffff979117a00000(0000) knlGS:0000000000000000
Sep 14 23:00:05 archlinux kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 14 23:00:05 archlinux kernel: CR2: 00007f1d9f05e000 CR3: 000000021310a000 CR4: 00000000003406f0
Sep 14 23:00:05 archlinux kernel: Call Trace:
Sep 14 23:00:05 archlinux kernel:  dcn10_pipe_control_lock.part.0+0x69/0x70 [amdgpu]
Sep 14 23:00:05 archlinux kernel:  dc_commit_updates_for_stream+0x84c/0xc20 [amdgpu]
Sep 14 23:00:05 archlinux kernel:  amdgpu_dm_atomic_commit_tail+0xabe/0x19a0 [amdgpu]
Sep 14 23:00:05 archlinux kernel:  ? commit_tail+0x3c/0x70 [drm_kms_helper]
Sep 14 23:00:05 archlinux kernel:  commit_tail+0x3c/0x70 [drm_kms_helper]
Sep 14 23:00:05 archlinux kernel:  process_one_work+0x1d1/0x3e0
Sep 14 23:00:05 archlinux kernel:  worker_thread+0x4a/0x3d0
Sep 14 23:00:05 archlinux kernel:  kthread+0xfb/0x130
Sep 14 23:00:05 archlinux kernel:  ? process_one_work+0x3e0/0x3e0
Sep 14 23:00:05 archlinux kernel:  ? kthread_park+0x80/0x80
Sep 14 23:00:05 archlinux kernel:  ret_from_fork+0x22/0x40
Sep 14 23:00:05 archlinux kernel: ---[ end trace f9a7093f9e5a0b3e ]---
Sep 14 23:00:05 archlinux kernel: [drm] pstate TEST_DEBUG_DATA: 0x36F60000
Sep 14 23:00:05 archlinux kernel: ------------[ cut here ]------------

Offline

#43 2019-09-15 08:16:47

dimischiavone
Member
From: Turin
Registered: 2019-09-13
Posts: 3

Re: Black screen on lid open

@Charles_Carmichael i have the same setup as you on my t495s but resuming from suspend works fine with this kernel. I noticed that i have the same output as you for hibernating though.
Edit: I replaced sddm + kde plasma with gdm + gnome on the same kernel and now i can succesfully hibernate and suspend with no problems.

Last edited by dimischiavone (Yesterday 21:35:29)

Offline

#44 Today 21:37:01

adim
Member
Registered: 2016-09-04
Posts: 12

Re: Black screen on lid open

Probably best to report this to the amdgpu kernel bugtracker where AMD devs can actually see this, I already made a report on https://bugs.freedesktop.org/show_bug.cgi?id=111244 but there's a few other possibly related ones.


ThinkPad E560, ThinkPad T495s
Desktop: Intel Core i7 2600 | 32GB DDR3 1600Mhz | AMD Radeon RX480 8GB | 512GB Samsung 850 PRO | 3TB HDD | 500GB HDD

Offline

Board footer

Powered by FluxBB