Linux 7.3-rc1 Arrives With Massive AMD Codebase Update
Linux 7.3-rc1 Reaches 40.98 Million Lines as AMD Code Influx Drives Kernel Growth
Linux 7.3-rc1 has arrived in the upstream git tree, clocking in at a massive 40.98 million total lines of code, comments, and blank spaces.
The Tech TL;DR:
- Codebase Inflation: Linux 7.3-rc1 hit 40.98 million lines total, stepping up from v7.2’s 40.42 million lines, driven largely by hardware definitions.
- AMD Graphics Dominance: Changes in the Linux kernel graphics driver stack—featuring DCN 6.0 register headers and new IP blocks—make up about 33% of the entire rc1 patch.
- Driver Footprint: The modern AMDGPU kernel graphics driver, AMDKFD compute driver, and related display code now consume 6.52 million lines, representing roughly 16% of the entire Linux kernel.
Deconstructing the 40.98 Million Line Milestone
As enterprise IT shops plan their production cycles around new upstream kernels, code bloat and maintainability remain constant architecture discussions. This compares to the v7.2 state which measured 40.42 million lines total. At the current rate of expansion, Linux 7.4 is on track to easily cross the 41 million line threshold.
The primary driver behind this expansion is hardware enablement rather than core subsystem refactoring. Linus Torvalds noted in the official 7.3-rc1 announcement that the sheer size of the diff stems from dumping hardware definitions as C header #defines. Specifically, the AMD DCN 6.0 register headers and accompanying code for upcoming generation hardware account for about a third of the entire rc1 patch.
Analyzing the AMDGPU and AMDKFD Driver Footprint
Looking strictly at the drivers/gpu/drm/amd directory—which encompasses the AMDGPU kernel graphics driver, the AMDKFD compute driver, and associated display code—the cloc utility measured 6.52 million lines. This total excludes the legacy Radeon DRM driver for pre-GCN hardware, which resides elsewhere in the tree. By comparison, this same directory measured 6.35 million lines in Linux v7.2.
Inspecting the Git Tree via CLI
Developers auditing the new release candidate locally can execute standard command-line utilities to verify tree statistics and track module growth:
git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
git checkout v7.3-rc1
cloc drivers/gpu/drm/amd