[HN Gopher] 79% of OpenBSD kernel source is AMD DRM
___________________________________________________________________
79% of OpenBSD kernel source is AMD DRM
Author : cnst
Score : 22 points
Date : 2025-08-07 21:03 UTC (1 hours ago)
(HTM) web link (marc.info)
(TXT) w3m dump (marc.info)
| cnst wrote:
| _> 79% of OpenBSD kernel source is AMD DRM_
|
| The sys.tar.gz from https://ftp.eu.openbsd.org/pub/OpenBSD/7.7/
| (normally unpacked into /usr/src/sys on an OpenBSD machine)
| represents the entire kernel source code of OpenBSD 7.7. (The
| userland and compiler are in src.tar.gz, Xorg is in
| xenocara.tar.gz, and ports are in ports.tar.gz.)
|
| It has grown to 634MB unpacked for the entire kernel source tree.
|
| But the vast majority of this growth is attributable to the _sys
| /dev/pci/drm/amd_ directory, which is AMD Direct Rendering
| Manager, standing at 499MB, with the include files at _sys
| /dev/pci/drm/amd/include_ being 458MB, the biggest of which is
| the _asic_reg_ directory.
|
| 499/634 is 79%.
|
| It follows that 79% of OpenBSD kernel by source code is dedicated
| to AMD's DRM implementation. Note that we're talking about the
| source code, NOT compiled code.
|
| It's a huge part of Linux, too, over at _drivers
| /gpu/drm/amd/include/asic_reg_:
|
| https://github.com/torvalds/linux/tree/master/drivers/gpu/dr...
|
| In OpenBSD, the last release before the explosive growth, was
| OpenBSD 6.5 (Apr 2019) with sys.tar.gz at 20MB. With OpenBSD 6.6
| (Oct 2019), it went to 30MB, now with 7.7 (Apr 2025) it's 64MB
| compressed.
| Y_Y wrote:
| https://github.com/torvalds/linux/blob/master/drivers/gpu/dr...
|
| 11k lines of #defines
|
| Is this truly necessary?
| cnst wrote:
| 11k defines in _gc_ is nothing, the files in the _nbio_ dir
| are so big, github even refuses to parse many them:
|
| https://kernel.googlesource.com/pub/scm/linux/kernel/git/tor.
| ..
|
| https://github.com/torvalds/linux/blob/master/drivers/gpu/dr.
| ..
|
| The last file in nbio is a header file with 38900 lines -- a
| single file of 3.92 MB.
|
| There's actually another one in _nbio_ that 's 16MB:
|
| https://github.com/torvalds/linux/blob/master/drivers/gpu/dr.
| ..
___________________________________________________________________
(page generated 2025-08-07 23:02 UTC)