lkml.org 
[lkml]   [2020]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v5 3/7] of/address: Introduce of_dma_get_max_cpu_address()
On Thu, Oct 29, 2020 at 12:26 PM Nicolas Saenz Julienne
<nsaenzjulienne@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@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@kernel.org>

\
 
 \ /
  Last update: 2020-11-02 22:04    [W:0.083 / U:2.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site