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.

PROCESSOR-SDK-AM62X: RGB 24Bit with echo on the edge

Part Number: PROCESSOR-SDK-AM62X

Tool/software:



Hi guys,
we have an issue with a RGB 24bit 4,3" panel. It creates an echo on the right side of two pixels which are changing even dynamicly. 
We already tried many things like upgrading FW to 11.xx wtihout taking effect. 
Currently in use:
- Kernel 6.1.69
- Debian 12

What we see as unusal is a too high pitch coming from 32bit color. 

# cat /sys/class/graphics/fb0/bits_per_pixel
32
# cat /sys/class/graphics/fb0/stride
1920

We are using RGB888 so we dont understand why is here an entry of 32 Bit

panel-simple.c

static const struct drm_display_mode hetech_hc043te30029_mode = {
	.clock = 9200,
	.hdisplay = 480,
	.hsync_start = 480 + 6,
	.hsync_end = 486 + 41,
	.htotal = 480 + 6 + 6 + 41,
	.vdisplay = 272,
	.vsync_start = 272 + 4,
	.vsync_end = 276 + 10,
	.vtotal = 272 + 4 + 2 + 10,
	.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
};

static const struct panel_desc hetech_hc043te30029 = {
	.modes = &hetech_hc043te30029_mode,
	.num_modes = 1,
	.bpc = 8,
	.size = {
		.width = 95,
		.height = 54,
	},
	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
	.connector_type = DRM_MODE_CONNECTOR_DPI,
	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
};

DTS:

 panel {
		 compatible = "hetech,hc043te30029","simple-panel";
		 power-supply = <&vcc_3v3_sw>;
		 backlight = <&backlight>;
		 status = "okay";
		 enable-gpio = <&main_gpio0 41 GPIO_ACTIVE_HIGH>;
		 
		 port {
			panel_in: endpoint {
				remote-endpoint = <&lcd0_out>;
				data-lines = <24>;
			};
		 };
			
	};

 &dss {
	 pinctrl-names = "default";
	 pinctrl-0 = <&main_dss0_pins_default>;
 };
	
&dss_ports {
	 #address-cells = <1>;
	 #size-cells = <0>;
 
	 /* VP2: DPI/HDMI Output */
	 port@1 {
		 reg = <1>;
 
		 lcd0_out: endpoint {
			 remote-endpoint = <&panel_in>;
		 };
	 };
 };

We see in DRM debug that 32 Bit is set. 

root@DT404:~# cat /sys/kernel/debug/dri/0/framebuffer
framebuffer[50]:
        allocated by = drm-framebuffer
        refcount=2
        format=XR24 little-endian (0x34325258)
        modifier=0x0
        size=480x272
        layers:
                size[0]=480x272
                pitch[0]=1920
                offset[0]=0
                obj[0]:
                        name=0
                        refcount=3
                        start=00100080
                        size=524288
                        imported=no
                        dma_addr=0x00000000b8200000
                        vaddr=00000000c10ec708
framebuffer[48]:
        allocated by = [fbcon]
        refcount=1
        format=XR24 little-endian (0x34325258)
        modifier=0x0
        size=480x272
        layers:
                size[0]=480x272
                pitch[0]=1920
                offset[0]=0
                obj[0]:
                        name=0
                        refcount=3
                        start=00100000
                        size=524288
                        imported=no
                        dma_addr=0x00000000b8180000
                        vaddr=00000000650e361f

it is set by: tidss 30200000.dss: [drm:drm_fb_helper_generic_probe] surface width(480), height(272) and bpp(32)

So we ask are we here on the right track? 
Why is XR24 used instead of AR24 when display is RGB888. The pitch should be 1440 with 480px x 3bits

