Re: [Intel-gfx] screen freeze with 5.2-rc6 Dell XPS-13 skylake i915

From: James Bottomley
Date: Thu Jul 11 2019 - 18:38:47 EST


On Thu, 2019-07-11 at 22:26 +0000, Souza, Jose wrote:
> On Thu, 2019-07-11 at 14:57 -0700, James Bottomley wrote:
> > On Thu, 2019-07-11 at 13:28 -0700, James Bottomley wrote:
> > > I've also updated to the released 5.2 kernel and am running with
> > > the
> > > debug parameters you requested ... but so far no reproduction.
> >
> > OK, it's happened.ÂÂI've attached the dmesg (it's 4MB
> > uncompressed).Â
> > Is there any other output you'd like from the machine?ÂÂI've got an
> > ssh session into it so I can try anything.
>
> Thanks, could you also share the output of this after the screen
> freeze?
>
> /sys/kernel/debug/dri/0/i915_edp_psr_status
> /sys/kernel/debug/dri/0/i915_display_info
> /sys/kernel/debug/dri/0/i915_dmc_info
> /sys/kernel/debug/pmc_core/package_cstate_show

jarvis:~ # for f in `cat ~/tmp.txt`; do echo $f; cat $f; done
/sys/kernel/debug/dri/0/i915_edp_psr_status
Sink support: yes [0x01]
PSR mode: PSR1 enabled
Source PSR ctl: disabled [0x01f00726]
Source PSR status: IDLE [0x04010216]
Busy frontbuffer bits: 0x00000001
/sys/kernel/debug/dri/0/i915_display_info
CRTC info
---------
CRTC 47: pipe: A, active=yes, (size=3200x1800), dither=no, bpp=24
ÂÂÂÂÂÂÂÂfb: 118, pos: 0x0, size: 3200x1800
ÂÂÂÂÂÂÂÂencoder 84: type: DDI A, connectors:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂconnector 85: type: eDP-1, status: connected, mode:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"": 0 373250 3200 3248 3280 3360 1800 1803 1808 1852
0x0 0xa
ÂÂÂÂÂÂÂÂcursor visible? yes, position (-3, 261), size 256x256, addr
0x01740000
ÂÂÂÂÂÂÂÂnum_scalers=2, scaler_users=0 scaler_id=-1, scalers[0]: use=no,
mode=0, scalers[1]: use=no, mode=0
ÂÂÂÂÂÂÂÂ--Plane id 30: type=PRI, crtc_pos=ÂÂÂ0xÂÂÂ0,
crtc_size=3200x1800, src_pos=0.0000x0.0000,
src_size=3200.0000x1800.0000, format=XR24 little-endian (0x34325258),
rotation=0 (0x00000001)
ÂÂÂÂÂÂÂÂ--Plane id 37: type=OVL, crtc_pos=ÂÂÂ0xÂÂÂ0,
crtc_size=ÂÂÂ0xÂÂÂ0, src_pos=0.0000x0.0000, src_size=0.0000x0.0000,
format=N/A, rotation=0 (0x00000001)
ÂÂÂÂÂÂÂÂ--Plane id 44: type=CUR, crtc_pos=ÂÂ-3x 261, crtc_size= 256x
256, src_pos=0.0000x0.0000, src_size=256.0000x256.0000, format=AR24
little-endian (0x34325241), rotation=0 (0x00000001)
ÂÂÂÂÂÂÂÂunderrun reporting: cpu=yes pch=yesÂ
CRTC 65: pipe: B, active=yes, (size=1600x1200), dither=no, bpp=24
ÂÂÂÂÂÂÂÂfb: 118, pos: 0x0, size: 3200x1800
ÂÂÂÂÂÂÂÂencoder 90: type: DDI B, connectors:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂconnector 91: type: DP-1, status: connected, mode:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"": 0 162000 1600 1664 1856 2160 1200 1201 1204 1250
0x0 0x5
ÂÂÂÂÂÂÂÂcursor visible? yes, position (-3, 261), size 256x256, addr
0x017c0000
ÂÂÂÂÂÂÂÂnum_scalers=2, scaler_users=0 scaler_id=-1, scalers[0]: use=no,
mode=0, scalers[1]: use=no, mode=0
ÂÂÂÂÂÂÂÂ--Plane id 48: type=PRI, crtc_pos=ÂÂÂ0xÂÂÂ0,
crtc_size=1600x1200, src_pos=0.0000x0.0000,
src_size=1600.0000x1200.0000, format=XR24 little-endian (0x34325258),
rotation=0 (0x00000001)
ÂÂÂÂÂÂÂÂ--Plane id 55: type=OVL, crtc_pos=ÂÂÂ0xÂÂÂ0,
crtc_size=ÂÂÂ0xÂÂÂ0, src_pos=0.0000x0.0000, src_size=0.0000x0.0000,
format=N/A, rotation=0 (0x00000001)
ÂÂÂÂÂÂÂÂ--Plane id 62: type=CUR, crtc_pos=ÂÂ-3x 261, crtc_size= 256x
256, src_pos=0.0000x0.0000, src_size=256.0000x256.0000, format=AR24
little-endian (0x34325241), rotation=0 (0x00000001)
ÂÂÂÂÂÂÂÂunderrun reporting: cpu=yes pch=yesÂ
CRTC 83: pipe: C, active=no, (size=0x0), dither=no, bpp=0
ÂÂÂÂÂÂÂÂunderrun reporting: cpu=yes pch=yesÂ

