mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +00:00
Kernel: Add nvme_poll command line parameters
As we don't currently support MSI(X) interrupts, it could be an issue to boot on some newer hardware. NVMe devices support polling mode where the driver actively polls for completion instead of waiting for an interrupt.
This commit is contained in:
parent
19a2b32065
commit
e5a6d12ff8
3 changed files with 9 additions and 1 deletions
|
@ -175,6 +175,11 @@ UNMAP_AFTER_INIT StringView CommandLine::root_device() const
|
|||
return lookup("root"sv).value_or("/dev/hda"sv);
|
||||
}
|
||||
|
||||
bool CommandLine::is_nvme_polling_enabled() const
|
||||
{
|
||||
return contains("nvme_poll"sv);
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT AcpiFeatureLevel CommandLine::acpi_feature_level() const
|
||||
{
|
||||
auto value = kernel_command_line().lookup("acpi"sv).value_or("limited"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue