devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8qm: Add imx8qm's own pm to avoid panic during startup
@ 2023-11-10  7:25 Xiaolei Wang
  2023-12-06  0:57 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Xiaolei Wang @ 2023-11-10  7:25 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, kernel, shawnguo,
	festevam, linux-imx, Frank.Li, marcel.ziswiler, qiangqing.zhang,
	s.hauer
  Cc: devicetree, linux-arm-kernel, linux-kernel

Add imx8qm's own pm, otherwise the following panic will
occur during the startup process:

 Kernel panic - not syncing: Asynchronous SError Interrupt
 Hardware name: Freescale i.MX8QM MEK (DT)
 Workqueue: events_unbound deferred_probe_work_func
 Call trace:
  dump_backtrace+0x98/0xf0
  show_stack+0x18/0x24
  dump_stack_lvl+0x60/0xac
  dump_stack+0x18/0x24
  panic+0x340/0x3a0
  nmi_panic+0x8c/0x90
  arm64_serror_panic+0x6c/0x78
  do_serror+0x3c/0x78
  el1h_64_error_handler+0x38/0x50
  el1h_64_error+0x64/0x68
  fsl_edma_chan_mux+0x98/0xdc
  fsl_edma_probe+0x278/0x898
  platform_probe+0x68/0xd8
  really_probe+0x110/0x27c
  __driver_probe_device+0x78/0x12c
  driver_probe_device+0x3c/0x118
  __device_attach_driver+0xb8/0xf8
  bus_for_each_drv+0x84/0xe4
  __device_attach+0xfc/0x18c
  device_initial_probe+0x14/0x20

Fixes: e4d7a330fb7a ("arm64: dts: imx8: add edma[0..3]")
Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
---
 arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi
index 01539df335f8..8439dd6b3935 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi
@@ -96,6 +96,17 @@ &edma2 {
 	status = "okay";
 };
 
+&edma3 {
+	power-domains = <&pd IMX_SC_R_DMA_1_CH0>,
+		     <&pd IMX_SC_R_DMA_1_CH1>,
+		     <&pd IMX_SC_R_DMA_1_CH2>,
+		     <&pd IMX_SC_R_DMA_1_CH3>,
+		     <&pd IMX_SC_R_DMA_1_CH4>,
+		     <&pd IMX_SC_R_DMA_1_CH5>,
+		     <&pd IMX_SC_R_DMA_1_CH6>,
+		     <&pd IMX_SC_R_DMA_1_CH7>;
+};
+
 &flexcan1 {
 	fsl,clk-source = /bits/ 8 <1>;
 };
-- 
2.25.1


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

* Re: [PATCH] arm64: dts: imx8qm: Add imx8qm's own pm to avoid panic during startup
  2023-11-10  7:25 [PATCH] arm64: dts: imx8qm: Add imx8qm's own pm to avoid panic during startup Xiaolei Wang
@ 2023-12-06  0:57 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2023-12-06  0:57 UTC (permalink / raw)
  To: Xiaolei Wang
  Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, kernel, festevam,
	linux-imx, Frank.Li, marcel.ziswiler, qiangqing.zhang, s.hauer,
	devicetree, linux-arm-kernel, linux-kernel

On Fri, Nov 10, 2023 at 03:25:31PM +0800, Xiaolei Wang wrote:
> Add imx8qm's own pm, otherwise the following panic will
> occur during the startup process:
> 
>  Kernel panic - not syncing: Asynchronous SError Interrupt
>  Hardware name: Freescale i.MX8QM MEK (DT)
>  Workqueue: events_unbound deferred_probe_work_func
>  Call trace:
>   dump_backtrace+0x98/0xf0
>   show_stack+0x18/0x24
>   dump_stack_lvl+0x60/0xac
>   dump_stack+0x18/0x24
>   panic+0x340/0x3a0
>   nmi_panic+0x8c/0x90
>   arm64_serror_panic+0x6c/0x78
>   do_serror+0x3c/0x78
>   el1h_64_error_handler+0x38/0x50
>   el1h_64_error+0x64/0x68
>   fsl_edma_chan_mux+0x98/0xdc
>   fsl_edma_probe+0x278/0x898
>   platform_probe+0x68/0xd8
>   really_probe+0x110/0x27c
>   __driver_probe_device+0x78/0x12c
>   driver_probe_device+0x3c/0x118
>   __device_attach_driver+0xb8/0xf8
>   bus_for_each_drv+0x84/0xe4
>   __device_attach+0xfc/0x18c
>   device_initial_probe+0x14/0x20
> 
> Fixes: e4d7a330fb7a ("arm64: dts: imx8: add edma[0..3]")
> Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>

Applied, thanks!

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

end of thread, other threads:[~2023-12-06  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-10  7:25 [PATCH] arm64: dts: imx8qm: Add imx8qm's own pm to avoid panic during startup Xiaolei Wang
2023-12-06  0:57 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).