[PATCH 2/3] bus: fsl-mc: dpio: enable qbman CENA portal memory access

2017-04-20 Thread Haiying Wang
Once we enable the cacheable portal memory, we need to do cache flush for enqueue, vdq, buffer release, and management commands, as well as invalidate and prefetch for the valid bit of management command response and next index of dqrr. Signed-off-by: Haiying Wang <haiying.w...@nxp.

[PATCH 2/3] bus: fsl-mc: dpio: enable qbman CENA portal memory access

2017-04-20 Thread Haiying Wang
Once we enable the cacheable portal memory, we need to do cache flush for enqueue, vdq, buffer release, and management commands, as well as invalidate and prefetch for the valid bit of management command response and next index of dqrr. Signed-off-by: Haiying Wang --- drivers/staging/fsl-mc/bus

[PATCH 1/3] arm64: extend ioremap for cacheable non-shareable memory

2017-04-20 Thread Haiying Wang
NXP arm64 based SoC needs to allocate cacheable and non-shareable memory for the software portals of Queue manager, so we extend the arm64 ioremap support for this memory attribute. Signed-off-by: Haiying Wang <haiying.w...@nxp.com> --- arch/arm64/include/asm/io.h | 1 + arch

[PATCH 1/3] arm64: extend ioremap for cacheable non-shareable memory

2017-04-20 Thread Haiying Wang
NXP arm64 based SoC needs to allocate cacheable and non-shareable memory for the software portals of Queue manager, so we extend the arm64 ioremap support for this memory attribute. Signed-off-by: Haiying Wang --- arch/arm64/include/asm/io.h | 1 + arch/arm64/include/asm/pgtable

[PATCH 3/3] bus: fsl-mc: dpio: change CENA regs to be cacheable

2017-04-20 Thread Haiying Wang
allocate stash transcations of QBMan should be issued as cachable and non-coherent(non-sharable), we need to configure this region to be non-shareable. Signed-off-by: Haiying Wang <haiying.w...@nxp.com> --- drivers/staging/fsl-mc/bus/dpio/dpio-driver.c | 6 +++--- 1 file changed, 3 insertions

[PATCH 3/3] bus: fsl-mc: dpio: change CENA regs to be cacheable

2017-04-20 Thread Haiying Wang
allocate stash transcations of QBMan should be issued as cachable and non-coherent(non-sharable), we need to configure this region to be non-shareable. Signed-off-by: Haiying Wang --- drivers/staging/fsl-mc/bus/dpio/dpio-driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 0/3] bus: fsl-mc: dpio: udpate QMan CENA region

2017-04-20 Thread Haiying Wang
with cache-enable and non-shareable first, then enables the CENA portal memory access in the QBMan driver, at last changes the ioremap call in dpio driver where the software portal CENA memory is mapped to be the correct one. Haiying Wang (3): arm64: extend ioremap for cacheable non-shareable memory bus

[PATCH 0/3] bus: fsl-mc: dpio: udpate QMan CENA region

2017-04-20 Thread Haiying Wang
with cache-enable and non-shareable first, then enables the CENA portal memory access in the QBMan driver, at last changes the ioremap call in dpio driver where the software portal CENA memory is mapped to be the correct one. Haiying Wang (3): arm64: extend ioremap for cacheable non-shareable memory bus