Skip to content

Use 'arm_nommu_dma_ops' to handle dma memroy if device offer consistent dma memory region

[email protected] linux-arm-kernel linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: dts: stm32: Setup 4M bytes reserved memory for mmaparch/arm/boot/dts/stm32f469-disco.dts+14 -01 reply
2/2arm-nommu: Add use_reserved_mem() to check if device support reserved memoryarch/arm/mm/dma-mapping-nommu.c+27 -111 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchVladimir Murzindillon min
1/2
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Use 'arm_nommu_dma_ops' to handle dma memroy if device offer consistent dma memory region

From: dillon min <[email protected]>

when do mmap on /dev/fb0, we will get -6 error on cortex-m3/m4 or armv7m platform without cache support, this is caused by following reason:

on armv7m platform, if no cache support, we will use dma direct mapping, but, this is not support on !MMU hardware, just return '-ENXIO' error

so, add use_reserved_mem() for these armv7m hardware but no-cache support. eg, stm32f429/stm32f469.

verified on stm32f469-disco board, mmap frambuffer to userspace.

dillon min (2):
ARM: dts: stm32: Setup 4M bytes reserved memory for mmap
arm-nommu: Add use_reserved_mem() to check if device support reserved
memory

 arch/arm/boot/dts/stm32f469-disco.dts | 14 ++++++++++++++
 arch/arm/mm/dma-mapping-nommu.c       | 28 +++++++++++++++++++++++++++-
 2 files changed, 41 insertions(+), 1 deletion(-)
Signature · 1 line
2.7.4