2020-01-03 06:05:50

by Andreas Färber

[permalink] [raw]
Subject: [PATCH] arm64: dts: realtek: rtd16xx: Add memory reservations

Reserve memory regions for RPC and TEE.

Fixes: e5a9e237608d ("arm64: dts: realtek: Add RTD1619 SoC and Realtek Mjolnir EVB")
Cc: James Tai <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
---
arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
index 3c70a0da329e..4dc6c9f13c43 100644
--- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
+++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
@@ -14,6 +14,25 @@
#address-cells = <1>;
#size-cells = <1>;

+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ rpc_comm: rpc@2f000 {
+ reg = <0x2f000 0x1000>;
+ };
+
+ rpc_ringbuf: rpc@1ffe000 {
+ reg = <0x1ffe000 0x4000>;
+ };
+
+ tee: tee@10100000 {
+ reg = <0x10100000 0xf00000>;
+ no-map;
+ };
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
--
2.16.4


2020-01-14 10:20:40

by Andreas Färber

[permalink] [raw]
Subject: Re: [PATCH] arm64: dts: realtek: rtd16xx: Add memory reservations

Am 03.01.20 um 07:04 schrieb Andreas Färber:
> Reserve memory regions for RPC and TEE.
>
> Fixes: e5a9e237608d ("arm64: dts: realtek: Add RTD1619 SoC and Realtek Mjolnir EVB")
> Cc: James Tai <[email protected]>
> Signed-off-by: Andreas Färber <[email protected]>
> ---
> arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)

Ping! @Realtek: Please check the numbers.

Thanks,
Andreas

> diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
> index 3c70a0da329e..4dc6c9f13c43 100644
> --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
> +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
> @@ -14,6 +14,25 @@
> #address-cells = <1>;
> #size-cells = <1>;
>
> + reserved-memory {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + rpc_comm: rpc@2f000 {
> + reg = <0x2f000 0x1000>;
> + };
> +
> + rpc_ringbuf: rpc@1ffe000 {
> + reg = <0x1ffe000 0x4000>;
> + };
> +
> + tee: tee@10100000 {
> + reg = <0x10100000 0xf00000>;
> + no-map;
> + };
> + };
> +
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;

--
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)

2020-01-15 08:15:48

by James Tai [戴志峰]

[permalink] [raw]
Subject: RE: [PATCH] arm64: dts: realtek: rtd16xx: Add memory reservations

> Reserve memory regions for RPC and TEE.
>
> Fixes: e5a9e237608d ("arm64: dts: realtek: Add RTD1619 SoC and Realtek
> Mjolnir EVB")
> Cc: James Tai <[email protected]>
> Signed-off-by: Andreas Färber <[email protected]>
> ---
> arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
> b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
> index 3c70a0da329e..4dc6c9f13c43 100644
> --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
> +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi
> @@ -14,6 +14,25 @@
> #address-cells = <1>;
> #size-cells = <1>;
>
> + reserved-memory {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges;
> +
> + rpc_comm: rpc@2f000 {
> + reg = <0x2f000 0x1000>;
> + };
> +
> + rpc_ringbuf: rpc@1ffe000 {
> + reg = <0x1ffe000 0x4000>;
> + };
> +
> + tee: tee@10100000 {
> + reg = <0x10100000 0xf00000>;
> + no-map;
> + };
> + };
> +
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> --
> 2.16.4
>
>
Acked-by: James Tai <[email protected]>

2020-01-15 13:21:45

by Andreas Färber

[permalink] [raw]
Subject: Re: [PATCH] arm64: dts: realtek: rtd16xx: Add memory reservations

Am 15.01.20 um 09:13 schrieb James Tai:
>> Reserve memory regions for RPC and TEE.
>>
>> Fixes: e5a9e237608d ("arm64: dts: realtek: Add RTD1619 SoC and Realtek
>> Mjolnir EVB")
>> Cc: James Tai <[email protected]>
>> Signed-off-by: Andreas Färber <[email protected]>
>> ---
>> arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 19 +++++++++++++++++++
>> 1 file changed, 19 insertions(+)
[...]
> Acked-by: James Tai <[email protected]>

Thanks, applied to linux-realtek.git v5.6/dt:

https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-realtek.git/log/?h=v5.6/dt

Regards,
Andreas

--
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer
HRB 36809 (AG Nürnberg)