linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* i.MX8MN Errors on 5.6-RC7
@ 2020-03-28  2:49 Adam Ford
  2020-03-28 11:18 ` Fabio Estevam
  2020-03-28 12:07 ` Anson Huang
  0 siblings, 2 replies; 6+ messages in thread
From: Adam Ford @ 2020-03-28  2:49 UTC (permalink / raw)
  To: arm-soc
  Cc: Mark Rutland, devicetree, Fabio Estevam, Anson Huang, Adam Ford,
	Sascha Hauer, Adam Ford-BE, Linux Kernel Mailing List,
	Rob Herring, NXP Linux Team, Pengutronix Kernel Team, Shawn Guo

I am getting a few errors on the i.MX8MN:

[    0.000368] Failed to get clock for /timer@306a0000
[    0.000380] Failed to initialize '/timer@306a0000': -22
[    7.203447] caam 30900000.caam: Failed to get clk 'ipg': -2
[    7.334741] caam 30900000.caam: Failed to request all necessary clocks
[    7.438651] caam: probe of 30900000.caam failed with error -2
[    7.854193] imx-cpufreq-dt: probe of imx-cpufreq-dt failed with error -2

I was curious to know if anyone else is seeing similar errors.  I
already submitted a proposed fix for a DMA timeout (not shown here)
which matched work already done on i.MX8MQ and i.MX8MM.

I am not seeing huge differences between 8MM and 8MN in the nodes
which address the timer, caam or imx-cpufreq-dt.

If anyone has any suggestions, I'd love to try them.

adam

_______________________________________________
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] 6+ messages in thread

* Re: i.MX8MN Errors on 5.6-RC7
  2020-03-28  2:49 i.MX8MN Errors on 5.6-RC7 Adam Ford
@ 2020-03-28 11:18 ` Fabio Estevam
  2020-03-28 12:07 ` Anson Huang
  1 sibling, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2020-03-28 11:18 UTC (permalink / raw)
  To: Adam Ford
  Cc: Mark Rutland, devicetree, Anson Huang, Sascha Hauer,
	Adam Ford-BE, Linux Kernel Mailing List, Rob Herring,
	NXP Linux Team, Pengutronix Kernel Team, Shawn Guo, arm-soc

Hi Adam,

On Fri, Mar 27, 2020 at 11:50 PM Adam Ford <aford173@gmail.com> wrote:
>
> I am getting a few errors on the i.MX8MN:
>
> [    0.000368] Failed to get clock for /timer@306a0000
> [    0.000380] Failed to initialize '/timer@306a0000': -22
> [    7.203447] caam 30900000.caam: Failed to get clk 'ipg': -2
> [    7.334741] caam 30900000.caam: Failed to request all necessary clocks
> [    7.438651] caam: probe of 30900000.caam failed with error -2
> [    7.854193] imx-cpufreq-dt: probe of imx-cpufreq-dt failed with error -2
>
> I was curious to know if anyone else is seeing similar errors.  I
> already submitted a proposed fix for a DMA timeout (not shown here)
> which matched work already done on i.MX8MQ and i.MX8MM.
>
> I am not seeing huge differences between 8MM and 8MN in the nodes
> which address the timer, caam or imx-cpufreq-dt.
>
> If anyone has any suggestions, I'd love to try them.

I don't have access to a i.MX8MN board at the moment, but I am
wondering if the errors could be AT-F related.

Which version do you use? Could you try
https://source.codeaurora.org/external/imx/imx-atf/log/?h=imx_5.4.3_2.0.0
?

Regards,

Fabio Estevam

_______________________________________________
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] 6+ messages in thread

