Issue Description:
I'm relatively new to Raspberry Pi development and have encountered an issue related to recent firmware or package updates affecting GPU driver performance.
I am building a custom Raspberry Pi OS image using pi-gen. Specifically, I customize only stage3 while keeping stage0, stage1, and stage2 unchanged.
After applying updates released on 2025-03-05, I noticed significant performance degradation on my Raspberry Pi 5 (ARM64). The symptoms include:
- Noticeable screen lag
- Visual tearing
- Poor graphical responsiveness, as if proper GPU acceleration is missing
Upon investigation, I've confirmed that the GPU driver appears loaded according to the X log; however, the issue persisted.
Further debugging revealed that the problem originates specifically from recent updates to Mesa-related packages. As a temporary workaround, manually reverting the Mesa packages to the previous version resolved performance issues.
Temporary Workaround:
If anyone else encounters this issue, I used the following script as a temporary fix to downgrade the problematic Mesa packages since the older packages are no longer in the current APT release list:
Additional context:
Here are the packages installed at pi-gen stage3:
Note:
This report was generated with assistance from a LLM.
Github issue: https://github.com/raspberrypi/firmware/issues/1951
I'm relatively new to Raspberry Pi development and have encountered an issue related to recent firmware or package updates affecting GPU driver performance.
I am building a custom Raspberry Pi OS image using pi-gen. Specifically, I customize only stage3 while keeping stage0, stage1, and stage2 unchanged.
After applying updates released on 2025-03-05, I noticed significant performance degradation on my Raspberry Pi 5 (ARM64). The symptoms include:
- Noticeable screen lag
- Visual tearing
- Poor graphical responsiveness, as if proper GPU acceleration is missing
Upon investigation, I've confirmed that the GPU driver appears loaded according to the X log; however, the issue persisted.
Further debugging revealed that the problem originates specifically from recent updates to Mesa-related packages. As a temporary workaround, manually reverting the Mesa packages to the previous version resolved performance issues.
Temporary Workaround:
If anyone else encounters this issue, I used the following script as a temporary fix to downgrade the problematic Mesa packages since the older packages are no longer in the current APT release list:
Code:
#!/bin/bashset -e # Exit on error# List of packages to download and install# DO NOT CHANGE THE ORDER HEREpackages=( libgbm1_23.2.1-1~bpo12+rpt3_arm64.deb libglapi-mesa_23.2.1-1~bpo12+rpt3_arm64.deb libgl1-mesa-dri_23.2.1-1~bpo12+rpt3_arm64.deb libegl-mesa0_23.2.1-1~bpo12+rpt3_arm64.deb libglx-mesa0_23.2.1-1~bpo12+rpt3_arm64.deb)base_url="https://archive.raspberrypi.com/debian/pool/main/m/mesa"echo "Downloading .deb files..."for pkg in "${packages[@]}"; do wget -nc "$base_url/$pkg"doneapt-get install libdrm-nouveau2echo "Installing packages..."for pkg in "${packages[@]}"; do dpkg -i ./"$pkg"doneecho "Holding packages to prevent upgrades..."apt-mark hold libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0dpkg -r mesa-libgalliumecho "Verifying held packages..."for pkg in libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0; do status=$(apt-mark showhold | grep -w "$pkg" || true) if [ -n "$status" ]; then echo "Package '$pkg' is held." else echo "Package '$pkg' is NOT held!" exit 1 fidoneecho "Cleaning up .deb files..."for pkg in "${packages[@]}"; do rm -f ./"$pkg"doneecho "Done. Mesa packages installed, held, and temporary files removed."
Here are the packages installed at pi-gen stage3:
Code:
gldriver-testchromium rpi-chromium-modsfonts-droid-fallbackfonts-liberation2x11-xserver-utilsxdotoolpython3-websocketspython3-sentry-sdkunclutterxserver-xorg xserver-xorg-video-fbdev xinitopenbox lightdmbluezzenity jqunattended-upgrades
This report was generated with assistance from a LLM.
Github issue: https://github.com/raspberrypi/firmware/issues/1951
Statistics: Posted by lpopo0856 — Thu Mar 13, 2025 4:31 pm — Replies 0 — Views 22