endianness of rlc buffers (SI)

Alex Deucher alexdeucher at gmail.com
Tue Oct 22 07:13:22 CEST 2013


On Mon, Oct 21, 2013 at 8:26 PM, Sylvain BERTRAND <sylware at legeek.net> wrote:
> Hi,
>
> commit 555b1b651acf44bf27ebbb04235d38a8fd2d58dc (drm-fixes-3.12)
>
> evergreen.c, SI code path, line 4045 and 4046 shouldn't be swapped?
> Should cpu_to_le32 be used?
>
> Basically, is the endianness enforcement right for the rlc BOs?
> Or is there a bit somewhere to switch the RLC to host
> endianness? Or the kmap is swapping dwords?

The rlc buffers should be little endian.  They will need to be swapped
on big endian systems.

Alex


More information about the dri-devel mailing list