* RE: i.MX8MN Errors on 5.6-RC7
  2020-03-28  2:49 i.MX8MN Errors on 5.6-RC7 Adam Ford
  2020-03-28 11:18 ` Fabio Estevam
@ 2020-03-28 12:07 ` Anson Huang
  2020-03-28 12:37   ` Adam Ford
  1 sibling, 1 reply; 6+ messages in thread
From: Anson Huang @ 2020-03-28 12:07 UTC (permalink / raw)
  To: Adam Ford, arm-soc
  Cc: Mark Rutland, devicetree, Fabio Estevam, Sascha Hauer,
	Adam Ford-BE, Linux Kernel Mailing List, Rob Herring,
	dl-linux-imx, Pengutronix Kernel Team, Shawn Guo

Hi, Adam

> Subject: i.MX8MN Errors on 5.6-RC7
> 
> I am getting a few errors on the i.MX8MN:
> 
> [    0.000368] Failed to get clock for /timer@306a0000
> [    0.000380] Failed to initialize '/timer@306a0000': -22
> [    7.203447] caam 30900000.caam: Failed to get clk 'ipg': -2
> [    7.334741] caam 30900000.caam: Failed to request all necessary clocks
> [    7.438651] caam: probe of 30900000.caam failed with error -2
> [    7.854193] imx-cpufreq-dt: probe of imx-cpufreq-dt failed with error -2
> 
> I was curious to know if anyone else is seeing similar errors.  I already
> submitted a proposed fix for a DMA timeout (not shown here) which
> matched work already done on i.MX8MQ and i.MX8MM.
> 
> I am not seeing huge differences between 8MM and 8MN in the nodes which
> address the timer, caam or imx-cpufreq-dt.
> 
> If anyone has any suggestions, I'd love to try them.

Which board did you try? I just run it on i.MX8MN-EVK board, no such failure:

root@imx8mnevk:~# uname -a
Linux imx8mnevk 5.6.0-rc7 #621 SMP PREEMPT Sat Mar 28 19:56:30 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
root@imx8mnevk:~# dmesg | grep fail
[    0.719353] imx-sdma 302b0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
[    0.941304] calling  net_failover_init+0x0/0x8 @ 1
[    0.941310] initcall net_failover_init+0x0/0x8 returned 0 after 0 usecs
[    1.135885] calling  failover_init+0x0/0x24 @ 1
[    1.135897] initcall failover_init+0x0/0x24 returned 0 after 6 usecs
root@imx8mnevk:~#

Thanks,
Anson
_______________________________________________
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] 6+ messages in thread

* Re: i.MX8MN Errors on 5.6-RC7
  2020-03-28 12:07 ` Anson Huang
@ 2020-03-28 12:37   ` Adam Ford
  2020-03-29  3:29     ` Anson Huang
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Ford @ 2020-03-28 12:37 UTC (permalink / raw)
  To: Anson Huang
  Cc: Mark Rutland, devicetree, Fabio Estevam, Sascha Hauer,
	Adam Ford-BE, Linux Kernel Mailing List, Rob Herring,
	dl-linux-imx, Pengutronix Kernel Team, Shawn Guo, arm-soc

On Sat, Mar 28, 2020 at 7:07 AM Anson Huang <anson.huang@nxp.com> wrote:
>
> Hi, Adam
>
> > Subject: i.MX8MN Errors on 5.6-RC7
> >
> > I am getting a few errors on the i.MX8MN:
> >
> > [    0.000368] Failed to get clock for /timer@306a0000
> > [    0.000380] Failed to initialize '/timer@306a0000': -22
> > [    7.203447] caam 30900000.caam: Failed to get clk 'ipg': -2
> > [    7.334741] caam 30900000.caam: Failed to request all necessary clocks
> > [    7.438651] caam: probe of 30900000.caam failed with error -2
> > [    7.854193] imx-cpufreq-dt: probe of imx-cpufreq-dt failed with error -2
> >
> > I was curious to know if anyone else is seeing similar errors.  I already
> > submitted a proposed fix for a DMA timeout (not shown here) which
> > matched work already done on i.MX8MQ and i.MX8MM.
> >
> > I am not seeing huge differences between 8MM and 8MN in the nodes which
> > address the timer, caam or imx-cpufreq-dt.
> >
> > If anyone has any suggestions, I'd love to try them.
>

Fabio,

I tried your ATF suggestion, and it fixed some issues and introduced others:

