Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ...
by alfalfasprout on Thursday August 31, 2023 @03:20PM
(#37342367)
As long as it's deterministic there should be no issue checking in the generators right?
Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ...
by tux3 on Thursday August 31, 2023 @04:00PM
(#37342922)
The generators themselves probably not, but the definition of all those registers is from hardware. These kind of code generators convert input source files that describe the hardware into C header files for the software.
But I expect AMD would be skittish about open-sourcing anything that could even remotely be construed as HDL, even if it's just dry lists of registers. Open sourcing the drivers is one thing, but the hardware itself is another.
It may be more practical to rework the scripts to try to find ways to reduce the verbosity and redundancy. The actual .c driver code probably doesn't need every copy of every lines in all those .h files.