Linux patch fixes video corruption on AMD Radeon HD 2000/3000
An accepted Linux kernel patch is slated for Linux 7.5 to address UVD video-frame corruption on AMD Radeon HD 2000 and HD 3000 GPUs when decoding runs alongside graphics drawing. Contributor Ted Bullock reproduced the issue on an RV610-based iMac and found that keeping decoder buffers in VRAM produced correct frames. The patch covers RV610, RV620, RV630, RV635, and RV670, while Bullock used Codex to assist with the investigation, testing, and patch.
The fix addresses a long-standing Linux hardware-decoding defect while also providing a concrete example of Codex assisting an open-source kernel investigation and patch.
A newly accepted kernel patch slated for the upcoming Linux 7.5 release finally resolves a long-standing hardware video decoding bug on AMD's ancient R600 architecture, nearly two decades after the cards first hit store shelves. As spotted by Phoronix, the fix targets the Unified Video Decoder (UVD) engine across the RV610, RV620, RV630, RV635, and RV670 silicon families, making up the Radeon HD 2000 and HD 3000 families released starting in 2007. Linux users running these cards experienced visual corruption during hardware-accelerated video playback whenever the GPU was simultaneously handling active 3D or desktop drawing workloads; those issues should now be resolved.
I investigated video corruption on my older iMac7,1 (RV610/M74,device ID 1002:94c8). When the decoder was reading compressed video from system memory while the GPU was drawing, it would corrupt video frames. Moving the input to VRAM allowed frames to decode correctly. Disabling graphics draws also stopped the corruption.Here is a proposal to keep UVD buffers in VRAM for this family of devices, as the driver already does for some other chips. The patch covers RV610, RV620, RV630, RV635 and RV670. These chips share the RV6xx decoder path and legacy R600 firmware, so I think they are likely to have the same hardware requirements. Someone with the other hardware would need to verify that.I tested this on Debian. I used Codex to help with the investigation, testing and patch. Ted Bullock, first-time kernel contributor
#AMD#Radeon HD 2000#Radeon HD 3000#Linux kernel#Linux 7.5#Codex#OpenAI#RV610#RV620#RV630#RV635#RV670