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.

How to run SGX Graphics Demos ?

I would like to run graphics demos on the J7 EVM and HDMI and/or DP displays, as per PSDKLA 6.01 User's Guide, Section 3.6.3. Graphics Demos, using prebuilt binaries, and without running the full cockpit demo with hypervisor/VMs.

1. Overlay files: J7 EVM with Infotainment daughtercard with: overlay_files=k3-j721e-common-proc-board-infotainment.dtbo k3-j721e-auto-common.dtbo

2. "modetest -M tidss" detects HDMI connected (see log below). Occasionally the connector status shows up as "Disconnected", not sure if this is relevant.

a.'modetest -M tidss -s 43:1920x1080-60',  gives error "failed to set mode: Permission denied" (may not be relevant here)

b. A second connector ID (DP-1 below), causes the following error messages continuously printed to the console (may not be relevant here). cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110 [   31.783934] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state

3. Launching Weston" as per PSDKLA 6.01 User's Guide, Section 3.6.5. Wayland/Weston,

a. with --tty-1 --connector=43, results in "Broken Pipe" error at the end (full log below).

b. Without --connector argument, hangs after the "could not load cursor" messages (also see log below). I do not have keyboard or mouse connected.

4. I'm assuming I need Step3 to complete before running some of the demos from /usr/bin/SGX/demos/Wayland/. 

Please let me know how to get through steps 3 & 4 above.

Thanks in advance,

Jelena

modetest output:

Connectors:
id      encoder status          name            size (mm)       modes   encoders
35      0       disconnected    DP-1            0x0             0       34
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        6 non-desktop:
                flags: immutable range
                values: 0 1
                value: 0
        19 CRTC_ID:
                flags: object
                value: 0
43      42      connected       HDMI-A-1        500x300         28      42
  modes:
        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver
  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1680x1050 60 1680 1728 1760 1840 1050 1053 1059 1080 119000 flags: phsync, nvsync; type: driver
  1600x900 60 1600 1624 1704 1800 900 901 904 1000 108000 flags: phsync, pvsync; type: driver
  1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver
  1440x900 60 1440 1488 1520 1600 900 903 909 926 88750 flags: phsync, nvsync; type: driver
  1280x800 60 1280 1328 1360 1440 800 803 809 823 71000 flags: phsync, nvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver
  1280x720 50 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1280x720 50 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1024x768 60 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver
  800x600 60 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
  720x576 50 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
  720x576 50 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  720x400 70 720 738 846 900 400 412 414 449 28320 flags: nhsync, pvsync; type: driver
  props:
        1 EDID:
                flags: immutable blob
                blobs:

                value:
                        00ffffffffffff0022f01b3301000000
                        2b1b010380321e782a1520a756529c27
                        0f5054a10800d1c0b300a9c095008180
                        810081c00101023a801871382d40582c
                        4500dc0c1100001e000000fd00323c1e
                        5011000a202020202020000000fc0048
                        5020323265720a2020202020000000ff
                        0033434d3734333046594d202020014b
                        020319b149901f041303120102116703
                        0c0010000022e2002b023a801871382d
                        40582c4500dc0c1100001e023a80d072
                        382d40102c4580dc0c1100001e011d00
                        7251d01e206e285500dc0c1100001e01
                        1d00bc52d01e20b8285540dc0c110000
                        1e8c0ad08a20e02d10103e9600dc0c11
                        000018000000000000000000000000e6
        2 DPMS:
                flags: enum
                enums: On=0 Standby=1 Suspend=2 Off=3
                value: 0
        5 link-status:
                flags: enum
                enums: Good=0 Bad=1
                value: 0
        6 non-desktop:
                flags: immutable range
                values: 0 1
                value: 0
        19 CRTC_ID:
                flags: object
                value: 41

root@j7-evm:~# weston --tty=1 --connector=43

Date: 2019-10-24 UTC
[03:27:49.782] weston 5.0.0
               wayland.freedesktop.org
               Bug reports to: gitlab.freedesktop.org/.../
               Build: unknown (not built from git or tarball)
[03:27:49.782] Command line: weston --tty=1 --connector=43
[03:27:49.782] OS: Linux, 4.19.73-g0cabba2b47, #1 SMP PREEMPT Thu Oct 24 03:54:33 UTC 2019, aarch64
[03:27:49.783] Using config file '/etc//weston.ini'
[03:27:49.783] Output repaint window is 7 ms maximum.
[03:27:49.783] Loading module '/usr/lib/libweston-5/drm-backend.so'
[03:27:49.784] initializing drm backend
[03:27:49.786] using /dev/dri/card0
[03:27:49.786] DRM: supports universal planes
[03:27:49.786] DRM: supports atomic modesetting
[03:27:49.786] DRM: supports picture aspect ratio
[03:27:49.786] Loading module '/usr/lib/libweston-5/gl-renderer.so'
[03:27:49.796] EGL client extensions: EGL_EXT_client_extensions
               EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
               EGL_KHR_debug EGL_EXT_platform_wayland EGL_MESA_platform_gbm
[03:27:49.797] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
[03:27:49.797] EGL_KHR_surfaceless_context available
[03:27:49.801] EGL version: 1.4 (DRI2)
[03:27:49.801] EGL vendor: Mesa Project
[03:27:49.801] EGL client APIs: OpenGL_ES
[03:27:49.801] EGL extensions: EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
               EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
               EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority
               EGL_KHR_config_attribs EGL_KHR_create_context
               EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
               EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
               EGL_KHR_gl_texture_cubemap_image EGL_KHR_image
               EGL_KHR_image_base EGL_KHR_image_pixmap
               EGL_KHR_no_config_context EGL_KHR_reusable_sync
               EGL_KHR_surfaceless_context EGL_KHR_wait_sync
               EGL_MESA_configless_context EGL_MESA_drm_image
               EGL_MESA_image_dma_buf_export EGL_WL_bind_wayland_display
               EGL_IMG_cl_image
[03:27:49.801] GL version: OpenGL ES 3.2 build 1.10@5371573
[03:27:49.801] GLSL version: OpenGL ES GLSL ES 3.20 build 1.10@5371573
[03:27:49.801] GL vendor: Imagination Technologies
[03:27:49.801] GL renderer: PowerVR Rogue GE8430
[03:27:49.801] GL extensions: GL_ANDROID_extension_pack_es31a
               GL_EXT_blend_minmax GL_EXT_buffer_storage GL_EXT_clip_control
               GL_EXT_color_buffer_float GL_EXT_conservative_depth
               GL_EXT_copy_image GL_EXT_discard_framebuffer
               GL_EXT_draw_buffers GL_EXT_draw_buffers_indexed
               GL_EXT_draw_elements_base_vertex GL_EXT_EGL_image_array
               GL_EXT_float_blend GL_EXT_geometry_point_size
               GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_memory_object
               GL_EXT_memory_object_fd GL_EXT_multi_draw_arrays
               GL_EXT_multisampled_render_to_texture
               GL_EXT_multisampled_render_to_texture2
               GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp
               GL_EXT_primitive_bounding_box GL_EXT_pvrtc_sRGB
               GL_EXT_read_format_bgra GL_EXT_robustness
               GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch
               GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions
               GL_EXT_shader_io_blocks
               GL_EXT_shader_non_constant_global_initializers
               GL_EXT_shader_pixel_local_storage
               GL_EXT_shader_pixel_local_storage2 GL_EXT_shader_texture_lod
               GL_EXT_shadow_samplers GL_EXT_sparse_texture
               GL_EXT_sRGB_write_control GL_EXT_tessellation_point_size
               GL_EXT_tessellation_shader GL_EXT_texture_border_clamp
               GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg
               GL_EXT_texture_sRGB_decode GL_EXT_texture_sRGB_R8
               GL_EXT_texture_sRGB_RG8 GL_EXT_YUV_target
               GL_IMG_bindless_texture GL_IMG_framebuffer_downsample
               GL_IMG_multisampled_render_to_texture GL_IMG_program_binary
               GL_IMG_read_format GL_IMG_shader_binary
               GL_IMG_texture_compression_pvrtc
               GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_filter_cubic
               GL_IMG_texture_format_BGRA8888 GL_IMG_texture_npot
               GL_KHR_blend_equation_advanced
               GL_KHR_blend_equation_advanced_coherent GL_KHR_debug
               GL_KHR_robustness GL_KHR_texture_compression_astc_ldr
               GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
               GL_OES_depth_texture GL_OES_draw_buffers_indexed
               GL_OES_draw_elements_base_vertex GL_OES_EGL_image
               GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3
               GL_OES_EGL_sync GL_OES_element_index_uint
               GL_OES_fragment_precision_high GL_OES_geometry_point_size
               GL_OES_geometry_shader GL_OES_get_program_binary
               GL_OES_gpu_shader5 GL_OES_mapbuffer GL_OES_packed_depth_stencil
               GL_OES_required_internalformat GL_OES_rgb8_rgba8
               GL_OES_sample_shading GL_OES_sample_variables
               GL_OES_shader_image_atomic GL_OES_shader_io_blocks
               GL_OES_shader_multisample_interpolation
               GL_OES_standard_derivatives GL_OES_surfaceless_context
               GL_OES_tessellation_point_size GL_OES_tessellation_shader
               GL_OES_texture_border_clamp GL_OES_texture_buffer
               GL_OES_texture_cube_map_array GL_OES_texture_float
               GL_OES_texture_half_float GL_OES_texture_npot
               GL_OES_texture_stencil8
               GL_OES_texture_storage_multisample_2d_array
               GL_OES_vertex_array_object GL_OES_vertex_half_float
