linux-cachyos: add fix-amdgpu-pageflip-timeout.patch to resolve Issue #959 - #966
darkKnight386 wants to merge 2 commits into
Conversation
…te corruption Problem: In script.sh, script-znver4.sh, script-v3-v4.sh, and srcinfo.sh, directory navigation inside PKGBUILD processing loops relies on `cd $d` followed by `cd ..`. This pattern suffers from critical flaws: 1. It assumes $d is always exactly one directory level below the root. If find returns nested directory paths (e.g., ./dir1/dir2/PKGBUILD), `cd ..` steps back only one level instead of returning to the repository root. 2. If `cd $d` fails for any reason (e.g., unquoted variables or missing permissions), `cd ..` executes from the wrong working directory, causing all subsequent loop iterations to run in invalid paths and corrupting the build process. Solution: Wrap each package build and metadata generation step inside a subshell block `( cd "$d" || exit 1; ... )`. Because working directory modifications inside subshell processes do not persist after subshell termination: - The main shell context remains securely in the repository root directory at all times. - Eliminates the need for manual `cd ..` calls. - Properly quotes path variables `"$d"` to safely handle paths containing spaces.
…achyOS#959 Add `fix-amdgpu-pageflip-timeout.patch` to `linux-cachyos/PKGBUILD` to resolve Issue CachyOS#959. ### Problem In Linux kernel 7.1.6, an upstream DRM Display Core regression in `amdgpu_dm` causes `acrtc->pflip_status` to remain stuck in `AMDGPU_FLIP_SUBMITTED` after vblank completion events. This leads to continuous pageflip timeouts and display freezes under Wayland/KWin on laptops using AMD iGPUs: ```text kwin_wayland: Pageflip timed out! This is a bug in the amdgpu kernel driver amdgpu 0000:06:00.0: [drm] *ERROR* [CRTC:369:crtc-0] flip_done timed out ``` ### Fix Include `fix-amdgpu-pageflip-timeout.patch` which resets `acrtc->pflip_status` to `AMDGPU_FLIP_NONE` upon vblank completion, allowing pageflips to process normally. Fixes CachyOS#959 Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/5567
|
I've had this exact issue with a few games. CPU: 9800X3D |
|
actually the following really does seem to fix various flip_done timeout triggered states in a noticeable way: https://gitlab.freedesktop.org/drm/amd/-/work_items/5616#note_3631449 |
Yeah I've not had a single crash since applying it |
|
Who do I contact to get this patch into arch vanilla kernel??? Had this issue all morning and became so frustrating and unbearable, having to use LTS 6.18 atm. |
|
first of all, does it apply cleanly to 6.18 and work ? there's only 7.2 and 7.1 variants of it so far better ask Leo Li (author of the patch / flip_done timeout patches) first, if there's backports already in the pipeline and how the feedback status is then CC: Mario Limonciello, https://lore.kernel.org/amd-gfx/, Greg KH (linux stable kernels), etc. |
|
seems like additional changes are needed: https://gitlab.freedesktop.org/drm/amd/-/work_items/5843#note_3663941 https://lore.kernel.org/amd-gfx/20260908113338.2433445-59-chen-yu.chen@amd.com/ drm/amd/display: Atomize IRQ register read/modify/write ops |
linux-cachyos: add fix-amdgpu-pageflip-timeout.patch to resolve Issue #959
Add
fix-amdgpu-pageflip-timeout.patchtolinux-cachyos/PKGBUILDto resolve Issue #959.Problem
In Linux kernel 7.1.6, an upstream DRM Display Core regression in
amdgpu_dmcausesacrtc->pflip_statusto remain stuck inAMDGPU_FLIP_SUBMITTEDafter vblank completion events. This leads to continuous pageflip timeouts and display freezes under Wayland/KWin on laptops using AMD iGPUs:Fix
Include
fix-amdgpu-pageflip-timeout.patchwhich resetsacrtc->pflip_statustoAMDGPU_FLIP_NONEupon vblank completion, allowing pageflips to process normally.Fixes #959
Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/5567