Bug 216554
Summary: | amdgpu is broken in linux-5.4.215 and newer | ||
---|---|---|---|
Product: | Drivers | Reporter: | herrtimson |
Component: | Video(Other) | Assignee: | drivers_video-other |
Status: | NEW --- | ||
Severity: | high | CC: | regressions |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.4.215 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
herrtimson
2022-10-05 12:18:51 UTC
there is one patch for the file ../drivers/gpu/drm/amd/amdgpu/amdgpu_display.c , which has landed in 6.0_rc two weeks ago, and which claims per its commit message to be a fix of some sort to the previous commit, which has been backported to 5.4.215: drm/amdgpu: don't register a dirty callback for non-atomic Some asics still support non-atomic code paths. Fixes: 66f9962 ("drm/amdgpu: use dirty framebuffer helper") Reported-by: Arthur Marsh <arthur.marsh@internode.on.net> Reviewed-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> this is the link: https://github.com/torvalds/linux/commit/abbc7a3dafb91b9d4ec56b70ec9a7520f8e13334 I don't know much about the kernel, let alone hacking around in it, but seems this may be the fix that is needed? Sadly I cannot test it, the third hunk doesn't backport cleanly to the 5.4 branch. A patch to revert the two changes is already prepared, I pointed the developer to this report to ensure they're aware of it: https://lore.kernel.org/all/2da7598f-26ae-3da2-2534-d843aae7140c@leemhuis.info/ thanks, seems it causes performance issues for linux-5.19 kernel and above? the patch quoted via > in the message you linked above - is it the supposed fix for the kernel? (In reply to herrtimson from comment #3) > thanks, seems it causes performance issues for linux-5.19 kernel and above? Apparently. > the patch quoted via > in the message you linked above - is it the supposed > fix for the kernel? Not for 5.4.y. Nearly all things need to be fixed in mainline first and then are backported, otherwise it quickly gets messy. fixed by this commit: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c?id=v5.4.217&id2=v5.4.216 it reverts the changes introduced in 5.4.215 see as well: https://lore.kernel.org/all/7af02bc3-c0f2-7326-e467-02549e88c9ce@linuxfoundation.org/ and: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.4.y&id=e911caf9a158142cb198b88717f7450fdadd5d28 |