mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Pankaj Gupta <pankaj.gupta@nxp.com>,
	shawnguo@kernel.org, s.hauer@pengutronix.de,
	kernel@pengutronix.de, clin@suse.com, conor+dt@kernel.org,
	pierre.gondois@arm.com, festevam@gmail.com, linux-imx@nxp.com,
	davem@davemloft.net, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, gaurav.jain@nxp.com,
	alexander.stein@ew.tq-group.com, V.Sethi@nxp.com
Cc: Dong Aisheng <aisheng.dong@nxp.com>
Subject: Re: [PATCH v7 06/11] arm64: dts: imx93-11x11-evk: reserved mem-ranges
Date: Mon, 30 Oct 2023 18:55:38 +0100	[thread overview]
Message-ID: <97063238-88fd-4685-accc-064f4ac3328a@linaro.org> (raw)
In-Reply-To: <20231030095849.3456820-7-pankaj.gupta@nxp.com>

On 30/10/2023 10:58, Pankaj Gupta wrote:
> EdgeLock Enclave are has a hardware limitation of restricted access
> to the DDR memory range:
> - 0x80000000  0x9FFFFFFF
> 
> ELE-MU driver requireis 1MB of memory. In this patch, reserving
> 1MB of ddr memory region from the lower 32-bit range.
> 
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
> Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
> ---
>  arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> index cafd39130eb8..bcb4ae931c64 100644
> --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts
> @@ -7,6 +7,10 @@
>  
>  #include "imx93.dtsi"
>  
> +&ele_fw2 {

OK, this explains the label in imx93.dtsi, but then node in the
imx93.dtsi is incomplete and should be disabled. Everything which is
incomplete should be disabled in DTSI by default. At v7 of your patchset
I really would expect some internal review happening.

> +	memory-region = <&ele_reserved>;
> +};
> +
>  / {
>  	model = "NXP i.MX93 11X11 EVK board";
>  	compatible = "fsl,imx93-11x11-evk", "fsl,imx93";
> @@ -68,6 +72,17 @@ reg_vref_1v8: regulator-adc-vref {
>  		regulator-max-microvolt = <1800000>;
>  	};
>  
> +	reserved-memory {
> +		#address-cells = <2>;
> +		#size-cells = <2>;
> +		ranges;
> +		ele_reserved: ele-reserved@a4120000 {

Names in reserved memory should match the purpose, so "reserved" is here
redundant. Just "ele".

> +			compatible = "shared-dma-pool";
> +			reg = <0 0xa4120000 0 0x100000>;
> +			no-map;
> +		};
> +	};
> +
>  	reg_usdhc2_vmmc: regulator-usdhc2 {
>  		compatible = "regulator-fixed";
>  		pinctrl-names = "default";

Best regards,
Krzysztof


  reply	other threads:[~2023-10-30 17:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-30  9:58 [PATCH v7 00/11] firmware: imx: NXP Secure-Enclave FW Driver Pankaj Gupta
2023-10-30  9:58 ` [PATCH v7 01/11] Documentation/firmware: added imx/se-fw to other_interfaces Pankaj Gupta
2023-10-30 17:57   ` Krzysztof Kozlowski
2023-10-30 17:59     ` Krzysztof Kozlowski
2023-10-30  9:58 ` [PATCH v7 02/11] dt-bindings: arm: fsl: add imx-se-fw binding doc Pankaj Gupta
2023-10-30 16:30   ` Rob Herring
2023-10-30 17:51   ` Krzysztof Kozlowski
2023-10-30  9:58 ` [PATCH v7 03/11] arm64: dts: imx8ulp-evk: added nxp secure enclave firmware Pankaj Gupta
2023-10-30 17:52   ` Krzysztof Kozlowski
2023-10-30  9:58 ` [PATCH v7 04/11] arm64: dts: imx8ulp-evk: reserved mem-ranges to constrain ele_fw dma-range Pankaj Gupta
2023-10-30  9:58 ` [PATCH v7 05/11] arm64: dts: imx93-11x11-evk: added nxp secure enclave fw Pankaj Gupta
2023-10-30 17:52   ` Krzysztof Kozlowski
2023-10-30  9:58 ` [PATCH v7 06/11] arm64: dts: imx93-11x11-evk: reserved mem-ranges Pankaj Gupta
2023-10-30 17:55   ` Krzysztof Kozlowski [this message]
2023-10-30  9:58 ` [PATCH v7 07/11] firmware: imx: add driver for NXP EdgeLock Enclave Pankaj Gupta
2023-10-30 18:02   ` Krzysztof Kozlowski
2023-10-30  9:58 ` [PATCH v7 08/11] firmware: imx: init-fw api exchange on imx93 Pankaj Gupta
2023-10-30  9:58 ` [PATCH v7 09/11] firmware: imx: enable trng Pankaj Gupta
2023-10-30  9:58 ` [PATCH v7 10/11] firmware: imx: enclave-fw: add handling for save/restore IMEM region Pankaj Gupta
2023-10-30  9:58 ` [PATCH v7 11/11] MAINTAINERS: Added maintainer details Pankaj Gupta
2024-03-15 12:23 ` [PATCH v7 00/11] firmware: imx: NXP Secure-Enclave FW Driver Pankaj Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97063238-88fd-4685-accc-064f4ac3328a@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=V.Sethi@nxp.com \
    --cc=aisheng.dong@nxp.com \
    --cc=alexander.stein@ew.tq-group.com \
    --cc=clin@suse.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=gaurav.jain@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pankaj.gupta@nxp.com \
    --cc=pierre.gondois@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®