[03:27:49.802] GL ES 2 renderer features:
               read-back format: BGRA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: yes
[  426.334012] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
[  426.344003] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
[03:27:50.722] event0  - gpio-keys: not tagged as supported input device
[03:27:50.751] event0  - not using input device '/dev/input/event0'
[03:27:50.751] warning: no input devices found, but none required as per configuration.
[  431.381880] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
[  431.391870] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
[03:27:55.768] DRM: head 'DP-1' found, connector 35 is disconnected.
[03:27:55.793] DRM: head 'HDMI-A-1' found, connector 43 is connected, EDID make 'HWP', model 'HP 22er', serial '3CM7430FYM  '
[03:27:55.793] Registered plugin API 'weston_drm_output_api_v1' of size 24
[03:27:55.793] Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 1 - 1
[03:27:55.793] No backlight control for output 'HDMI-A-1'
[03:27:55.793] Output HDMI-A-1 (crtc 41) video modes:
               1920x1080@60.0, preferred, current, 148.5 MHz
               1920x1080@60.0 16:9, 148.5 MHz
               1920x1080@59.9 16:9, 148.4 MHz
               1920x1080@50.0, 148.5 MHz
               1920x1080@50.0 16:9, 148.5 MHz
               1680x1050@59.9, 119.0 MHz
               1600x900@60.0, 108.0 MHz
               1280x1024@60.0, 108.0 MHz
               1440x900@59.9, 88.8 MHz
               1280x800@59.9, 71.0 MHz
               1280x720@60.0, 74.2 MHz
               1280x720@60.0 16:9, 74.2 MHz
               1280x720@59.9 16:9, 74.2 MHz
               1280x720@50.0, 74.2 MHz
               1280x720@50.0 16:9, 74.2 MHz
               1024x768@60.0, 65.0 MHz
               800x600@60.3, 40.0 MHz
               720x576@50.0 16:9, 27.0 MHz
               720x576@50.0 4:3, 27.0 MHz
               720x480@60.0 4:3, 27.0 MHz
               720x480@60.0 16:9, 27.0 MHz
               720x480@59.9, 27.0 MHz
               720x480@59.9 16:9, 27.0 MHz
               720x480@59.9 4:3, 27.0 MHz
               640x480@60.0 4:3, 25.2 MHz
               640x480@59.9, 25.2 MHz
               640x480@59.9 4:3, 25.2 MHz
               720x400@70.1, 28.3 MHz
[03:27:55.793] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[03:27:55.793] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               presentation clock: CLOCK_MONOTONIC, id 1
               presentation clock resolution: 0.000000001 s
[03:27:55.793] Loading module '/usr/lib/weston/desktop-shell.so'
[03:27:55.794] launching '/usr/libexec/weston-keyboard'
[03:27:55.795] fatal: unhandled option: --connector=43
Failed to process Wayland connection: Broken pipe
failed to create display: Broken pipe
-----------------------------------

root@j7-evm:~# weston --tty1[
Date: 2019-10-24 UTC
[03:29:19.517] weston 5.0.0
               wayland.freedesktop.org
               Bug reports to: gitlab.freedesktop.org/.../
               Build: unknown (not built from git or tarball)
[03:29:19.518] Command line: weston --tty=1
[03:29:19.518] OS: Linux, 4.19.73-g0cabba2b47, #1 SMP PREEMPT Thu Oct 24 03:54:33 UTC 2019, aarch64
[03:29:19.518] Using config file '/etc//weston.ini'
[03:29:19.518] Output repaint window is 7 ms maximum.
[03:29:19.518] Loading module '/usr/lib/libweston-5/drm-backend.so'
[03:29:19.519] initializing drm backend
[03:29:19.521] using /dev/dri/card0
[03:29:19.521] DRM: supports universal planes
[03:29:19.521] DRM: supports atomic modesetting
[03:29:19.521] DRM: supports picture aspect ratio
[03:29:19.521] Loading module '/usr/lib/libweston-5/gl-renderer.so'
[03:29:19.531] EGL client extensions: EGL_EXT_client_extensions
               EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
               EGL_KHR_debug EGL_EXT_platform_wayland EGL_MESA_platform_gbm
