1. 03 4月, 2014 1 次提交
    • D
      RDMA/ocrdma: EQ full catastrophe avoidance · ea617626
      Devesh Sharma 提交于
      Stale entries in the CQ being destroyed causes hardware to generate
      EQEs indefinitely for a given CQ.  Thus causing uncontrolled execution
      of irq_handler.  This patch fixes this using following sementics:
      
          * irq_handler will ring EQ doorbell atleast once and implement budgeting scheme.
          * cq_destroy will count number of valid entires during destroy and ring
            cq-db so that hardware does not generate uncontrolled EQE.
          * cq_destroy will synchronize with last running irq_handler instance.
          * arm_cq will always defer arming CQ till poll_cq, except for the first arm_cq call.
          * poll_cq will always ring cq-db with arm=SET if arm_cq was called prior to enter poll_cq.
          * poll_cq will always ring cq-db with arm=UNSET if arm_cq was not called prior to enter poll_cq.
      Signed-off-by: NDevesh Sharma <devesh.sharma@emulex.com>
      Signed-off-by: NSelvin Xavier <selvin.xavier@emulex.com>
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      ea617626
  2. 18 3月, 2014 1 次提交
    • P
      RDMA/ocrdma: Fix compiler warning · bc1b04ab
      Prarit Bhargava 提交于
      drivers/infiniband/hw/ocrdma/ocrdma_verbs.c: In function ‘_ocrdma_modify_qp’:
      drivers/infiniband/hw/ocrdma/ocrdma_verbs.c:1299:31: error: ‘old_qps’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
        status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask, old_qps);
      
      ocrdma_mbx_modify_qp() (and subsequent calls) doesn't appear to use old_qps
      so it doesn't need to be passed on.  Removing the variable results in the
      warning going away.
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Acked-by: Devesh Sharma (Devesh.sharma@emulex.com)
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      bc1b04ab
  3. 24 2月, 2014 10 次提交
  4. 23 2月, 2014 9 次提交
  5. 22 2月, 2014 19 次提交