screen flicker after PSR2 enabled

Bug #2007516 reported by Kai-Chuan Hsieh
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
Undecided
Unassigned
Linux
Unknown
Unknown
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Invalid
Undecided
Unassigned
Kinetic
Fix Released
High
Kai-Heng Feng
Lunar
Fix Released
Undecided
Unassigned
linux-oem-6.1 (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Kinetic
Invalid
Undecided
Unassigned
Lunar
Invalid
Undecided
Unassigned

Bug Description

The screen flicker after ubuntu jammy upgrade kernel to 5.19.

The enable_psr2_sel_fetch was disabled in 5.15 kernel but enabled in 5.19 kernel.

I try to add "options i915 enable_psr2_sel_fetch=0" to modprobe config can omit the issue.

description: updated
description: updated
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

Upload the apport log.

tags: added: jellyfish-tentacool
Timo Aaltonen (tjaalton)
no longer affects: linux-meta-hwe-5.19 (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2007516

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Kinetic):
status: New → Incomplete
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Re: XPS 9320 screen flicker on UHD panel 3840x2400

please test newer kernels, like oem-6.0, oem-6.1..

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

linux-oem-6.1 has the issue.

Timo Aaltonen (tjaalton)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu Kinetic):
status: Incomplete → Confirmed
Timo Aaltonen (tjaalton)
Changed in linux-oem-6.1 (Ubuntu):
status: New → Invalid
Changed in linux (Ubuntu Jammy):
status: New → Invalid
Changed in linux-oem-6.1 (Ubuntu Kinetic):
status: New → Invalid
Changed in linux-oem-6.1 (Ubuntu Jammy):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

- Which mode does Windows use? PSR1 or PSR2?
- Does the panel generate IRQ correctly under Windows?

Rex Tsai (chihchun)
tags: added: ubuntu-certified
Changed in linux (Ubuntu Kinetic):
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Rex Tsai (chihchun)
tags: added: regression-update
Changed in linux-oem-6.1 (Ubuntu Jammy):
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Changed in linux-oem-6.1 (Ubuntu Jammy):
assignee: Kai-Heng Feng (kaihengfeng) → nobody
Changed in linux (Ubuntu Kinetic):
assignee: Kai-Heng Feng (kaihengfeng) → nobody
Revision history for this message
Anthony Wong (anthonywong) wrote :
Changed in linux (Ubuntu Kinetic):
importance: Undecided → High
assignee: nobody → Kai-Heng Feng (kaihengfeng)
tags: added: oem-priority originate-from-2002986 somerville
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Changed in linux (Ubuntu Kinetic):
status: Confirmed → Fix Committed
Revision history for this message
Colin M (cmac1221) wrote :

