soc: fsl: dpio: fix qbman alignment error in the virtualization context
authorDiana Craciun <diana.craciun@nxp.com>
Wed, 18 Dec 2019 14:43:16 +0000 (16:43 +0200)
committerLi Yang <leoyang.li@nxp.com>
Thu, 21 Oct 2021 23:20:21 +0000 (18:20 -0500)
commit7e5e744183bbb0ad02412b21b1e61380c998dd18
treeea999f543de8ee918af3ed7cb1f6879779886896
parent8120bd469f5525da229953c1197f2b826c0109f4
soc: fsl: dpio: fix qbman alignment error in the virtualization context

When running as a guest, under KVM, the CENA region is mapped as device
memory, so uncacheable. When the memory is mapped as device memory, the
unaligned accesses are not allowed.  Memcpy is optimized to transfer 8
bytes at a time regardless of the start address and might cause
alignment issues.

Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/dpio/qbman-portal.c