[03:29:19.532] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
[03:29:19.532] EGL_KHR_surfaceless_context available
[03:29:19.536] EGL version: 1.4 (DRI2)
[03:29:19.536] EGL vendor: Mesa Project
[03:29:19.536] EGL client APIs: OpenGL_ES
[03:29:19.536] EGL extensions: EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
               EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
               EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority
               EGL_KHR_config_attribs EGL_KHR_create_context
               EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
               EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
               EGL_KHR_gl_texture_cubemap_image EGL_KHR_image
               EGL_KHR_image_base EGL_KHR_image_pixmap
               EGL_KHR_no_config_context EGL_KHR_reusable_sync
               EGL_KHR_surfaceless_context EGL_KHR_wait_sync
               EGL_MESA_configless_context EGL_MESA_drm_image
               EGL_MESA_image_dma_buf_export EGL_WL_bind_wayland_display
               EGL_IMG_cl_image
[03:29:19.536] GL version: OpenGL ES 3.2 build 1.10@5371573
[03:29:19.536] GLSL version: OpenGL ES GLSL ES 3.20 build 1.10@5371573
[03:29:19.537] GL vendor: Imagination Technologies
[03:29:19.537] GL renderer: PowerVR Rogue GE8430
[03:29:19.537] GL extensions: GL_ANDROID_extension_pack_es31a
               GL_EXT_blend_minmax GL_EXT_buffer_storage GL_EXT_clip_control
               GL_EXT_color_buffer_float GL_EXT_conservative_depth
               GL_EXT_copy_image GL_EXT_discard_framebuffer
               GL_EXT_draw_buffers GL_EXT_draw_buffers_indexed
               GL_EXT_draw_elements_base_vertex GL_EXT_EGL_image_array
               GL_EXT_float_blend GL_EXT_geometry_point_size
               GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_memory_object
               GL_EXT_memory_object_fd GL_EXT_multi_draw_arrays
               GL_EXT_multisampled_render_to_texture
               GL_EXT_multisampled_render_to_texture2
               GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp
               GL_EXT_primitive_bounding_box GL_EXT_pvrtc_sRGB
               GL_EXT_read_format_bgra GL_EXT_robustness
               GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch
               GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions
               GL_EXT_shader_io_blocks
               GL_EXT_shader_non_constant_global_initializers
               GL_EXT_shader_pixel_local_storage
               GL_EXT_shader_pixel_local_storage2 GL_EXT_shader_texture_lod
               GL_EXT_shadow_samplers GL_EXT_sparse_texture
               GL_EXT_sRGB_write_control GL_EXT_tessellation_point_size
               GL_EXT_tessellation_shader GL_EXT_texture_border_clamp
               GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg
               GL_EXT_texture_sRGB_decode GL_EXT_texture_sRGB_R8
               GL_EXT_texture_sRGB_RG8 GL_EXT_YUV_target
               GL_IMG_bindless_texture GL_IMG_framebuffer_downsample
               GL_IMG_multisampled_render_to_texture GL_IMG_program_binary
               GL_IMG_read_format GL_IMG_shader_binary
               GL_IMG_texture_compression_pvrtc
               GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_filter_cubic
               GL_IMG_texture_format_BGRA8888 GL_IMG_texture_npot
               GL_KHR_blend_equation_advanced
               GL_KHR_blend_equation_advanced_coherent GL_KHR_debug
               GL_KHR_robustness GL_KHR_texture_compression_astc_ldr
               GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
               GL_OES_depth_texture GL_OES_draw_buffers_indexed
               GL_OES_draw_elements_base_vertex GL_OES_EGL_image
               GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3
               GL_OES_EGL_sync GL_OES_element_index_uint
               GL_OES_fragment_precision_high GL_OES_geometry_point_size
               GL_OES_geometry_shader GL_OES_get_program_binary
               GL_OES_gpu_shader5 GL_OES_mapbuffer GL_OES_packed_depth_stencil
               GL_OES_required_internalformat GL_OES_rgb8_rgba8
               GL_OES_sample_shading GL_OES_sample_variables
               GL_OES_shader_image_atomic GL_OES_shader_io_blocks
               GL_OES_shader_multisample_interpolation
               GL_OES_standard_derivatives GL_OES_surfaceless_context
               GL_OES_tessellation_point_size GL_OES_tessellation_shader
               GL_OES_texture_border_clamp GL_OES_texture_buffer
               GL_OES_texture_cube_map_array GL_OES_texture_float
               GL_OES_texture_half_float GL_OES_texture_npot
               GL_OES_texture_stencil8
               GL_OES_texture_storage_multisample_2d_array
               GL_OES_vertex_array_object GL_OES_vertex_half_float
