diff options
author | 2010-11-10 12:52:37 +0000 | |
---|---|---|
committer | 2010-12-01 16:08:47 -0800 | |
commit | 58d74bb1d9f79bb56b2ea51d2ca06a28fa0fce02 (patch) | |
tree | 9b8055c1cad7cd9a428fcc0dfd0d0947b37f35b0 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | IB/mlx4: Fix memory ordering of VLAN insertion control bits (diff) | |
download | wireguard-linux-58d74bb1d9f79bb56b2ea51d2ca06a28fa0fce02.tar.xz wireguard-linux-58d74bb1d9f79bb56b2ea51d2ca06a28fa0fce02.zip |
mlx4_core: Workaround firmware bug in query dev cap
ConnectX firmware is supposed to report the number blue flame
registers per page as log2 of the value. However, due to a firmware
bug, it reports actual number. This patch works around this by
checking if the number of registers calculated fits within a page. If
it does not, we use 8 registers per page.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions