summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorKamenee Arumugam2018-02-01 19:52:28 +0100
committerJason Gunthorpe2018-02-01 23:43:30 +0100
commit0719007663ce2d5da653ec1dc3bcfe2ab681b964 (patch)
treed5433c8d8618a90741963986cf9c105b7e75e75c /fs
parentIB/hfi1: Do not override given pcie_pset value (diff)
downloadkernel-qcow2-linux-0719007663ce2d5da653ec1dc3bcfe2ab681b964.tar.gz
kernel-qcow2-linux-0719007663ce2d5da653ec1dc3bcfe2ab681b964.tar.xz
kernel-qcow2-linux-0719007663ce2d5da653ec1dc3bcfe2ab681b964.zip
IB/hfi1: Convert PortXmitWait/PortVLXmitWait counters to flit times
HFI's counters SendWaitCnt and SendWaitVlCnt are in units of TXE cycle time (at 805MHz). OPA counters PortXmitWait and PortVLXmtWait are in units of flit times. Convert the counter values to flit units using following conversion formula: PortXmitWait = SendWaitCnt * 2 * (4 /link_width) * (25 Gbps /link_speed) PortVLXmitWait = SendWaitVLCnt * 2 * (4 /link_width) * (25 Gbps /link_speed) At link up or downgrade events, the link width can change. To ensure accurate counter calculations, sample the counters after the events, during counter requests, and then aggregate the OPA counters. Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Kamenee Arumugam <kamenee.arumugam@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions