[Sound-open-firmware] Commit c80270e7e49 (" ipc: structures should all be aligned on 4 bytes") causes issues on i.MX8
Daniel Baluta
daniel.baluta at nxp.com
Tue May 11 17:02:15 CEST 2021
Hi Liam,
I noticed this SOF commit:
commit c80270e7e49d26a34fe284d1868e7d9cb80104f1
Author: Liam Girdwood <liam.r.girdwood at linux.intel.com>
Date: Sat Apr 3 21:22:21 2021 +0100
ipc: structures should all be aligned on 4 bytes
Give the compiler a chance to further optimise IPC data access since it's
all on a 4 byte alignment.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
It looks like it triggers some issues on i.MX8.
Is there any equivalent for Linux kernel? Some structures are shared with the kernel
and on arm64 it assumes default alignment as 8 hence I get a mismatch at least when
printing DAI / Host position
+ dev_info(sdev->dev, "posn : host 0x%llx dai 0x%llx wall 0x%llx no_per %d\n",
+ posn.host_posn, posn.dai_posn, posn.wallclock, stream->substream->runtime->no_period_wakeup);
thanks,
Daniel.
More information about the Sound-open-firmware
mailing list