This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,TI
I am using ti-processor-sdk-linux-rt-am62xx-evm-08.03.00.19.
When I driver lvds screen display, The terminal will prompt an error message
root@am62xx-evm:~# kmsprint
Connector 0 (39) LVDS-1 (connected)
Encoder 0 (38) LVDS
Crtc 0 (37) 1280x800 71.100 1280/48/32/80 800/2/5/16 60 (59.99)
Plane 0 (31) fb-id: 46 (crtcs: 0) 0,0 1280x800 -> 0,0 1280x800 (AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 AR15 AB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12)
FB 46 1280x800
root@am62xx-evm:~# kmstest -c lvds -r 1280x800
Connector 0/@39: LVDS-1
Crtc 0/@37: 1280x800 71.100 1280/48/32/80/? 800/2/5/16/? 60 (59.99) 0 0x48
Plane 0/@31: 0,0-1280x800
Fb 48 1280x800-XR24
[ 88.958062] ------------[ cut here ]------------
[ 88.958082] WARNING: CPU: 3 PID: 1437 at drivers/gpu/drm/tidss/tidss_dispc.c:867 dispc_oldi_tx_power.isra.0+0x44/0x50
[ 88.958118] Modules linked in: xfrm_user xfrm_algo iptable_nat xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables option usb_wwan cdc_ether usbserial wlcore_sdio wl18xx wlcore mac80211 cfg80211 rfkill libarc4 smsc smsc95xx usbnet xhci_plat_hcd xhci_hcd usbcore rpmsg_char dwc3 udc_core roles virtio_rpmsg_bus usb_common cdns_csi2rx omap_rng rng_core v4l2_fwnode irq_pruss_intc pru_rproc crct10dif_ce dwc3_am62 ti_k3_m4_remoteproc sa2ul j721e_csi2rx sha512_generic authenc videobuf2_dma_contig pruss videobuf2_memops videobuf2_v4l2 cdns_dphy videobuf2_common rtc_ds1307 sch_fq_codel ipv6
[ 88.958271] CPU: 3 PID: 1437 Comm: kmstest Tainted: G W 5.10.109-rt65-00021-ga8f44bc7accd-dirty #13
[ 88.958280] Hardware name: Texas Instruments AM625 SK (DT)
[ 88.958285] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 88.958292] pc : dispc_oldi_tx_power.isra.0+0x44/0x50
[ 88.958300] lr : dispc_vp_unprepare+0x48/0x58
[ 88.958309] sp : ffff80001274ba60
[ 88.958311] x29: ffff80001274ba60 x28: ffff000004bb3200
[ 88.958318] x27: ffff800010b336f8 x26: ffff00000725c600
[ 88.958324] x25: 0000000000000038 x24: ffff8000111353e0
[ 88.958331] x23: ffff800010d69400 x22: ffff000000e45178
[ 88.958337] x21: 0000000000000000 x20: ffff000000e45000
[ 88.958344] x19: ffff000000e47800 x18: 0000000000000000
[ 88.958350] x17: 0000000000000000 x16: 0000000000000000
[ 88.958356] x15: 0000003bc2865800 x14: 00000000000003ac
[ 88.958363] x13: 000000000000004b x12: 0000000000000000
[ 88.958369] x11: 000000000000000a x10: 00000000000009d0
[ 88.958375] x9 : ffff80001274b8d0 x8 : ffff00003fdd6dc0
[ 88.958381] x7 : 0000000000000800 x6 : 0000000000000001
[ 88.958387] x5 : ffff00003fdd6de8 x4 : 0000000000000000
[ 88.958394] x3 : 000000000000002c x2 : 0000000000000001
[ 88.958400] x1 : 0000000000000000 x0 : 0000000000000000
[ 88.958407] Call trace:
[ 88.958411] dispc_oldi_tx_power.isra.0+0x44/0x50
[ 88.958419] tidss_crtc_atomic_disable+0x4c/0xc8
[ 88.958427] drm_atomic_helper_commit_modeset_disables+0x388/0x428
[ 88.958439] tidss_atomic_commit_tail+0x2c/0x80
[ 88.958447] commit_tail+0xa4/0x1a0
[ 88.958455] drm_atomic_helper_commit+0x160/0x388
[ 88.958461] drm_atomic_commit+0x4c/0x60
[ 88.958470] drm_mode_atomic_ioctl+0x9bc/0xb20
[ 88.958478] drm_ioctl_kernel+0xc0/0x110
[ 88.958486] drm_ioctl+0x228/0x490
[ 88.958492] __arm64_sys_ioctl+0xa8/0xf0
[ 88.958503] el0_svc_common.constprop.0+0x78/0x1c8
[ 88.958514] do_el0_svc+0x24/0x90
[ 88.958522] el0_svc+0x14/0x20
[ 88.958533] el0_sync_handler+0xb0/0xb8
[ 88.958541] el0_sync+0x180/0x1c0
[ 88.958549] ---[ end trace 2a508106418650ff ]---
[ 89.996643] ------------[ cut here ]------------
[ 89.996659] WARNING: CPU: 3 PID: 1437 at drivers/gpu/drm/tidss/tidss_dispc.c:867 dispc_oldi_tx_power.isra.0+0x44/0x50
[ 89.996691] Modules linked in: xfrm_user xfrm_algo iptable_nat xt_MASQUERADE nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables option usb_wwan cdc_ether usbserial wlcore_sdio wl18xx wlcore mac80211 cfg80211 rfkill libarc4 smsc smsc95xx usbnet xhci_plat_hcd xhci_hcd usbcore rpmsg_char dwc3 udc_core roles virtio_rpmsg_bus usb_common cdns_csi2rx omap_rng rng_core v4l2_fwnode irq_pruss_intc pru_rproc crct10dif_ce dwc3_am62 ti_k3_m4_remoteproc sa2ul j721e_csi2rx sha512_generic authenc videobuf2_dma_contig pruss videobuf2_memops videobuf2_v4l2 cdns_dphy videobuf2_common rtc_ds1307 sch_fq_codel ipv6
[ 89.996835] CPU: 3 PID: 1437 Comm: kmstest Tainted: G W 5.10.109-rt65-00021-ga8f44bc7accd-dirty #13
[ 89.996844] Hardware name: Texas Instruments AM625 SK (DT)
[ 89.996849] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 89.996856] pc : dispc_oldi_tx_power.isra.0+0x44/0x50
[ 89.996864] lr : dispc_vp_prepare+0xb8/0x1d8
[ 89.996872] sp : ffff80001274ba30
[ 89.996875] x29: ffff80001274ba30 x28: 0000000000000001
[ 89.996882] x27: ffff80001274bc68 x26: ffff000007385c00
[ 89.996888] x25: ffff00000725c600 x24: ffff800010b336f8
[ 89.996895] x23: ffff800010b34878 x22: 0000000000000000
[ 89.996901] x21: 0000000000000000 x20: ffff000001783a80
[ 89.996907] x19: ffff800010b34ab8 x18: 00000000000000ff
[ 89.996914] x17: 00000000000000ff x16: 0000000000000010
[ 89.996920] x15: 0000000000000008 x14: 00000000000000ff
[ 89.996926] x13: 0000000000000000 x12: ffff000000e46080
[ 89.996932] x11: 0000000000000001 x10: 00000000000000ff
[ 89.996938] x9 : ffff000001783a80 x8 : ffff00000599df40
[ 89.996945] x7 : ffff000000e47800 x6 : 0000007da5f93acf
[ 89.996951] x5 : 0000000000000130 x4 : ffff800010b34a48
[ 89.996958] x3 : 0000000000001011 x2 : 0000000000000007
[ 89.996964] x1 : 0000000000000001 x0 : 0000000000000000
[ 89.996971] Call trace:
[ 89.996974] dispc_oldi_tx_power.isra.0+0x44/0x50
[ 89.996982] tidss_crtc_atomic_enable+0xb4/0x110
[ 89.996990] drm_atomic_helper_commit_modeset_enables+0x200/0x248
[ 89.997002] tidss_atomic_commit_tail+0x48/0x80
[ 89.997009] commit_tail+0xa4/0x1a0
[ 89.997016] drm_atomic_helper_commit+0x160/0x388
[ 89.997023] drm_atomic_commit+0x4c/0x60
[ 89.997033] drm_mode_atomic_ioctl+0x9bc/0xb20
[ 89.997040] drm_ioctl_kernel+0xc0/0x110
[ 89.997048] drm_ioctl+0x228/0x490
[ 89.997054] __arm64_sys_ioctl+0xa8/0xf0
[ 89.997065] el0_svc_common.constprop.0+0x78/0x1c8
[ 89.997077] do_el0_svc+0x24/0x90
[ 89.997084] el0_svc+0x14/0x20
[ 89.997096] el0_sync_handler+0xb0/0xb8
[ 89.997104] el0_sync+0x180/0x1c0
[ 89.997112] ---[ end trace 2a50810641865100 ]---
[ 90.497362] func: 0xdispc_set_num_datalines, line: 886, num_lines: 24
press enter to exit
here is my questions:
1. Have you tested the AM62x-SK-EVM LVDS interface, where are the test cases and documentation links?
2. I saw that the ti-linux-kernel git branch has submitted a modified patch for the am62x tidss driver, which was not merged in ti-processor-sdk-linux-rt-am62xx-evm-08.03.00.19.Does this mean that the AM625 OLDI driver is not available in the current SDK version?
https://lore.kernel.org/lkml/20220719080845.22122-3-a-bhatia1@ti.com/
Any ideas would be helpful, thanks!
Hello,
1. We have internally tested the LVDS interface and are working on upstreaming the patches. At the moment, it's not officially supported by our SDK so no test cases or documentation links are available.
2. We are still in the upstream process but I posted experimental patches in the following link: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1128751/am625-oldi-driver-or-dts-example/4198123#4198123 .The patches on our setup and also few of the customers setup. I would recommend you to review your OLDI patches with what I posted on the E2E.
Regards,
Krunal
Hi,
Thanks for the synced information, I will try it according to the link and let you know the test result here
Hi,
Thank you for the patch, I can use the patch to successfully drive LVDS
At the same time, will the following patches be merged into the new sdk branch as well?
Because our DPI interface of the board is 16-bit, I have to modify tidss_dispc.c to force it to 16bit, but when using LVDS, I need to switch back to 24bit
Yes, it will be merged once the patches are accepted by the upstream community and the review process in under progress.
Regards,
Krunal
Thanks for your reply.
Can you provide some internal patch files? We want to test ahead of time as we are not sure when TI's new SDK will be released
Did you review the thread that I shared above? It has the link to the experimental patches that we are using internally and I don't have any other patches.
Regards,
Krunal
Sorry, we don't have any internal 16bit displays so I don't have a patch for you.
Regards,
Krunal