Abstract:
Linus Torvalds officially released the Linux 7.3-rc1 kernel on August 30. The total code volume of this candidate version has reached 40.98 million lines, of which the AMDGPU driver code accounts for more than 6.5 million lines, accounting for approximately 16% of the entire kernel.
The main reason why Linux 7.3-rc1 is so huge is AMD's large-scale submission. Linus explained in the release announcement that the actual difference is very large, and the reason is not surprising.

Because this is again one of the releases that contains a lot of AMD GPU register dumps, this time the AMD DCN6 register header files, they are quite huge. These AMD GPU code and header dumps make up about a third of the entire rc1 patch.

It is particularly important to point out that the drivers/gpu/drm/amd directory contains the AMDGPU driver, AMDKFD computing driver and display code, totaling 6.52 million lines. This does not include the classic Radeon DRM driver out of the catalog.
In Linux version 7.2, this directory has 6.35 million lines, and version 7.3 has added about 170,000 lines on this basis.
The total amount of kernel code has increased by approximately 560,000 lines compared with 40.42 million lines in 7.2.
Among the 40.98 million lines of code in 7.3-rc1, the cloc tool counted about 30.94 million lines of actual code, about 4.91 million lines of code comments, and about 5.13 million lines of blank lines.
Following this trend, the total code size of Linux 7.4 will most likely easily exceed 41 million lines.
In terms of applications, AMD's DCN 6.0 register dump is mainly used to support the display core module of next-generation graphics hardware. This type of hardware definition is converted into code in the form of C header file #define, and each hardware register and each bit field is expanded in the form of macro definition.
Although this greatly increases the amount of code, it provides an out-of-the-box support foundation for future hardware.
Comments