[PATCH v5 3/7] of/address: Introduce of_dma_get_max_cpu_address()
Rob Herring
robh+dt at kernel.org
Mon Nov 2 16:03:42 EST 2020
On Thu, Oct 29, 2020 at 12:26 PM Nicolas Saenz Julienne
<nsaenzjulienne at suse.de> wrote:
>
> Introduce of_dma_get_max_cpu_address(), which provides the highest CPU
> physical address addressable by all DMA masters in the system. It's
> specially useful for setting memory zones sizes at early boot time.
>
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>
>
> ---
>
> Changes since v4:
> - Return max address, not address limit (one-off difference)
>
> Changes since v3:
> - use u64 with cpu_end
>
> Changes since v2:
> - Use PHYS_ADDR_MAX
> - return phys_dma_t
> - Rename function
> - Correct subject
> - Add support to start parsing from an arbitrary device node in order
> for the function to work with unit tests
>
> drivers/of/address.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> include/linux/of.h | 7 +++++++
> 2 files changed, 49 insertions(+)
Reviewed-by: Rob Herring <robh at kernel.org>
More information about the linux-arm-kernel
mailing list