Enable/Disable NVMe quirks via module parameter
Status from this message: Thanks, applied to nvme-7.0.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest1 patch 2 repliesApplied
- v21 patch 1 replySuperseded
- v11 patch 2 repliesSuperseded
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | nvme: add support for dynamic quirk configuration via module parameterDocumentation/ drivers/ | +175 | 2 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Daniel Wagner | Christoph Hellwig |
|---|---|---|
| 1/1 | T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V3 0/1] Enable/Disable NVMe quirks via module parameter
Recently, some of our customers were very vocal about wanting an easy way to enable or disable specific nvme quirks.
I recall that during the ALPSS conference this topic has been briefly discussed, and it was proposed to use the generic PCI sysfs "new_id" entry to manipulate the quirks.
However, in some cases a quirk may prevent the system from properly booting, the kernel may hang or fail to mount the root
filesystem before the system reaches a state where new_id can be written, this makes this solution not exactly user-friendly for end users.
In particular, boot-time hangs have been reported involving the bogus_nid quirk.
Therefore, I have been asked to re-propose this module parameter approach with a few modifications suggested by Daniel Wagner.
# dmesg | grep nvme [ 0.000000] Command line: root=/dev/vda1 console=ttyS0,115200n8 nvme.quirks=1b36:0010:^bogus_nxid [ 6.732692] nvme: unrecognized quirk bogus_nxid
# cat /sys/devices/pci0000:00/0000:00:05.0/nvme/nvme1/quirks bogus_nid
# dmesg | grep nvme [ 0.000000] Command line: root=/dev/vda1 console=ttyS0,115200n8 nvme.quirks=1b36:0010:^bogus_nid,no_apst
# cat /sys/devices/pci0000:00/0000:00:05.0/nvme/nvme0/quirks no_apst
Maurizio Lombardi (1):
nvme: add support for dynamic quirk configuration via module parameter
.../admin-guide/kernel-parameters.txt | 13 ++ drivers/nvme/host/pci.c | 162 ++++++++++++++++++ 2 files changed, 175 insertions(+)
Signature · 1 line
2.52.0