failed to set mode: Invalid argument on ls1028

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

failed to set mode: Invalid argument on ls1028

559 Views
Eddy1
Contributor IV

Hi: I am testing OpenGL according to the software manual(OPEN-LINUX-IND-UM-1-10.pdf), but there will be errors. Can you give some suggestions?

board:kmscube 

OpenGL ES 2.x information:
version: "OpenGL ES 3.1 V6.4.0.p2.234062"
shading language version: "OpenGL ES GLSL ES 3.10"
vendor: "Vivante Corporation"
renderer: "Vivante GC7000UL"
extensions: "GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_half_float GL_OES_element_index_uint GL_OES_mapbuffer GL_OES_vertex_array_object GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_depth32 GL_OES_packed_depth_stencil GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_fragment_precision_high GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_sync GL_OES_texture_stencil8 GL_OES_shader_image_atomic GL_OES_texture_storage_multisample_2d_array GL_OES_required_internalformat GL_OES_surfaceless_context GL_OES_draw_buffers_indexed GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_draw_elements_base_vertex GL_OES_texture_half_float GL_OES_texture_float GL_KHR_blend_equation_advanced GL_KHR_debug GL_KHR_robustness GL_KHR_robust_buffer_access_behavior GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_EXT_texture_compression_s3tc GL_EXT_read_format_bgra GL_EXT_multi_draw_arrays GL_EXT_frag_depth GL_EXT_discard_framebuffer GL_EXT_blend_minmax GL_EXT_multisampled_render_to_texture GL_EXT_color_buffer_half_float GL_EXT_color_buffer_float GL_EXT_robustness GL_EXT_texture_sRGB_decode GL_EXT_draw_buffers_indexed GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_multi_draw_indirect GL_EXT_draw_elements_base_vertex GL_EXT_texture_rg GL_EXT_protected_textures GL_EXT_sRGB GL_VIV_direct_texture "
===================================
failed to set mode: Invalid argument

0 Kudos
2 Replies

556 Views
yipingwang
NXP TechSupport
NXP TechSupport

I cant' reproduce this issue on ls1028ardb board with DP interface + 1080x1920 display (DELL).

[root@LS1028ARDB ~] # uname -a
Linux LS1028ARDB 5.4.3-rt1 #1 SMP PREEMPT_RT Wed Mar 10 10:45:16 CST 2021 aarch64 GNU/Linux
[root@LS1028ARDB ~] # cat /proc/cmdline
root=/dev/mmcblk0p2 rootwait rw earlycon=uart8250,0x21c0500 console=ttyS0,115200 cma=256M video=1920x1080-32
@60
[root@LS1028ARDB ~] # kmscube
[ 413.279588] 000: cdns-mhdp-imx f200000.display: 0,ff,ff,ff,ff,ff,ff,0
Using display 0x1dc7be20 with EGL version 1.5
===================================
EGL information:
version: "1.5"
vendor: "Vivante Corporation"
client extensions: "EGL_EXT_client_extensions EGL_EXT_platform_base EGL_KHR_platform_wayland EGL_EXT_platf
orm_wayland EGL_KHR_platform_gbm"
display extensions: "EGL_KHR_fence_sync EGL_KHR_reusable_sync EGL_KHR_wait_sync EGL_KHR_image EGL_KHR_imag
e_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbu
ffer_image EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_lock_surface EGL_KHR_
create_context EGL_KHR_no_config_context EGL_KHR_surfaceless_context EGL_KHR_get_all_proc_addresses EGL_EXT_
create_context_robustness EGL_EXT_protected_surface EGL_EXT_protected_content EGL_EXT_buffer_age EGL_ANDROID
_native_fence_sync EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image EGL_KHR_partial_updat
e EGL_EXT_swap_buffers_with_damage EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float"
===================================
OpenGL ES 2.x information:
version: "OpenGL ES 3.1 V6.4.3.p1.305572"
shading language version: "OpenGL ES GLSL ES 3.10"
vendor: "Vivante Corporation"
renderer: "Vivante GC7000UL"
extensions: "GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_half_float GL_OES_element_index_uint GL_OES_mapbu
ffer GL_OES_vertex_array_object GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OE
S_texture_npot GL_OES_rgb8_rgba8 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_de
pth32 GL_OES_packed_depth_stencil GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_fragment_precisi
on_high GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_ess
l3 GL_OES_EGL_sync GL_OES_texture_stencil8 GL_OES_shader_image_atomic GL_OES_texture_storage_multisample_2d_
array GL_OES_required_internalformat GL_OES_surfaceless_context GL_OES_draw_buffers_indexed GL_OES_texture_b
order_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_draw_elements_base_vertex GL_OES_text
ure_half_float GL_OES_texture_float GL_KHR_blend_equation_advanced GL_KHR_debug GL_KHR_robustness GL_KHR_rob
ust_buffer_access_behavior GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_compression_dxt1 GL_EXT_texture
_format_BGRA8888 GL_EXT_texture_compression_s3tc GL_EXT_read_format_bgra GL_EXT_multi_draw_arrays GL_EXT_fra
g_depth GL_EXT_discard_framebuffer GL_EXT_blend_minmax GL_EXT_multisampled_render_to_texture GL_EXT_color_bu
ffer_half_float GL_EXT_color_buffer_float GL_EXT_robustness GL_EXT_texture_sRGB_decode GL_EXT_draw_buffers_i
ndexed GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_multi_draw_ind
irect GL_EXT_draw_elements_base_vertex GL_EXT_texture_rg GL_EXT_protected_textures GL_EXT_sRGB GL_EXT_draw_b
uffers GL_VIV_direct_texture "
===================================
Rendered 121 frames in 2.016625 sec (60.001248 fps)
Rendered 241 frames in 4.016632 sec (60.000522 fps)

I just confirmed with the testing team.

kmscube can work fine on DELL display with 1920*1080 resolution.

On LS1028ARDB, 'kmscube' can work on certain display monitor while can't work on certain other display monitor. 

0 Kudos

552 Views
Eddy1
Contributor IV

Hi:

Thank you for your reply. I just confirmed that this is a 4K monitor.I found the information in the manual:

For eDP interface, 4K resolution is not supported due to firmware limitation.So how do I test GPU on 4K monitor.

0 Kudos