aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorhonclo <[email protected]>2015-02-13 02:02:24 +0000
committerPeter Huewe <[email protected]>2015-02-15 16:36:05 +0000
commiteb71f8a5e33fa1066fb92f0111ab366a341e1f6c (patch)
tree7c6c007038f542d86133a7645f5ac631426ad726 /lib/mpi/mpi-cmp.c
parenttpm, tpm_tis: fix TPM 2.0 probing (diff)
downloadkernel-eb71f8a5e33fa1066fb92f0111ab366a341e1f6c.tar.gz
kernel-eb71f8a5e33fa1066fb92f0111ab366a341e1f6c.zip
Added Little Endian support to vtpm module
The tpm_ibmvtpm module is affected by an unaligned access problem. ibmvtpm_crq_get_version failed with rc=-4 during boot when vTPM is enabled in Power partition, which supports both little endian and big endian modes. We added little endian support to fix this problem: 1) added cpu_to_be64 calls to ensure BE data is sent from an LE OS. 2) added be16_to_cpu and be32_to_cpu calls to make sure data received is in LE format on a LE OS. Signed-off-by: Hon Ching(Vicky) Lo <[email protected]> Signed-off-by: Joy Latten <[email protected]> Cc: <[email protected]> [phuewe: manually applied the patch :( ] Reviewed-by: Ashley Lai <[email protected]> Signed-off-by: Peter Huewe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions