https://bugs.freedesktop.org/show_bug.cgi?id=83708
--- Comment #16 from Michel Dänzer michel@daenzer.net --- (In reply to comment #15)
- I do not add cpu_to_le32() first ,but when I trace the messages from
printk,the value of msg_type is reversed.
That's in radeon_uvd_cs_msg()? Sounds like the Mesa UVD code writes the messages in host byte order, not in little endian. Maybe Christian can clarify which byte order should be used for them.
- #if 0 ...#endif is the original code from kernel. #if 1 ...#endif is
changed code.
Ah right, never mind, I misread that hunk before.
By the way, u said writel() and readl() already convert to/from little endian. is based on the X86 arch implement?
It's the same on all architectures: writel() takes a datum in host byte order and writes it in little endian. readl() reads a little endian datum and returns it in host byte order. (This means that on little endian hosts such as x86, the datum is transferred unchanged)