Skip to contentSkip to conversation

i915: screen flicker

DISCUSSION Mihai Donțu 3 participants 8 messages Apr 26, 2016 – Apr 28, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I noticed that since I started using 4.6.0-rcX, my screen flickers once or twice after I stop using my laptop for ~1min or so. Given the behavior, my prime suspect is the PSR feature that you have announced for this release:

http://blog.ffwll.ch/2016/03/neat-drmi915-stuff-for-46.html

Is 'enable_psr' the right knob to use to turn this feature off and see if my suspicions are correct? Or is there a patch floating around that I can test?

I have an Intel i7-4600U CPU. I also attached to this email and archive with the contents of /sys/kernel/debug/dri/0.

Thank you,

Signature · 1 line
Mihai Donțu

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#1 lore raw
Quoted 7 lines · Mihai Donțu

Hi,

I noticed that since I started using 4.6.0-rcX, my screen flickers once or twice after I stop using my laptop for ~1min or so. Given the behavior, my prime suspect is the PSR feature that you have announced for this release:

Quoted 5 lines

http://blog.ffwll.ch/2016/03/neat-drmi915-stuff-for-46.html

Is 'enable_psr' the right knob to use to turn this feature off and see if my suspicions are correct? Or is there a patch floating around that I can test?

i915.enable_psr=0 is the one to try, yes.

BR,
Jani.

Quoted 5 lines

I have an Intel i7-4600U CPU. I also attached to this email and archive with the contents of /sys/kernel/debug/dri/0.

Thank you,

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
Quoted 6 lines · On Wed, 27 Apr 2016 10:09:32 +0300 Jani Nikula wrote:
Quoted 5 lines · Mihai Donțu

I noticed that since I started using 4.6.0-rcX, my screen flickers once or twice after I stop using my laptop for ~1min or so. Given the behavior, my prime suspect is the PSR feature that you have announced for this release:

Quoted 7 lines
Quoted 5 lines

http://blog.ffwll.ch/2016/03/neat-drmi915-stuff-for-46.html

Is 'enable_psr' the right knob to use to turn this feature off and see if my suspicions are correct? Or is there a patch floating around that I can test?

i915.enable_psr=0 is the one to try, yes.

I can confirm that with PSR off, the flicker goes away.

Quoted 2 lines
Quoted 2 lines

I have an Intel i7-4600U CPU. I also attached to this email and archive with the contents of /sys/kernel/debug/dri/0.

Signature · 5 lines
Mihai Donțu
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#3 lore raw
Quoted 9 lines · Mihai Donțu
Quoted 8 lines · On Wed, 27 Apr 2016 10:09:32 +0300 Jani Nikula wrote:
Quoted 7 lines · Mihai Donțu

I noticed that since I started using 4.6.0-rcX, my screen flickers once or twice after I stop using my laptop for ~1min or so. Given the behavior, my prime suspect is the PSR feature that you have announced for this release:

http://blog.ffwll.ch/2016/03/neat-drmi915-stuff-for-46.html

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Is 'enable_psr' the right knob to use to turn this feature off and see if my suspicions are correct? Or is there a patch floating around that I can test?

i915.enable_psr=0 is the one to try, yes.

I can confirm that with PSR off, the flicker goes away.

Please file a bug at [1] and assign to Rodrigo (Cc'd).

BR,
Jani.

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

Hi Mihai,

What platform do you have? HSW or BDW?
If you don't know please provide lspci -nn

What happens if you boot with i915.enable_psr=2?

In case it helps, could you please boot with default i915.enable_psr=-1 appying this patch to your kernel to know what your VBT recommends:

(quoted diff) +0 -0

b/drivers/gpu/drm/i915/intel_psr.c
index c3abae4..68bc405 100644

drivers/gpu/drm/i915/intel_psr.c +0 -0
@@ -798,6 +798,8 @@ void intel_psr_init(struct drm_device *dev)
                /* For new platforms let's respect VBT back again */
                dev_priv->psr.link_standby =

dev_priv->vbt.psr.full_link;

+ DRM_ERROR("PSR: VBT recommends link_standby %d, using %d\n",
dev_priv->vbt.psr.full_link, dev_priv->psr.link_standby); +

        /* Override link_standby x link_off defaults */
        if (i915.enable_psr == 2 && !dev_priv->psr.link_standby) {
                DRM_DEBUG_KMS("PSR: Forcing link standby\n");

//Thanks
//Rodrigo.

Quoted 28 lines · Jani Nikula
Quoted 9 lines · Mihai Donțu
Quoted 8 lines · On Wed, 27 Apr 2016 10:09:32 +0300 Jani Nikula wrote:
Quoted 7 lines · Mihai Donțu

I noticed that since I started using 4.6.0-rcX, my screen flickers once or twice after I stop using my laptop for ~1min or so. Given the behavior, my prime suspect is the PSR feature that you have announced for this release:

http://blog.ffwll.ch/2016/03/neat-drmi915-stuff-for-46.html

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Is 'enable_psr' the right knob to use to turn this feature off and see if my suspicions are correct? Or is there a patch floating around that I can test?

i915.enable_psr=0 is the one to try, yes.

I can confirm that with PSR off, the flicker goes away.

Please file a bug at [1] and assign to Rodrigo (Cc'd).

BR,
Jani.

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel

--
Jani Nikula, Intel Open Source Technology Center

Signature · 6 lines
Rodrigo Vivi
Blog: http://blog.vivi.eng.br
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw
Quoted 3 lines · On Wed, 27 Apr 2016 08:28:20 -0700 Rodrigo Vivi wrote:

Hi Mihai,

What platform do you have? HSW or BDW?

I have an i7, Haswell CPU.

Quoted 1 line

If you don't know please provide lspci -nn

I have attached the output of lspci, just in case. :-)

Quoted 1 line

What happens if you boot with i915.enable_psr=2?

I'll try now.

Quoted 17 lines

In case it helps, could you please boot with default i915.enable_psr=-1 appying this patch to your kernel to know what your VBT recommends:

drivers/gpu/drm/i915/intel_psr.c +2 -0
index c3abae4..68bc405 100644
@@ -798,6 +798,8 @@ void intel_psr_init(struct drm_device *dev)
                /* For new platforms let's respect VBT back again */
                dev_priv->psr.link_standby =
 dev_priv->vbt.psr.full_link;
 
+       DRM_ERROR("PSR: VBT recommends link_standby %d, using %d\n",
 dev_priv->vbt.psr.full_link, dev_priv->psr.link_standby);
+
        /* Override link_standby x link_off defaults */
Quoted 3 lines
        if (i915.enable_psr == 2 && !dev_priv->psr.link_standby) {
                DRM_DEBUG_KMS("PSR: Forcing link standby\n");

I applied your patch and booted with enable_psr=-1

[    0.763651] [drm:intel_psr_init] *ERROR* PSR: VBT recommends link_standby 0, using 0
Signature · 1 line
Mihai Donțu

00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 0b)
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b) 00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 0b) 00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)
00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04) 00:16.3 Serial controller [0700]: Intel Corporation 8 Series HECI KT [8086:9c3d] (rev 04)
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I218-LM [8086:155a] (rev 04) 00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04) 00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 1 [8086:9c10] (rev e4) 00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 4 [8086:9c16] (rev e4) 00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 [8086:9c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04) 00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 73)

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
Quoted 7 lines · On Wed, 27 Apr 2016 20:36:13 +0300 Mihai Donțu wrote:
Quoted 3 lines · On Wed, 27 Apr 2016 08:28:20 -0700 Rodrigo Vivi wrote:

