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)
commit74217d4c6a4fb0d80a7e2f217584ccdc692d5f57
treef87f4635c81e69f824723c0fe9e5d064a645030b
parent66cf188eba524e19f1d2bd654a9d656d7432db80
iw_cxgb4: support for bar2 qid densities exceeding the page size

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