]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Make mailboxes 4KB aligned
authorIdo Schimmel <idosch@mellanox.com>
Thu, 27 Aug 2015 15:59:57 +0000 (17:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2015 23:31:17 +0000 (16:31 -0700)
commit3d088cf16bcece90607a3cb511f86ab41643f934
tree8a72938a16998ebec052aa739085526901d27088
parent4361eb6ecb1a19276aa669aab7ebd4f4334b04e8
mlxsw: Make mailboxes 4KB aligned

The HW-SW contract requires mailboxes passed to the firmware to be 4KB
aligned. Previously, these mailboxes were mapped using streaming DMA
routines, which do not guarantee the bus addresses to be 4KB aligned.
Under certain conditions this constraint was indeed violated and errors
were observed.

By using consistent DMA mapping routines together with a mailbox size of
4KB we are guaranteed not to violate the constraint.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci.c