[    0.767679] ------------[ cut here ]------------
[    0.767687] coherent pool not initialised!
[    0.767714] WARNING: CPU: 3 PID: 1 at kernel/dma/remap.c:190
dma_alloc_from_pool+0x94/0xa0
[    0.767718] Modules linked in:
[    0.767728] CPU: 3 PID: 1 Comm: swapper/0 Not tainted
5.6.0-rc7-00471-g97c33f1ada5c-dirty #5
[    0.767732] Hardware name: Beacon EmbeddedWorks i.MX8M Nano
Development Kit (DT)
[    0.767738] pstate: 60000005 (nZCv daif -PAN -UAO)
[    0.767744] pc : dma_alloc_from_pool+0x94/0xa0
[    0.767749] lr : dma_alloc_from_pool+0x94/0xa0
[    0.767753] sp : ffff80001003ba10
[    0.767756] x29: ffff80001003ba10 x28: ffff00007c868080
[    0.767762] x27: 0000000fffffffe0 x26: ffff00007fbdd080
[    0.767768] x25: 0000000000000000 x24: ffff800010161b3c
[    0.767774] x23: 0000000000001000 x22: ffff00007c86bd38
[    0.767780] x21: ffff8000112ba000 x20: ffff00007f6ed410
[    0.767785] x19: 0000000000000000 x18: 0000000000000010
[    0.767791] x17: 00000000000045e0 x16: 00000000000045d0
[    0.767796] x15: ffff00007f470470 x14: ffffffffffffffff
[    0.767802] x13: ffff80009003b777 x12: ffff80001003b77f
[    0.767807] x11: ffff8000118e1000 x10: ffff800011abc658
[    0.767813] x9 : 0000000000000000 x8 : 6573696c61697469
[    0.767818] x7 : 6e6920746f6e206c x6 : 00000000000000a9
[    0.767824] x5 : 0000000000000000 x4 : 0000000000000000
[    0.767829] x3 : 00000000ffffffff x2 : ffff8000118e1b80
[    0.767835] x1 : 3a4437124c5a6b00 x0 : 0000000000000000
[    0.767840] Call trace:
[    0.767847]  dma_alloc_from_pool+0x94/0xa0
[    0.767853]  dma_direct_alloc_pages+0x1a4/0x1e0
[    0.767858]  dma_direct_alloc+0xc/0x20
[    0.767863]  dma_alloc_attrs+0x7c/0xf0
[    0.767870]  sdma_probe+0x3d4/0x7f0
[    0.767877]  platform_drv_probe+0x50/0xa0
[    0.767885]  really_probe+0xd4/0x320
[    0.767891]  driver_probe_device+0x54/0xf0
[    0.767897]  device_driver_attach+0x6c/0x80
[    0.767903]  __driver_attach+0x54/0xd0
[    0.767908]  bus_for_each_dev+0x6c/0xc0
[    0.767914]  driver_attach+0x20/0x30
[    0.767919]  bus_add_driver+0x140/0x1f0
[    0.767925]  driver_register+0x60/0x110
[    0.767930]  __platform_driver_register+0x44/0x50
[    0.767938]  sdma_driver_init+0x18/0x20
[    0.767944]  do_one_initcall+0x50/0x190
[    0.767950]  kernel_init_freeable+0x1cc/0x23c
[    0.767958]  kernel_init+0x10/0x100
[    0.767963]  ret_from_fork+0x10/0x18
[    0.767972] ---[ end trace 796b8d949d96f5f6 ]---


Anson,

> Which board did you try? I just run it on i.MX8MN-EVK board, no such failure:
I have a board from Beacon EmbeddedWorks based on the i.MX8MN which is
nearly identical to the i.MX8MM which doesn't exhibit any of these
errors.

I tried Fabio's suggestion of switching the version of ATF which did
fix the Bluetooth communication errors I was getting, but I didn't
show them before.

Unfortunately, I don't have the i.MX8MN-EVK right now, I'm working on
trying to get one.

Can I ask which version of U-Boot and ATF you're using?  I am
wondering if I need to update something else.

adam
>
> root@imx8mnevk:~# uname -a
> Linux imx8mnevk 5.6.0-rc7 #621 SMP PREEMPT Sat Mar 28 19:56:30 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
> root@imx8mnevk:~# dmesg | grep fail
> [    0.719353] imx-sdma 302b0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2
> [    0.941304] calling  net_failover_init+0x0/0x8 @ 1
> [    0.941310] initcall net_failover_init+0x0/0x8 returned 0 after 0 usecs
> [    1.135885] calling  failover_init+0x0/0x24 @ 1
> [    1.135897] initcall failover_init+0x0/0x24 returned 0 after 6 usecs
> root@imx8mnevk:~#
>
> Thanks,
> Anson

_______________________________________________
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] 6+ messages in thread

* RE: i.MX8MN Errors on 5.6-RC7
  2020-03-28 12:37   ` Adam Ford
@ 2020-03-29  3:29     ` Anson Huang
  2020-03-31 20:33       ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Anson Huang @ 2020-03-29  3:29 UTC (permalink / raw)
  To: Adam Ford
  Cc: Mark Rutland, devicetree, Fabio Estevam, Sascha Hauer,
	Adam Ford-BE, Linux Kernel Mailing List, Rob Herring,
	dl-linux-imx, Pengutronix Kernel Team, Shawn Guo, arm-soc



> Subject: Re: i.MX8MN Errors on 5.6-RC7
> 
> On Sat, Mar 28, 2020 at 7:07 AM Anson Huang <anson.huang@nxp.com>
> wrote:
> >
> > Hi, Adam
> >
> > > Subject: i.MX8MN Errors on 5.6-RC7
> > >
> > > I am getting a few errors on the i.MX8MN:
> > >
> > > [    0.000368] Failed to get clock for /timer@306a0000
> > > [    0.000380] Failed to initialize '/timer@306a0000': -22
> > > [    7.203447] caam 30900000.caam: Failed to get clk 'ipg': -2
> > > [    7.334741] caam 30900000.caam: Failed to request all necessary clocks
> > > [    7.438651] caam: probe of 30900000.caam failed with error -2
> > > [    7.854193] imx-cpufreq-dt: probe of imx-cpufreq-dt failed with error -2
> > >
> > > I was curious to know if anyone else is seeing similar errors.  I
> > > already submitted a proposed fix for a DMA timeout (not shown here)
> > > which matched work already done on i.MX8MQ and i.MX8MM.
> > >
> > > I am not seeing huge differences between 8MM and 8MN in the nodes
> > > which address the timer, caam or imx-cpufreq-dt.
> > >
> > > If anyone has any suggestions, I'd love to try them.
> >
> 
> Fabio,
> 
> I tried your ATF suggestion, and it fixed some issues and introduced others:
> 
> [    0.767679] ------------[ cut here ]------------
> [    0.767687] coherent pool not initialised!
> [    0.767714] WARNING: CPU: 3 PID: 1 at kernel/dma/remap.c:190
> dma_alloc_from_pool+0x94/0xa0
> [    0.767718] Modules linked in:
> [    0.767728] CPU: 3 PID: 1 Comm: swapper/0 Not tainted
> 5.6.0-rc7-00471-g97c33f1ada5c-dirty #5
> [    0.767732] Hardware name: Beacon EmbeddedWorks i.MX8M Nano
> Development Kit (DT)
> [    0.767738] pstate: 60000005 (nZCv daif -PAN -UAO)
> [    0.767744] pc : dma_alloc_from_pool+0x94/0xa0
> [    0.767749] lr : dma_alloc_from_pool+0x94/0xa0
> [    0.767753] sp : ffff80001003ba10
> [    0.767756] x29: ffff80001003ba10 x28: ffff00007c868080
> [    0.767762] x27: 0000000fffffffe0 x26: ffff00007fbdd080
> [    0.767768] x25: 0000000000000000 x24: ffff800010161b3c
> [    0.767774] x23: 0000000000001000 x22: ffff00007c86bd38
> [    0.767780] x21: ffff8000112ba000 x20: ffff00007f6ed410
> [    0.767785] x19: 0000000000000000 x18: 0000000000000010
> [    0.767791] x17: 00000000000045e0 x16: 00000000000045d0
> [    0.767796] x15: ffff00007f470470 x14: ffffffffffffffff
> [    0.767802] x13: ffff80009003b777 x12: ffff80001003b77f
> [    0.767807] x11: ffff8000118e1000 x10: ffff800011abc658
> [    0.767813] x9 : 0000000000000000 x8 : 6573696c61697469
> [    0.767818] x7 : 6e6920746f6e206c x6 : 00000000000000a9
> [    0.767824] x5 : 0000000000000000 x4 : 0000000000000000
> [    0.767829] x3 : 00000000ffffffff x2 : ffff8000118e1b80
> [    0.767835] x1 : 3a4437124c5a6b00 x0 : 0000000000000000
> [    0.767840] Call trace:
> [    0.767847]  dma_alloc_from_pool+0x94/0xa0
> [    0.767853]  dma_direct_alloc_pages+0x1a4/0x1e0
> [    0.767858]  dma_direct_alloc+0xc/0x20
> [    0.767863]  dma_alloc_attrs+0x7c/0xf0
> [    0.767870]  sdma_probe+0x3d4/0x7f0
> [    0.767877]  platform_drv_probe+0x50/0xa0
> [    0.767885]  really_probe+0xd4/0x320
> [    0.767891]  driver_probe_device+0x54/0xf0
> [    0.767897]  device_driver_attach+0x6c/0x80
> [    0.767903]  __driver_attach+0x54/0xd0
> [    0.767908]  bus_for_each_dev+0x6c/0xc0
> [    0.767914]  driver_attach+0x20/0x30
> [    0.767919]  bus_add_driver+0x140/0x1f0
> [    0.767925]  driver_register+0x60/0x110
> [    0.767930]  __platform_driver_register+0x44/0x50
> [    0.767938]  sdma_driver_init+0x18/0x20
> [    0.767944]  do_one_initcall+0x50/0x190
> [    0.767950]  kernel_init_freeable+0x1cc/0x23c
> [    0.767958]  kernel_init+0x10/0x100
> [    0.767963]  ret_from_fork+0x10/0x18
> [    0.767972] ---[ end trace 796b8d949d96f5f6 ]---
> 
> 
> Anson,
> 
> > Which board did you try? I just run it on i.MX8MN-EVK board, no such
> failure:
> I have a board from Beacon EmbeddedWorks based on the i.MX8MN which
> is nearly identical to the i.MX8MM which doesn't exhibit any of these errors.
> 
> I tried Fabio's suggestion of switching the version of ATF which did fix the
> Bluetooth communication errors I was getting, but I didn't show them before.
> 
> Unfortunately, I don't have the i.MX8MN-EVK right now, I'm working on
> trying to get one.
> 
> Can I ask which version of U-Boot and ATF you're using?  I am wondering if I
> need to update something else.

