]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: expose active quirks in sysfs
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 3 Nov 2025 14:44:06 +0000 (15:44 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 13 Jan 2026 21:53:03 +0000 (13:53 -0800)
commitddfb8b322bbd8ae996f4ac0192f0190feb0a01ce
tree10dac57a642d9a0ca1a625610577cecf19a17b54
parentf947d9e77b26238b821b5227afb4fee8c7ea0d5a
nvme: expose active quirks in sysfs

Currently, there is no straightforward way for a user to inspect
which quirks are active for a given device from userspace.

Add a new "quirks" sysfs attribute to the nvme controller device.

Reading this file will display a human-readable list
of all active quirks, with each quirk name on a new line.
If no quirks are active, it will display "none".

Tested-by: John Meneghini <jmeneghi@redhat.com>
Reviewed-by: John Meneghini <jmeneghi@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/nvme.h
drivers/nvme/host/sysfs.c