Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/AM5718: multiple LCD out failed

$
0
0

Part Number:AM5718

Tool/software: Linux

Hi,

I tested the dual LCD output on the am5718 platform. I have tested DPI-0 and DPI-1. It is normal to use DPI-0 or DPI-1 alone, but only DPI-1 works when both are used at the same time.

Weston will report a timeout when it starts

[ 702.540911] omapdrm omapdrm.0: atomic complete timeout (pipe 0)!

Weston stops causing the Linux kernel to crash

Stopping Weston
root@ok5718-idk:~# [ 36.970955] omapdrm omapdrm.0: atomic complete timeout (pipe 0)!
[ 36.977016] ------------[ cut here ]------------
[ 36.981663] WARNING: CPU: 0 PID: 1119 at drivers/gpu/drm/omapdrm/dss/dispc.c:639 dispc_mgr_go+0xd8/0xdc
[ 36.991095] Modules linked in: bc_example(O) rfcomm wlan btusb btrtl btbcm btintel xhci_plat_hcd xhci_hcd pru_rproc pruss_intc usbcore rpmsg_proto sha512_generic pruss sha512_arm dwc3 udc_core sha256_generic usb_common sha1_generic sha1_arm_neon sha1_arm rpmsg_rpc md5 cbc xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo snd_soc_simple_card snd_soc_simple_card_utils pwm_fan bluetooth pvrsrvkm(O) ahci_platform libahci_platform pruss_soc_bus c_can_platform c_can can_dev omap_sham libahci omap_aes_driver libata omap_wdt scsi_mod ti_vip w1_therm ti_vpe ti_sc ti_csc ti_vpdma dwc3_omap extcon_core ti_cal gpio_pisosr spidev gt911 rtc_rx8010 ov5640_mipi omap_des ov5640 snd_soc_wm8960 omap_hdq des_generic wire crypto_engine omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel uio_module_drv(O) uio gdbserverproxy(O) cryptodev(O) cmemk(O)
[ 37.068262] CPU: 0 PID: 1119 Comm: weston Tainted: G O 4.9.41-gf22397a-dirty #8
[ 37.076736] Hardware name: Generic DRA72X (Flattened Device Tree)
[ 37.082852] Backtrace:
[ 37.085325] [<c020b29c>] (dump_backtrace) from [<c020b558>] (show_stack+0x18/0x1c)
[ 37.092929] r7:00000009 r6:600e0093 r5:00000000 r4:c10229d0
[ 37.098617] [<c020b540>] (show_stack) from [<c04acda0>] (dump_stack+0x8c/0xa0)
[ 37.105874] [<c04acd14>] (dump_stack) from [<c022e3e8>] (__warn+0xec/0x104)
[ 37.112866] r7:00000009 r6:c0be6578 r5:00000000 r4:00000000
[ 37.118551] [<c022e2fc>] (__warn) from [<c022e4b8>] (warn_slowpath_null+0x28/0x30)
[ 37.126154] r9:00000000 r8:df7333c0 r7:c108e9a4 r6:00000024 r5:00000000 r4:c0a4ab5c
[ 37.133933] [<c022e490>] (warn_slowpath_null) from [<c05d42b8>] (dispc_mgr_go+0xd8/0xdc)
[ 37.142061] [<c05d41e0>] (dispc_mgr_go) from [<c05ecb44>] (omap_crtc_atomic_flush+0x35c/0x39c)
[ 37.150709] r7:ee11e000 r6:eebdb300 r5:eebdb300 r4:ee41c800
[ 37.156395] [<c05ec7e8>] (omap_crtc_atomic_flush) from [<c05a3e38>] (drm_atomic_helper_commit_planes+0x1c8/0x2b0)
[ 37.166701] r9:00000000 r8:df7333c0 r7:c05ec7e8 r6:00000000 r5:00000000 r4:00000000
[ 37.174482] [<c05a3c70>] (drm_atomic_helper_commit_planes) from [<c05eafdc>] (omap_atomic_complete+0x60/0xcc)
[ 37.184440] r10:00000000 r9:eebdb3f8 r8:eebdb3f8 r7:df7334c0 r6:eebdb300 r5:ee405c00
[ 37.192301] r4:df7333c0
[ 37.194849] [<c05eaf7c>] (omap_atomic_complete) from [<c05eb180>] (omap_atomic_commit+0x138/0x1d8)
[ 37.203845] r9:eebdb3f8 r8:df7334c0 r7:ee41c800 r6:00000000 r5:df7333c0 r4:eebdb300
[ 37.211626] [<c05eb048>] (omap_atomic_commit) from [<c05c6364>] (drm_atomic_commit+0x54/0x60)
[ 37.220187] r10:ec130000 r9:df733080 r8:df733080 r7:ee41c800 r6:ee405c00 r5:df7333c0
[ 37.228048] r4:00000000
[ 37.230594] [<c05c6310>] (drm_atomic_commit) from [<c05a7cfc>] (drm_atomic_helper_set_config+0x80/0xa4)
[ 37.240027] r7:ee41c800 r6:ec131dd4 r5:00000000 r4:df7333c0
[ 37.245714] [<c05a7c7c>] (drm_atomic_helper_set_config) from [<c05b95d4>] (drm_mode_set_config_internal+0x60/0xe4)
[ 37.256106] r7:ec0f5f00 r6:00000001 r5:ee41c800 r4:eebdb800
[ 37.261791] [<c05b9574>] (drm_mode_set_config_internal) from [<c05baa00>] (drm_mode_setcrtc+0x474/0x51c)
[ 37.271311] r7:ec0f5f00 r6:00000001 r5:ee405c00 r4:ec131e50
[ 37.276998] [<c05ba58c>] (drm_mode_setcrtc) from [<c05b1c14>] (drm_ioctl+0x1ec/0x3e8)
[ 37.284862] r10:c06864a2 r9:ec131e50 r8:ec04d500 r7:00000068 r6:c0a405a0 r5:00000068
[ 37.292721] r4:00000000
[ 37.295270] [<c05b1a28>] (drm_ioctl) from [<c034155c>] (do_vfs_ioctl+0xa8/0x7fc)
[ 37.302699] r10:00000000 r9:ec130000 r8:bed25768 r7:0000000c r6:ee0be480 r5:ee615e88
[ 37.310560] r4:bed25768
[ 37.313105] [<c03414b4>] (do_vfs_ioctl) from [<c0341cec>] (SyS_ioctl+0x3c/0x64)
[ 37.320446] r10:00000000 r9:ec130000 r8:bed25768 r7:c06864a2 r6:ee0be480 r5:0000000c
[ 37.328306] r4:ee0be480
[ 37.330853] [<c0341cb0>] (SyS_ioctl) from [<c0207be0>] (ret_fast_syscall+0x0/0x34)
[ 37.338456] r9:ec130000 r8:c0207d84 r7:00000036 r6:c06864a2 r5:bed25768 r4:bed25768
[ 37.346229] ---[ end trace fd9f864dec646feb ]---
[ 37.350864] ------------[ cut here ]------------
[ 37.355501] WARNING: CPU: 0 PID: 1119 at drivers/gpu/drm/omapdrm/omap_crtc.c:460 omap_crtc_arm_event+0x50/0x54
[ 37.365541] Modules linked in: bc_example(O) rfcomm wlan btusb btrtl btbcm btintel xhci_plat_hcd xhci_hcd pru_rproc pruss_intc usbcore rpmsg_proto sha512_generic pruss sha512_arm dwc3 udc_core sha256_generic usb_common sha1_generic sha1_arm_neon sha1_arm rpmsg_rpc md5 cbc xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo snd_soc_simple_card snd_soc_simple_card_utils pwm_fan bluetooth pvrsrvkm(O) ahci_platform libahci_platform pruss_soc_bus c_can_platform c_can can_dev omap_sham libahci omap_aes_driver libata omap_wdt scsi_mod ti_vip w1_therm ti_vpe ti_sc ti_csc ti_vpdma dwc3_omap extcon_core ti_cal gpio_pisosr spidev gt911 rtc_rx8010 ov5640_mipi omap_des ov5640 snd_soc_wm8960 omap_hdq des_generic wire crypto_engine omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel uio_module_drv(O) uio gdbserverproxy(O) cryptodev(O) cmemk(O)
[ 37.442679] CPU: 0 PID: 1119 Comm: weston Tainted: G W O 4.9.41-gf22397a-dirty #8
[ 37.451150] Hardware name: Generic DRA72X (Flattened Device Tree)
[ 37.457267] Backtrace:
[ 37.459734] [<c020b29c>] (dump_backtrace) from [<c020b558>] (show_stack+0x18/0x1c)
[ 37.467336] r7:00000009 r6:600e0093 r5:00000000 r4:c10229d0
[ 37.473020] [<c020b540>] (show_stack) from [<c04acda0>] (dump_stack+0x8c/0xa0)
[ 37.480275] [<c04acd14>] (dump_stack) from [<c022e3e8>] (__warn+0xec/0x104)
[ 37.487266] r7:00000009 r6:c0be9b14 r5:00000000 r4:00000000
[ 37.492950] [<c022e2fc>] (__warn) from [<c022e4b8>] (warn_slowpath_null+0x28/0x30)
[ 37.500552] r9:00000000 r8:df7333c0 r7:ee11e000 r6:eebdb300 r5:eebdb300 r4:ee41c800
[ 37.508330] [<c022e490>] (warn_slowpath_null) from [<c05ec57c>] (omap_crtc_arm_event+0x50/0x54)
[ 37.517068] [<c05ec52c>] (omap_crtc_arm_event) from [<c05ecb4c>] (omap_crtc_atomic_flush+0x364/0x39c)
[ 37.526325] r5:eebdb300 r4:ee41c800
[ 37.529917] [<c05ec7e8>] (omap_crtc_atomic_flush) from [<c05a3e38>] (drm_atomic_helper_commit_planes+0x1c8/0x2b0)
[ 37.540224] r9:00000000 r8:df7333c0 r7:c05ec7e8 r6:00000000 r5:00000000 r4:00000000
[ 37.548002] [<c05a3c70>] (drm_atomic_helper_commit_planes) from [<c05eafdc>] (omap_atomic_complete+0x60/0xcc)
[ 37.557959] r10:00000000 r9:eebdb3f8 r8:eebdb3f8 r7:df7334c0 r6:eebdb300 r5:ee405c00
[ 37.565819] r4:df7333c0
[ 37.568367] [<c05eaf7c>] (omap_atomic_complete) from [<c05eb180>] (omap_atomic_commit+0x138/0x1d8)
[ 37.577365] r9:eebdb3f8 r8:df7334c0 r7:ee41c800 r6:00000000 r5:df7333c0 r4:eebdb300
[ 37.585144] [<c05eb048>] (omap_atomic_commit) from [<c05c6364>] (drm_atomic_commit+0x54/0x60)
[ 37.593705] r10:ec130000 r9:df733080 r8:df733080 r7:ee41c800 r6:ee405c00 r5:df7333c0
[ 37.601565] r4:00000000
[ 37.604111] [<c05c6310>] (drm_atomic_commit) from [<c05a7cfc>] (drm_atomic_helper_set_config+0x80/0xa4)
[ 37.613543] r7:ee41c800 r6:ec131dd4 r5:00000000 r4:df7333c0
[ 37.619228] [<c05a7c7c>] (drm_atomic_helper_set_config) from [<c05b95d4>] (drm_mode_set_config_internal+0x60/0xe4)
[ 37.629620] r7:ec0f5f00 r6:00000001 r5:ee41c800 r4:eebdb800
[ 37.635305] [<c05b9574>] (drm_mode_set_config_internal) from [<c05baa00>] (drm_mode_setcrtc+0x474/0x51c)
[ 37.644824] r7:ec0f5f00 r6:00000001 r5:ee405c00 r4:ec131e50
[ 37.650510] [<c05ba58c>] (drm_mode_setcrtc) from [<c05b1c14>] (drm_ioctl+0x1ec/0x3e8)
[ 37.658374] r10:c06864a2 r9:ec131e50 r8:ec04d500 r7:00000068 r6:c0a405a0 r5:00000068
[ 37.666235] r4:00000000
[ 37.668782] [<c05b1a28>] (drm_ioctl) from [<c034155c>] (do_vfs_ioctl+0xa8/0x7fc)
[ 37.676209] r10:00000000 r9:ec130000 r8:bed25768 r7:0000000c r6:ee0be480 r5:ee615e88
[ 37.684069] r4:bed25768
[ 37.686614] [<c03414b4>] (do_vfs_ioctl) from [<c0341cec>] (SyS_ioctl+0x3c/0x64)
[ 37.693955] r10:00000000 r9:ec130000 r8:bed25768 r7:c06864a2 r6:ee0be480 r5:0000000c
[ 37.701815] r4:ee0be480
[ 37.704361] [<c0341cb0>] (SyS_ioctl) from [<c0207be0>] (ret_fast_syscall+0x0/0x34)
[ 37.711963] r9:ec130000 r8:c0207d84 r7:00000036 r6:c06864a2 r5:bed25768 r4:bed25768
[ 37.719737] ---[ end trace fd9f864dec646fec ]---
[ 38.000944] omapdrm omapdrm.0: atomic complete timeout (pipe 0)!
[ 38.450973] omapdrm omapdrm.0: atomic complete timeout (pipe 0)!

 I think my device tree configuration is fine because they can be used alone

 my devicetree

        lcd0: display0 {
                  status = "okay";
                  compatible = "omapdss,panel-dpi";

                  label = "lcd0";

                  //backlight = <&lcd_bl>;
                  //enable-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;

                  panel-timing {
                          clock-frequency = <33000000>;
                          hactive = <800>;
                          vactive = <480>;
                          hfront-porch = <40>;
                          hback-porch = <40>;
                          hsync-len = <48>;
                          vback-porch = <29>;
                          vfront-porch = <13>;
                          vsync-len = <3>;
                          hsync-active = <0>;
                          vsync-active = <0>;
                          de-active = <1>;
                          pixelclk-active = <1>;
                  };

                  port {
                                lcd_in0: endpoint {
                                        remote-endpoint = <&dpi_out0>;
                                };
                  };
        };
        lcd1: display1 {
                  status = "okay";
                  compatible = "omapdss,panel-dpi";

                  label = "lcd1";

                  //backlight = <&lcd_bl>;
                  //enable-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;

                  panel-timing {
                          clock-frequency = <33000000>;
                          hactive = <800>;
                          vactive = <480>;
                          hfront-porch = <40>;
                          hback-porch = <40>;
                          hsync-len = <48>;
                          vback-porch = <29>;
                          vfront-porch = <13>;
                          vsync-len = <3>;
                          hsync-active = <0>;
                          vsync-active = <0>;
                          de-active = <1>;
                          pixelclk-active = <1>;
                  };

                  port {
                                lcd_in1: endpoint {
                                        remote-endpoint = <&dpi_out1>;
                                };
                  };
        };



