Killing DRM Graphics Cruft With Fire

Written by Michael Larabel in Linux Kernel on 27 October 2011 at 07:40 AM EDT. 22 Comments
LINUX KERNEL
It seems to be a good time to clean-up the Linux graphics driver stack. After old hardware support was dropped in Mesa in August, more Mesa code was dropped, and most recently the classic ATI R300/R600 drivers are to be killed (this is set to happen this Friday). Now Intel's Daniel Vetter is chopping up some DRM code.

Daniel Vetter, one of Intel's newest OSTC employees working on the Linux graphics stack (he just officially joined in September but has been around for a bit longer than that in the Linux world), has pushed 23 patches to the DRI mailing list that would remove more than 1,000 lines of code from the DRM area of the Linux kernel tree. Those affected by this "kill drm cruft with fire" action will largely be VIA and SiS. It's about removing old code from DRM.

Daniel's patch-set completely kills off "drm_sman", which was a simple memory manager interface for DRM that was created by Thomas Hellström during the Tungsten Graphics days (2006). The VIA and SiS DRM components are now using drm_mm instead of drm_sman, plus have received minor other reworks. Even the DRM Savage driver has received a few tiny tweaks. This is sadly the most work these ancient and largely unsupported drivers have received in a while, even though these patches today aren't really significant and just "cleaning the house."

DMA queue support has also been dropped in Daniel's patches since the support is now unused. Also killed off is the procfs (/proc/dri) support for DRM, since debugfs and sysfs interfaces have already been around for years and are the primary targets.

Daniel's patches begin here.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week