Connector info
--------------
connector 85: type eDP-1, status: connected
ÂÂÂÂÂÂÂÂphysical dimensions: 290x170mm
ÂÂÂÂÂÂÂÂsubpixel order: Unknown
ÂÂÂÂÂÂÂÂCEA rev: 0
ÂÂÂÂÂÂÂÂDPCD rev: 12
ÂÂÂÂÂÂÂÂaudio support: no
ÂÂÂÂÂÂÂÂfixed mode:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"3200x1800": 60 373250 3200 3248 3280 3360 1800 1803
1808 1852 0x48 0xa
ÂÂÂÂÂÂÂÂDP branch device present: no
ÂÂÂÂÂÂÂÂmodes:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"3200x1800": 60 373250 3200 3248 3280 3360 1800 1803
1808 1852 0x48 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"3200x1800": 48 298600 3200 3248 3280 3360 1800 1803
1808 1852 0x40 0xa
connector 91: type DP-1, status: connected
ÂÂÂÂÂÂÂÂphysical dimensions: 430x320mm
ÂÂÂÂÂÂÂÂsubpixel order: Unknown
ÂÂÂÂÂÂÂÂCEA rev: 0
ÂÂÂÂÂÂÂÂDPCD rev: 12
ÂÂÂÂÂÂÂÂaudio support: no
ÂÂÂÂÂÂÂÂDP branch device present: yes
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂType: VGA
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂID:Â
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂHW: 0.0
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂSW: 1.0
ÂÂÂÂÂÂÂÂmodes:
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1600x1200": 60 162000 1600 1664 1856 2160 1200 1201
1204 1250 0x48 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1400x1050": 75 156000 1400 1504 1648 1896 1050 1053
1057 1099 0x40 0x6
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1400x1050": 60 121750 1400 1488 1632 1864 1050 1053
1057 1089 0x40 0x6
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1280x1024": 75 135000 1280 1296 1440 1688 1024 1025
1028 1066 0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1280x1024": 60 108000 1280 1328 1440 1688 1024 1025
1028 1066 0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1280x960": 60 108000 1280 1376 1488 1800 960 961 964
1000 0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1152x864": 75 108000 1152 1216 1344 1600 864 865 868
900 0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1024x768": 75 78750 1024 1040 1136 1312 768 769 772
800 0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1024x768": 70 75000 1024 1048 1184 1328 768 771 777
806 0x40 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"1024x768": 60 65000 1024 1048 1184 1344 768 771 777
806 0x40 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"832x624": 75 57284 832 864 928 1152 624 625 628 667
0x40 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"800x600": 75 49500 800 816 896 1056 600 601 604 625
0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"800x600": 72 50000 800 856 976 1040 600 637 643 666
0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"800x600": 60 40000 800 840 968 1056 600 601 605 628
0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"800x600": 56 36000 800 824 896 1024 600 601 603 625
0x40 0x5
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"640x480": 75 31500 640 656 720 840 480 481 484 500
0x40 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"640x480": 73 31500 640 664 704 832 480 489 492 520
0x40 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"640x480": 67 30240 640 704 768 864 480 483 486 525
0x40 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"640x480": 60 25175 640 656 752 800 480 490 492 525
0x40 0xa
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ"720x400": 70 28320 720 738 846 900 400 412 414 449
0x40 0x6
connector 98: type HDMI-A-1, status: disconnected
connector 105: type DP-2, status: disconnected
connector 111: type HDMI-A-2, status: disconnected
/sys/kernel/debug/dri/0/i915_dmc_info
fw loaded: yes
path: i915/skl_dmc_ver1_27.bin
version: 1.27
DC3 -> DC5 count: 1226
DC5 -> DC6 count: 0
program base: 0x09004040
ssp base: 0x00002fc0
htp: 0x00b40068
/sys/kernel/debug/pmc_core/package_cstate_show
Package C2 : 0x5055eddc7d0
Package C3 : 0xee561ada80
Package C6 : 0xb038cdcfd0
Package C7 : 0x195c61800
Package C8 : 0x8a5a9fd25a0
Package C9 : 0x0
Package C10 : 0x0

> It eventually comes back from screen freeze? Like moving the mouse or
> typing brings it back?

No, it seems to be frozen for all time (at least until I got bored
waiting, which was probably 20 minutes). Even if I reboot the machine,
the current screen state stays until the system powers off.

I've actually got a VGA display plugged in over a USB-C to VGA
converter and that's working fine in mirrored mode even as the panel is
completely frozen.

James