arm64: dts: imx8mp: Fix VPU PGC power-domain parents
Subsystems (3)
PATCH 1/1 arm64: dts: imx8mp: Fix VPU PGC power-domain parents
From: Vitor Soares <[email protected]>
On iMX8M Plus QuadLite (VPU-less SoC), the dependency between VPU power domains lead to a deferred probe error during boot:
[ 17.140195] imx-pgc imx-pgc-domain.8: failed to command PGC [ 17.147183] platform imx-pgc-domain.11: deferred probe pending: (reason unknown) [ 17.147200] platform imx-pgc-domain.12: deferred probe pending: (reason unknown) [ 17.147207] platform imx-pgc-domain.13: deferred probe pending: (reason unknown)
This is incorrect and should be the VPU blk-ctrl controlling these power domains, which is already doing it.
After removing the power-domain property from the VPU PGC nodes, both iMX8M Plus w/ and w/out VPU boot correctly. However, it breaks the suspend/resume functionality. A fix for this is pending, see Links.
--- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 3 --- 1 file changed, 3 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +0 -3
@@ -882,21 +882,18 @@ pgc_vpumix: power-domain@19 { pgc_vpu_g1: power-domain@20 { #power-domain-cells = <0>; - power-domains = <&pgc_vpumix>; reg = <IMX8MP_POWER_DOMAIN_VPU_G1>; clocks = <&clk IMX8MP_CLK_VPU_G1_ROOT>; }; pgc_vpu_g2: power-domain@21 { #power-domain-cells = <0>; - power-domains = <&pgc_vpumix>; reg = <IMX8MP_POWER_DOMAIN_VPU_G2>; clocks = <&clk IMX8MP_CLK_VPU_G2_ROOT>; }; pgc_vpu_vc8000e: power-domain@22 { #power-domain-cells = <0>; - power-domains = <&pgc_vpumix>; reg = <IMX8MP_POWER_DOMAIN_VPU_VC8000E>; clocks = <&clk IMX8MP_CLK_VPU_VC8KE_ROOT>; };
Signature · 1 line
2.34.1
Quoted 22 lines
Subject: [PATCH v1] arm64: dts: imx8mp: Fix VPU PGC power-domain parents
From: Vitor Soares <[email protected]>
On iMX8M Plus QuadLite (VPU-less SoC), the dependency between VPU power domains lead to a deferred probe error during boot:
[ 17.140195] imx-pgc imx-pgc-domain.8: failed to command PGC [ 17.147183] platform imx-pgc-domain.11: deferred probe pending: (reason unknown) [ 17.147200] platform imx-pgc-domain.12: deferred probe pending: (reason unknown) [ 17.147207] platform imx-pgc-domain.13: deferred probe pending:(reason unknown)
This is incorrect and should be the VPU blk-ctrl controlling these power domains, which is already doing it.
After removing the
power-domainproperty from the VPU PGC nodes, both iMX8M Plus w/ and w/out VPU boot correctly. However, it breaks the suspend/resume functionality. A fix for this is pending, see Links.
Quoted 5 lines
Cc <[email protected]>Fixes df680992dd62 ("arm64: dts: imx8mp: add vpu pgc nodes")Link:
Suggested-by Lucas Stach <[email protected]>Signed-off-by Vitor Soares <[email protected]>
For VPU-Less 8MP, all the VPU PGC nodes should be dropped, right?
Why not use bootloader to update the device tree based on fuse settings?
Regards,
Peng.
Quoted 48 lines
--- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 3 --- 1 file changed, 3 deletions(-)arch/arm64/boot/dts/freescale/imx8mp.dtsi +0
-2@@ -882,21 +882,18 @@ pgc_vpumix: power-domain@19 { pgc_vpu_g1: power- domain@20 { #power-domain- cells = <0>; - power-domains = <&pgc_vpumix>; reg = <IMX8MP_POWER_DOMAIN_VPU_G1>; clocks = <&clk IMX8MP_CLK_VPU_G1_ROOT>; }; pgc_vpu_g2: power- domain@21 { #power-domain- cells = <0>; - power-domains = <&pgc_vpumix>; reg =<
IMX8MP_POWER_DOMAIN_VPU_G2>;
clocks = <&clkIMX8MP_CLK_VPU_G2_ROOT>;arch/arm64/boot/dts/freescale/imx8mp.dtsi +0
-0}; pgc_vpu_vc8000e: power-domain@22 {
#power-domain-
cells = <0>;arch/arm64/boot/dts/freescale/imx8mp.dtsi +0
-1- power-domains =<
&pgc_vpumix>;
reg =
<IMX8MP_POWER_DOMAIN_VPU_VC8000E>;
clocks = <&clkIMX8MP_CLK_VPU_VC8KE_ROOT>;
};
--
2.34.1
Quoted 22 lines · Peng Fan
Quoted 22 lines
Subject: [PATCH v1] arm64: dts: imx8mp: Fix VPU PGC power-domain parents
From: Vitor Soares <[email protected]>
On iMX8M Plus QuadLite (VPU-less SoC), the dependency between VPU power domains lead to a deferred probe error during boot:
[ 17.140195] imx-pgc imx-pgc-domain.8: failed to command PGC [ 17.147183] platform imx-pgc-domain.11: deferred probe pending:
(reason unknown)
[ 17.147200] platform imx-pgc-domain.12: deferred probe pending:
(reason unknown)
[ 17.147207] platform imx-pgc-domain.13: deferred probe pending:
(reason unknown)This is incorrect and should be the VPU blk-ctrl controlling these power domains, which is already doing it.
After removing the
power-domainproperty from the VPU PGC nodes, both iMX8M Plus w/ and w/out VPU boot correctly. However, it breaks the suspend/resume functionality. A fix for this is pending, see Links.
Quoted 8 lines
Quoted 5 lines
Cc <[email protected]>Fixes df680992dd62 ("arm64: dts: imx8mp: add vpu pgc nodes")Link:
Suggested-by Lucas Stach <[email protected]>Signed-off-by Vitor Soares <[email protected]>For VPU-Less 8MP, all the VPU PGC nodes should be dropped, right?
They don't need to be dropped. Taking the iMX8MM Lite variante as example (it also doesn't have VPU), the nodes are there and this issue is not present.
Quoted 3 lines
Why not use bootloader to update the device tree based on fuse settings?
While fixing VPU blk-ctrl suspend/resume functionality, I received feedback that this VPU GPC dependency is incorrect and is up to VPU blk-ctrl to control the GPC domains.
As we disable the VPU blk-ctrl node on the bootloader, removing the dependency solves the issue.
Regards,
Vitor Soares
Quoted 53 lines
Regards,
Peng.Quoted 48 lines
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 3 ---1 file changed, 3 deletions(-)arch/arm64/boot/dts/freescale/imx8mp.dtsi +0
-0@@ -882,21 +882,18 @@ pgc_vpumix: power-domain@19 {pgc_vpu_g1: power- domain@20 {
#power-domain- cells = <0>;
- power-domains = <&pgc_vpumix>;
reg = <IMX8MP_POWER_DOMAIN_VPU_G1>;
clocks = <&clkIMX8MP_CLK_VPU_G1_ROOT>;
};pgc_vpu_g2: power- domain@21 {
#power-domain- cells = <0>;
- power-domains = <&pgc_vpumix>;
reg = <IMX8MP_POWER_DOMAIN_VPU_G2>;
clocks = <&clkIMX8MP_CLK_VPU_G2_ROOT>;
};pgc_vpu_vc8000e: power- domain@22 {
#power-domain- cells = <0>;
- power-domains = <&pgc_vpumix>;
reg = <IMX8MP_POWER_DOMAIN_VPU_VC8000E>;
clocks = <&clkIMX8MP_CLK_VPU_VC8KE_ROOT>;
};
--
2.34.1
Quoted 36 lines · Vitor Soares
Quoted 22 lines · Peng Fan
Quoted 22 lines
Subject: [PATCH v1] arm64: dts: imx8mp: Fix VPU PGC power-domain parents
From: Vitor Soares <[email protected]>
On iMX8M Plus QuadLite (VPU-less SoC), the dependency between VPU power domains lead to a deferred probe error during boot:
[ 17.140195] imx-pgc imx-pgc-domain.8: failed to command PGC [ 17.147183] platform imx-pgc-domain.11: deferred probe pending:
(reason unknown)
[ 17.147200] platform imx-pgc-domain.12: deferred probe pending:
(reason unknown)
[ 17.147207] platform imx-pgc-domain.13: deferred probe pending:
(reason unknown)This is incorrect and should be the VPU blk-ctrl controlling these power domains, which is already doing it.
After removing the
power-domainproperty from the VPU PGC nodes, both iMX8M Plus w/ and w/out VPU boot correctly. However, it breaks the suspend/resume functionality. A fix for this is pending, see Links.Quoted 8 lines
Quoted 5 lines
Cc <[email protected]>Fixes df680992dd62 ("arm64: dts: imx8mp: add vpu pgc nodes")Link:
Suggested-by Lucas Stach <[email protected]>Signed-off-by Vitor Soares <[email protected]>For VPU-Less 8MP, all the VPU PGC nodes should be dropped, right?
They don't need to be dropped. Taking the iMX8MM Lite variante as example (it also doesn't have VPU), the nodes are there and this issue is not present.
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
Why not use bootloader to update the device tree based on fuse settings?
While fixing VPU blk-ctrl suspend/resume functionality, I received feedback that
this VPU GPC dependency is incorrect and is up to VPU blk-ctrl to control the GPC domains.
You find it here:
https://lore.kernel.org/all/[email protected]/
Regards,
Vitor Soares
Quoted 59 lines
As we disable the VPU blk-ctrl node on the bootloader, removing the dependency solves the issue.
Regards,
Vitor SoaresQuoted 53 lines
Regards,
Peng.Quoted 48 lines
---
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 3 ---1 file changed, 3 deletions(-)arch/arm64/boot/dts/freescale/imx8mp.dtsi +0
-0@@ -882,21 +882,18 @@ pgc_vpumix: power-domain@19 {pgc_vpu_g1: power- domain@20 {
#power-domain- cells = <0>;
- power-domains = <&pgc_vpumix>;
reg = <IMX8MP_POWER_DOMAIN_VPU_G1>;
clocks = <&clkIMX8MP_CLK_VPU_G1_ROOT>;
};pgc_vpu_g2: power- domain@21 {
#power-domain- cells = <0>;
- power-domains = <&pgc_vpumix>;
reg = <IMX8MP_POWER_DOMAIN_VPU_G2>;
clocks = <&clkIMX8MP_CLK_VPU_G2_ROOT>;
};pgc_vpu_vc8000e: power- domain@22 {
#power-domain- cells = <0>;
- power-domains = <&pgc_vpumix>;
reg = <IMX8MP_POWER_DOMAIN_VPU_VC8000E>;
clocks = <&clkIMX8MP_CLK_VPU_VC8KE_ROOT>;
};
--
2.34.1