diff options
author | Pankaj Raghav <pankydev8@gmail.com> | 2022-01-27 16:44:58 +0530 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-02 18:26:59 +0100 |
commit | d234e6b801992875c892222c5c1725f151eb3f12 (patch) | |
tree | 8fffe92254c300015de3b4e976a7f5486b24720d /Documentation | |
parent | aa832ee2511693114db417714183a4ac37272e9b (diff) | |
download | serenity-d234e6b801992875c892222c5c1725f151eb3f12.zip |
Kernel: Add polling support to NVMe
Add polling support to NVMe so that it does not use interrupt to
complete a IO but instead actively polls for completion. This probably
is not very efficient in terms of CPU usage but it does not use
interrupts to complete a IO which is beneficial at the moment as there
is no MSI(X) support and it can reduce the latency of an IO in a very
fast NVMe device.
The NVMeQueue class has been made the base class for NVMeInterruptQueue
and NVMePollQueue. The factory function `NVMeQueue::try_create` will
return the appropriate queue to the controller based on the polling
boot parameter.
The polling mode can be enabled by adding an extra boot parameter:
`nvme_poll`.
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions