public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mn: remove GPU power domain reset
@ 2022-08-26 19:04 Lucas Stach
  2022-08-26 20:46 ` Adam Ford
  2022-09-05  1:29 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Lucas Stach @ 2022-08-26 19:04 UTC (permalink / raw)
  To: Shawn Guo
  Cc: Fabio Estevam, Adam Ford, NXP Linux Team, linux-arm-kernel,
	patchwork-lst, kernel

From: Marco Felsch <m.felsch@pengutronix.de>

The PGC (power gating controller) already handles the reset for the
GPUMIX power domain. By specifying it within the device tree the reset
it issued a 2nd time. This confuses the hardware during power up and
sporadically hangs the SoC. Fix this by removing the reset property and
let the hardware handle the reset.

Fixes: 9a0f3b157e22e ("arm64: dts: imx8mn: Enable GPU")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 arch/arm64/boot/dts/freescale/imx8mn.dtsi | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
index 0c71b740a316..cb2836bfbd95 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
@@ -672,7 +672,6 @@ pgc_gpumix: power-domain@2 {
 							 <&clk IMX8MN_CLK_GPU_SHADER>,
 							 <&clk IMX8MN_CLK_GPU_BUS_ROOT>,
 							 <&clk IMX8MN_CLK_GPU_AHB>;
-						resets = <&src IMX8MQ_RESET_GPU_RESET>;
 					};
 
 					pgc_dispmix: power-domain@3 {
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: imx8mn: remove GPU power domain reset
  2022-08-26 19:04 [PATCH] arm64: dts: imx8mn: remove GPU power domain reset Lucas Stach
@ 2022-08-26 20:46 ` Adam Ford
  2022-09-05  1:29 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Adam Ford @ 2022-08-26 20:46 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Shawn Guo, Fabio Estevam, NXP Linux Team, arm-soc, patchwork-lst,
	Sascha Hauer

On Fri, Aug 26, 2022 at 2:04 PM Lucas Stach <l.stach@pengutronix.de> wrote:
>
> From: Marco Felsch <m.felsch@pengutronix.de>
>
> The PGC (power gating controller) already handles the reset for the
> GPUMIX power domain. By specifying it within the device tree the reset
> it issued a 2nd time. This confuses the hardware during power up and
> sporadically hangs the SoC. Fix this by removing the reset property and
> let the hardware handle the reset.
>
I was noticing this too.  When using the downstream NXP kernel with
the upstream GPC and blkctrl drivers, it could lock up the whole
system.  With this removed it fixed it.

Tested-by: Adam Ford <aford173@gmail.com>

> Fixes: 9a0f3b157e22e ("arm64: dts: imx8mn: Enable GPU")
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  arch/arm64/boot/dts/freescale/imx8mn.dtsi | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
> index 0c71b740a316..cb2836bfbd95 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
> @@ -672,7 +672,6 @@ pgc_gpumix: power-domain@2 {
>                                                          <&clk IMX8MN_CLK_GPU_SHADER>,
>                                                          <&clk IMX8MN_CLK_GPU_BUS_ROOT>,
>                                                          <&clk IMX8MN_CLK_GPU_AHB>;
> -                                               resets = <&src IMX8MQ_RESET_GPU_RESET>;
>                                         };
>
>                                         pgc_dispmix: power-domain@3 {
> --
> 2.30.2
>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: imx8mn: remove GPU power domain reset
  2022-08-26 19:04 [PATCH] arm64: dts: imx8mn: remove GPU power domain reset Lucas Stach
  2022-08-26 20:46 ` Adam Ford
@ 2022-09-05  1:29 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2022-09-05  1:29 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Fabio Estevam, Adam Ford, NXP Linux Team, linux-arm-kernel,
	patchwork-lst, kernel

On Fri, Aug 26, 2022 at 09:04:48PM +0200, Lucas Stach wrote:
> From: Marco Felsch <m.felsch@pengutronix.de>
> 
> The PGC (power gating controller) already handles the reset for the
> GPUMIX power domain. By specifying it within the device tree the reset
> it issued a 2nd time. This confuses the hardware during power up and
> sporadically hangs the SoC. Fix this by removing the reset property and
> let the hardware handle the reset.
> 
> Fixes: 9a0f3b157e22e ("arm64: dts: imx8mn: Enable GPU")
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

Applied, thanks!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-05  2:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26 19:04 [PATCH] arm64: dts: imx8mn: remove GPU power domain reset Lucas Stach
2022-08-26 20:46 ` Adam Ford
2022-09-05  1:29 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox