summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2026-10-23 11:48:05 +0200
committerKeith Busch <kbusch@kernel.org>2026-10-28 08:11:21 -0700
commited75528c095bc7760a3cf34a3f3e2ec7a59eb285 (patch)
tree198c9b78d92c631cf7d482df13fe8fc977222c3e /tools/lib/python
parent9c15ab904e07a752a4c45f46a74c642900411b90 (diff)
nvme-pci: fix early boot hang with nvme.quirks parameter
Passing nvme.quirks on the kernel command line causes a silent boot hang when the NVMe driver is compiled as a built-in module. This happens because the parameter is currently registered using module_param_cb(). For built-in modules, this macro flags the parameter to be evaluated at initcall level -1. Consequently, quirks_param_set() is called before the memory allocators are initialized. Fix this by replacing module_param_cb() with device_param_cb(). This defers the parameter parsing to initcall level 6, guaranteeing that the system memory allocators are fully functional before the quirk string is parsed and allocated. Fixes: 7bb8c40f5ad8 ("nvme: add support for dynamic quirk configuration via module parameter") Reviewed-by: Laurence Oberman <loberman@redhat.com> Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions