iw_cxgb4: support for bar2 qid densities exceeding the page size
authorHariprasad S <hariprasad@chelsio.com>
Tue, 9 Jun 2015 12:53:12 +0000 (18:23 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 11 Jun 2015 16:22:32 +0000 (12:22 -0400)
Handle this configuration:

        Queues Per Page * SGE BAR2 Queue Register Area Size > Page Size

Use cxgb4_bar2_sge_qregs() to obtain the proper location within the
bar2 region for a given qid.

Rework the DB and GTS write functions to make use of this bar2 info.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cq.c
drivers/infiniband/hw/cxgb4/device.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/qp.c
drivers/infiniband/hw/cxgb4/t4.h

Simple merge
Simple merge
Simple merge
Simple merge