aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 22:03:55 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 22:03:55 +0000
commit391486af755d87c6e21e35dcd1173680a43511d3 (patch)
treeaa9034e4745af78e41baa3618f9ba875df929a1e /sys/dev/ntb
parent86e53c0789e147e322c0bf9dbc553575639eb553 (diff)
Notes
Diffstat (limited to 'sys/dev/ntb')
-rw-r--r--sys/dev/ntb/ntb_hw/ntb_hw_amd.c5
-rw-r--r--sys/dev/ntb/ntb_hw/ntb_hw_intel.c1
-rw-r--r--sys/dev/ntb/ntb_transport.c4
3 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/ntb/ntb_hw/ntb_hw_amd.c b/sys/dev/ntb/ntb_hw/ntb_hw_amd.c
index 8fcd464c862f..450a3a2fa2b8 100644
--- a/sys/dev/ntb/ntb_hw/ntb_hw_amd.c
+++ b/sys/dev/ntb/ntb_hw/ntb_hw_amd.c
@@ -81,7 +81,6 @@ __FBSDID("$FreeBSD$");
MALLOC_DEFINE(M_AMD_NTB, "amd_ntb_hw", "amd_ntb_hw driver memory allocations");
static const struct amd_ntb_hw_info amd_ntb_hw_info_list[] = {
-
{ .vendor_id = NTB_HW_AMD_VENDOR_ID,
.device_id = NTB_HW_AMD_DEVICE_ID1,
.mw_count = 3,
@@ -686,7 +685,6 @@ amd_ntb_peer_spad_write(device_t dev, unsigned int idx, uint32_t val)
return (0);
}
-
/*
* AMD NTB INIT
*/
@@ -871,7 +869,6 @@ amd_ntb_setup_isr(struct amd_ntb_softc *ntb, uint16_t num_vectors, bool msi,
flags |= RF_SHAREABLE;
for (i = 0; i < num_vectors; i++) {
-
/* RID should be 0 for intx */
if (intx)
ntb->int_info[i].rid = i;
@@ -911,7 +908,7 @@ static int
amd_ntb_create_msix_vec(struct amd_ntb_softc *ntb, uint32_t max_vectors)
{
uint8_t i;
-
+
ntb->msix_vec = malloc(max_vectors * sizeof(*ntb->msix_vec), M_AMD_NTB,
M_ZERO | M_WAITOK);
diff --git a/sys/dev/ntb/ntb_hw/ntb_hw_intel.c b/sys/dev/ntb/ntb_hw/ntb_hw_intel.c
index 2dfe49cc1fd9..a8bd83b0d790 100644
--- a/sys/dev/ntb/ntb_hw/ntb_hw_intel.c
+++ b/sys/dev/ntb/ntb_hw/ntb_hw_intel.c
@@ -1682,7 +1682,6 @@ configure_atom_secondary_side_bars(struct ntb_softc *ntb)
}
}
-
/*
* When working around Xeon SDOORBELL errata by remapping remote registers in a
* MW, limit the B2B MW to half a MW. By sharing a MW, half the shared MW
diff --git a/sys/dev/ntb/ntb_transport.c b/sys/dev/ntb/ntb_transport.c
index e39d3b6a0a34..e6e630229a31 100644
--- a/sys/dev/ntb/ntb_transport.c
+++ b/sys/dev/ntb/ntb_transport.c
@@ -757,8 +757,6 @@ ntb_transport_link_up(struct ntb_transport_qp *qp)
callout_reset(&qp->link_work, 0, ntb_qp_link_work, qp);
}
-
-
/* Transport Tx */
/**
@@ -1204,7 +1202,6 @@ ntb_transport_link_work(void *arg)
mw->rx_size = val64;
val64 = roundup(val64, mw->xlat_align_size);
if (mw->buff_size != val64) {
-
rc = ntb_set_mw(nt, i, val64);
if (rc != 0) {
ntb_printf(0, "link up set mw%d fails, rc %d\n",
@@ -1593,7 +1590,6 @@ ntb_send_link_down(struct ntb_transport_qp *qp)
ntb_qp_link_down_reset(qp);
}
-
/* List Management */
static void