]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: cq: Add additional SIF visible cqes to CQ
authorWei Lin Guay <wei.lin.guay@oracle.com>
Thu, 15 Sep 2016 11:56:26 +0000 (13:56 +0200)
committerKnut Omang <knut.omang@oracle.com>
Mon, 3 Oct 2016 12:02:24 +0000 (14:02 +0200)
commit167ad8704f0ea7eb8cedcfbafa3db94d3960a10b
tree0aa638827b323a4560449f8ca13b95284425a14c
parent46eac6aae1f0799531ff25be87e8686346064776
sif: cq: Add additional SIF visible cqes to CQ

Orabug: 24673784

Due to two HW bugs, SIF needs to add additional cqes apart from
the requested N cqes. First issue is that the CQ cannot be full
when it is being invalidated. Hence, we need 1 extra entry.

The second issue is that HW might generate duplicate completions.
Thus, SIF needs 768 extra entries to cater for these duplicate
completions and 1 additional entry for the fence completion.

Then, SIF driver rounds up to the nearest 2^N. The number of cqes
available to the ulp/user, will be the above 2^N - (768 + 1 + 1).

Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_cq.c
drivers/infiniband/hw/sif/sif_dev.h
drivers/infiniband/hw/sif/sif_user.h