]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: sif_r3: implemented WA#4074 stats counters
authorTriviño <francisco.trivino@oracle.com>
Thu, 30 Jun 2016 14:30:07 +0000 (16:30 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 27 Jul 2016 17:24:20 +0000 (10:24 -0700)
commit7df48f2a9e4da85ac1d5367dae71cef51056ca24
treeafe0ca2ad57acc07e158405caf9de32337dde38d
parent285aeb512fc6de45723682bee05d70fdb1a315e7
sif: sif_r3: implemented WA#4074 stats counters

This commit added both wa4074 and wa4059 statistics
to help to identify potential issues when the work-
around are applied.

The wa4074 stats implementation is based on:

a) pre_wa4074_cnt == post_wa4074_cnt. This means the
w/a is triggered from the modify_qp_hw.
b) pre_wa4074_cnt != post_wa4074_cnt. post_wa4074 is
triggered from other scenarios too.
c) post_wa4074_err_cnt != 0. It means that post_wa4074
fails.
d) wrs_csum_corr_wa4074_cnt indicates the number of
WRs that were csum corrupted.
e) rcv_snd_gen_wa4074_cnt shows the number of recv
and send cqe's were generated.

The wa4059 stats indicate the number of keep-alive
events that have been sent.

This commit also improves wa3714 stats implementation
by using atomic64 counters and enumeration values,
and other minor changes such as clean up and fix
typos on comment messages.

Orabug: 23760170

Signed-off-by: Triviño <francisco.trivino@oracle.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_epsc.c
drivers/infiniband/hw/sif/sif_r3.c
drivers/infiniband/hw/sif/sif_r3.h