In the repository where the Linux 5.19 kernel release is formed, another set of changes related to the DRM (Direct Rendering Manager) subsystem and graphical drivers has been accepted. The accepted set of patches is noteworthy as it includes 495 thousand lines of code, comparable to the total amount of changes in each kernel branch (for instance, the 5.17 kernel added 506 thousand lines of code).
About 400 thousand of the added lines come from automatically generated header files containing data for ASIC registers in the AMD GPU driver. Additionally, 22.5 thousand lines provide initial support for AMD SoC21. The total size of the AMD GPU driver has exceeded 4 million lines of code (for comparison, the entire Linux 1.0 kernel included 176 thousand lines of code, 2.0 — 778 thousand, 2.4 — 3.4 million, 5.13 — 29.2 million). Besides SoC21, the AMD driver includes support for SMU 13.x (System Management Unit), updates support for USB-C and GPUVM, and preparation for the next generations of RDNA3 (RX 7000) and CDNA (AMD Instinct) platforms.
In the Intel driver, the largest number of changes (5.6 thousand) are found in the code for power management. The Intel driver has also added identifiers for the Intel DG2 GPUs (Arc Alchemist) used in laptops, provided initial support for the Intel Raptor Lake-P (RPL-P) platform, added information about Arctic Sound-M graphics cards, implemented ABI for computational engines, added support for the Tile4 format for DG2 cards, and enabled DisplayPort HDR support for Haswell-based systems.
In the Nouveau driver, the changes affected approximately a hundred lines of code (the transition to using the drm_gem_plane_helper_prepare_fb handler has been made; static memory allocation has been applied to some structures and variables). Regarding the use of the open-source kernel module texts published by NVIDIA in Nouveau, the work currently focuses on identifying and fixing bugs. In the future, the released firmware is expected to enhance the driver's performance.
Source: opennet.ru
