aboutsummaryrefslogtreecommitdiff
path: root/include/mpool.h
diff options
context:
space:
mode:
authorJasper Tran O'Leary <jtranoleary@google.com>2025-10-28 20:43:35 +0000
committerAlexander Ziaee <ziaee@FreeBSD.org>2025-11-04 18:15:17 +0000
commitdca645cd3112feefee2dce8cab029b1b779823b8 (patch)
tree80669845cfdb1dcc2327c972a77148837af26b84 /include/mpool.h
parentc64b594a306480b567ed7132947459af9cc6aec5 (diff)
nvme: Add handling for bar5
The NVMe spec allows the Table BIR (TBIR) and PBA DIR (PBIR) to be 0, 4, or 5. The existing NVMe driver basically only has support for 4, perhaps under the assumption that BAR4 is 64-bit and also occupies BAR5. This change adds support for BAR5, covering the case where BAR4 and BAR5 might both be present and 32-bit, where the Table BIR might be 4 and the PBA BIR might be 5, or vice versa. The NVMe spec (in the SR-IOV section) also permits VFs to use BIR=2, so I haven't added stricter checks on which BIR will be permitted by the driver. This enables FreeBSD on Google Compute Engine C4 Machines. MFC after: 3 days Reviewed by: imp Sponsored by: Google Co-authored-by: Matt Delco <delco@google.com> Signed-off-by: Jasper Tran O'Leary <jtranoleary@google.com> Differential Revision: https://reviews.freebsd.org/D53140 (cherry picked from commit 7b32f4f0a7fe9b1b2f5a3905ca15f656713255ad)
Diffstat (limited to 'include/mpool.h')
0 files changed, 0 insertions, 0 deletions