ntb: Fix an assertion to permit >= 32 doorbells

MFC after:	1 week
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
This commit is contained in:
Mark Johnston 2020-10-23 14:15:58 +00:00
parent 1c7481377c
commit 97441fab87

View File

@ -357,7 +357,7 @@ ntb_transport_attach(device_t dev)
spad_count = ntb_spad_count(dev); spad_count = ntb_spad_count(dev);
db_bitmap = ntb_db_valid_mask(dev); db_bitmap = ntb_db_valid_mask(dev);
db_count = flsll(db_bitmap); db_count = flsll(db_bitmap);
KASSERT(db_bitmap == (1 << db_count) - 1, KASSERT(db_bitmap == ((uint64_t)1 << db_count) - 1,
("Doorbells are not sequential (%jx).\n", db_bitmap)); ("Doorbells are not sequential (%jx).\n", db_bitmap));
if (nt->mw_count == 0) { if (nt->mw_count == 0) {