提交 327a338d 编写于 作者: A Arthur Jones 提交者: Roland Dreier

IB/ipath: iba6110 rev4 GPIO counters support

On iba6110 rev4, support for three more IB counters were added.  The
LocalLinkIntegrityError counter, the ExcessiveBufferOverrunErrors
counter and support for error counting of flow control packets on an
invalid VL.  These counters trigger GPIO interrupts and the sw keeps
track of the counts.  Since we also use GPIO interrupts to signal packet
reception, we need to turn off the fast interrupts, or we risk losing a
GPIO interrupt.
Signed-off-by: NArthur Jones <arthur.jones@qlogic.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 76dea3bc
...@@ -1559,6 +1559,14 @@ static int ipath_ht_early_init(struct ipath_devdata *dd) ...@@ -1559,6 +1559,14 @@ static int ipath_ht_early_init(struct ipath_devdata *dd)
ipath_dev_err(dd, "Unsupported InfiniPath serial " ipath_dev_err(dd, "Unsupported InfiniPath serial "
"number %.16s!\n", dd->ipath_serial); "number %.16s!\n", dd->ipath_serial);
if (dd->ipath_minrev >= 4) {
/* Rev4+ reports extra errors via internal GPIO pins */
dd->ipath_flags |= IPATH_GPIO_ERRINTRS;
dd->ipath_gpio_mask |= IPATH_GPIO_ERRINTR_MASK;
ipath_write_kreg(dd, dd->ipath_kregs->kr_gpio_mask,
dd->ipath_gpio_mask);
}
return 0; return 0;
} }
......
...@@ -1085,8 +1085,8 @@ irqreturn_t ipath_intr(int irq, void *data) ...@@ -1085,8 +1085,8 @@ irqreturn_t ipath_intr(int irq, void *data)
* GPIO_2 indicates (on some HT4xx boards) that a packet * GPIO_2 indicates (on some HT4xx boards) that a packet
* has arrived for Port 0. Checking for this * has arrived for Port 0. Checking for this
* is controlled by flag IPATH_GPIO_INTR. * is controlled by flag IPATH_GPIO_INTR.
* GPIO_3..5 on IBA6120 Rev2 chips indicate errors * GPIO_3..5 on IBA6120 Rev2 and IBA6110 Rev4 chips indicate
* that we need to count. Checking for this * errors that we need to count. Checking for this
* is controlled by flag IPATH_GPIO_ERRINTRS. * is controlled by flag IPATH_GPIO_ERRINTRS.
*/ */
u32 gpiostatus; u32 gpiostatus;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册