Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The kernel modules are the first stage I guess, since a massive amount of hardware programing knowledge is in user space like with AMD/intel GPUs.

I wonder how much LAPSUS$ hack has to do with it.

I wonder if nvidia hardware programing interface is a mess like AMD one, just curious.



>I wonder how much LAPSUS$ hack has to do with it.

Probably zero.

1) There have been rumors about this for months

2) The hacks only happened very recently, this certainly would have taken longer to do than that.


Do you have a reference for the AMD interface? I know it exists but don't know where to find it.


If I recall properly, the command circular buffers of 2^n bytes ("queues" in vulkan3d) are VRAM IOMMAP-ed (you just need atomic R/W pointers for synchronization, see mathematically proven synchronization algorithms). There is a "GPU IRQ" circular buffer of 2^n bytes coupled with PCIE MSIs (and I recall something about a hardware "message box"). The "thing" is, for many of them, how to use those commands and how they are defined feels very weird (for instance the 3d/compute pipeline registers programing).

Have a look at libdrm from the mesa project (the AMDGPU submodule), then it will give you pointers where to look into the kernel-DRM via the right IOCTLs.

Basically, the kernel code is initialization, quirks detection and restoration (firmware blobs are failing hard here), setting up of the various vram virtual address spaces (16 on latest GPUs) and the various circular buffers. The 3D/compute pipeline programing is done from userspace via those circular buffers.

If I am not too much mistaken, on lastest GPU "everything" should be in 1 PCIE 64bits bar (thx to bar size reprograming).

The challenge for AMD is to make all that dead simple and clean while keeping the extreme performance (GPU is all about performance). Heard rumors about near 0-driver hardware (namely "rdy" at power up).


> Have a look at libdrm from the mesa project (the AMDGPU submodule), then it will give you pointers where to look into the kernel-DRM via the right IOCTLs.

Exactly the pointer I was looking for, thank you.


Likely very related, wasn't this one of their exact demands? Looks like Nvidia caved haha.



This is well after the deadline iirc, and not the sort of thing that gets rushed.

I doubt this is directly because of that.


maybe for the user space then.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: