Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67143
b: refs/heads/master
c: 2e61c64
h: refs/heads/master
i:
  67141: 04b6e46
  67139: 8044e4b
  67135: e536e70
v: v3
  • Loading branch information
Roland Dreier committed Oct 10, 2007
1 parent d6c7feb commit 620c135
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76d7cc0345a037e8eea426f8abc710abd22946dd
refs/heads/master: 2e61c646edfa013203e3428762f8d6a72e10bdea
7 changes: 7 additions & 0 deletions trunk/drivers/net/mlx4/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ static int mlx4_cmd_post(struct mlx4_dev *dev, u64 in_param, u64 out_param,
(event ? (1 << HCR_E_BIT) : 0) |
(op_modifier << HCR_OPMOD_SHIFT) |
op), hcr + 6);

/*
* Make sure that our HCR writes don't get mixed in with
* writes from another CPU starting a FW command.
*/
mmiowb();

cmd->toggle = cmd->toggle ^ 1;

ret = 0;
Expand Down

0 comments on commit 620c135

Please sign in to comment.