Periodic black frames and stutter [Failed to post KMS update: drmModeAddFB does not support format 'AR24' (0x34325241)]

Bug #1988859 reported by Dominic Parry
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mesa
Fix Released
Unknown
Mutter
Fix Released
Unknown
mesa (Ubuntu)
Fix Released
Medium
Unassigned
mutter (Ubuntu)
Fix Released
Medium
Daniel van Vugt

Bug Description

Every so often, the desktop will go black and then re appear on Ubuntu 22.10 Wayland Session which should not be occurring (this does not happen on 22.04.) Note that only the cursor can be seen.

Reporting this before release so that it can be patched for (at least) the RasPi.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: gnome-shell 43~beta-1ubuntu2
ProcVersionSignature: Ubuntu 5.19.0-1001.3-raspi 5.19.0-rc8
Uname: Linux 5.19.0-1001-raspi aarch64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp
ApportVersion: 2.23.0-0ubuntu1
Architecture: arm64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep 6 16:10:37 2022
DisplayManager: gdm3
ImageMediaBuild: 20220826
RelatedPackageVersions: mutter-common 43~beta-3ubuntu2
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dominic Parry (nothingconspicuous) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

The attached log seems to explain the problem perfectly:

[10185.511277] rpi4b gnome-shell[2551]: Failed to post KMS update: drmModeAddFB does not support format 'AR24' (0x34325241)
[10185.547140] rpi4b gnome-shell[2551]: Page flip discarded: drmModeAddFB does not support format 'AR24' (0x34325241)
[10185.547707] rpi4b gnome-shell[2551]: Failed to post KMS update: drmModeAddFB does not support format 'AR24' (0x34325241)
[10185.548506] rpi4b gnome-shell[2551]: Page flip discarded: drmModeAddFB does not support format 'AR24' (0x34325241)
[10185.549013] rpi4b gnome-shell[2551]: Failed to post KMS update: drmModeAddFB does not support format 'AR24' (0x34325241)
[10185.549464] rpi4b gnome-shell[2551]: Page flip discarded: drmModeAddFB does not support format 'AR24' (0x34325241)
[10185.558077] rpi4b gnome-shell[2551]: Failed to post KMS update: drmModeAddFB does not support format 'AR24' (0x34325241)

tags: added: raspi raspi-gfx
affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
summary: - Constant short periodic loss of desktop
+ Constant short periodic loss of desktop [Failed to post KMS update:
+ drmModeAddFB does not support format 'AR24' (0x34325241)]
Changed in mutter:
status: Unknown → New
tags: added: rls-kk-incoming
Changed in mutter (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: New → In Progress
summary: - Constant short periodic loss of desktop [Failed to post KMS update:
- drmModeAddFB does not support format 'AR24' (0x34325241)]
+ Periodic frame stutter [Failed to post KMS update: drmModeAddFB does not
+ support format 'AR24' (0x34325241)]
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The reason I call this Medium and not Low is because the bug is preventing cursor usage during full screen apps. It's the cursor updates that are causing the full screen updates to fail and flicker.

summary: - Periodic frame stutter [Failed to post KMS update: drmModeAddFB does not
- support format 'AR24' (0x34325241)]
+ Periodic black frames and stutter [Failed to post KMS update:
+ drmModeAddFB does not support format 'AR24' (0x34325241)]
Changed in mutter (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Added a mesa task because all debugging so far points to a bug in Mesa (vc4 and panfrost):

https://gitlab.gnome.org/GNOME/mutter/-/issues/2379

Changed in mesa (Ubuntu):
importance: Undecided → Medium
Changed in mesa:
status: Unknown → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I don't want to be waiting indefinitely for Mesa to get fixed (which is GNOME's position right now) so have proposed a patch for Ubuntu: https://salsa.debian.org/gnome-team/mutter/-/merge_requests/86

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Likely (the proper) fix committed to mesa in:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20397

Changed in mesa (Ubuntu):
status: New → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Workaround committed to mutter for the next lunar update, whenever that may be.

https://salsa.debian.org/gnome-team/mutter/-/commit/d615363fa9

Changed in mutter (Ubuntu):
status: In Progress → Fix Committed
tags: added: fixed-in-mesa-22.3.3 fixed-upstream
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 43.2-5ubuntu1

---------------
mutter (43.2-5ubuntu1) lunar; urgency=medium

  * Merge with Debian. Remaining change:
    - Add x11-Add-support-for-fractional-scaling-using-Randr.patch

mutter (43.2-5) unstable; urgency=medium

  [ Daniel van Vugt ]
  * Update Support-Dynamic-triple-double-buffering.patch.
    Fix tearing on monitors attached to secondary GPUs (LP: #1999216)
  * Add patch for cursor-renderer-native to workaround broken arm64 drivers.
    By forcing cursors to use dumb buffers. At least until Mesa gets fixed
    for panfrost, vc4, v3d... (LP: #1988859)

 -- Jeremy Bicha <email address hidden> Mon, 23 Jan 2023 11:44:41 -0500

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

This bug was fixed in the package mesa - 22.3.6-1ubuntu1

---------------
mesa (22.3.6-1ubuntu1) lunar; urgency=medium

  * Merge from Debian.
  * rules: Drop i386 from RUSTICL_ARCHS.

mesa (22.3.6-1) unstable; urgency=medium

  * New upstream release. (Closes: #1029731)

mesa (22.3.5-1) unstable; urgency=medium

  * New upstream release.

 -- Timo Aaltonen <email address hidden> Tue, 28 Feb 2023 21:57:55 +0200

Changed in mesa (Ubuntu):
status: Triaged → Fix Released
Changed in mesa:
status: New → Fix Released
Changed in mutter:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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