Linux 7.3-rc1 Close To 41 Million Lines, AMD Kernel Graphics Driver At 6.5 Million Lines

Linux 7.3-rc1 Close To 41 Million Lines, AMD Kernel Graphics Driver At 6.5 Million Lines

With Linus Torvalds remarking in the Linux 7.3-rc1 release announcement of the AMD kernel graphics driver changes for amounting around a third of the -rc1 changes due to the big AMD GPU register files for DCN 6.0 and other new IP additions, here are some fresh code stats at large. With AMD enabling new hardware IP blocks for upcoming graphics hardware in Linux 7.3, it's helped inflate the size of the kernel. Linus noted in the 7.3-rc1 announcement, "It's also big as an actual diff, and the reason for *that* is not surprising either: this is yet another one of those releases with a big AMD GPU register dump. This time it's the AMD DCN6 register headers. They're huge. As usual. That's what you get when you dump all the hardware definitions as C header #defines. There's also the accompanying code for the new gen. All in all, that AMD GPU code and header dump accounts for about a third of the whole rc1 patch." Curious, I ran cloc on the Linux Git tree as of v7.3-rc1... Linux 7.3-rc1 comes in at 40.98 million lines... That's between 5,134,418 cloc-detected blank lines, some 4,912,366 lines of code comments, and 30,937,090 lines of detected code. In comparison for the Linux v7.2 state that came in at 40.42 million lines. It's safe to say that for Linux 7.4, it will be easily above 41 million lines. For drivers/gpu/drm/amd that includes the header files, AMDGPU kernel graphics driver, the AMDKFD compute driver, and related display code and other bits it comes in at 6.52 million lines. That is excluding the classic Radeon DRM driver for pre-GCN hardware living outside that directory. So roughly 16% of the Linux kernel is now made up of the modern AMD kernel graphics driver code. With Linux v7.2, the drivers/gpu/drm/amd cloc measured in at 6.35 million lines. The kernel keeps growing. Not particularly unexpected with how the AMDGPU/AMDKFD drivers and the Linux kernel at large are developed but at least these are the current numbers for those curious.

Original Source

Read the full article at Phoronix →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.