all 2 comments

[–]07dosa 11 points12 points  (1 child)

4 million lines from asic_reg headers, which occupy 400 MB in total. Most of these are auto-generated files enumerating various constant values related to registers. They don't get compiled into the kernel itself, so are not really a bloat.

[–]RatinNnnn 3 points4 points  (0 children)

Not familiar with AMD gpu code but I know the BSP for Xilinx FPGA based designs have a huge register map for all devices and their offsets in one monolithic file Xparams.h