Re: [PATCH] rust: add basic ELF sections parser
From: Greg KH
Date: Sun Jun 01 2025 - 03:48:27 EST
On Sat, May 31, 2025 at 09:38:24AM -0500, Timur Tabi wrote:
> On Sat, May 31, 2025 at 7:25 AM Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> >
> > What exactly do you mean by this? That is what I have been asking, what
> > is the specific reason why this can't be done in userspace? What
> > hardware "thing" can't be read by userspace, and why not? Userspace has
> > access to PCI devices directly, surely there is nothing "secret" here.
>
> Why in the world would you want user space to read hardware registers,
> when the driver is already doing it???????
>
> And please note that the driver has to read and parse a lot of other
> register in order to know which register contains the fuse settings,
> and even whether that register exists, and at what address. The fuse
> register is hardware-specific. It doesn't exist on Turing, it does
> exist on Ampere and Ada (but just GA10x, not GA100), and it's not used
> on Hopper and Blackwell. You want to duplicate all this code in
> user-space (assuming that registers really are accessible in user
> space), just avoid a 12-line function that already exists and works in
> Nouveau?????????
Because you are not proposing a 12 line function here, you all were
attempting to add an elf parser to the core kernel that everyone would
always load into their memory space.
> Please make it make sense, Greg.
Please read my thread where I asked for detailed specifics as to exactly
what is required here for you all to determine what is needed to load
the firmware.
have a good weekend,
greg k-h