News for hackers. Stuff that matters.
Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by throwaway193439 on Thursday August 31, 2023 @01:23PM (#37340667)
Because it's large and large is difficult to maintain.

AMD maintains it but do we know how they are generated? Probably not.

It's like a gift that stinks but you can't complain about because it's a gift.

Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by FirmwareBurner on Thursday August 31, 2023 @01:30PM (#37340768)
>but do we know how they are generated?

Having worked in the semi industry, I can fathom a guess: It's a spaghetti mess of cascading perl scripts that parse the Verilog/VHDL design files, with their development going back 20+ years, full of comments like "don't touch this line because it breaks another line, nobody knows why", and maintained by a team where a "Gandalf" gray-beard wearing an ATI t-shirt, has most of the deep-down low-level knowledge on how to un-fuck them whenever they get fucked, pardon my french.

Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by baq on Thursday August 31, 2023 @01:45PM (#37341016)
Having too worked in the semi industry, this is spot on
Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by sshine on Thursday August 31, 2023 @02:25PM (#37341645)
I haven’t worked in the semi industry, but I’ve worked with EE’s and Perl programmers, and they do love that undocumented lore. And the universe does reward you with a grey beard after enough Perl.
Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by trws on Thursday August 31, 2023 @01:47PM (#37341051)
I have not seen these scripts, but can confirm that AMD has a long history of such Perl scripts. Look at hipcc for a current, moderately frustrating, example of this. Also the last time I met one of the open source driver team in person he was, in fact, wearing a classic ATI red ATI t-shirt straight in from Markham. Much of that team is European now though from what I hear, and they’re generally a good bunch.
Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by FirmwareBurner on Thursday August 31, 2023 @01:50PM (#37341094)
>ATI t-shirt straight in from Markham.

Curious how much of AMD Radeon GPU development now is being done in Markham-Canada, as AFAIK, the modern Radeon architecture stems from ATI's acquisition of ArtX[1], a US-based spin-ff of SGI, which was responsible for the GPUs in the Nintendo GameCube, Wii and many other innovations like programable shaders, later found in ATI/AMD GPUs.

>Much of that team is European now though from what I hear, and they’re generally a good bunch.

I didn't know AMD has a GPU design team in Europe. Where? I know they had a fab in Germany and they have an office for the Ryzen and Infinity Fabric R&D in Romania, but I had no idea they do GPU stuff as well in Europe. Where is that office?

[1] https://en.wikipedia.org/wiki/ArtX

Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by ahartmetz on Thursday August 31, 2023 @03:29PM (#37342475)
>I didn't know AMD has a GPU design team in Europe

AFAIK they don't, but the Linux driver guys seem to be mostly German and Polish and such. And yeah, they are doing good work. I half-expect AMD to reboot their Windows driver from the Linux driver code base at some point.

Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by happycube on Friday September 01, 2023 @10:52AM (#37351558)
They had Bitboys but sold them onto Qualcomm a while ago.
Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by trollied on Thursday August 31, 2023 @02:52PM (#37342026)
There's bound to be some tcl in there too...
Re:AMD Open-Source GPU Kernel Driver Above 5M Lines, Entire ... by SXX on Thursday August 31, 2023 @02:11PM (#37341416)
> AMD maintains it but do we know how they are generated? Probably not.

Basically those files are generated from AMD GPU register data files where majorify of registers are documented, but there of course bunch of magic numbers as well probably because they belong to HDCP or other cases where documentation only available under NDA.

There been a number of leaks of AMD internal documentation so anyone who is into GPU drivers can really find a lot of information on their GPU internal workings.

I've archieved some of it many years ago and it's was never DMCA*ed:

https://github.com/ArseniyShestakov/rai-bonaire

Source was a talk on CCC.