[03:29:19.537] GL ES 2 renderer features:
               read-back format: BGRA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: yes
[03:29:19.538] event0  - gpio-keys: not tagged as supported input device
[03:29:19.571] event0  - not using input device '/dev/input/event0'
[03:29:19.571] warning: no input devices found, but none required as per configuration.
[  520.201776] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
[  520.211766] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
[  525.219666] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
[  525.229654] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
[03:29:29.607] DRM: head 'DP-1' found, connector 35 is disconnected.
[03:29:29.631] DRM: head 'HDMI-A-1' found, connector 43 is connected, EDID make 'HWP', model 'HP 22er', serial '3CM7430FYM  '
[03:29:29.632] Registered plugin API 'weston_drm_output_api_v1' of size 24
[03:29:29.632] Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 1 - 1
[03:29:29.632] No backlight control for output 'HDMI-A-1'
[03:29:29.632] Output HDMI-A-1 (crtc 41) video modes:
               1920x1080@60.0, preferred, current, 148.5 MHz
               1920x1080@60.0 16:9, 148.5 MHz
               1920x1080@59.9 16:9, 148.4 MHz
               1920x1080@50.0, 148.5 MHz
               1920x1080@50.0 16:9, 148.5 MHz
               1680x1050@59.9, 119.0 MHz
               1600x900@60.0, 108.0 MHz
               1280x1024@60.0, 108.0 MHz
               1440x900@59.9, 88.8 MHz
               1280x800@59.9, 71.0 MHz
               1280x720@60.0, 74.2 MHz
               1280x720@60.0 16:9, 74.2 MHz
               1280x720@59.9 16:9, 74.2 MHz
               1280x720@50.0, 74.2 MHz
               1280x720@50.0 16:9, 74.2 MHz
               1024x768@60.0, 65.0 MHz
               800x600@60.3, 40.0 MHz
               720x576@50.0 16:9, 27.0 MHz
               720x576@50.0 4:3, 27.0 MHz
               720x480@60.0 4:3, 27.0 MHz
               720x480@60.0 16:9, 27.0 MHz
               720x480@59.9, 27.0 MHz
               720x480@59.9 16:9, 27.0 MHz
               720x480@59.9 4:3, 27.0 MHz
               640x480@60.0 4:3, 25.2 MHz
               640x480@59.9, 25.2 MHz
               640x480@59.9 4:3, 25.2 MHz
               720x400@70.1, 28.3 MHz
[03:29:29.632] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
[03:29:29.632] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               presentation clock: CLOCK_MONOTONIC, id 1
               presentation clock resolution: 0.000000001 s
