]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
nvme: Use the Maximum Queue Entries Supported (MQES) to initialize I/O queues
authorFilippo Sironi <sironi@amazon.de>
Wed, 11 Oct 2017 22:42:34 +0000 (00:42 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 14 Oct 2017 15:10:08 +0000 (11:10 -0400)
commitcd47172a673762a05a0c7bd27df6e3cc8febe8d6
tree8636f93dfb9280251ed3bf21813471a124dce477
parent5c1a2c75951c4a59f1bf2d3c82ca7447244513ad
nvme: Use the Maximum Queue Entries Supported (MQES) to initialize I/O queues

Use the Maximum Queue Entries Supported (MQES) to initialize I/O queues
depth rather than picking a fixed number (256) which might not be
supported by some NVMe controllers (the NVMe specification says that an
NVMe controller may support any number between 2 to 4096).

Still cap the I/O queues depth to 256 since, during my testing, SeaBIOS
was running out of memory when using something higher than 256 (4096 on
the NVMe controller that I've had a chance to try).

Signed-off-by: Filippo Sironi <sironi@amazon.de>
src/hw/nvme.c