RE: add support for the global coherent pool to the dma core

From: Brian Cain
Date: Wed Jul 28 2021 - 11:20:57 EST




> -----Original Message-----
> From: Christoph Hellwig <hch@xxxxxx>
> Sent: Monday, July 12, 2021 1:17 AM
> To: iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx; Russell King
<linux@xxxxxxxxxxxxxxx>;
> Brian Cain <bcain@xxxxxxxxxxxxxx>
> Cc: Dillon Min <dillon.minfei@xxxxxxxxx>; Vladimir Murzin
> <vladimir.murzin@xxxxxxx>; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-
> hexagon@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: add support for the global coherent pool to the dma core
>
> Hi all,
>
> this series adds support for using the global coherent (aka uncached)
> pool to the generic dma-direct code and then switches arm-nommu and
> hexagon over to it, together with a bunch of cleanups.

Christoph,

Thanks for sending this -- I will take a look and give some feedback soon.

> Diffstat:
> arch/arm/Kconfig | 5 -
> arch/arm/mm/dma-mapping-nommu.c | 173
+--------------------------------------
> -
> arch/hexagon/Kconfig | 1
> arch/hexagon/kernel/dma.c | 57 ++-----------
> include/linux/dma-map-ops.h | 18 ++--
> kernel/dma/Kconfig | 4
> kernel/dma/coherent.c | 159
+++++++++++++++++-------------------
> kernel/dma/direct.c | 15 +++
> 8 files changed, 124 insertions(+), 308 deletions(-)