aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <[email protected]>2011-10-10 06:42:23 +0000
committerDavid S. Miller <[email protected]>2011-10-10 14:10:37 -0400
commitc5d6136e10d667965e46f998c01863802f7b89c8 (patch)
tree427339a4620cd1c694f44bb030d0b538c46311eb /tools/perf/util/scripting-engines/trace-event-python.c
parent65112dccf8a113737684366349d7f9ec373ddc47 (diff)
mlx4_en: fix endianness with blue frame support
The doorbell register was being unconditionally swapped. In x86, that meant it was being swapped to BE and written to the descriptor and to memory, depending on the case of blue frame support or writing to doorbell register. On PPC, this meant it was being swapped to LE and then swapped back to BE while writing to the register. But in the blue frame case, it was being written as LE to the descriptor. The fix is not to swap doorbell unconditionally, write it to the register as BE and convert it to BE when writing it to the descriptor. Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]> Reported-by: Richard Hendrickson <[email protected]> Cc: Eli Cohen <[email protected]> Cc: Yevgeny Petrilin <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions