]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Workaround firmware bug in query dev cap
authorEli Cohen <eli@dev.mellanox.co.il>
Wed, 10 Nov 2010 12:52:37 +0000 (12:52 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 2 Dec 2010 00:08:47 +0000 (16:08 -0800)
commited988799a12d8aacc56b23d120b02fcf23aff984
tree9b8055c1cad7cd9a428fcc0dfd0d0947b37f35b0
parenta2b6630892f66570b563e3523960cae8d3fc0cc8
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>
drivers/net/mlx4/fw.c