various fixes for QIB driver
cover various fixes for QIB driver
The following patches are for various bug fixes.
I'm not sure what counts as a regression for code that is newly introduced. I'm hoping that all except #2 can be made for 2.6.35 whereas
#2 can wait for 2.6.36 since it is actually a feature.
IB/qib: avoid a rare 7322 chip problem by not marking VL15 bufs as WC IB/qib: allow PSM to select from multiple port assignment algorithms IB/qib: mask hardware error during link reset
IB/qib: clear eager buffer memory for each new process
IB/qib: clear 6120 hardware error register
IB/qib: update 7322 serdes tables
IB/qib: completion queue callback needs to be single threaded --
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20100617231338.8006.18131.stgit-/[email protected]
PATCH 1/7 IB/qib: avoid a rare 7322 chip problem by not marking VL15 bufs as WC
From: Dave Olson <[email protected]>
Don't set write combining via PAT on the VL15 buffers to avoid a rare problem with unaligned writes from interrupt-flushed store buffers.
---
drivers/infiniband/hw/qib/qib.h | 1 + drivers/infiniband/hw/qib/qib_diag.c | 19 +++++++++++++++---- drivers/infiniband/hw/qib/qib_iba7322.c | 18 +++++++++++++++++- drivers/infiniband/hw/qib/qib_init.c | 6 ++++++ drivers/infiniband/hw/qib/qib_pcie.c | 2 ++ drivers/infiniband/hw/qib/qib_tx.c | 6 +++++- 6 files changed, 46 insertions(+), 6 deletions(-)
drivers/infiniband/hw/qib/qib.h +1 -0
@@ -686,6 +686,7 @@ struct qib_devdata {void __iomem *piobase;/* mem-mapped pointer to base of user chip regs (if using WC PAT) */ u64 __iomem *userbase; +void __iomem *piovl15base;/* base of VL15 buffers, if not WC */ /* * points to area where PIOavail registers will be DMA'ed. * Has to be on a page of it's own, because the page will be
drivers/infiniband/hw/qib/qib_diag.c +15 -4
@@ -233,6 +233,7 @@ static u32 __iomem *qib_remap_ioaddr32(struct qib_devdata *dd, u32 offset,u32 __iomem *krb32 = (u32 __iomem *)dd->kregbase;u32 __iomem *map =NULL ;u32 cnt =0 ; +u32 tot4k, offs4k;/* First, simplest case, offset is within the first map. */ kreglen = (dd->kregend - dd->kregbase) *sizeof (u64);
@@ -250,7 +251,8 @@ static u32 __iomem *qib_remap_ioaddr32(struct qib_devdata *dd, u32 offset,if (dd->userbase) {/* If user regs mapped, they are after send, so set limit. */ u32 ulim = (dd->cfgctxts * dd->ureg_align) + dd->uregbase; - snd_lim = dd->uregbase; +if (!dd->piovl15base) + snd_lim = dd->uregbase; krb32 = (u32 __iomem *)dd->userbase;if (offset >= dd->uregbase && offset < ulim) { map = krb32 + (offset - dd->uregbase) /sizeof (u32);
@@ -277,14 +279,14 @@ static u32 __iomem *qib_remap_ioaddr32(struct qib_devdata *dd, u32 offset,/* If 4k buffers exist, account for them by bumping * appropriate limit. */ + tot4k = dd->piobcnt4k * dd->align4k; + offs4k = dd->piobufbase >>32 ;if (dd->piobcnt4k) { -u32 tot4k = dd->piobcnt4k * dd->align4k; -u32 offs4k = dd->piobufbase >>32 ;if (snd_bottom > offs4k) snd_bottom = offs4k;else {/* 4k above 2k. Bump snd_lim, if needed*/ -if (!dd->userbase) +if (!dd->userbase || dd->piovl15base) snd_lim = offs4k + tot4k; } }
@@ -298,6 +300,15 @@ static u32 __iomem *qib_remap_ioaddr32(struct qib_devdata *dd, u32 offset, cnt = snd_lim - offset; } +if (!map && offs4k && dd->piovl15base) { + snd_lim = offs4k + tot4k +2 * dd->align4k; +if (offset >= (offs4k + tot4k) && offset < snd_lim) { + map = (u32 __iomem *)dd->piovl15base + + ((offset - (offs4k + tot4k)) /sizeof (u32)); + cnt = snd_lim - offset; + } + } + mapped:if (cntp) *cntp = cnt;
drivers/infiniband/hw/qib/qib_iba7322.c +17 -1
@@ -6119,9 +6119,25 @@ static int qib_init_7322_variables(struct qib_devdata *dd)qib_set_ctxtcnt (dd);if (qib_wc_pat) { - ret =init_chip_wc_pat (dd,NUM_VL15_BUFS * dd->align4k); +resource_size_t vl15off; +/* +* We do not set WC on the VL15 buffers to avoid +* a rare problem with unaligned writes from +* interrupt-flushed store buffers, so we need +* to map those separately here. We can't solve +* this for the rarely used mtrr case. +*/ + ret =init_chip_wc_pat (dd,0 );if (ret) goto bail; + +/* vl15 buffers start just after the 4k buffers */ + vl15off = dd->physaddr + (dd->piobufbase >>32 ) + + dd->piobcnt4k * dd->align4k; + dd->piovl15base =ioremap_nocache (vl15off, +NUM_VL15_BUFS * dd->align4k); +if (!dd->piovl15base) + goto bail; }qib_7322_set_baseaddrs (dd);/* set chip access pointers now */
drivers/infiniband/hw/qib/qib_init.c +6 -0
@@ -1499,6 +1499,12 @@ bail:return -ENOMEM ; } +/* +* Note: Changes to this routine should be mirrored +* for the diagnostics routine qib_remap_ioaddr32(). +* There is also related code for VL15 buffers in qib_init_7322_variables(). +* The teardown code that unmaps is in qib_pcie_ddcleanup() +*/ int init_chip_wc_pat (struct qib_devdata *dd,u32 vl15buflen) {u64 __iomem *qib_kregbase =NULL ;
drivers/infiniband/hw/qib/qib_pcie.c +2 -0
@@ -179,6 +179,8 @@ void qib_pcie_ddcleanup(struct qib_devdata *dd)iounmap (dd->piobase);if (dd->userbase)iounmap (dd->userbase); +if (dd->piovl15base) +iounmap (dd->piovl15base);pci_disable_device (dd->pcidev);pci_release_regions (dd->pcidev);
drivers/infiniband/hw/qib/qib_tx.c +5 -1
@@ -340,9 +340,13 @@ rescan:if (i < dd->piobcnt2k) buf = (u32 __iomem *)(dd->pio2kbase + i * dd->palign); -else +else if (i < dd->piobcnt2k + dd->piobcnt4k || !dd->piovl15base) buf = (u32 __iomem *)(dd->pio4kbase + (i - dd->piobcnt2k) * dd->align4k); +else + buf = (u32 __iomem *)(dd->piovl15base + + (i - (dd->piobcnt2k + dd->piobcnt4k)) * + dd->align4k);if (pbufnum) *pbufnum = i; dd->upd_pio_shadow =0 ;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/7 IB/qib: allow PSM to select from multiple port assignment algorithms
In reply to a message not in the archiveFrom: Dave Olson <[email protected]>
We formerly allowed only full specification, or using all contexts within an HCA before moving to the next HCA. We now allow an additional method, of round-robining through HCAs, and make that the default.
---
drivers/infiniband/hw/qib/qib_common.h | 16 ++ drivers/infiniband/hw/qib/qib_file_ops.c | 203 +++++++++++++++--------------- 2 files changed, 118 insertions(+), 101 deletions(-)
drivers/infiniband/hw/qib/qib_common.h +14 -2
@@ -279,7 +279,7 @@ struct qib_base_info {* may not be implemented; the user code must deal with this if it * cares, or it must abort after initialization reports the difference. */ -#define QIB_USER_SWMINOR 10 +#define QIB_USER_SWMINOR 11#define QIB_USER_SWVERSION ((QIB_USER_SWMAJOR << 16) | QIB_USER_SWMINOR)
@@ -302,6 +302,18 @@ struct qib_base_info {#define QIB_KERN_SWVERSION ((QIB_KERN_TYPE << 31) | QIB_USER_SWVERSION)/* +* If the unit is specified via open, HCA choice is fixed. If port is +* specified, it's also fixed. Otherwise we try to spread contexts +* across ports and HCAs, using different algorithims. WITHIN is +* the old default, prior to this mechanism. +*/ +#define QIB_PORT_ALG_ACROSS 0/* round robin contexts across HCAs, then +* ports; this is the default */ +#define QIB_PORT_ALG_WITHIN 1/* use all contexts on an HCA (round robin +* active ports within), then next HCA */ +#define QIB_PORT_ALG_COUNT 2/* number of algorithm choices */ + +/* * This structure is passed to qib_userinit() to tell the driver where * user code buffers are, sizes, etc. The offsets and sizes of the * fields must remain unchanged, for binary compatibility. It can
@@ -319,7 +331,7 @@ struct qib_user_info {/* size of struct base_info to write to */ __u32 spu_base_info_size; -__u32 _spu_unused3; +__u32 spu_port_alg;/* which QIB_PORT_ALG_*; unused user minor < 11 */ /* * If two or more processes wish to share a context, each process
drivers/infiniband/hw/qib/qib_file_ops.c +104 -99
266 lines not on this page · raw message
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20100617231349.8006.24712.stgit-/[email protected]
Roland Dreier
AppliedRe: [PATCH 2/7] IB/qib: allow PSM to select from multiple port assignment algorithms
thanks, applied
Signature · 6 lines
Roland Dreier <[email protected]> || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 3/7 IB/qib: mask hardware error during link reset
In reply to a message not in the archiveThe HCA checks for certain hardware errors which can be falsely triggered when the IB link is reset. The fix is to mask them rather than report them.
---
drivers/infiniband/hw/qib/qib_7322_regs.h | 48 +++++++++++++++-------------- drivers/infiniband/hw/qib/qib_iba7322.c | 9 ++++- 2 files changed, 31 insertions(+), 26 deletions(-)
drivers/infiniband/hw/qib/qib_7322_regs.h +24 -24
@@ -742,15 +742,15 @@#define QIB_7322_HwErrMask_IBCBusFromSPCParityErrMask_1_LSB 0xF#define QIB_7322_HwErrMask_IBCBusFromSPCParityErrMask_1_MSB 0xF#define QIB_7322_HwErrMask_IBCBusFromSPCParityErrMask_1_RMASK 0x1 -#define QIB_7322_HwErrMask_statusValidNoEopMask_1_LSB 0xE -#define QIB_7322_HwErrMask_statusValidNoEopMask_1_MSB 0xE -#define QIB_7322_HwErrMask_statusValidNoEopMask_1_RMASK 0x1 +#define QIB_7322_HwErrMask_IBCBusToSPCParityErrMask_1_LSB 0xE +#define QIB_7322_HwErrMask_IBCBusToSPCParityErrMask_1_MSB 0xE +#define QIB_7322_HwErrMask_IBCBusToSPCParityErrMask_1_RMASK 0x1#define QIB_7322_HwErrMask_IBCBusFromSPCParityErrMask_0_LSB 0xD#define QIB_7322_HwErrMask_IBCBusFromSPCParityErrMask_0_MSB 0xD#define QIB_7322_HwErrMask_IBCBusFromSPCParityErrMask_0_RMASK 0x1 -#define QIB_7322_HwErrMask_statusValidNoEopMask_0_LSB 0xC -#define QIB_7322_HwErrMask_statusValidNoEopMask_0_MSB 0xC -#define QIB_7322_HwErrMask_statusValidNoEopMask_0_RMASK 0x1 +#define QIB_7322_HwErrMask_statusValidNoEopMask_LSB 0xC +#define QIB_7322_HwErrMask_statusValidNoEopMask_MSB 0xC +#define QIB_7322_HwErrMask_statusValidNoEopMask_RMASK 0x1#define QIB_7322_HwErrMask_LATriggeredMask_LSB 0xB#define QIB_7322_HwErrMask_LATriggeredMask_MSB 0xB#define QIB_7322_HwErrMask_LATriggeredMask_RMASK 0x1
@@ -796,15 +796,15 @@#define QIB_7322_HwErrStatus_IBCBusFromSPCParityErr_1_LSB 0xF#define QIB_7322_HwErrStatus_IBCBusFromSPCParityErr_1_MSB 0xF#define QIB_7322_HwErrStatus_IBCBusFromSPCParityErr_1_RMASK 0x1 -#define QIB_7322_HwErrStatus_statusValidNoEop_1_LSB 0xE -#define QIB_7322_HwErrStatus_statusValidNoEop_1_MSB 0xE -#define QIB_7322_HwErrStatus_statusValidNoEop_1_RMASK 0x1 +#define QIB_7322_HwErrStatus_IBCBusToSPCParityErr_1_LSB 0xE +#define QIB_7322_HwErrStatus_IBCBusToSPCParityErr_1_MSB 0xE +#define QIB_7322_HwErrStatus_IBCBusToSPCParityErr_1_RMASK 0x1#define QIB_7322_HwErrStatus_IBCBusFromSPCParityErr_0_LSB 0xD#define QIB_7322_HwErrStatus_IBCBusFromSPCParityErr_0_MSB 0xD#define QIB_7322_HwErrStatus_IBCBusFromSPCParityErr_0_RMASK 0x1 -#define QIB_7322_HwErrStatus_statusValidNoEop_0_LSB 0xC -#define QIB_7322_HwErrStatus_statusValidNoEop_0_MSB 0xC -#define QIB_7322_HwErrStatus_statusValidNoEop_0_RMASK 0x1 +#define QIB_7322_HwErrStatus_statusValidNoEop_LSB 0xC +#define QIB_7322_HwErrStatus_statusValidNoEop_MSB 0xC +#define QIB_7322_HwErrStatus_statusValidNoEop_RMASK 0x1#define QIB_7322_HwErrStatus_LATriggered_LSB 0xB#define QIB_7322_HwErrStatus_LATriggered_MSB 0xB#define QIB_7322_HwErrStatus_LATriggered_RMASK 0x1
@@ -850,15 +850,15 @@#define QIB_7322_HwErrClear_IBCBusFromSPCParityErrClear_1_LSB 0xF#define QIB_7322_HwErrClear_IBCBusFromSPCParityErrClear_1_MSB 0xF#define QIB_7322_HwErrClear_IBCBusFromSPCParityErrClear_1_RMASK 0x1 -#define QIB_7322_HwErrClear_IBCBusToSPCparityErrClear_1_LSB 0xE -#define QIB_7322_HwErrClear_IBCBusToSPCparityErrClear_1_MSB 0xE -#define QIB_7322_HwErrClear_IBCBusToSPCparityErrClear_1_RMASK 0x1 +#define QIB_7322_HwErrClear_IBCBusToSPCParityErrClear_1_LSB 0xE +#define QIB_7322_HwErrClear_IBCBusToSPCParityErrClear_1_MSB 0xE +#define QIB_7322_HwErrClear_IBCBusToSPCParityErrClear_1_RMASK 0x1#define QIB_7322_HwErrClear_IBCBusFromSPCParityErrClear_0_LSB 0xD#define QIB_7322_HwErrClear_IBCBusFromSPCParityErrClear_0_MSB 0xD#define QIB_7322_HwErrClear_IBCBusFromSPCParityErrClear_0_RMASK 0x1 -#define QIB_7322_HwErrClear_IBCBusToSPCparityErrClear_0_LSB 0xC -#define QIB_7322_HwErrClear_IBCBusToSPCparityErrClear_0_MSB 0xC -#define QIB_7322_HwErrClear_IBCBusToSPCparityErrClear_0_RMASK 0x1 +#define QIB_7322_HwErrClear_statusValidNoEopClear_LSB 0xC +#define QIB_7322_HwErrClear_statusValidNoEopClear_MSB 0xC +#define QIB_7322_HwErrClear_statusValidNoEopClear_RMASK 0x1#define QIB_7322_HwErrClear_LATriggeredClear_LSB 0xB#define QIB_7322_HwErrClear_LATriggeredClear_MSB 0xB#define QIB_7322_HwErrClear_LATriggeredClear_RMASK 0x1
@@ -880,15 +880,15 @@#define QIB_7322_HwDiagCtrl_ForceIBCBusFromSPCParityErr_1_LSB 0xF#define QIB_7322_HwDiagCtrl_ForceIBCBusFromSPCParityErr_1_MSB 0xF#define QIB_7322_HwDiagCtrl_ForceIBCBusFromSPCParityErr_1_RMASK 0x1 -#define QIB_7322_HwDiagCtrl_ForcestatusValidNoEop_1_LSB 0xE -#define QIB_7322_HwDiagCtrl_ForcestatusValidNoEop_1_MSB 0xE -#define QIB_7322_HwDiagCtrl_ForcestatusValidNoEop_1_RMASK 0x1 +#define QIB_7322_HwDiagCtrl_ForceIBCBusToSPCParityErr_1_LSB 0xE +#define QIB_7322_HwDiagCtrl_ForceIBCBusToSPCParityErr_1_MSB 0xE +#define QIB_7322_HwDiagCtrl_ForceIBCBusToSPCParityErr_1_RMASK 0x1#define QIB_7322_HwDiagCtrl_ForceIBCBusFromSPCParityErr_0_LSB 0xD#define QIB_7322_HwDiagCtrl_ForceIBCBusFromSPCParityErr_0_MSB 0xD#define QIB_7322_HwDiagCtrl_ForceIBCBusFromSPCParityErr_0_RMASK 0x1 -#define QIB_7322_HwDiagCtrl_ForcestatusValidNoEop_0_LSB 0xC -#define QIB_7322_HwDiagCtrl_ForcestatusValidNoEop_0_MSB 0xC -#define QIB_7322_HwDiagCtrl_ForcestatusValidNoEop_0_RMASK 0x1 +#define QIB_7322_HwDiagCtrl_ForceIBCBusToSPCParityErr_0_LSB 0xC +#define QIB_7322_HwDiagCtrl_ForceIBCBusToSPCParityErr_0_MSB 0xC +#define QIB_7322_HwDiagCtrl_ForceIBCBusToSPCParityErr_0_RMASK 0x1#define QIB_7322_EXTStatus_OFFS 0xC0#define QIB_7322_EXTStatus_DEF 0x000000000000X000
drivers/infiniband/hw/qib/qib_iba7322.c +7 -2
@@ -1100,9 +1100,9 @@ static const struct qib_hwerror_msgs qib_7322_hwerror_msgs[] = {HWE_AUTO_P (SDmaMemReadErr,1 ),HWE_AUTO_P (SDmaMemReadErr,0 ),HWE_AUTO_P (IBCBusFromSPCParityErr,1 ), +HWE_AUTO_P (IBCBusToSPCParityErr,1 ),HWE_AUTO_P (IBCBusFromSPCParityErr,0 ), -HWE_AUTO_P (statusValidNoEop,1 ), -HWE_AUTO_P (statusValidNoEop,0 ), +HWE_AUTO (statusValidNoEop),HWE_AUTO (LATriggered), { .mask = 0 } };
@@ -4763,6 +4763,8 @@ static void qib_7322_mini_pcs_reset(struct qib_pportdata *ppd)SYM_MASK (IBPCSConfig_0, tx_rx_reset); val =qib_read_kreg_port (ppd, krp_ib_pcsconfig); +qib_write_kreg (dd, kr_hwerrmask, + dd->cspec->hwerrmask & ~HWE_MASK (statusValidNoEop));qib_write_kreg_port (ppd, krp_ibcctrl_a, ppd->cpspec->ibcctrl_a & ~SYM_MASK (IBCCtrlA_0, IBLinkEn));
@@ -4772,6 +4774,9 @@ static void qib_7322_mini_pcs_reset(struct qib_pportdata *ppd)qib_write_kreg_port (ppd, krp_ib_pcsconfig, val & ~reset_bits);qib_write_kreg_port (ppd, krp_ibcctrl_a, ppd->cpspec->ibcctrl_a);qib_write_kreg (dd, kr_scratch,0ULL ); +qib_write_kreg (dd, kr_hwerrclear, +SYM_MASK (HwErrClear, statusValidNoEopClear)); +qib_write_kreg (dd, kr_hwerrmask, dd->cspec->hwerrmask); }/*
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 4/7 IB/qib: clear eager buffer memory for each new process
In reply to a message not in the archiveThe eager buffers are not being cleared before being mmapped into a new user address space. This is a potential security risk and should be fixed. Note that the eager header queue is already being cleared OK.
---
drivers/infiniband/hw/qib/qib_init.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/infiniband/hw/qib/qib_init.c +3 -0
@@ -1472,6 +1472,9 @@ int qib_setup_eagerbufs(struct qib_ctxtdata *rcd)dma_addr_t pa = rcd->rcvegrbuf_phys[chunk];unsigned i; +/* clear for security and sanity on each use */ +memset (rcd->rcvegrbuf[chunk],0 , size); +for (i =0 ; e < egrcnt && i < egrperchunk; e++, i++) { dd->f_put_tid(dd, e + egroff + (u64 __iomem *)
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 5/7 IB/qib: clear 6120 hardware error register
In reply to a message not in the archiveThe hardware error register needs to be cleared or another interrupt will be generated, thus causing an infinite loop.
This is a regression introduced when removing debug output.
---
drivers/infiniband/hw/qib/qib_iba6120.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/infiniband/hw/qib/qib_iba6120.c +1 -2
@@ -1355,8 +1355,7 @@ static int qib_6120_bringup_serdes(struct qib_pportdata *ppd) hwstat =qib_read_kreg64 (dd, kr_hwerrstatus);if (hwstat) {/* should just have PLL, clear all set, in an case */ -if (hwstat & ~QLOGIC_IB_HWE_SERDESPLLFAILED ) -qib_write_kreg (dd, kr_hwerrclear, hwstat); +qib_write_kreg (dd, kr_hwerrclear, hwstat);qib_write_kreg (dd, kr_errclear,ERR_MASK (HardwareErr)); }
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 6/7 IB/qib: update 7322 serdes tables
In reply to a message not in the archive---
drivers/infiniband/hw/qib/qib_iba7322.c | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-)
drivers/infiniband/hw/qib/qib_iba7322.c +12 -4
@@ -543,7 +543,7 @@ struct vendor_txdds_ent {static void write_tx_serdes_param (struct qib_pportdata *,struct txdds_ent *);#define TXDDS_TABLE_SZ 16/* number of entries per speed in onchip table */ -#define TXDDS_EXTRA_SZ 11/* number of extra tx settings entries */ +#define TXDDS_EXTRA_SZ 13/* number of extra tx settings entries */ #define SERDES_CHANS 4/* yes, it's obvious, but one less magic number */ #define H1_FORCE_VAL 8
@@ -5629,6 +5629,8 @@ static void set_no_qsfp_atten(struct qib_devdata *dd, int change)if (ppd->port != port || !ppd->link_speed_supported)continue ; ppd->cpspec->no_eep = val; +if (seth1) + ppd->cpspec->h1_val = h1;/* now change the IBC and serdes, overriding generic */ init_txdds_table (ppd,1 ); any++;
@@ -6069,9 +6071,9 @@ static int qib_init_7322_variables(struct qib_devdata *dd)* the "cable info" setup here. Can be overridden * in adapter-specific routines. */ -if (!(ppd->dd->flags &QIB_HAS_QSFP )) { -if (!IS_QMH (ppd->dd) && !IS_QME (ppd->dd)) -qib_devinfo (ppd->dd->pcidev,"IB%u:%u: " +if (!(dd->flags &QIB_HAS_QSFP )) { +if (!IS_QMH (dd) && !IS_QME (dd)) +qib_devinfo (dd->pcidev,"IB%u:%u: " "Unknown mezzanine card type\n" , dd->unit, ppd->port); cp->h1_val =IS_QMH (dd) ?H1_FORCE_QMH :H1_FORCE_QME ;
@@ -6953,6 +6955,8 @@ static const struct txdds_ent txdds_extra_sdr[TXDDS_EXTRA_SZ] = { { 0, 0, 0, 11 }, /* QME7342 backplane settings */ { 0, 0, 0, 11 }, /* QME7342 backplane settings */ { 0, 0, 0, 11 }, /* QME7342 backplane settings */ + { 0, 0, 0, 3 }, /* QMH7342 backplane settings */ + { 0, 0, 0, 4 }, /* QMH7342 backplane settings */ }; static const struct txdds_ent txdds_extra_ddr[TXDDS_EXTRA_SZ] = {
@@ -6968,6 +6972,8 @@ static const struct txdds_ent txdds_extra_ddr[TXDDS_EXTRA_SZ] = { { 0, 0, 0, 13 }, /* QME7342 backplane settings */ { 0, 0, 0, 13 }, /* QME7342 backplane settings */ { 0, 0, 0, 13 }, /* QME7342 backplane settings */ + { 0, 0, 0, 9 }, /* QMH7342 backplane settings */ + { 0, 0, 0, 10 }, /* QMH7342 backplane settings */ }; static const struct txdds_ent txdds_extra_qdr[TXDDS_EXTRA_SZ] = {
@@ -6983,6 +6989,8 @@ static const struct txdds_ent txdds_extra_qdr[TXDDS_EXTRA_SZ] = { { 0, 1, 12, 6 }, /* QME7342 backplane setting */ { 0, 1, 12, 7 }, /* QME7342 backplane setting */ { 0, 1, 12, 8 }, /* QME7342 backplane setting */ + { 0, 1, 0, 10 }, /* QMH7342 backplane settings */ + { 0, 1, 0, 12 }, /* QMH7342 backplane settings */ }; static const struct txdds_ent *get_atten_table(const struct txdds_ent *txdds,
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 7/7 IB/qib: completion queue callback needs to be single threaded
In reply to a message not in the archiveWorkqueues aren't exactly equivalent to tasklets since the callback function may be called from multiple CPUs before the callback returns. This causes completion notification callbacks to have MT bugs since they weren't expecting this behavior. The fix is to use a single threaded work queue.
---
drivers/infiniband/hw/qib/qib_init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/qib/qib_init.c +1 -1
@@ -1059,7 +1059,7 @@ static int __init qlogic_ib_init(void) goto bail_dev; } - qib_cq_wq =create_workqueue ("qib_cq" ); + qib_cq_wq =create_singlethread_workqueue ("qib_cq" );if (!qib_cq_wq) { ret = -ENOMEM ; goto bail_wq;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20100617231414.8006.57924.stgit-/[email protected]
Roland Dreier
AppliedRe: [PATCH 7/7] IB/qib: completion queue callback needs to be single threaded
thanks, applied all except 2/7 (which seems to be only an optimization)
Signature · 6 lines
Roland Dreier <[email protected]> || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines
The following patches are for various bug fixes.
I'm not sure what counts as a regression for code that is newly introduced. I'm hoping that all except #2 can be made for 2.6.35 whereas
#2 can wait for 2.6.36 since it is actually a feature.
All except #2 look OK for 2.6.35. I'll hold #2 for 2.6.36 -- I hope it's independent?
In the future it might be cleaner to send a series 1-6 of fixes for 2.6.35 and then send the port assignment one as a 2.6.36 patch separate from the series. (No need to resend here)
- R.
Signature · 6 lines
Roland Dreier <[email protected]> || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): adavd99ty4b.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org
The patches are all independent.
In the future, I will separate them if I think they are going into different kernel versions.
Thanks!
________________________________________
From: Roland Dreier [[email protected]]
Sent: Wednesday, June 23, 2010 11:14 AM
To: Ralph Campbell
Cc: [email protected]
Subject: Re: [PATCH 0/7] various fixes for QIB driver
Quoted 4 lines
The following patches are for various bug fixes.
I'm not sure what counts as a regression for code that is newly introduced. I'm hoping that all except #2 can be made for 2.6.35 whereas
#2 can wait for 2.6.36 since it is actually a feature.
All except #2 look OK for 2.6.35. I'll hold #2 for 2.6.36 -- I hope it's independent?
In the future it might be cleaner to send a series 1-6 of fixes for 2.6.35 and then send the port assignment one as a 2.6.36 patch separate from the series. (No need to resend here)
- R.
--
Roland Dreier <[email protected]> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html