imx8mp use two csi camera at same time encounter crash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx8mp use two csi camera at same time encounter crash

847 次查看
smarter
Contributor II

Hi Nxp expert,

   when I bringup two mipi csi camera ov5640, kernel crashed. linux kernel version is lf-5.10.35-2.0.0.some message is below:

[ 2.787417] ------------[ cut here ]------------
[ 2.798248] WARNING: CPU: 1 PID: 33 at drivers/reset/core.c:558 __reset_control_get_internal+0x68/0x150
[ 2.807638] Modules linked in:
[ 2.810694] CPU: 1 PID: 33 Comm: kworker/1:1 Not tainted 5.10.35-00007-gc1459d0493bd-dirty #13
[ 2.819303] Hardware name: HUIDA HC400 board (DT)
[ 2.824010] Workqueue: events deferred_probe_work_func
[ 2.829149] pstate: 20000005 (nzCv daif -PAN -UAO -TCO BTYPE=--)
[ 2.835154] pc : __reset_control_get_internal+0x68/0x150
[ 2.840464] lr : __of_reset_control_get+0x160/0x1b4
[ 2.845338] sp : ffff80001224b9f0
[ 2.848651] x29: ffff80001224b9f0 x28: 0000000000000000
[ 2.853962] x27: ffff0000c01d1148 x26: ffff800011bbed28
[ 2.859275] x25: 0000000000000001 x24: 0000000000000001
[ 2.864588] x23: 0000000000000000 x22: ffff0000c1686a88
[ 2.869900] x21: 0000000000000006 x20: ffff0000c1686aa8
[ 2.875212] x19: ffff0000c044da80 x18: 0000000000000020
[ 2.880525] x17: 0000000000000001 x16: 0000000000000019
[ 2.885837] x15: ffff0000c013e838 x14: 0000000000000001
[ 2.891148] x13: 0000000000000000 x12: 0101010101010101
[ 2.896460] x11: 0000000000000020 x10: 0101010101010101
[ 2.901773] x9 : 0000000000000003 x8 : 7f7f7f7f7f7f7f7f
[ 2.907085] x7 : 766f21ff726b6b64 x6 : 0000000080237077
[ 2.912397] x5 : fffffdfffe608410 x4 : 0000000000000000
[ 2.917709] x3 : 0000000000000001 x2 : 0000000000000006
[ 2.923020] x1 : 0000000000000006 x0 : 0000000000000000
[ 2.928333] Call trace:
[ 2.930780] __reset_control_get_internal+0x68/0x150
[ 2.935743] __of_reset_control_get+0x160/0x1b4
[ 2.940273] __reset_control_get+0x3c/0x6c
[ 2.944369] __devm_reset_control_get+0x70/0xe0
[ 2.948762] random: fast init done
[ 2.948902] mxc_isi_imx8mp_parse_resets+0x40/0xf0
[ 2.954047] mmc1: host does not support reading read-only switch, assuming write-enable
[ 2.957082] mxc_isi_probe+0x188/0x5cc
[ 2.957086] platform_drv_probe+0x54/0xb0
[ 2.957091] really_probe+0xe4/0x4c0
[ 2.976403] driver_probe_device+0x58/0xc0
[ 2.980499] __device_attach_driver+0xa8/0x10c
[ 2.984941] bus_for_each_drv+0x78/0xd0
[ 2.988778] __device_attach+0xd8/0x180
[ 2.992613] device_initial_probe+0x14/0x20
[ 2.996795] bus_probe_device+0x9c/0xa4
[ 3.000630] deferred_probe_work_func+0x80/0xc0
[ 3.005160] process_one_work+0x1cc/0x350
[ 3.009169] worker_thread+0x2bc/0x46c
[ 3.012918] kthread+0x154/0x160
[ 3.016145] ret_from_fork+0x10/0x30
[ 3.019719] ---[ end trace f513005f3a4db7b4 ]---
[ 3.024360] mxc-isi 32e02000.isi: Failed to get isi proc reset control
[ 3.030897] mxc-isi 32e02000.isi: Can not parse reset control for isi

seem some device not find .how can i resolve this issue.Thank you.

标签 (1)
0 项奖励
回复
1 回复

779 次查看
khang_letruong
Senior Contributor III

Hi @smarter ,

Have you resolved this issue ? I have similar crash after pumping up from 5.4.70-2.3.2 to 5.10.9-1.0.0 :

 

[    3.193046] ------------[ cut here ]------------
[    3.203940] WARNING: CPU: 1 PID: 120 at drivers/reset/core.c:558 __reset_control_get_internal+0x68/0x150
[    3.213416] Modules linked in:
[    3.216475] CPU: 1 PID: 120 Comm: kworker/1:2 Not tainted 5.10.9 #2
[    3.222740] Hardware name: Dynimlabs i.MX8MPlus Spark board (DT)
[    3.228750] Workqueue: events deferred_probe_work_func
[    3.233890] pstate: 20000005 (nzCv daif -PAN -UAO -TCO BTYPE=--)
[    3.239896] pc : __reset_control_get_internal+0x68/0x150
[    3.245208] lr : __of_reset_control_get+0x168/0x1e0
[    3.250084] sp : ffff8000123dba00
[    3.253397] x29: ffff8000123dba00 x28: 0000000000000000 
[    3.258710] x27: ffff0000042f53c8 x26: ffff800011be3338 
[    3.264023] x25: 0000000000000001 x24: 0000000000000001 
[    3.269336] x23: 0000000000000000 x22: ffff0000050afa88 
[    3.274649] x21: 0000000000000006 x20: ffff0000050afaa8 
[    3.279962] x19: ffff0000051b0e80 x18: 00000000fffffffe 
[    3.285277] x17: 0000000000000068 x16: 0000000000000019 
[    3.290591] x15: 0000000000000020 x14: 0000000000000001 
[    3.295904] x13: 0000000000000020 x12: 0101010101010101 
[    3.301217] x11: 0000000000000020 x10: 0101010101010101 
[    3.306530] x9 : 0000000000000003 x8 : 7f7f7f7f7f7f7f7f 
[    3.311843] x7 : 766f21ff726b6b64 x6 : 0000000080237077 
[    3.317156] x5 : fffffdfffe608b04 x4 : 0000000000000000 
[    3.322468] x3 : 0000000000000001 x2 : 0000000000000006 
[    3.327782] x1 : 0000000000000006 x0 : 0000000000000000 
[    3.333095] Call trace:
[    3.335543]  __reset_control_get_internal+0x68/0x150
[    3.340509]  __of_reset_control_get+0x168/0x1e0
[    3.345039]  __reset_control_get+0x3c/0x70
[    3.349135]  __devm_reset_control_get+0x70/0xe0
[    3.353665]  mxc_isi_imx8mp_parse_resets+0x40/0xd0
[    3.358455]  mxc_isi_probe+0x270/0x5d0
[    3.362204]  platform_drv_probe+0x54/0xb0
[    3.366213]  really_probe+0xe4/0x490
[    3.369788]  driver_probe_device+0x58/0xc0
[    3.373887]  __device_attach_driver+0xa8/0x110
[    3.378330]  bus_for_each_drv+0x78/0xd0
[    3.382165]  __device_attach+0xdc/0x180
[    3.386000]  device_initial_probe+0x14/0x20
[    3.390182]  bus_probe_device+0x9c/0xb0
[    3.392724] mmc1: host does not support reading read-only switch, assuming write-enable
[    3.394021]  deferred_probe_work_func+0x6c/0xb0
[    3.404890] mmc1: new high speed SDHC card at address b368
[    3.406545]  process_one_work+0x1c8/0x350
[    3.413023] mmcblk1: mmc1:b368       7.46 GiB 
[    3.416027]  worker_thread+0x2c0/0x470
[    3.416031]  kthread+0x154/0x160
[    3.416035]  ret_from_fork+0x10/0x30
[    3.416039] ---[ end trace f78069da2dc55bc4 ]---

 

 

Meanwhile, there's also following log (that seems to be new in 5.10 kernel) prior above crash :

[ 1.755087] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[ 1.763720] mxc-mipi-csi2-sam 32e40000.csi: Failed to get csi pclk reset control
[ 1.764619] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[ 1.771126] mxc-mipi-csi2-sam 32e40000.csi: Can not parse reset control
[ 1.771481] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator
[ 1.793434] mxc-mipi-csi2-sam 32e50000.csi: Failed to get csi pclk reset control
[ 1.800864] mxc-mipi-csi2-sam 32e50000.csi: Can not parse reset control
[ 1.808194] mxc-isi 32e00000.isi: Failed to get isi proc reset control
[ 1.814766] mxc-isi 32e00000.isi: Can not parse reset control for isi
[ 1.821384] mxc-isi 32e02000.isi: Failed to get isi proc reset control
[ 1.827942] mxc-isi 32e02000.isi: Can not parse reset control for isi
[ 1.834938] mxc-md 32c00000.bus:camera: deferring cap_device device registration

and

[ 3.116478] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[ 3.117069] mmc1: CQHCI version 5.10
[ 3.125374] mxc-mipi-csi2-sam 32e40000.csi: lanes: 1, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 500000000
[ 3.128534] sdhci-esdhc-imx 30b50000.mmc: voltage-ranges unspecified
[ 3.139138] mxc-mipi-csi2-sam 32e50000.csi: supply mipi-phy not found, using dummy regulator
[ 3.144762] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[ 3.153438] mxc-mipi-csi2-sam 32e50000.csi: lanes: 1, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 266000000
[ 3.169462] isi-capture 32e00000.isi:cap_device: Cann't get host data
[ 3.175962] isi-capture 32e00000.isi:cap_device: deferring 32e00000.isi:cap_device device registration
[ 3.186001] mxc-isi 32e00000.isi: mxc_isi.0 registered successfully

Regards,

K.

0 项奖励
回复