[openib-general] [d binderman] Linux kernel 2.6.18.3 (ipath) bug report

Roland Dreier rdreier at cisco.com
Tue Nov 21 11:59:36 PST 2006


This looks like a typo... I dropped this in my tree, let me know if
it's the right fix:

commit c88f2eba8d0aa40037b1f8b412f95cc0414b8043
Author: Roland Dreier <rolandd at cisco.com>
Date:   Tue Nov 21 11:56:41 2006 -0800

    IB/ipath: Fix typo in pma_counter_select subscript
    
    The array has only 5 entries, so [5] should have been [4].
    
    Signed-off-by: Roland Dreier <rolandd at cisco.com>

diff --git a/drivers/infiniband/hw/ipath/ipath_verbs.c b/drivers/infiniband/hw/ipath/ipath_verbs.c
index a545610..acdee33 100644
--- a/drivers/infiniband/hw/ipath/ipath_verbs.c
+++ b/drivers/infiniband/hw/ipath/ipath_verbs.c
@@ -1487,7 +1487,7 @@ int ipath_register_ib_device(struct ipat
 	idev->pma_counter_select[1] = IB_PMA_PORT_RCV_DATA;
 	idev->pma_counter_select[2] = IB_PMA_PORT_XMIT_PKTS;
 	idev->pma_counter_select[3] = IB_PMA_PORT_RCV_PKTS;
-	idev->pma_counter_select[5] = IB_PMA_PORT_XMIT_WAIT;
+	idev->pma_counter_select[4] = IB_PMA_PORT_XMIT_WAIT;
 	idev->link_width_enabled = 3;	/* 1x or 4x */
 
 	/* Snapshot current HW counters to "clear" them. */




More information about the general mailing list