qib_tx.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. /*
  2. * Copyright (c) 2008, 2009, 2010 QLogic Corporation. All rights reserved.
  3. *
  4. * This software is available to you under a choice of one of two
  5. * licenses. You may choose to be licensed under the terms of the GNU
  6. * General Public License (GPL) Version 2, available from the file
  7. * COPYING in the main directory of this source tree, or the
  8. * OpenIB.org BSD license below:
  9. *
  10. * Redistribution and use in source and binary forms, with or
  11. * without modification, are permitted provided that the following
  12. * conditions are met:
  13. *
  14. * - Redistributions of source code must retain the above
  15. * copyright notice, this list of conditions and the following
  16. * disclaimer.
  17. *
  18. * - Redistributions in binary form must reproduce the above
  19. * copyright notice, this list of conditions and the following
  20. * disclaimer in the documentation and/or other materials
  21. * provided with the distribution.
  22. *
  23. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  27. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  28. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  29. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  30. * SOFTWARE.
  31. */
  32. #include <linux/spinlock.h>
  33. #include <linux/pci.h>
  34. #include <linux/io.h>
  35. #include <linux/delay.h>
  36. #include <linux/netdevice.h>
  37. #include <linux/vmalloc.h>
  38. #include <linux/moduleparam.h>
  39. #include "qib.h"
  40. static unsigned qib_hol_timeout_ms = 3000;
  41. module_param_named(hol_timeout_ms, qib_hol_timeout_ms, uint, S_IRUGO);
  42. MODULE_PARM_DESC(hol_timeout_ms,
  43. "duration of user app suspension after link failure");
  44. unsigned qib_sdma_fetch_arb = 1;
  45. module_param_named(fetch_arb, qib_sdma_fetch_arb, uint, S_IRUGO);
  46. MODULE_PARM_DESC(fetch_arb, "IBA7220: change SDMA descriptor arbitration");
  47. /**
  48. * qib_disarm_piobufs - cancel a range of PIO buffers
  49. * @dd: the qlogic_ib device
  50. * @first: the first PIO buffer to cancel
  51. * @cnt: the number of PIO buffers to cancel
  52. *
  53. * Cancel a range of PIO buffers. Used at user process close,
  54. * in case it died while writing to a PIO buffer.
  55. */
  56. void qib_disarm_piobufs(struct qib_devdata *dd, unsigned first, unsigned cnt)
  57. {
  58. unsigned long flags;
  59. unsigned i;
  60. unsigned last;
  61. last = first + cnt;
  62. spin_lock_irqsave(&dd->pioavail_lock, flags);
  63. for (i = first; i < last; i++) {
  64. __clear_bit(i, dd->pio_need_disarm);
  65. dd->f_sendctrl(dd->pport, QIB_SENDCTRL_DISARM_BUF(i));
  66. }
  67. spin_unlock_irqrestore(&dd->pioavail_lock, flags);
  68. }
  69. /*
  70. * This is called by a user process when it sees the DISARM_BUFS event
  71. * bit is set.
  72. */
  73. int qib_disarm_piobufs_ifneeded(struct qib_ctxtdata *rcd)
  74. {
  75. struct qib_devdata *dd = rcd->dd;
  76. unsigned i;
  77. unsigned last;
  78. unsigned n = 0;
  79. last = rcd->pio_base + rcd->piocnt;
  80. /*
  81. * Don't need uctxt_lock here, since user has called in to us.
  82. * Clear at start in case more interrupts set bits while we
  83. * are disarming
  84. */
  85. if (rcd->user_event_mask) {
  86. /*
  87. * subctxt_cnt is 0 if not shared, so do base
  88. * separately, first, then remaining subctxt, if any
  89. */
  90. clear_bit(_QIB_EVENT_DISARM_BUFS_BIT, &rcd->user_event_mask[0]);
  91. for (i = 1; i < rcd->subctxt_cnt; i++)
  92. clear_bit(_QIB_EVENT_DISARM_BUFS_BIT,
  93. &rcd->user_event_mask[i]);
  94. }
  95. spin_lock_irq(&dd->pioavail_lock);
  96. for (i = rcd->pio_base; i < last; i++) {
  97. if (__test_and_clear_bit(i, dd->pio_need_disarm)) {
  98. n++;
  99. dd->f_sendctrl(rcd->ppd, QIB_SENDCTRL_DISARM_BUF(i));
  100. }
  101. }
  102. spin_unlock_irq(&dd->pioavail_lock);
  103. return 0;
  104. }
  105. static struct qib_pportdata *is_sdma_buf(struct qib_devdata *dd, unsigned i)
  106. {
  107. struct qib_pportdata *ppd;
  108. unsigned pidx;
  109. for (pidx = 0; pidx < dd->num_pports; pidx++) {
  110. ppd = dd->pport + pidx;
  111. if (i >= ppd->sdma_state.first_sendbuf &&
  112. i < ppd->sdma_state.last_sendbuf)
  113. return ppd;
  114. }
  115. return NULL;
  116. }
  117. /*
  118. * Return true if send buffer is being used by a user context.
  119. * Sets _QIB_EVENT_DISARM_BUFS_BIT in user_event_mask as a side effect
  120. */
  121. static int find_ctxt(struct qib_devdata *dd, unsigned bufn)
  122. {
  123. struct qib_ctxtdata *rcd;
  124. unsigned ctxt;
  125. int ret = 0;
  126. spin_lock(&dd->uctxt_lock);
  127. for (ctxt = dd->first_user_ctxt; ctxt < dd->cfgctxts; ctxt++) {
  128. rcd = dd->rcd[ctxt];
  129. if (!rcd || bufn < rcd->pio_base ||
  130. bufn >= rcd->pio_base + rcd->piocnt)
  131. continue;
  132. if (rcd->user_event_mask) {
  133. int i;
  134. /*
  135. * subctxt_cnt is 0 if not shared, so do base
  136. * separately, first, then remaining subctxt, if any
  137. */
  138. set_bit(_QIB_EVENT_DISARM_BUFS_BIT,
  139. &rcd->user_event_mask[0]);
  140. for (i = 1; i < rcd->subctxt_cnt; i++)
  141. set_bit(_QIB_EVENT_DISARM_BUFS_BIT,
  142. &rcd->user_event_mask[i]);
  143. }
  144. ret = 1;
  145. break;
  146. }
  147. spin_unlock(&dd->uctxt_lock);
  148. return ret;
  149. }
  150. /*
  151. * Disarm a set of send buffers. If the buffer might be actively being
  152. * written to, mark the buffer to be disarmed later when it is not being
  153. * written to.
  154. *
  155. * This should only be called from the IRQ error handler.
  156. */
  157. void qib_disarm_piobufs_set(struct qib_devdata *dd, unsigned long *mask,
  158. unsigned cnt)
  159. {
  160. struct qib_pportdata *ppd, *pppd[QIB_MAX_IB_PORTS];
  161. unsigned i;
  162. unsigned long flags;
  163. for (i = 0; i < dd->num_pports; i++)
  164. pppd[i] = NULL;
  165. for (i = 0; i < cnt; i++) {
  166. int which;
  167. if (!test_bit(i, mask))
  168. continue;
  169. /*
  170. * If the buffer is owned by the DMA hardware,
  171. * reset the DMA engine.
  172. */
  173. ppd = is_sdma_buf(dd, i);
  174. if (ppd) {
  175. pppd[ppd->port] = ppd;
  176. continue;
  177. }
  178. /*
  179. * If the kernel is writing the buffer or the buffer is
  180. * owned by a user process, we can't clear it yet.
  181. */
  182. spin_lock_irqsave(&dd->pioavail_lock, flags);
  183. if (test_bit(i, dd->pio_writing) ||
  184. (!test_bit(i << 1, dd->pioavailkernel) &&
  185. find_ctxt(dd, i))) {
  186. __set_bit(i, dd->pio_need_disarm);
  187. which = 0;
  188. } else {
  189. which = 1;
  190. dd->f_sendctrl(dd->pport, QIB_SENDCTRL_DISARM_BUF(i));
  191. }
  192. spin_unlock_irqrestore(&dd->pioavail_lock, flags);
  193. }
  194. /* do cancel_sends once per port that had sdma piobufs in error */
  195. for (i = 0; i < dd->num_pports; i++)
  196. if (pppd[i])
  197. qib_cancel_sends(pppd[i]);
  198. }
  199. /**
  200. * update_send_bufs - update shadow copy of the PIO availability map
  201. * @dd: the qlogic_ib device
  202. *
  203. * called whenever our local copy indicates we have run out of send buffers
  204. */
  205. static void update_send_bufs(struct qib_devdata *dd)
  206. {
  207. unsigned long flags;
  208. unsigned i;
  209. const unsigned piobregs = dd->pioavregs;
  210. /*
  211. * If the generation (check) bits have changed, then we update the
  212. * busy bit for the corresponding PIO buffer. This algorithm will
  213. * modify positions to the value they already have in some cases
  214. * (i.e., no change), but it's faster than changing only the bits
  215. * that have changed.
  216. *
  217. * We would like to do this atomicly, to avoid spinlocks in the
  218. * critical send path, but that's not really possible, given the
  219. * type of changes, and that this routine could be called on
  220. * multiple cpu's simultaneously, so we lock in this routine only,
  221. * to avoid conflicting updates; all we change is the shadow, and
  222. * it's a single 64 bit memory location, so by definition the update
  223. * is atomic in terms of what other cpu's can see in testing the
  224. * bits. The spin_lock overhead isn't too bad, since it only
  225. * happens when all buffers are in use, so only cpu overhead, not
  226. * latency or bandwidth is affected.
  227. */
  228. if (!dd->pioavailregs_dma)
  229. return;
  230. spin_lock_irqsave(&dd->pioavail_lock, flags);
  231. for (i = 0; i < piobregs; i++) {
  232. u64 pchbusy, pchg, piov, pnew;
  233. piov = le64_to_cpu(dd->pioavailregs_dma[i]);
  234. pchg = dd->pioavailkernel[i] &
  235. ~(dd->pioavailshadow[i] ^ piov);
  236. pchbusy = pchg << QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT;
  237. if (pchg && (pchbusy & dd->pioavailshadow[i])) {
  238. pnew = dd->pioavailshadow[i] & ~pchbusy;
  239. pnew |= piov & pchbusy;
  240. dd->pioavailshadow[i] = pnew;
  241. }
  242. }
  243. spin_unlock_irqrestore(&dd->pioavail_lock, flags);
  244. }
  245. /*
  246. * Debugging code and stats updates if no pio buffers available.
  247. */
  248. static noinline void no_send_bufs(struct qib_devdata *dd)
  249. {
  250. dd->upd_pio_shadow = 1;
  251. /* not atomic, but if we lose a stat count in a while, that's OK */
  252. qib_stats.sps_nopiobufs++;
  253. }
  254. /*
  255. * Common code for normal driver send buffer allocation, and reserved
  256. * allocation.
  257. *
  258. * Do appropriate marking as busy, etc.
  259. * Returns buffer pointer if one is found, otherwise NULL.
  260. */
  261. u32 __iomem *qib_getsendbuf_range(struct qib_devdata *dd, u32 *pbufnum,
  262. u32 first, u32 last)
  263. {
  264. unsigned i, j, updated = 0;
  265. unsigned nbufs;
  266. unsigned long flags;
  267. unsigned long *shadow = dd->pioavailshadow;
  268. u32 __iomem *buf;
  269. if (!(dd->flags & QIB_PRESENT))
  270. return NULL;
  271. nbufs = last - first + 1; /* number in range to check */
  272. if (dd->upd_pio_shadow) {
  273. update_shadow:
  274. /*
  275. * Minor optimization. If we had no buffers on last call,
  276. * start out by doing the update; continue and do scan even
  277. * if no buffers were updated, to be paranoid.
  278. */
  279. update_send_bufs(dd);
  280. updated++;
  281. }
  282. i = first;
  283. /*
  284. * While test_and_set_bit() is atomic, we do that and then the
  285. * change_bit(), and the pair is not. See if this is the cause
  286. * of the remaining armlaunch errors.
  287. */
  288. spin_lock_irqsave(&dd->pioavail_lock, flags);
  289. if (dd->last_pio >= first && dd->last_pio <= last)
  290. i = dd->last_pio + 1;
  291. if (!first)
  292. /* adjust to min possible */
  293. nbufs = last - dd->min_kernel_pio + 1;
  294. for (j = 0; j < nbufs; j++, i++) {
  295. if (i > last)
  296. i = !first ? dd->min_kernel_pio : first;
  297. if (__test_and_set_bit((2 * i) + 1, shadow))
  298. continue;
  299. /* flip generation bit */
  300. __change_bit(2 * i, shadow);
  301. /* remember that the buffer can be written to now */
  302. __set_bit(i, dd->pio_writing);
  303. if (!first && first != last) /* first == last on VL15, avoid */
  304. dd->last_pio = i;
  305. break;
  306. }
  307. spin_unlock_irqrestore(&dd->pioavail_lock, flags);
  308. if (j == nbufs) {
  309. if (!updated)
  310. /*
  311. * First time through; shadow exhausted, but may be
  312. * buffers available, try an update and then rescan.
  313. */
  314. goto update_shadow;
  315. no_send_bufs(dd);
  316. buf = NULL;
  317. } else {
  318. if (i < dd->piobcnt2k)
  319. buf = (u32 __iomem *)(dd->pio2kbase +
  320. i * dd->palign);
  321. else if (i < dd->piobcnt2k + dd->piobcnt4k || !dd->piovl15base)
  322. buf = (u32 __iomem *)(dd->pio4kbase +
  323. (i - dd->piobcnt2k) * dd->align4k);
  324. else
  325. buf = (u32 __iomem *)(dd->piovl15base +
  326. (i - (dd->piobcnt2k + dd->piobcnt4k)) *
  327. dd->align4k);
  328. if (pbufnum)
  329. *pbufnum = i;
  330. dd->upd_pio_shadow = 0;
  331. }
  332. return buf;
  333. }
  334. /*
  335. * Record that the caller is finished writing to the buffer so we don't
  336. * disarm it while it is being written and disarm it now if needed.
  337. */
  338. void qib_sendbuf_done(struct qib_devdata *dd, unsigned n)
  339. {
  340. unsigned long flags;
  341. spin_lock_irqsave(&dd->pioavail_lock, flags);
  342. __clear_bit(n, dd->pio_writing);
  343. if (__test_and_clear_bit(n, dd->pio_need_disarm))
  344. dd->f_sendctrl(dd->pport, QIB_SENDCTRL_DISARM_BUF(n));
  345. spin_unlock_irqrestore(&dd->pioavail_lock, flags);
  346. }
  347. /**
  348. * qib_chg_pioavailkernel - change which send buffers are available for kernel
  349. * @dd: the qlogic_ib device
  350. * @start: the starting send buffer number
  351. * @len: the number of send buffers
  352. * @avail: true if the buffers are available for kernel use, false otherwise
  353. */
  354. void qib_chg_pioavailkernel(struct qib_devdata *dd, unsigned start,
  355. unsigned len, u32 avail, struct qib_ctxtdata *rcd)
  356. {
  357. unsigned long flags;
  358. unsigned end;
  359. unsigned ostart = start;
  360. /* There are two bits per send buffer (busy and generation) */
  361. start *= 2;
  362. end = start + len * 2;
  363. spin_lock_irqsave(&dd->pioavail_lock, flags);
  364. /* Set or clear the busy bit in the shadow. */
  365. while (start < end) {
  366. if (avail) {
  367. unsigned long dma;
  368. int i;
  369. /*
  370. * The BUSY bit will never be set, because we disarm
  371. * the user buffers before we hand them back to the
  372. * kernel. We do have to make sure the generation
  373. * bit is set correctly in shadow, since it could
  374. * have changed many times while allocated to user.
  375. * We can't use the bitmap functions on the full
  376. * dma array because it is always little-endian, so
  377. * we have to flip to host-order first.
  378. * BITS_PER_LONG is slightly wrong, since it's
  379. * always 64 bits per register in chip...
  380. * We only work on 64 bit kernels, so that's OK.
  381. */
  382. i = start / BITS_PER_LONG;
  383. __clear_bit(QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT + start,
  384. dd->pioavailshadow);
  385. dma = (unsigned long)
  386. le64_to_cpu(dd->pioavailregs_dma[i]);
  387. if (test_bit((QLOGIC_IB_SENDPIOAVAIL_CHECK_SHIFT +
  388. start) % BITS_PER_LONG, &dma))
  389. __set_bit(QLOGIC_IB_SENDPIOAVAIL_CHECK_SHIFT +
  390. start, dd->pioavailshadow);
  391. else
  392. __clear_bit(QLOGIC_IB_SENDPIOAVAIL_CHECK_SHIFT
  393. + start, dd->pioavailshadow);
  394. __set_bit(start, dd->pioavailkernel);
  395. if ((start >> 1) < dd->min_kernel_pio)
  396. dd->min_kernel_pio = start >> 1;
  397. } else {
  398. __set_bit(start + QLOGIC_IB_SENDPIOAVAIL_BUSY_SHIFT,
  399. dd->pioavailshadow);
  400. __clear_bit(start, dd->pioavailkernel);
  401. if ((start >> 1) > dd->min_kernel_pio)
  402. dd->min_kernel_pio = start >> 1;
  403. }
  404. start += 2;
  405. }
  406. if (dd->min_kernel_pio > 0 && dd->last_pio < dd->min_kernel_pio - 1)
  407. dd->last_pio = dd->min_kernel_pio - 1;
  408. spin_unlock_irqrestore(&dd->pioavail_lock, flags);
  409. dd->f_txchk_change(dd, ostart, len, avail, rcd);
  410. }
  411. /*
  412. * Flush all sends that might be in the ready to send state, as well as any
  413. * that are in the process of being sent. Used whenever we need to be
  414. * sure the send side is idle. Cleans up all buffer state by canceling
  415. * all pio buffers, and issuing an abort, which cleans up anything in the
  416. * launch fifo. The cancel is superfluous on some chip versions, but
  417. * it's safer to always do it.
  418. * PIOAvail bits are updated by the chip as if a normal send had happened.
  419. */
  420. void qib_cancel_sends(struct qib_pportdata *ppd)
  421. {
  422. struct qib_devdata *dd = ppd->dd;
  423. struct qib_ctxtdata *rcd;
  424. unsigned long flags;
  425. unsigned ctxt;
  426. unsigned i;
  427. unsigned last;
  428. /*
  429. * Tell PSM to disarm buffers again before trying to reuse them.
  430. * We need to be sure the rcd doesn't change out from under us
  431. * while we do so. We hold the two locks sequentially. We might
  432. * needlessly set some need_disarm bits as a result, if the
  433. * context is closed after we release the uctxt_lock, but that's
  434. * fairly benign, and safer than nesting the locks.
  435. */
  436. for (ctxt = dd->first_user_ctxt; ctxt < dd->cfgctxts; ctxt++) {
  437. spin_lock_irqsave(&dd->uctxt_lock, flags);
  438. rcd = dd->rcd[ctxt];
  439. if (rcd && rcd->ppd == ppd) {
  440. last = rcd->pio_base + rcd->piocnt;
  441. if (rcd->user_event_mask) {
  442. /*
  443. * subctxt_cnt is 0 if not shared, so do base
  444. * separately, first, then remaining subctxt,
  445. * if any
  446. */
  447. set_bit(_QIB_EVENT_DISARM_BUFS_BIT,
  448. &rcd->user_event_mask[0]);
  449. for (i = 1; i < rcd->subctxt_cnt; i++)
  450. set_bit(_QIB_EVENT_DISARM_BUFS_BIT,
  451. &rcd->user_event_mask[i]);
  452. }
  453. i = rcd->pio_base;
  454. spin_unlock_irqrestore(&dd->uctxt_lock, flags);
  455. spin_lock_irqsave(&dd->pioavail_lock, flags);
  456. for (; i < last; i++)
  457. __set_bit(i, dd->pio_need_disarm);
  458. spin_unlock_irqrestore(&dd->pioavail_lock, flags);
  459. } else
  460. spin_unlock_irqrestore(&dd->uctxt_lock, flags);
  461. }
  462. if (!(dd->flags & QIB_HAS_SEND_DMA))
  463. dd->f_sendctrl(ppd, QIB_SENDCTRL_DISARM_ALL |
  464. QIB_SENDCTRL_FLUSH);
  465. }
  466. /*
  467. * Force an update of in-memory copy of the pioavail registers, when
  468. * needed for any of a variety of reasons.
  469. * If already off, this routine is a nop, on the assumption that the
  470. * caller (or set of callers) will "do the right thing".
  471. * This is a per-device operation, so just the first port.
  472. */
  473. void qib_force_pio_avail_update(struct qib_devdata *dd)
  474. {
  475. dd->f_sendctrl(dd->pport, QIB_SENDCTRL_AVAIL_BLIP);
  476. }
  477. void qib_hol_down(struct qib_pportdata *ppd)
  478. {
  479. /*
  480. * Cancel sends when the link goes DOWN so that we aren't doing it
  481. * at INIT when we might be trying to send SMI packets.
  482. */
  483. if (!(ppd->lflags & QIBL_IB_AUTONEG_INPROG))
  484. qib_cancel_sends(ppd);
  485. }
  486. /*
  487. * Link is at INIT.
  488. * We start the HoL timer so we can detect stuck packets blocking SMP replies.
  489. * Timer may already be running, so use mod_timer, not add_timer.
  490. */
  491. void qib_hol_init(struct qib_pportdata *ppd)
  492. {
  493. if (ppd->hol_state != QIB_HOL_INIT) {
  494. ppd->hol_state = QIB_HOL_INIT;
  495. mod_timer(&ppd->hol_timer,
  496. jiffies + msecs_to_jiffies(qib_hol_timeout_ms));
  497. }
  498. }
  499. /*
  500. * Link is up, continue any user processes, and ensure timer
  501. * is a nop, if running. Let timer keep running, if set; it
  502. * will nop when it sees the link is up.
  503. */
  504. void qib_hol_up(struct qib_pportdata *ppd)
  505. {
  506. ppd->hol_state = QIB_HOL_UP;
  507. }
  508. /*
  509. * This is only called via the timer.
  510. */
  511. void qib_hol_event(unsigned long opaque)
  512. {
  513. struct qib_pportdata *ppd = (struct qib_pportdata *)opaque;
  514. /* If hardware error, etc, skip. */
  515. if (!(ppd->dd->flags & QIB_INITTED))
  516. return;
  517. if (ppd->hol_state != QIB_HOL_UP) {
  518. /*
  519. * Try to flush sends in case a stuck packet is blocking
  520. * SMP replies.
  521. */
  522. qib_hol_down(ppd);
  523. mod_timer(&ppd->hol_timer,
  524. jiffies + msecs_to_jiffies(qib_hol_timeout_ms));
  525. }
  526. }