···12591259 */12601260 ipath_cdbg(ERRPKT, "Error Pkt, but no eflags! egrbuf"12611261 " %x, len %x hdrq+%x rhf: %Lx\n",12621262- etail, tlen, l,12621262+ etail, tlen, l, (unsigned long long)12631263 le64_to_cpu(*(__le64 *) rhf_addr));12641264 if (ipath_debug & __IPATH_ERRPKTDBG) {12651265 u32 j, *d, dw = rsize-2;···14571457 0xaaaaaaaaaaaaaaaaULL); /* All BUSY bits in qword */14581458 if (oldval != dd->ipath_pioavailshadow[i])14591459 ipath_dbg("shadow[%d] was %Lx, now %lx\n",14601460- i, oldval, dd->ipath_pioavailshadow[i]);14601460+ i, (unsigned long long) oldval,14611461+ dd->ipath_pioavailshadow[i]);14611462 }14621463 spin_unlock_irqrestore(&ipath_pioavail_lock, flags);14631464}
+4-3
drivers/infiniband/hw/ipath/ipath_iba7220.c
···10321032 ipath_cdbg(VERBOSE, "done: xgxs=%llx from %llx\n",10331033 (unsigned long long)10341034 ipath_read_kreg64(dd, dd->ipath_kregs->kr_xgxsconfig),10351035- prev_val);10351035+ (unsigned long long) prev_val);1036103610371037 guid = be64_to_cpu(dd->ipath_guid);10381038···10421042 ipath_dbg("No GUID for heartbeat, faking %llx\n",10431043 (unsigned long long)guid);10441044 } else10451045- ipath_cdbg(VERBOSE, "Wrote %llX to HRTBT_GUID\n", guid);10451045+ ipath_cdbg(VERBOSE, "Wrote %llX to HRTBT_GUID\n",10461046+ (unsigned long long) guid);10461047 ipath_write_kreg(dd, dd->ipath_kregs->kr_hrtbt_guid, guid);10471048 return ret;10481049}···25062505 if (dd->ipath_flags & IPATH_IB_AUTONEG_INPROG) {25072506 ipath_dbg("Did not get to DDR INIT (%x) after %Lu msecs\n",25082507 ipath_ib_state(dd, dd->ipath_lastibcstat),25092509- jiffies_to_msecs(jiffies)-startms);25082508+ (unsigned long long) jiffies_to_msecs(jiffies)-startms);25102509 dd->ipath_flags &= ~IPATH_IB_AUTONEG_INPROG;25112510 if (dd->ipath_autoneg_tries == IPATH_AUTONEG_TRIES) {25122511 dd->ipath_flags |= IPATH_IB_AUTONEG_FAILED;
+8-4
drivers/infiniband/hw/ipath/ipath_intr.c
···356356 dd->ipath_cregs->cr_iblinkerrrecovcnt);357357 if (linkrecov != dd->ipath_lastlinkrecov) {358358 ipath_dbg("IB linkrecov up %Lx (%s %s) recov %Lu\n",359359- ibcs, ib_linkstate(dd, ibcs),359359+ (unsigned long long) ibcs,360360+ ib_linkstate(dd, ibcs),360361 ipath_ibcstatus_str[ltstate],361361- linkrecov);362362+ (unsigned long long) linkrecov);362363 /* and no more until active again */363364 dd->ipath_lastlinkrecov = 0;364365 ipath_set_linkstate(dd, IPATH_IB_LINKDOWN);···11191118 if (unlikely(istat & ~dd->ipath_i_bitsextant))11201119 ipath_dev_err(dd,11211120 "interrupt with unknown interrupts %Lx set\n",11211121+ (unsigned long long)11221122 istat & ~dd->ipath_i_bitsextant);11231123 else if (istat & ~INFINIPATH_I_ERROR) /* errors do own printing */11241124- ipath_cdbg(VERBOSE, "intr stat=0x%Lx\n", istat);11241124+ ipath_cdbg(VERBOSE, "intr stat=0x%Lx\n",11251125+ (unsigned long long) istat);1125112611261127 if (istat & INFINIPATH_I_ERROR) {11271128 ipath_stats.sps_errints++;···11311128 dd->ipath_kregs->kr_errorstatus);11321129 if (!estat)11331130 dev_info(&dd->pcidev->dev, "error interrupt (%Lx), "11341134- "but no error bits set!\n", istat);11311131+ "but no error bits set!\n",11321132+ (unsigned long long) istat);11351133 else if (estat == -1LL)11361134 /*11371135 * should we try clearing all, or hope next read
+3-3
drivers/infiniband/hw/ipath/ipath_verbs.c
···10211021 struct ipath_verbs_txreq *tx = cookie;10221022 struct ipath_qp *qp = tx->qp;10231023 struct ipath_ibdev *dev = to_idev(qp->ibqp.device);10241024- unsigned int flags;10241024+ unsigned long flags;10251025 enum ib_wc_status ibs = status == IPATH_SDMA_TXREQ_S_OK ?10261026 IB_WC_SUCCESS : IB_WC_WR_FLUSH_ERR;10271027···1051105110521052static void decrement_dma_busy(struct ipath_qp *qp)10531053{10541054- unsigned int flags;10541054+ unsigned long flags;1055105510561056 if (atomic_dec_and_test(&qp->s_dma_busy)) {10571057 spin_lock_irqsave(&qp->s_lock, flags);···12211221 unsigned flush_wc;12221222 u32 control;12231223 int ret;12241224- unsigned int flags;12241224+ unsigned long flags;1225122512261226 piobuf = ipath_getpiobuf(dd, plen, NULL);12271227 if (unlikely(piobuf == NULL)) {
+16-17
drivers/infiniband/hw/mlx4/cq.c
···515515 wc->vendor_err = cqe->vendor_err_syndrome;516516}517517518518-static int mlx4_ib_ipoib_csum_ok(__be32 status, __be16 checksum)518518+static int mlx4_ib_ipoib_csum_ok(__be16 status, __be16 checksum)519519{520520- return ((status & cpu_to_be32(MLX4_CQE_IPOIB_STATUS_IPV4 |521521- MLX4_CQE_IPOIB_STATUS_IPV4F |522522- MLX4_CQE_IPOIB_STATUS_IPV4OPT |523523- MLX4_CQE_IPOIB_STATUS_IPV6 |524524- MLX4_CQE_IPOIB_STATUS_IPOK)) ==525525- cpu_to_be32(MLX4_CQE_IPOIB_STATUS_IPV4 |526526- MLX4_CQE_IPOIB_STATUS_IPOK)) &&527527- (status & cpu_to_be32(MLX4_CQE_IPOIB_STATUS_UDP |528528- MLX4_CQE_IPOIB_STATUS_TCP)) &&520520+ return ((status & cpu_to_be16(MLX4_CQE_STATUS_IPV4 |521521+ MLX4_CQE_STATUS_IPV4F |522522+ MLX4_CQE_STATUS_IPV4OPT |523523+ MLX4_CQE_STATUS_IPV6 |524524+ MLX4_CQE_STATUS_IPOK)) ==525525+ cpu_to_be16(MLX4_CQE_STATUS_IPV4 |526526+ MLX4_CQE_STATUS_IPOK)) &&527527+ (status & cpu_to_be16(MLX4_CQE_STATUS_UDP |528528+ MLX4_CQE_STATUS_TCP)) &&529529 checksum == cpu_to_be16(0xffff);530530}531531···582582 }583583584584 if (!*cur_qp ||585585- (be32_to_cpu(cqe->my_qpn) & 0xffffff) != (*cur_qp)->mqp.qpn) {585585+ (be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK) != (*cur_qp)->mqp.qpn) {586586 /*587587 * We do not have to take the QP table lock here,588588 * because CQs will be locked while QPs are removed589589 * from the table.590590 */591591 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev,592592- be32_to_cpu(cqe->my_qpn));592592+ be32_to_cpu(cqe->vlan_my_qpn));593593 if (unlikely(!mqp)) {594594 printk(KERN_WARNING "CQ %06x with entry for unknown QPN %06x\n",595595- cq->mcq.cqn, be32_to_cpu(cqe->my_qpn) & 0xffffff);595595+ cq->mcq.cqn, be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK);596596 return -EINVAL;597597 }598598···692692 }693693694694 wc->slid = be16_to_cpu(cqe->rlid);695695- wc->sl = cqe->sl >> 4;695695+ wc->sl = be16_to_cpu(cqe->sl_vid >> 12);696696 g_mlpath_rqpn = be32_to_cpu(cqe->g_mlpath_rqpn);697697 wc->src_qp = g_mlpath_rqpn & 0xffffff;698698 wc->dlid_path_bits = (g_mlpath_rqpn >> 24) & 0x7f;699699 wc->wc_flags |= g_mlpath_rqpn & 0x80000000 ? IB_WC_GRH : 0;700700 wc->pkey_index = be32_to_cpu(cqe->immed_rss_invalid) & 0x7f;701701- wc->csum_ok = mlx4_ib_ipoib_csum_ok(cqe->ipoib_status,702702- cqe->checksum);701701+ wc->csum_ok = mlx4_ib_ipoib_csum_ok(cqe->status, cqe->checksum);703702 }704703705704 return 0;···766767 */767768 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) {768769 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe);769769- if ((be32_to_cpu(cqe->my_qpn) & 0xffffff) == qpn) {770770+ if ((be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK) == qpn) {770771 if (srq && !(cqe->owner_sr_opcode & MLX4_CQE_IS_SEND_MASK))771772 mlx4_ib_free_srq_wqe(srq, be16_to_cpu(cqe->wqe_index));772773 ++nfreed;