And in generall is this the root cause for the echo in screen?

  • Hi,
    Please share output of:

    modetest -m tidss
    kmsprint
    kmstest
    kmscube

    Also share what you see on screen with kmstest and kmscube.

  • Hi Divyansh,

    we did another test with integrating a boot logo into kernel. this shows same bahvior.
    kmstest and kmsprinti will share later on.

    kmscube fails

    root@DT404:~# kmscube
    no connected connector!
    failed to initialize legacy DRM

    kmscube with argument -D

    # kmscube -D /dev/dri/card0
    Using display 0xaaaae7a25060 with EGL version 1.4
    ===================================
    EGL information:
      version: "1.4"
      vendor: "Mesa Project"
      client extensions: "EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_EXT_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless"
      display extensions: "EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_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_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_image_dma_buf_export EGL_MESA_query_driver "
    ===================================
    OpenGL ES 2.x information:
      version: "OpenGL ES 3.2 Mesa 22.3.6"
      shading language version: "OpenGL ES GLSL ES 3.20"
      vendor: "Mesa/X.org"
      renderer: "llvmpipe (LLVM 15.0.6, 128 bits)"
      extensions: "GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_pack_subimage GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_OES_viewport_array GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_robustness GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_debug_label GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_ANDROID_extension_pack_es31a GL_ARM_shader_framebuffer_fetch_depth_stencil GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_gpu_shader5 GL_EXT_polygon_offset_clamp GL_EXT_primitive_bounding_box GL_EXT_render_snorm GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_texture_norm16 GL_EXT_texture_view GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_image_formats GL_NV_shader_noperspective_interpolation GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5 GL_OES_primitive_bounding_box GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_io_blocks GL_OES_shader_multisample_interpolation 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_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_texture_filter_minmax GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clear_texture GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_color_buffer_half_float GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_texture_compression_bptc GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_shadow_lod GL_MESA_framebuffer_flip_y GL_EXT_depth_clamp GL_EXT_texture_query_lod GL_MESA_bgra "
    ===================================
    Using modifier ffffffffffffff
    failed to set mode: Invalid argument
    


    modetest -M tidss:
    Shows no frame buffers at the end. relevant?

    # modetest -M tidss
    Encoders:
    id      crtc    type    possible crtcs  possible clones
    39      38      DPI     0x00000001      0x00000001
    
    Connectors:
    id      encoder status          name            size (mm)       modes   encoders
    40      39      connected       DPI-1           95x54           1       39
      modes:
            index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
      #0 480x272 59.94 480 482 523 525 272 274 284 286 9000 flags: nhsync, nvsync; type: preferred, driver
      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
            4 TILE:
                    flags: immutable blob
                    blobs:
    
                    value:
    
    CRTCs:
    id      fb      pos     size
    38      50      (0,0)   (480x272)
      #0 480x272 59.94 480 482 523 525 272 274 284 286 9000 flags: nhsync, nvsync; type: preferred, driver
      props:
            24 VRR_ENABLED:
                    flags: range
                    values: 0 1
                    value: 0
            27 CTM:
                    flags: blob
                    blobs:
    
                    value:
            28 GAMMA_LUT:
                    flags: blob
                    blobs:
    
                    value:
            29 GAMMA_LUT_SIZE:
                    flags: immutable range
                    values: 0 4294967295
                    value: 256
    
    Planes:
    id      crtc    fb      CRTC x,y        x,y     gamma size      possible crtcs
    31      38      50      0,0             0,0     0               0x00000001
      formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12
      props:
            8 type:
                    flags: immutable enum
                    enums: Overlay=0 Primary=1 Cursor=2
                    value: 1
            30 IN_FORMATS:
                    flags: immutable blob
                    blobs:
    
                    value:
                            01000000000000001d00000018000000
                            01000000900000004152313241423132
                            52413132524731364247313641523135
                            41423135415232344142323452413234
                            42413234524732344247323441523330
                            41423330585231325842313252583132
                            58523135584231355852323458423234
                            52583234425832345852333058423330
                            59555956555956594e56313200000000
                            ffffff1f000000000000000000000000
                            0000000000000000
                    in_formats blob decoded:
                             AR12:  LINEAR
                             AB12:  LINEAR
                             RA12:  LINEAR
                             RG16:  LINEAR
                             BG16:  LINEAR
                             AR15:  LINEAR
                             AB15:  LINEAR
                             AR24:  LINEAR
                             AB24:  LINEAR
                             RA24:  LINEAR
                             BA24:  LINEAR
                             RG24:  LINEAR
                             BG24:  LINEAR
                             AR30:  LINEAR
                             AB30:  LINEAR
                             XR12:  LINEAR
                             XB12:  LINEAR
                             RX12:  LINEAR
                             XR15:  LINEAR
                             XB15:  LINEAR
                             XR24:  LINEAR
                             XB24:  LINEAR
                             RX24:  LINEAR
                             BX24:  LINEAR
                             XR30:  LINEAR
                             XB30:  LINEAR
                             YUYV:  LINEAR
                             UYVY:  LINEAR
                             NV12:  LINEAR
            33 zpos:
                    flags: range
                    values: 0 1
                    value: 1
            34 COLOR_ENCODING:
                    flags: enum
                    enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1
                    value: 0
            35 COLOR_RANGE:
                    flags: enum
                    enums: YCbCr limited range=0 YCbCr full range=1
                    value: 1
            36 alpha:
                    flags: range
                    values: 0 65535
                    value: 65535
            37 pixel blend mode:
                    flags: enum
                    enums: Pre-multiplied=0 Coverage=1
                    value: 0
    41      0       0       0,0             0,0     0               0x00000001
      formats: AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12
      props:
            8 type:
                    flags: immutable enum
                    enums: Overlay=0 Primary=1 Cursor=2
                    value: 0
            30 IN_FORMATS:
                    flags: immutable blob
                    blobs:
    
                    value:
                            01000000000000001d00000018000000
                            01000000900000004152313241423132
                            52413132524731364247313641523135
                            41423135415232344142323452413234
                            42413234524732344247323441523330
                            41423330585231325842313252583132
                            58523135584231355852323458423234
                            52583234425832345852333058423330
                            59555956555956594e56313200000000
                            ffffff1f000000000000000000000000
                            0000000000000000
                    in_formats blob decoded:
                             AR12:  LINEAR
                             AB12:  LINEAR
                             RA12:  LINEAR
                             RG16:  LINEAR
                             BG16:  LINEAR
                             AR15:  LINEAR
                             AB15:  LINEAR
                             AR24:  LINEAR
                             AB24:  LINEAR
                             RA24:  LINEAR
                             BA24:  LINEAR
                             RG24:  LINEAR
                             BG24:  LINEAR
                             AR30:  LINEAR
                             AB30:  LINEAR
                             XR12:  LINEAR
                             XB12:  LINEAR
                             RX12:  LINEAR
                             XR15:  LINEAR
                             XB15:  LINEAR
                             XR24:  LINEAR
                             XB24:  LINEAR
                             RX24:  LINEAR
                             BX24:  LINEAR
                             XR30:  LINEAR
                             XB30:  LINEAR
                             YUYV:  LINEAR
                             UYVY:  LINEAR
                             NV12:  LINEAR
            43 zpos:
                    flags: range
                    values: 0 1
                    value: 0
            44 COLOR_ENCODING:
                    flags: enum
                    enums: ITU-R BT.601 YCbCr=0 ITU-R BT.709 YCbCr=1
                    value: 0
            45 COLOR_RANGE:
                    flags: enum
                    enums: YCbCr limited range=0 YCbCr full range=1
                    value: 1
            46 alpha:
                    flags: range
                    values: 0 65535
                    value: 65535
            47 pixel blend mode:
                    flags: enum
                    enums: Pre-multiplied=0 Coverage=1
                    value: 0
    
    Frame buffers:
    id      size    pitch
    
    

    Additional info:

    root@DT404:~# dmesg | grep -i dss
    [    0.338301] platform panel: Fixed dependency cycle(s) with /bus@f0000/dss@30200000/ports/port@1/endpoint
    [    1.611053] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
    [    1.662528] tidss 30200000.dss: [drm] fb0: tidssdrmfb frame buffer device
    

    Thx

  • While you are testing these commands, please make sure that no other entity is using the display.
    i.e. close your application and also run `systemctl stop weston` before running the commands.

  • Sure we did. As i said the issue is already visible in kernel bootsplash. The video only shows very dynamic the issue. 

  • Have you validated your panel and its timing parameters on any other board yet?
    My understanding as of yet, there is a small ribbon to the right hand side of display which is not expected to be there, right?

    Can you share the image depicting issue on bootsplash also?

  • The panel is working on two other boards. Even AM335x. 
    We found out that the startup behavior of tidss is a bit different to tilcdc 

    We were able to fix that with:

    	panel {
    		compatible = "panel-dpi";
    		backlight = <&backlight>;
       	 	power-supply = <&vcc_3v3_sw>;
    	 	status = "okay";
    		enable-gpio = <&main_gpio0 41 GPIO_ACTIVE_HIGH>;
    
    		width-mm = <95>;
    		height-mm = <54>;
    
    		data-mapping = "rgb888";
    		bus-width = <24>;
    		bus-format = <0x100a>; //<MEDIA_BUS_FMT_RGB888_1X24>;
    		bits-per-channel = <8>;
    
    		panel-timing {
    			clock-frequency = <9000000>;
    			hactive = <480>;
    			vactive = <272>;
    			hfront-porch = <2>;
    			hback-porch = <2>;
    			hsync-len = <41>;
    			vfront-porch = <2>;
    			vback-porch = <2>;
    			vsync-len = <10>;
    			hsync-active = <0>;
    			vsync-active = <0>;
    			de-active = <0>;
    			pixelclk-active = <0>;
    		};

    quite unusal timing if you have a look at the last values.