Skip to content

RFC Fix dma_alloc_coherent() and friends for NOMMU

Russell King - ARM Linux linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest0 of 3 patches 0 repliesNew

Patches in v2 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC v2 PATCH 0/3] Fix dma_alloc_coherent() and friends for NOMMU
Quoted 9 lines · Vladimir Murzin

This patch set is trying to address the issue by providing region of memory suitable for consistent DMA operations. It is supposed that such region is marked by MPU as non-cacheable. Since we have MPU support in Linux for R-class only and M-class setting MPU in bootloader, proposed interface to advertise such memory is via "memdma=size at start" command line option, to avoid clashing with normal memory (which usually comes from dts) it'd be safer to use it together with "mem=" command line option. Meanwhile, I'm open to suggestions for the better way telling Linux of such memory.

For those nommu systems where the MPU is not used, how do they allocate DMA memory without setting aside a chunk of memory?

Quoted 1 line

From what I understand of the current nommu code, it would just use

the normal page allocator for DMA memory allocation, so now requiring everything to fit the "nommu has mpu" case seems like it's going to break older nommu.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.