Note to anyone who accesses the OpenFSI driver 'raw' file in their code
Christopher Bostic
cbostic at linux.vnet.ibm.com
Wed Apr 5 03:50:49 AEST 2017
To anyone who reads or writes to the OpenFSI device driver 'raw' file(s)
on BMC please note that data for both reads and writes is changing to
native bus endian format. This is effective with the release of the
OpenBMC 4.10 kernel. Note that 4.7 is not impacted by this.
Adjustments you will need to make:
Any 32 bit data must be byte swapped prior to writing to the 'raw'
file. i.e.: instead of writing <byte 3, byte 2, byte 1, byte 0 > as was
done before you will instead write <byte 0, byte 1, byte 2, byte 3>.
Conversely all data read out of the 'raw' file must be byte swapped
before acting on it.
Please let me know if you have any questions,
Chris
More information about the openbmc
mailing list