&dss {
                status = "okay";
                vdda_video-supply = <&ldo5_reg>;
                ports {
                #address-cells = <1>;
                #size-cells = <0>;

                port@0 {
                        reg = <0>;
                        dpi_out0: endpoint {
                                remote-endpoint = <&lcd_in0>;
                                data-lines = <24>;
                        };
                };

                port@1 {
                        reg = <1>;
                        dpi_out1: endpoint {
                                remote-endpoint = <&lcd_in1>;
                                data-lines = <24>;
                        };
                };

        };
};

weston.log

Date: 2017-09-26 UTC
[22:32:27.136] weston 1.11.0
http://wayland.freedesktop.org
Bug reports to: bugs.freedesktop.org/enter_bug.cgi
Build: 1.10.93-2-g2d825ed configure.ac: bump to version 1.11.0 for the official release (2016-05-31 17:10:40 -0700)
[22:32:27.136] OS: Linux, 4.9.41-gf22397a-dirty, #8 SMP PREEMPT Sat Nov 10 17:34:03 CST 2018, armv7l
[22:32:27.137] Using config file '/etc//weston.ini'
[22:32:27.143] Output repaint window is 7 ms maximum.
[22:32:27.145] Loading module '/usr/lib/weston/drm-backend.so'
[22:32:27.158] initializing drm backend
[22:32:27.163] using /dev/dri/card0
[22:32:27.164] Loading module '/usr/lib/weston/gl-renderer.so'
failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
loaded module : gbm_pvr.so
found valid GBM backend : gbm_pvr.so
[22:32:27.199] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
[22:32:27.210] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
[22:32:27.210] Retrieving EGL client extension string failed.
[22:32:27.214] input device 'gpio_keys', /dev/input/event1 is tagged by udev as: Keyboard
[22:32:27.214] input device 'gpio_keys', /dev/input/event1 is a keyboard
[22:32:27.215] input device 'InputEmulator', /dev/input/event0 is tagged by udev as: Keyboard
[22:32:27.215] input device 'InputEmulator', /dev/input/event0 is a keyboard
[22:32:27.281] EGL version: 1.4 build 1.14@3699939 (MAIN)
[22:32:27.281] EGL vendor: Imagination Technologies
[22:32:27.281] EGL client APIs: OpenGL_ES
[22:32:27.281] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
EGL_IMG_context_priority EGL_IMG_hibernate_process
EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
EGL_KHR_wait_sync EGL_KHR_create_context
EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
[22:32:27.281] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
[22:32:27.281] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
[22:32:27.281] GL vendor: Imagination Technologies
[22:32:27.281] GL renderer: PowerVR SGX 544MP
[22:32:27.281] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
GL_OES_vertex_half_float GL_OES_texture_float
GL_OES_texture_half_float GL_OES_element_index_uint
GL_OES_mapbuffer GL_OES_fragment_precision_high
GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
GL_OES_EGL_image_external GL_OES_required_internalformat
GL_OES_depth_texture GL_OES_get_program_binary
GL_OES_packed_depth_stencil GL_OES_standard_derivatives
GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
GL_OES_surfaceless_context GL_EXT_discard_framebuffer
GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
GL_EXT_texture_rg GL_EXT_draw_buffers
GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
GL_IMG_texture_compression_pvrtc
GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
GL_IMG_program_binary GL_IMG_uniform_buffer_object
GL_IMG_multisampled_render_to_texture GL_KHR_debug
[22:32:27.282] GL ES 2 renderer features:
read-back format: RGBA
wl_shm sub-image to texture: no
EGL Wayland extension: yes
[22:32:27.282] Chosen EGL config details:
RGBA bits: 8 8 8 8
swap interval range: 1 - 1
[22:32:27.282] cursor buffers unavailable, using gl cursors
[22:32:27.282] Initialized backlight, device /sys/class/backlight/backlight
[22:32:27.282] Output UNNAMED-1, (connector 31, crtc 34)
mode 800x480@67.7, preferred, current
[22:32:27.304] Chosen EGL config details:
RGBA bits: 8 8 8 8
swap interval range: 1 - 1
[22:32:27.305] cursor buffers unavailable, using gl cursors
[22:32:27.305] Initialized backlight, device /sys/class/backlight/backlight
[22:32:27.305] Output UNNAMED-2, (connector 36, crtc 41)
mode 800x480@67.7, preferred, current
[22:32:27.305] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC, id 1
[22:32:27.307] Loading module '/usr/lib/weston/desktop-shell.so'
[22:32:27.309] launching '/usr/libexec/weston-keyboard'
[22:32:27.310] launching '/usr/libexec/weston-desktop-shell'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
[22:32:33.968] caught signal 15

ls /sys/class/drm/

card0        card0-DPI-1  card0-DPI-2  card1        controlD64   renderD128   renderD129   version


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>