[03:29:29.632] Loading module '/usr/lib/weston/desktop-shell.so'
[03:29:29.633] launching '/usr/libexec/weston-keyboard'
[03:29:29.634] 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'

  • Hi Jelena,

    > b. Without --connector argument, hangs after the "could not load cursor" messages (also see log below). I do not have keyboard or mouse connected.

    The output from above command looks along the expected lines. You mentioned that the system hang, are there any logs at this point other than you posted.

    Was this tried after trying on the unsuccessful attempt from a.

    > a. with --tty-1 --connector=43, results in "Broken Pipe" error at the end (full log below).

    `--connector` is no longer a valid argument for the weston command. The documentation needs to be updated here. Thanks for pointing this out.

    > 4. I'm assuming I need Step3 to complete before running some of the demos from /usr/bin/SGX/demos/Wayland/. 

    Yes that is correct. I am assuming that the initial failure attempt was causing hang. Could you try directly 3b and see if that resolves the issue.

    Thanks,

    Gowtham

  • Thanks Gowtham,

    I tried directly 3b as follows and still nothing on HDMI display:

    1. (login as root)

    2. 'unset WAYLAND_DISPLAY'

    3. 'weston --tty=1'

    Log is the same as shown above, except there is an error with a lockfile (hilited below). There is a system hang after "cursor" messages, but as I mentioned before, the messages about HPD state continue (see log below).

    Is the above sequence of commands correct? Are the HPD state error messages indicative of a related problem or not? How to kill them?

    [03:21:29.618] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [03:21:29.618] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [03:21:29.618] libwayland: unable to lock lockfile /tmp/0-runtime-dir/wayland-0.lock, maybe another compositor is running
    [03:21:29.619] Loading module '/usr/lib/weston/desktop-shell.so'
    [03:21:29.619] launching '/usr/libexec/weston-keyboard'
    [03:21:29.621] launching '/usr/libexec/weston-desktop-shell'
    [   50.232193] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   50.242184] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    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'
    [   58.942611] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   58.952599] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [   66.878365] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   66.888360] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [   74.846542] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   74.856533] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [   80.221948] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   80.231937] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [   90.686399] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   90.696387] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [   96.062200] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   96.072192] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [  106.526036] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [  106.536034] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [  111.902639] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [  111.912628] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state

  • Jelena,

    > [03:21:29.618] libwayland: unable to lock lockfile /tmp/0-runtime-dir/wayland-0.lock, maybe another compositor is running

    Is this a fresh instance of weston or was there an unsuccessful instance that was run before. If there was an unsuccessful instance before you can try deleting that lock file and retry.

    Regarding the DP error messages. do you have a DP panel connected in your setup.

    Thanks,

    Gowtham 

  • Hi Gowtham,

    1. You are right, Weston did run at startup, doesn't look like it failed. below is printout from /etc/weston.log

    2. Weston_simple_egl seems to run (without restarting weston), but nothing shows up on HDMI, and the DP-related errors keep coming (also see below).

    3. There is no DP display connected when I'm getting DP related error messages. If I do connect DELL P2210, kernel boot hangs and the following message is displayed on the monitor:

    "The current  input timing is not supported by the monitor display. Please change your input tming to 1680x1050@60Hz or any other monitor listed timing".

    Is there a problem with the DTBs that I'm using (mentioned on top of this thread)?? I'm not sure what's in them, I'm using one of the prebuilt ones, but it seems it's looking for both DP and HDMI. Is there one that only enables HDMI and not DP? Or that enables DP in a way that's compatible with Dell P2210?

    Regards,

    Jelena

    if j7-evm login: root
    root@j7-evm:~# weston-simple-egl
    [   67.422351] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   67.432343] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    has EGL_EXT_buffer_age and EGL_EXT_swap_buffers_with_damage
    [   75.390559] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   75.400549] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    [   80.765850] cdns-mhdp a000000.dp-bridge: [drm:cdns_mhdp_detect [mhdp8546]] *ERROR* get hpd status failed: -110
    [   80.775842] cdns-mhdp a000000.dp-bridge: Failed to obtain HPD state
    23 frames in 5 seconds: 4.600000 fps
    300 frames in 5 seconds: 60.000000 fps

    Weston log:

    Date: 2019-10-24 UTC
    [03:20:55.782] weston 5.0.0
                   wayland.freedesktop.org
                   Bug reports to: gitlab.freedesktop.org/.../
                   Build: unknown (not built from git or tarball)
    [03:20:55.782] Command line: weston --idle-time=0
    [03:20:55.782] OS: Linux, 4.19.73-g0cabba2b47, #1 SMP PREEMPT Thu Oct 24 03:54:33 UTC 2019, aarch64
    [03:20:55.783] Using config file '/etc//weston.ini'
    [03:20:55.788] Output repaint window is 7 ms maximum.
    [03:20:55.798] Loading module '/usr/lib/libweston-5/drm-backend.so'
    [03:20:55.805] initializing drm backend
    [03:21:01.200] using /dev/dri/card0
    [03:21:01.200] DRM: supports universal planes
    [03:21:01.200] DRM: supports atomic modesetting
    [03:21:01.200] DRM: supports picture aspect ratio
    [03:21:01.248] Loading module '/usr/lib/libweston-5/gl-renderer.so'
    [03:21:01.393] EGL client extensions: EGL_EXT_client_extensions
                   EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
                   EGL_KHR_debug EGL_EXT_platform_wayland EGL_MESA_platform_gbm
    [03:21:01.394] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
    [03:21:01.394] EGL_KHR_surfaceless_context available
    [03:21:01.481] EGL version: 1.4 (DRI2)
    [03:21:01.481] EGL vendor: Mesa Project
    [03:21:01.481] EGL client APIs: OpenGL_ES
    [03:21:01.481] EGL extensions: EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
                   EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
                   EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority
                   EGL_KHR_config_attribs EGL_KHR_create_context
                   EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
                   EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
                   EGL_KHR_gl_texture_cubemap_image EGL_KHR_image
                   EGL_KHR_image_base EGL_KHR_image_pixmap
                   EGL_KHR_no_config_context EGL_KHR_reusable_sync
                   EGL_KHR_surfaceless_context EGL_KHR_wait_sync
                   EGL_MESA_configless_context EGL_MESA_drm_image
                   EGL_MESA_image_dma_buf_export EGL_WL_bind_wayland_display
                   EGL_IMG_cl_image
    [03:21:01.481] GL version: OpenGL ES 3.2 build 1.10@5371573
    [03:21:01.481] GLSL version: OpenGL ES GLSL ES 3.20 build 1.10@5371573
    [03:21:01.481] GL vendor: Imagination Technologies
    [03:21:01.481] GL renderer: PowerVR Rogue GE8430
    [03:21:01.481] GL extensions: GL_ANDROID_extension_pack_es31a
                   GL_EXT_blend_minmax GL_EXT_buffer_storage GL_EXT_clip_control
                   GL_EXT_color_buffer_float GL_EXT_conservative_depth
                   GL_EXT_copy_image GL_EXT_discard_framebuffer
                   GL_EXT_draw_buffers GL_EXT_draw_buffers_indexed
                   GL_EXT_draw_elements_base_vertex GL_EXT_EGL_image_array
                   GL_EXT_float_blend GL_EXT_geometry_point_size
                   GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_memory_object
                   GL_EXT_memory_object_fd GL_EXT_multi_draw_arrays
                   GL_EXT_multisampled_render_to_texture
                   GL_EXT_multisampled_render_to_texture2
                   GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp
                   GL_EXT_primitive_bounding_box GL_EXT_pvrtc_sRGB
                   GL_EXT_read_format_bgra GL_EXT_robustness
                   GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch
                   GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions
                   GL_EXT_shader_io_blocks
                   GL_EXT_shader_non_constant_global_initializers
                   GL_EXT_shader_pixel_local_storage
                   GL_EXT_shader_pixel_local_storage2 GL_EXT_shader_texture_lod
                   GL_EXT_shadow_samplers GL_EXT_sparse_texture
                   GL_EXT_sRGB_write_control GL_EXT_tessellation_point_size
                   GL_EXT_tessellation_shader GL_EXT_texture_border_clamp
                   GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
                   GL_EXT_texture_filter_anisotropic
                   GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg
                   GL_EXT_texture_sRGB_decode GL_EXT_texture_sRGB_R8
                   GL_EXT_texture_sRGB_RG8 GL_EXT_YUV_target
                   GL_IMG_bindless_texture GL_IMG_framebuffer_downsample
                   GL_IMG_multisampled_render_to_texture GL_IMG_program_binary
                   GL_IMG_read_format GL_IMG_shader_binary
                   GL_IMG_texture_compression_pvrtc
                   GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_filter_cubic
                   GL_IMG_texture_format_BGRA8888 GL_IMG_texture_npot
                   GL_KHR_blend_equation_advanced
                   GL_KHR_blend_equation_advanced_coherent GL_KHR_debug
                   GL_KHR_robustness GL_KHR_texture_compression_astc_ldr
                   GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
                   GL_OES_depth_texture GL_OES_draw_buffers_indexed
                   GL_OES_draw_elements_base_vertex GL_OES_EGL_image
                   GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3
                   GL_OES_EGL_sync GL_OES_element_index_uint
                   GL_OES_fragment_precision_high GL_OES_geometry_point_size
                   GL_OES_geometry_shader GL_OES_get_program_binary
                   GL_OES_gpu_shader5 GL_OES_mapbuffer GL_OES_packed_depth_stencil
                   GL_OES_required_internalformat GL_OES_rgb8_rgba8
                   GL_OES_sample_shading GL_OES_sample_variables
                   GL_OES_shader_image_atomic GL_OES_shader_io_blocks
                   GL_OES_shader_multisample_interpolation
                   GL_OES_standard_derivatives GL_OES_surfaceless_context
                   GL_OES_tessellation_point_size GL_OES_tessellation_shader
                   GL_OES_texture_border_clamp GL_OES_texture_buffer
                   GL_OES_texture_cube_map_array GL_OES_texture_float
                   GL_OES_texture_half_float GL_OES_texture_npot
                   GL_OES_texture_stencil8
                   GL_OES_texture_storage_multisample_2d_array
                   GL_OES_vertex_array_object GL_OES_vertex_half_float
    [03:21:01.481] GL ES 2 renderer features:
                   read-back format: BGRA
                   wl_shm sub-image to texture: yes
                   EGL Wayland extension: yes
    [03:21:01.485] event0  - gpio-keys: not tagged as supported input device
    [03:21:01.506] event0  - not using input device '/dev/input/event0'
    [03:21:01.507] warning: no input devices found, but none required as per configuration.
    [03:21:11.542] DRM: head 'DP-1' found, connector 35 is disconnected.
    [03:21:11.567] DRM: head 'HDMI-A-1' found, connector 43 is connected, EDID make 'HWP', model 'HP 22er', serial '3CM7430FYM  '
    [03:21:11.567] Registered plugin API 'weston_drm_output_api_v1' of size 24
    [03:21:11.567] Chosen EGL config details:
                   RGBA bits: 8 8 8 0
                   swap interval range: 1 - 1
    [03:21:11.567] No backlight control for output 'HDMI-A-1'
    [03:21:11.567] Output HDMI-A-1 (crtc 41) video modes:
                   1920x1080@60.0, preferred, current, 148.5 MHz
                   1920x1080@60.0 16:9, 148.5 MHz
                   1920x1080@59.9 16:9, 148.4 MHz
                   1920x1080@50.0, 148.5 MHz
                   1920x1080@50.0 16:9, 148.5 MHz
                   1680x1050@59.9, 119.0 MHz
                   1600x900@60.0, 108.0 MHz
                   1280x1024@60.0, 108.0 MHz
                   1440x900@59.9, 88.8 MHz
                   1280x800@59.9, 71.0 MHz
                   1280x720@60.0, 74.2 MHz
                   1280x720@60.0 16:9, 74.2 MHz
                   1280x720@59.9 16:9, 74.2 MHz
                   1280x720@50.0, 74.2 MHz
                   1280x720@50.0 16:9, 74.2 MHz
                   1024x768@60.0, 65.0 MHz
                   800x600@60.3, 40.0 MHz
                   720x576@50.0 16:9, 27.0 MHz
                   720x576@50.0 4:3, 27.0 MHz
                   720x480@60.0 4:3, 27.0 MHz
                   720x480@60.0 16:9, 27.0 MHz
                   720x480@59.9, 27.0 MHz
                   720x480@59.9 16:9, 27.0 MHz
                   720x480@59.9 4:3, 27.0 MHz
                   640x480@60.0 4:3, 25.2 MHz
                   640x480@59.9, 25.2 MHz
                   640x480@59.9 4:3, 25.2 MHz
                   720x400@70.1, 28.3 MHz
    [03:21:11.568] Output 'HDMI-A-1' enabled with head(s) HDMI-A-1
    [03:21:11.568] Compositor capabilities:
                   arbitrary surface rotation: yes
                   screen capture uses y-flip: yes
                   presentation clock: CLOCK_MONOTONIC, id 1
                   presentation clock resolution: 0.000000001 s
    [03:21:11.615] Loading module '/usr/lib/weston/desktop-shell.so'
    [03:21:11.622] launching '/usr/libexec/weston-keyboard'
    [03:21:11.623] launching '/usr/libexec/weston-desktop-shell'
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-move'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-copy'
    could not load cursor 'dnd-none'
    could not load cursor 'dnd-none'

  • Hi Jelena,

    > Is there a problem with the DTBs that I'm using (mentioned on top of this thread)?? I'm not sure what's in them, I'm using one of the prebuilt ones, but it seems it's looking for both DP and HDMI. Is there one that only enables HDMI and not DP? Or that enables DP in a way that's compatible with Dell P2210?

    There is no separate dt overlay file for DP, it part of the kernel image. However, there is a separate dt overlay file for HDMI panel and the one you indicated `k3-j721e-common-proc-board-infotainment.dtbo` is the right file. The DP error messages seem to indicate that it wasn't able to detect the display. What is the resolution of the Dell P2210 panel that you are using. Just to make sure did you have this connected at the time of boot.

    Thanks,
    Gowtham

  • Hi Gowtham,

    See item #3 in previous answer - DP  monitor resolution is 1680x1050 and it is indeed *not* connected when I'm getting errors. If I *do* connect it during boot, kernel does not boot to login prompt (different hang point each time).

    3. There is no DP display connected when I'm getting DP related error messages. If I do connect DELL P2210, kernel boot hangs and the following message is displayed on the monitor:

    "The current  input timing is not supported by the monitor display. Please change your input tming to 1680x1050@60Hz or any other monitor listed timing".

    Jelena

     

  • Indeed, there seems to be a problem with the above mentioned resolution of 1680x1050 (Dell P2210 monitor).

    Switching to Dell U2410 with 1920x1200, connecting it to Display0 connector on the common processing board, and removing all overlay files from uEnv.txt resolved the problem - I'm now able to see Weston come up and run SGX demos.

    While my original intention was to use an HDMI monitor and connect if via infotainment board, this solution via DP connector works too.

    Thanks Gowtham and team!

    Jelena

  • Hi Jelena,

    Glad to hear that the issue is resolved.

    Thanks,
    Gowtham