I am using our latest u-boot and ATF in NXP internal tree, maybe you can get the
latest release to have a try.

Anson
_______________________________________________
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] 6+ messages in thread

* Re: i.MX8MN Errors on 5.6-RC7
  2020-03-29  3:29     ` Anson Huang
@ 2020-03-31 20:33       ` Fabio Estevam
  0 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2020-03-31 20:33 UTC (permalink / raw)
  To: Anson Huang
  Cc: Mark Rutland, devicetree, Adam Ford, Sascha Hauer, Adam Ford-BE,
	Linux Kernel Mailing List, Rob Herring, dl-linux-imx,
	Pengutronix Kernel Team, Shawn Guo, arm-soc

Hi Adam,

On Sun, Mar 29, 2020 at 12:29 AM Anson Huang <anson.huang@nxp.com> wrote:

> I am using our latest u-boot and ATF in NXP internal tree, maybe you can get the
> latest release to have a try.

Here is a complete log that shows U-Boot/ATF version being used.

It successfully boots imx8mn-evk running linux-next:
https://storage.kernelci.org/next/master/next-20200331/arm64/defconfig/gcc-8/lab-baylibre/boot-imx8mn-ddr4-evk.html

_______________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2020-03-31 20:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28  2:49 i.MX8MN Errors on 5.6-RC7 Adam Ford
2020-03-28 11:18 ` Fabio Estevam
2020-03-28 12:07 ` Anson Huang
2020-03-28 12:37   ` Adam Ford
2020-03-29  3:29     ` Anson Huang
2020-03-31 20:33       ` Fabio Estevam

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).