Re: [PATCH v5 3/7] of/address: Introduce of_dma_get_max_cpu_address()
From: Rob Herring <robh+dt@kernel.org>
Date: 2020-11-02 21:03:58
Also in:
linux-devicetree, linux-iommu, lkml
From: Rob Herring <robh+dt@kernel.org>
Date: 2020-11-02 21:03:58
Also in:
linux-devicetree, linux-iommu, lkml
On Thu, Oct 29, 2020 at 12:26 PM Nicolas Saenz Julienne [off-list ref] 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 <redacted> --- 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> _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel