mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
nvme-pci: Add support for variable IO SQ element size
The size of a submission queue element should always be 6 (64 bytes) by spec. However some controllers such as Apple's are not properly implementing the standard and require a different size. This provides the ground work for the subsequent quirks for these controllers. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
This commit is contained in:
parent
8a1d09a668
commit
c1e0cc7e1d
2 changed files with 9 additions and 3 deletions
|
@ -140,6 +140,7 @@ enum {
|
|||
* Submission and Completion Queue Entry Sizes for the NVM command set.
|
||||
* (In bytes and specified as a power of two (2^n)).
|
||||
*/
|
||||
#define NVME_ADM_SQES 6
|
||||
#define NVME_NVM_IOSQES 6
|
||||
#define NVME_NVM_IOCQES 4
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue