Messages in this thread | | | From | Rob Herring <> | Date | Mon, 2 Nov 2020 15:03:42 -0600 | Subject | Re: [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>
| |