(End User: https://askubuntu.com/questions/1455925/dell-xps-13-plus-9320-horizontal-lines-static-after-installing-latest-release)

Test kernel did not correct the issue on my machine.
https://people.canonical.com/~khfeng/lp2007516/jammy-5.19/

  OPERATING SYSTEM: Ubuntu 22.04
    Kernel: 5.19.0-1035-generic (x86_64)

 GRAPHICS: Intel ADL GT2 31GB
    Frequency: 1400MHz
    OpenGL: 4.6 Mesa 22.2.5
    Vulkan: 1.3.224
    Screen: 1920x1200

  MOTHERBOARD: Dell 0CW9KM
    BIOS Version: 1.11.0

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

reply #8,

Could you dump the eDP PSR status?
# cat /sys/kernel/debug/dri/0/i915_edp_psr_status

Have you tried the driver parameter "options i915 enable_psr2_sel_fetch=0"? Does it work for you?

The patch is created by applying quirk for Dell machine [1], I'd like to check if it indeed take effect on your platform, could you dump lspci output by
$ lspci -nnvv

[1] https://patchwork.freedesktop.org/patch/524182/?series=114400&rev=1

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

In addition to that, please test the following kernel _without_ any kernel parameter:
https://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/current/amd64/

Revision history for this message
Colin M (cmac1221) wrote :

eDP dump file

Revision history for this message
Colin M (cmac1221) wrote :

lspci dump file

Revision history for this message
Colin M (cmac1221) wrote :

So far the artifact has _not_ returned running: 6.2.0-060200rc2drmintelnext20230228-generic

I'm seeing overall good behavior with this kernel.

I will need more information/assistance on how to apply the quirk. Do I download the patch files and execute them, or do I edit the grub file as described here:

https://askubuntu.com/questions/1455653/horizontal-colored-lines-appearing-on-display-ubuntu-22-04

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Colin, can you please give this test kernel a try:
https://people.canonical.com/~khfeng/jammy-5.19-fast-wake/

Revision history for this message
Colin M (cmac1221) wrote :

The problem remains with the test kernel:
https://people.canonical.com/~khfeng/jammy-5.19-fast-wake/

Revision history for this message
Dmitry Pashkevich (dipish) wrote :

I am also experiencing this issue on a brand new Lenovo X1 Carbon Gen 10 with a regular HD screen (1920x1200). The workaround of disabling PSR via altering grub options worked for me:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0"

Should this bug description be generalized?

summary: - XPS 9320 screen flicker on UHD panel 3840x2400
+ screen flicker after PSR2 enabled
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Actually there are two bugs -
- The original reported issue [0] happens on Sharp panel model 5457. The issue is still unresolved.
- A more pervasive issue [1] that happens on more panels is resolved in drm-tip kernel. The fix is not in mainline yet.

As for Ubuntu kernel v5.19, in addition to fix for [1], we also need another PSR fix. This is in the test kernel, please give it a try if possible.

[0] https://gitlab.freedesktop.org/drm/intel/-/issues/7836
[1] https://gitlab.freedesktop.org/drm/intel/-/issues/7725

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-oem-6.1/6.1.0-1008.8 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-oem-6.1 verification-needed-jammy
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux/5.19.0-37.38 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-kinetic' to 'verification-done-kinetic'. If the problem still exists, change the tag 'verification-needed-kinetic' to 'verification-failed-kinetic'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-kinetic-linux verification-needed-kinetic
Revision history for this message
Colin M (cmac1221) wrote :

Kernel 5.19.0-3035-generic x86_64 has good behavior.

I have not seen the artifacts with this version while performing the typical workflow that normally caused it to manifest.

https://people.canonical.com/~khfeng/lp2002986-2/

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Thanks for testing. The backport is tracked in LP: #2009014.

Timo Aaltonen (tjaalton)
Changed in linux-oem-6.1 (Ubuntu Jammy):
status: Confirmed → Fix Committed
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

The kernel 5.19.0-37-generic fix issue on my XPS 9320 OLED panel, BIOS 2.0.0

tags: added: verification-done-jammy
removed: verification-needed-jammy
tags: added: verification-done-kinetic
removed: verification-needed-kinetic
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (15.0 KiB)

This bug was fixed in the package linux - 5.19.0-38.39

---------------
linux (5.19.0-38.39) kinetic; urgency=medium

  * kinetic/linux: 5.19.0-38.39 -proposed tracker (LP: #2012088)

  * NFS deathlock with last Kernel 5.4.0-144.161 and 5.15.0-67.74 (LP: #2009325)
    - NFS: Correct timing for assigning access cache timestamp

linux (5.19.0-37.38) kinetic; urgency=medium

  * kinetic/linux: 5.19.0-37.38 -proposed tracker (LP: #2008305)

  * XPS 9320 screen flicker on UHD panel 3840x2400 (LP: #2007516)
    - SAUCE: drm/i915/display/psr: Disable PSR2 sel fetch on panel SHP 5457

  * Fix speaker mute hotkey doesn't work on Dell G16 series (LP: #2003161)
    - platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table

  * net:cmsg_ipv6.sh from ubuntu_kernel_selftests failed with K-5.19
    (LP: #2000709)
    - selftest: net: Improve IPV6_TCLASS/IPV6_HOPLIMIT tests apparmor
      compatibility

  * rtcpie in timers from ubuntu_kernel_selftests randomly failing
    (LP: #1814234)
    - SAUCE: selftest: rtcpie: Force passing unreliable subtest

  * CVE-2023-0469
    - io_uring/filetable: fix file reference underflow

  * Improve arp_ndisc_evict_nocarrier.sh test result processing (LP: #2006546)
    - selftests: net: return non-zero for failures reported in
      arp_ndisc_evict_nocarrier

  * Make cm32181 sensor work after system suspend (LP: #1981773)
    - iio: light: cm32181: Add PM support

  * Fix Thunderbolt device hotplug fail when connect via thunderbolt dock
    (LP: #1991366)
    - PCI: Fix used_buses calculation in pci_scan_child_bus_extend()
    - PCI: Pass available buses even if the bridge is already configured
    - PCI: Move pci_assign_unassigned_root_bus_resources()
    - PCI: Fix whitespace and indentation
    - PCI: Fix typo in pci_scan_child_bus_extend()

  * arp_ndisc_evict_nocarrier.sh in net from ubuntu_kernel_selftests failed on
    J-oem-5.17 / K (LP: #1968310)
    - selftests: net: fix cleanup_v6() for arp_ndisc_evict_nocarrier

  * Screen freeze after resuming from suspend (nvme0: I/O timeout)
    (LP: #1996048)
    - PCI: vmd: Disable MSI remapping after suspend

  * RaptorLake: Fix the Screen is shaking by onboard HDMI port in mirror mode
    (LP: #1993561)
    - drm/i915/display: Drop check for doublescan mode in modevalid
    - drm/i915/display: Prune Interlace modes for Display >=12

  * udpgro_frglist.sh in net from ubuntu_kernel_selftests failed with K-5.19
    (Missing nat6to4 helper) (LP: #2000708)
    - selftests/net: mv bpf/nat6to4.c to net folder

  * selftests/.../nat6to4 breaks the selftests build (LP: #1996536)
    - selftests: net: Add cross-compilation support for BPF programs
    - selftests: net: Fix O=dir builds

  * CVE-2023-0266 // CVE-2023-0266 was assigned for this issue.
    - ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF

  * CVE-2022-4382
    - USB: gadgetfs: Fix race between mounting and unmounting

  * CVE-2022-2196
    - KVM: VMX: Execute IBPB on emulated VM-exit when guest has IBRS

  * ubuntu_kernel_selftests: net:udpgso_bench.sh failed (LP: #1951447)
    - selftests: net: udpgso_bench: Fix racing bug between the rx/tx programs

  * Kinetic update: upstream...

Changed in linux (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 6.2.0-18.18

---------------
linux (6.2.0-18.18) lunar; urgency=medium

  * lunar/linux: 6.2.0-18.18 -proposed tracker (LP: #2011750)

  * lunar/linux 6.2 fails to boot on arm64 (LP: #2011748)
    - SAUCE: Revert "efi: random: fix NULL-deref when refreshing seed"
    - SAUCE: Revert "efi: random: refresh non-volatile random seed when RNG is
      initialized"

 -- Andrea Righi <email address hidden> Wed, 15 Mar 2023 23:54:18 +0100

Changed in linux (Ubuntu Lunar):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (77.0 KiB)

This bug was fixed in the package linux-oem-6.1 - 6.1.0-1008.8

---------------
linux-oem-6.1 (6.1.0-1008.8) jammy; urgency=medium

  * jammy/linux-oem-6.1: 6.1.0-1008.8 -proposed tracker (LP: #2008352)

  * overlayfs mounts as R/O over idmapped mount (LP: #2009065)
    - SAUCE: overlayfs: handle idmapped mounts in ovl_do_(set|remove)xattr

  * Some QHD panels fail to refresh when PSR2 enabled (LP: #2009014)
    - SAUCE: drm/i915/psr: Use calculated io and fast wake lines

  * Fix mediatek wifi driver crash when loading wrong SAR table (LP: #2009118)
    - wifi: mt76: mt7921: fix error code of return in mt7921_acpi_read

  * Packaging resync (LP: #1786013)
    - [Packaging] update update.conf

  * Update dg2_dmc to 2.08 (LP: #1999375)
    - drm/i915/dmc: Update DG2 DMC version to v2.08

  * New DG2 workarounds (LP: #2006945)
    - drm/i915/dg2: Introduce Wa_18017747507
    - drm/i915/dg2: Introduce Wa_18018764978
    - drm/i915/dg2: Introduce Wa_18019271663

  * Screen backlight keeps in minimized and can't change it with amdgpu
    (LP: #2008871)
    - SAUCE: ACPI: video: Add backlight=native DMI quirk for Dell Vostro 15 3535

  * Remove all other acpi_video backlight interface on Dell AIO platforms
    (LP: #2008882)
    - SAUCE: ACPI: video: Dell AIO UART backlight detection

  * screen flicker after PSR2 enabled (LP: #2007516)
    - SAUCE: drm/i915/display/psr: Disable PSR2 sel fetch on panel SHP 5457

  * rtcpie in timers from ubuntu_kernel_selftests randomly failing
    (LP: #1814234)
    - SAUCE: selftest: rtcpie: Force passing unreliable subtest

  * Fix HFP mSBC support on Realtek Bluetooth USB controller (LP: #2007331)
    - Bluetooth: btrtl: Add btrealtek data struct
    - Bluetooth: btusb: Ignore zero length of USB packets on ALT 6 for specific
      chip

  * Jammy update: v6.1.14 upstream stable release (LP: #2008708)
    - drm/etnaviv: don't truncate physical page address
    - wifi: ath11k: fix warning in dma_free_coherent() of memory chunks while
      recovery
    - wifi: rtl8xxxu: gen2: Turn on the rate control
    - drm/edid: Fix minimum bpc supported with DSC1.2 for HDMI sink
    - clk: mxl: Switch from direct readl/writel based IO to regmap based IO
    - clk: mxl: Remove redundant spinlocks
    - clk: mxl: Add option to override gate clks
    - clk: mxl: Fix a clk entry by adding relevant flags
    - powerpc: dts: t208x: Mark MAC1 and MAC2 as 10G
    - clk: mxl: syscon_node_to_regmap() returns error pointers
    - sched/psi: Stop relying on timer_pending() for poll_work rescheduling
    - random: always mix cycle counter in add_latent_entropy()
    - scsi: libsas: Add smp_ata_check_ready_type()
    - scsi: hisi_sas: Fix SATA devices missing issue during I_T nexus reset
    - spi: mediatek: Enable irq when pdata is ready
    - docs: perf: Fix PMU instance name of hisi-pcie-pmu
    - KVM: x86: Fail emulation during EMULTYPE_SKIP on any exception
    - KVM: SVM: Skip WRMSR fastpath on VM-Exit if next RIP isn't valid
    - KVM: VMX: Execute IBPB on emulated VM-exit when guest has IBRS
    - can: kvaser_usb: hydra: help gcc-13 to figure out cmd_len
    - powerpc: dts: t208x: Disable 10G on MAC1 and MAC2
    - spi: mediatek: ...

Changed in linux-oem-6.1 (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-aws/5.19.0-1023.24 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-kinetic' to 'verification-done-kinetic'. If the problem still exists, change the tag 'verification-needed-kinetic' to 'verification-failed-kinetic'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-kinetic-linux-aws verification-needed-kinetic
removed: verification-done-kinetic
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-azure/5.19.0-1023.24 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-kinetic' to 'verification-done-kinetic'. If the problem still exists, change the tag 'verification-needed-kinetic' to 'verification-failed-kinetic'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-kinetic-linux-azure
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-nvidia-5.19/5.19.0-1009.9 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-jammy-linux-nvidia-5.19 verification-needed-jammy
removed: verification-done-jammy
Changed in hwe-next:
status: New → Fix Released
tags: added: fixed-linux-oem-6.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.