svn commit: r366968 - head/sys/dev/ntb
Mark Johnston
markj at FreeBSD.org
Fri Oct 23 14:15:59 UTC 2020
Author: markj
Date: Fri Oct 23 14:15:58 2020
New Revision: 366968
URL: https://svnweb.freebsd.org/changeset/base/366968
Log:
ntb: Fix an assertion to permit >= 32 doorbells
MFC after: 1 week
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Modified:
head/sys/dev/ntb/ntb_transport.c
Modified: head/sys/dev/ntb/ntb_transport.c
==============================================================================
--- head/sys/dev/ntb/ntb_transport.c Fri Oct 23 12:00:30 2020 (r366967)
+++ head/sys/dev/ntb/ntb_transport.c Fri Oct 23 14:15:58 2020 (r366968)
@@ -357,7 +357,7 @@ ntb_transport_attach(device_t dev)
spad_count = ntb_spad_count(dev);
db_bitmap = ntb_db_valid_mask(dev);
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));
if (nt->mw_count == 0) {
More information about the svn-src-all
mailing list