Re: [PATCH v3 1/8] memory: tegra: Add API for retrieving carveout bounds

From: Krzysztof Kozlowski
Date: Wed Sep 21 2022 - 03:28:25 EST


On 20/09/2022 10:11, Mikko Perttunen wrote:
> From: Mikko Perttunen <mperttunen@xxxxxxxxxx>
>
> On Tegra234 NVDEC firmware is loaded from a secure carveout, where it
> has been loaded by a bootloader. When booting NVDEC, we need to tell it
> the address of this firmware, which we can determine by checking the
> starting address of the carveout. As such, add an MC API to query the
> bounds of carveouts, and add related information on Tegra234.
>
> Signed-off-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>
> ---
> v2:
> - Add check for 64-bit phys_addr_t. In practice phys_addr_t
> is always 64 bits where this runs, but it avoids warnings in
> compile test.
> ---
> drivers/memory/tegra/mc.c | 25 +++++++++++++++++++++++++
> drivers/memory/tegra/tegra234.c | 5 +++++
> include/soc/tegra/mc.h | 11 +++++++++++

I still need here Thierry's ack.

Best regards,
Krzysztof