[RFC PATCH 0/1] enable quirks via module parameter

Maurizio Lombardi mlombard at bsdbackstore.eu
Fri May 16 09:52:31 PDT 2025


On Fri May 16, 2025 at 6:22 PM CEST, Keith Busch wrote:
>> Can't we already do this for pci using the "new_id" attribute of the
>> nvme-pci driver? It takes up to 7 parameters, the last one being the
>> "driver_data", which is what we use to setup the quirks, and you can set
>> that value to anything you want through that interface.
>
> Oops, maybe not "anything you want", but you can set it to any value
> that exists in the driver's table. That may be an unnecessary limitation
> in the new_id_store() function, but let's see if that's sufficient
> before considering changing that.

Thanks for the suggestion, I really hadn't considered that.

So the idea would be to unbind the device and re-bind
it while specifying a different driver_data, correct?

If that's the case, I do have a concern: how can I do that
if the root filesystem is on the device that needs to be unbound?

Maurizio



More information about the Linux-nvme mailing list