Hi Mihai,

What platform do you have? HSW or BDW?

I have an i7, Haswell CPU.

Quoted 7 lines
Quoted 1 line

If you don't know please provide lspci -nn

I have attached the output of lspci, just in case. :-)

Quoted 1 line

What happens if you boot with i915.enable_psr=2?

I'll try now.

The behaviour is worse now. The screen flickers every couple of seconds.

Quoted 24 lines
Quoted 17 lines

In case it helps, could you please boot with default i915.enable_psr=-1 appying this patch to your kernel to know what your VBT recommends:

drivers/gpu/drm/i915/intel_psr.c +2 -0
index c3abae4..68bc405 100644
@@ -798,6 +798,8 @@ void intel_psr_init(struct drm_device *dev)
                /* For new platforms let's respect VBT back again */
                dev_priv->psr.link_standby =
 dev_priv->vbt.psr.full_link;
 
+       DRM_ERROR("PSR: VBT recommends link_standby %d, using %d\n",
 dev_priv->vbt.psr.full_link, dev_priv->psr.link_standby);
+
        /* Override link_standby x link_off defaults */
Quoted 3 lines
        if (i915.enable_psr == 2 && !dev_priv->psr.link_standby) {
                DRM_DEBUG_KMS("PSR: Forcing link standby\n");

I applied your patch and booted with enable_psr=-1

[    0.763651] [drm:intel_psr_init] *ERROR* PSR: VBT recommends link_standby 0, using 0
Signature · 5 lines
Mihai Donțu
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#7 lore raw
Quoted 10 lines · Mihai Donțu
Quoted 9 lines · On Wed, 27 Apr 2016 20:36:13 +0300 Mihai Donțu wrote:
Quoted 3 lines · On Wed, 27 Apr 2016 08:28:20 -0700 Rodrigo Vivi wrote:

Hi Mihai,

What platform do you have? HSW or BDW?

I have an i7, Haswell CPU.

Quoted 1 line

If you don't know please provide lspci -nn

Quoted 7 lines
Quoted 5 lines

I have attached the output of lspci, just in case. :-)

Quoted 1 line

What happens if you boot with i915.enable_psr=2?

I'll try now.

The behaviour is worse now. The screen flickers every couple of seconds.

Another report, please move the discussion there:

https://bugs.freedesktop.org/show_bug.cgi?id=95176

Thanks,
Jani.

Quoted 25 lines
Quoted 25 lines
Quoted 18 lines

In case it helps, could you please boot with default i915.enable_psr=-1 appying this patch to your kernel to know what your VBT recommends:

drivers/gpu/drm/i915/intel_psr.c +2 -0
index c3abae4..68bc405 100644
@@ -798,6 +798,8 @@ void intel_psr_init(struct drm_device *dev)
                /* For new platforms let's respect VBT back again */
                dev_priv->psr.link_standby =
 dev_priv->vbt.psr.full_link;
 
+       DRM_ERROR("PSR: VBT recommends link_standby %d, using %d\n",
 dev_priv->vbt.psr.full_link, dev_priv->psr.link_standby);
+
        /* Override link_standby x link_off defaults */
Quoted 3 lines
        if (i915.enable_psr == 2 && !dev_priv->psr.link_standby) {
                DRM_DEBUG_KMS("PSR: Forcing link standby\n");

I applied your patch and booted with enable_psr=-1

[    0.763651] [drm:intel_psr_init] *ERROR* PSR: VBT recommends link_standby 0, using 0
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel