* [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node
@ 2025-02-27 14:26 Nikita Travkin
2025-02-27 14:26 ` [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap Nikita Travkin
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Nikita Travkin @ 2025-02-27 14:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bryan O'Donoghue
Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel,
Nikita Travkin
While considering to propose WoA EL2 dt overlays upstream I was looking
at existing overlays and noticed that some of them are broken: they put
seemingly meaningful fixups into the overlay's "/" node, which places
them into the overlay "metadata" itself, not into a fixup fragment to be
applied to the actual dtb. This series fixes those two by changing to
full path "&{/}" which should work as it was initially intended.
See demonstration of the problem below:
$ cat base.dts
/dts-v1/;
/ {
compatible = "fake,board";
fake,value = <42>;
};
$ cat extra.dtso
/dts-v1/;
/plugin/;
/ {
foo;
bar { baz; };
};
&{/} { whatever-comes-next-after-baz; };
$ dtc base.dts -o base.dtb
$ dtc extra.dtso -o extra.dtbo
$ fdtoverlay -i base.dtb -o combine.dtb extra.dtbo
$ dtc base.dtb
/dts-v1/;
/ {
compatible = "fake,board";
fake,value = <0x2a>;
};
$ dtc extra.dtbo
/dts-v1/;
/ {
foo;
bar {
baz;
};
fragment@0 {
target-path = "/";
__overlay__ {
whatever-comes-next-after-baz;
};
};
};
$ dtc combine.dtb
/dts-v1/;
/ {
whatever-comes-next-after-baz;
compatible = "fake,board";
fake,value = <0x2a>;
};
In the resulting dtb foo bar and baz are missing.
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
Changes in v2:
- Just revert the original commits (Bryan)
- Link to v1: https://lore.kernel.org/r/20250226-qcom-nonroot-overlays-v1-0-26c6e7605833@trvn.ru
---
Nikita Travkin (2):
arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap
arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Drop CMA heap
arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso | 11 -----------
.../boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso | 11 -----------
2 files changed, 22 deletions(-)
---
base-commit: be5c7bbb3a64baf884481a1ba0c2f8fb2f93f7c3
change-id: 20250226-qcom-nonroot-overlays-bfe21d33be8c
Best regards,
--
Nikita Travkin <nikita@trvn.ru>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap
2025-02-27 14:26 [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Nikita Travkin
@ 2025-02-27 14:26 ` Nikita Travkin
2025-02-27 16:04 ` Bryan O'Donoghue
2025-02-27 14:26 ` [PATCH v2 2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: " Nikita Travkin
2025-03-04 17:00 ` [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Bjorn Andersson
2 siblings, 1 reply; 6+ messages in thread
From: Nikita Travkin @ 2025-02-27 14:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bryan O'Donoghue
Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel,
Nikita Travkin
Initially added, the cma heap was supposed to help with libcamera swisp,
however a mistake was made such that the node was never applied as part
of the overlay since the change was added to the overlay root ("/") and
not with a reference to the target dtb root ("&{/}"). Moveover libcamera
doesn't require CMA heap on Qualcomm platforms anymore as it can now use
UDMA buffers instead.
Drop the CMA heap node. This change has no effect on the final dtb.
This reverts commit 99d557cfe4fcf89664762796678e26009aa3bdd9.
Fixes: 99d557cfe4fc ("arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Add cma heap for libcamera softisp support")
Suggested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso b/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso
index ae256c713a36078afdadc67193f381a19ea8e5d3..5fe331923dd3cd31ff2be047a2228e1c4104e80e 100644
--- a/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso
+++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso
@@ -9,17 +9,6 @@
#include <dt-bindings/clock/qcom,camcc-sm8250.h>
#include <dt-bindings/gpio/gpio.h>
-/ {
- reserved-memory {
- linux,cma {
- compatible = "shared-dma-pool";
- size = <0x0 0x8000000>;
- reusable;
- linux,cma-default;
- };
- };
-};
-
&camcc {
status = "okay";
};
--
2.48.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Drop CMA heap
2025-02-27 14:26 [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Nikita Travkin
2025-02-27 14:26 ` [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap Nikita Travkin
@ 2025-02-27 14:26 ` Nikita Travkin
2025-02-27 16:04 ` Bryan O'Donoghue
2025-03-04 17:00 ` [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Bjorn Andersson
2 siblings, 1 reply; 6+ messages in thread
From: Nikita Travkin @ 2025-02-27 14:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bryan O'Donoghue
Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel,
Nikita Travkin
Initially added, the cma heap was supposed to help with libcamera swisp,
however a mistake was made such that the node was never applied as part
of the overlay since the change was added to the overlay root ("/") and
not with a reference to the target dtb root ("&{/}"). Moveover libcamera
doesn't require CMA heap on Qualcomm platforms anymore as it can now use
UDMA buffers instead.
Drop the CMA heap node. This change has no effect on the final dtb.
This reverts commit d40fd02c1faf8faad57a7579b573bc5be51faabe.
Fixes: d40fd02c1faf ("arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Add cma heap for libcamera softisp support")
Suggested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
.../boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso b/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso
index 59970082da45203311146cc5249298f6188bf67a..51f1a4883ab8f0ee7c66fab89c6e1a88c868d2f8 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso
+++ b/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso
@@ -9,17 +9,6 @@
#include <dt-bindings/clock/qcom,camcc-sdm845.h>
#include <dt-bindings/gpio/gpio.h>
-/ {
- reserved-memory {
- linux,cma {
- compatible = "shared-dma-pool";
- size = <0x0 0x8000000>;
- reusable;
- linux,cma-default;
- };
- };
-};
-
&camss {
vdda-phy-supply = <&vreg_l1a_0p875>;
vdda-pll-supply = <&vreg_l26a_1p2>;
--
2.48.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap
2025-02-27 14:26 ` [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap Nikita Travkin
@ 2025-02-27 16:04 ` Bryan O'Donoghue
0 siblings, 0 replies; 6+ messages in thread
From: Bryan O'Donoghue @ 2025-02-27 16:04 UTC (permalink / raw)
To: Nikita Travkin, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bryan O'Donoghue
Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel
On 27/02/2025 14:26, Nikita Travkin wrote:
> Initially added, the cma heap was supposed to help with libcamera swisp,
> however a mistake was made such that the node was never applied as part
> of the overlay since the change was added to the overlay root ("/") and
> not with a reference to the target dtb root ("&{/}"). Moveover libcamera
> doesn't require CMA heap on Qualcomm platforms anymore as it can now use
> UDMA buffers instead.
>
> Drop the CMA heap node. This change has no effect on the final dtb.
>
> This reverts commit 99d557cfe4fcf89664762796678e26009aa3bdd9.
>
> Fixes: 99d557cfe4fc ("arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Add cma heap for libcamera softisp support")
> Suggested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> Signed-off-by: Nikita Travkin <nikita@trvn.ru>
> ---
> arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso b/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso
> index ae256c713a36078afdadc67193f381a19ea8e5d3..5fe331923dd3cd31ff2be047a2228e1c4104e80e 100644
> --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso
> +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5-vision-mezzanine.dtso
> @@ -9,17 +9,6 @@
> #include <dt-bindings/clock/qcom,camcc-sm8250.h>
> #include <dt-bindings/gpio/gpio.h>
>
> -/ {
> - reserved-memory {
> - linux,cma {
> - compatible = "shared-dma-pool";
> - size = <0x0 0x8000000>;
> - reusable;
> - linux,cma-default;
> - };
> - };
> -};
> -
> &camcc {
> status = "okay";
> };
>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Drop CMA heap
2025-02-27 14:26 ` [PATCH v2 2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: " Nikita Travkin
@ 2025-02-27 16:04 ` Bryan O'Donoghue
0 siblings, 0 replies; 6+ messages in thread
From: Bryan O'Donoghue @ 2025-02-27 16:04 UTC (permalink / raw)
To: Nikita Travkin, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bryan O'Donoghue
Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel
On 27/02/2025 14:26, Nikita Travkin wrote:
> Initially added, the cma heap was supposed to help with libcamera swisp,
> however a mistake was made such that the node was never applied as part
> of the overlay since the change was added to the overlay root ("/") and
> not with a reference to the target dtb root ("&{/}"). Moveover libcamera
> doesn't require CMA heap on Qualcomm platforms anymore as it can now use
> UDMA buffers instead.
>
> Drop the CMA heap node. This change has no effect on the final dtb.
>
> This reverts commit d40fd02c1faf8faad57a7579b573bc5be51faabe.
>
> Fixes: d40fd02c1faf ("arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Add cma heap for libcamera softisp support")
> Suggested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> Signed-off-by: Nikita Travkin <nikita@trvn.ru>
> ---
> .../boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso b/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso
> index 59970082da45203311146cc5249298f6188bf67a..51f1a4883ab8f0ee7c66fab89c6e1a88c868d2f8 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso
> +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso
> @@ -9,17 +9,6 @@
> #include <dt-bindings/clock/qcom,camcc-sdm845.h>
> #include <dt-bindings/gpio/gpio.h>
>
> -/ {
> - reserved-memory {
> - linux,cma {
> - compatible = "shared-dma-pool";
> - size = <0x0 0x8000000>;
> - reusable;
> - linux,cma-default;
> - };
> - };
> -};
> -
> &camss {
> vdda-phy-supply = <&vreg_l1a_0p875>;
> vdda-pll-supply = <&vreg_l26a_1p2>;
>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node
2025-02-27 14:26 [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Nikita Travkin
2025-02-27 14:26 ` [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap Nikita Travkin
2025-02-27 14:26 ` [PATCH v2 2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: " Nikita Travkin
@ 2025-03-04 17:00 ` Bjorn Andersson
2 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2025-03-04 17:00 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bryan O'Donoghue, Nikita Travkin
Cc: Konrad Dybcio, linux-arm-msm, devicetree, linux-kernel
On Thu, 27 Feb 2025 19:26:47 +0500, Nikita Travkin wrote:
> While considering to propose WoA EL2 dt overlays upstream I was looking
> at existing overlays and noticed that some of them are broken: they put
> seemingly meaningful fixups into the overlay's "/" node, which places
> them into the overlay "metadata" itself, not into a fixup fragment to be
> applied to the actual dtb. This series fixes those two by changing to
> full path "&{/}" which should work as it was initially intended.
>
> [...]
Applied, thanks!
[1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap
commit: 2a26a02e668ff101580647221c898d75ed93f8f5
[2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: Drop CMA heap
commit: 4de3e8d657f2111dd8d45c2ba0eef8b2437b85f2
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-03-04 17:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 14:26 [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Nikita Travkin
2025-02-27 14:26 ` [PATCH v2 1/2] arm64: dts: qcom: qrb5165-rb5-vision-mezzanine: Drop CMA heap Nikita Travkin
2025-02-27 16:04 ` Bryan O'Donoghue
2025-02-27 14:26 ` [PATCH v2 2/2] arm64: dts: qcom: sdm845-db845c-navigation-mezzanine: " Nikita Travkin
2025-02-27 16:04 ` Bryan O'Donoghue
2025-03-04 17:00 ` [PATCH v2 0/2] {vision/navigation}-mezzanine: Fix overlay root node Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox