mipi_dsi ili9806 not working .

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mipi_dsi ili9806 not working .

2,080 Views
PramodKumar
Contributor IV

Dear Team ,

I am facing the issue with ili9806 based mipi_dsi display . Please find the below logs :

      1.486576] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[    1.493705] ####wkd_panel_probe channel: 0
[    1.497906] ####wkd_panel_probe video_mode:2
[    1.502273] ####wkd_panel_probe lanes:2
[    1.506210] ####wkd_panel_probe width_mm:56
[    1.510489] ####wkd_panel_probe height_mm:93
[    1.514929] imx-drm display-subsystem: bound 32e10000.mipi_dsi (ops imx_sec_dsim_ops)
[    2.086551] ####wkd_panel_enable
[    2.088076] ------------[ cut here ]------------
[    2.088094] WARNING: CPU: 0 PID: 0 at /kernel-source//drivers/gpu/drm/bridge/sec-dsim.c:1738 sec_mipi_dsim_irq_handler+0x180/0x210
[    2.088097] Modules linked in:
[    2.088106] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.98-imx_4.14.98_2.0.0_ga+g5d6cbea #1
[    2.088109] Hardware name: FSL i.MX8MM EVK board (DT)
[    2.088112] task: ffff000009522580 task.stack: ffff000009510000
[    2.088117] PC is at sec_mipi_dsim_irq_handler+0x180/0x210
[    2.088124] LR is at __handle_irq_event_percpu+0x5c/0x148
[    2.088127] pc : [<ffff0000086b5a98>] lr : [<ffff00000811bafc>] pstate: 000001c5
[    2.088129] sp : ffff000008003e60
[    2.088132] x29: ffff000008003e60 x28: ffff000009522580
[    2.088137] x27: 0000000000000001 x26: ffff000009204f50
[    2.088142] x25: ffff00000969b57b x24: ffff800076809e00
[    2.088147] x23: 000000000000003a x22: ffff000008003f0c
[    2.088152] x21: 0000000000000000 x20: ffff8000764ad818
[    2.088157] x19: 0000000000200006 x18: 0000000000000007
[    2.088161] x17: 0000000000000001 x16: 0000000000000024
[    2.088166] x15: ffff000009532000 x14: 00000000fffffff0
[    2.088171] x13: 0000000000000000 x12: 0000000000000001
[    2.088175] x11: 0000000000000000 x10: 0000000000000040
[    2.088180] x9 : ffff000009532fe8 x8 : ffff800074000248
[    2.088185] x7 : ffff800074000270 x6 : 0000000000000000
[    2.088190] x5 : ffff800074000248 x4 : 0000800074a5a000
[    2.088194] x3 : ffff000008003f40 x2 : ffff0000086b5918
[    2.088199] x1 : 00000000f1370000 x0 : 000000008011010f
[    2.088205] Call trace:
[    2.088209] Exception stack(0xffff000008003d20 to 0xffff000008003e60)
[    2.088214] 3d20: 000000008011010f 00000000f1370000 ffff0000086b5918 ffff000008003f40
[    2.088219] 3d40: 0000800074a5a000 ffff800074000248 0000000000000000 ffff800074000270
[    2.088224] 3d60: ffff800074000248 ffff000009532fe8 0000000000000040 0000000000000000
[    2.088228] 3d80: 0000000000000001 0000000000000000 00000000fffffff0 ffff000009532000
[    2.088232] 3da0: 0000000000000024 0000000000000001 0000000000000007 0000000000200006
[    2.088237] 3dc0: ffff8000764ad818 0000000000000000 ffff000008003f0c 000000000000003a
[    2.088241] 3de0: ffff800076809e00 ffff00000969b57b ffff000009204f50 0000000000000001
[    2.088246] 3e00: ffff000009522580 ffff000008003e60 ffff00000811bafc ffff000008003e60
[    2.088250] 3e20: ffff0000086b5a98 00000000000001c5 ffff000008003e60 ffff0000086b5a34
[    2.088255] 3e40: 0000ffffffffffff ffff8000764ad818 ffff000008003e60 ffff0000086b5a98
[    2.088261] [<ffff0000086b5a98>] sec_mipi_dsim_irq_handler+0x180/0x210
[    2.088266] [<ffff00000811bafc>] __handle_irq_event_percpu+0x5c/0x148
[    2.088270] [<ffff00000811bc04>] handle_irq_event_percpu+0x1c/0x58
[    2.088275] [<ffff00000811bc88>] handle_irq_event+0x48/0x78
[    2.088282] [<ffff00000811fa88>] handle_fasteoi_irq+0xa8/0x180
[    2.088286] [<ffff00000811ac1c>] generic_handle_irq+0x24/0x38
[    2.088291] [<ffff00000811b29c>] __handle_domain_irq+0x5c/0xb8
[    2.088296] [<ffff000008081960>] gic_handle_irq+0x78/0x174
[    2.088299] Exception stack(0xffff000009513dd0 to 0xffff000009513f10)
[    2.088303] 3dc0: 0000000000000000 0000000000000000
[    2.088307] 3de0: 0000000000000001 0000000000000000 ffff000009504388 ffff000009513f00
[    2.088312] 3e00: 0000800074a5a000 0000000000000000 0000000000000002 ffff000009513e90
[    2.088316] 3e20: 0000000000000980 0000000000000000 0000000000000001 0000000000000000
[    2.088320] 3e40: 00000000fffffff0 ffff000009532000 0000000000000024 0000000000000001
[    2.088325] 3e60: 0000000000000007 ffff0000094fe018 ffff000009518000 ffff000009518000
[    2.088329] 3e80: ffff000009509cc0 ffff000009518e9c 0000000000000000 0000000000000000
[    2.088334] 3ea0: ffff000009522580 0000000000000400 00000000417d0018 ffff000009513f10
[    2.088338] 3ec0: ffff00000808581c ffff000009513f10 ffff000008085820 0000000000000045
[    2.088343] 3ee0: 0000000000000000 00000000bdf11c64 ffffffffffffffff ffff000008141ad4
[    2.088346] 3f00: ffff000009513f10 ffff000008085820
[    2.088350] [<ffff000008083230>] el1_irq+0xb0/0x124
[    2.088356] [<ffff000008085820>] arch_cpu_idle+0x10/0x18
[    2.088361] [<ffff00000810c928>] do_idle+0x120/0x1e0
[    2.088365] [<ffff00000810cb84>] cpu_startup_entry+0x24/0x28
[    2.088373] [<ffff000008dad318>] rest_init+0xd0/0xe0
[    2.088381] [<ffff0000093d0b70>] start_kernel+0x398/0x3ac
[    2.088388] ---[ end trace d388d7d829788fe6 ]---
[    2.088396] imx_sec_dsim_drv 32e10000.mipi_dsi: LP RX timeout
[    2.356551] imx_sec_dsim_drv 32e10000.mipi_dsi: wait pkthdr tx done time out
[    2.356555] ####wkd_panel_enable init fail in 99, ret: fffffff0
[    2.356560] imx_sec_dsim_drv 32e10000.mipi_dsi: panel enable failed: -16
[    2.356562] ####wkd_panel_unprepare

Regards and Thanks in advance ,

Pramod Kumar

0 Kudos
4 Replies

1,888 Views
kaney
Contributor I

Yocto Linux 5.4.47_2.2.0

I have the same problem, when eable rm67191 mipi-dsi panel, use below device tree: 

imx8mm-evk-rm67191.dtb

[ 2.549264] imx-drm soc@0:bus@32c00000:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops)
[ 2.559161] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[ 2.567464] panel-raydium-rm67191 32e10000.mipi_dsi.0: 32e10000.mipi_dsi.0 supply v3p3 not found, using dummy regulator
[ 2.578305] panel-raydium-rm67191 32e10000.mipi_dsi.0: 32e10000.mipi_dsi.0 supply v1p8 not found, using dummy regulator
[ 2.589188] imx-drm soc@0:bus@32c00000:display-subsystem: bound 32e10000.mipi_dsi (ops imx_sec_dsim_ops)
[ 2.599236] [drm] Initialized imx-drm 1.0.0 20120507 for soc@0:bus@32c00000:display-subsystem on minor 0
[ 2.638751] random: fast init done
[ 2.658569] ------------[ cut here ]------------
[ 2.658585] WARNING: CPU: 0 PID: 0 at drivers/gpu/drm/bridge/sec-dsim.c:1769 sec_mipi_dsim_irq_handler+0x194/0x218
[ 2.658587] Modules linked in:
[ 2.658595] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.47-2.2.0+g5ec03d0 #1
[ 2.658597] Hardware name: FSL i.MX8MM EVK board (DT)
[ 2.658601] pstate: 00000085 (nzcv daIf -PAN -UAO)
[ 2.658606] pc : sec_mipi_dsim_irq_handler+0x194/0x218
[ 2.658614] lr : __handle_irq_event_percpu+0x64/0x170
[ 2.658615] sp : ffff800010003e60
[ 2.658619] x29: ffff800010003e60 x28: 0000000000000060
[ 2.658624] x27: ffff8000114b20f0 x26: ffff800011b0a704
[ 2.658630] x25: ffff800011a02580 x24: ffff0000763b4400
[ 2.658635] x23: 0000000000000037 x22: ffff800010003f24
[ 2.658641] x21: 0000000000000000 x20: ffff000077600080
[ 2.658647] x19: 0000000000200003 x18: 0000000000000000
[ 2.658653] x17: 0000000000000000 x16: 0000000000000000
[ 2.658658] x15: 0000000000000000 x14: ffff800011a02580
[ 2.658664] x13: ffff800011a02580 x12: ffff80006c382000
[ 2.658670] x11: 0000000034d4d91d x10: 0000000000000040
[ 2.658674] x9 : ffff800011a11c80 x8 : ffff800011a11c78
[ 2.658680] x7 : ffff000074000428 x6 : 0000000000000000
[ 2.658685] x5 : ffff000074000248 x4 : ffff80006c382000
[ 2.658691] x3 : ffff800010003f60 x2 : ffff800010749698
[ 2.658697] x1 : 00000000f1370000 x0 : 000000008011040e
[ 2.658703] Call trace:
[ 2.658709] sec_mipi_dsim_irq_handler+0x194/0x218
[ 2.658713] __handle_irq_event_percpu+0x64/0x170
[ 2.658719] handle_irq_event_percpu+0x30/0x88
[ 2.658725] handle_irq_event+0x44/0xc8
[ 2.658732] handle_fasteoi_irq+0xb4/0x160
[ 2.658736] generic_handle_irq+0x24/0x38
[ 2.658740] __handle_domain_irq+0x60/0xb8
[ 2.658745] gic_handle_irq+0x5c/0x148
[ 2.658748] el1_irq+0xb8/0x180
[ 2.658754] cpuidle_enter_state+0x84/0x360
[ 2.658757] cpuidle_enter+0x34/0x48
[ 2.658762] call_cpuidle+0x18/0x38
[ 2.658765] do_idle+0x1e0/0x280
[ 2.658769] cpu_startup_entry+0x20/0x40
[ 2.658774] rest_init+0xd4/0xe0
[ 2.658781] arch_call_rest_init+0xc/0x14
[ 2.658784] start_kernel+0x418/0x44c
[ 2.658787] ---[ end trace 2727000a38e64047 ]---
[ 2.658795] imx_sec_dsim_drv 32e10000.mipi_dsi: LP RX timeout
[ 2.916479] imx_sec_dsim_drv 32e10000.mipi_dsi: wait payload tx done time out
[ 2.916490] panel-raydium-rm67191 32e10000.mipi_dsi.0: [drm:rad_panel_enable] *ERROR* Failed to set tear scanline (-16)
[ 2.916495] imx_sec_dsim_drv 32e10000.mipi_dsi: panel enable failed: -16

0 Kudos

1,984 Views
igorpadykov
NXP Employee
NXP Employee

Hi Pramod

such exceptions can be due to memory errors, one can run ddr test and

rebuild image.

https://community.nxp.com/docs/DOC-340179 

Also please check that you did not copied some binaries from previous builds

or other kernel revisions. Recommended fully rebuild image with modified sources.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,984 Views
PramodKumar
Contributor IV

Dear igor ,

It is on fresh image I have build as on yocto document .

* For ddr test suggest me how to go for ddr test.

0 Kudos

1,984 Views
igorpadykov
NXP Employee
NXP Employee

>For ddr test suggest me how to go for ddr test.

please check documentation on link

i.MX 8M Family DDR Tool Release 

Best regards
igor

0 Kudos