Skip to content

Instantly share code, notes, and snippets.

@lucmann
Last active March 10, 2026 12:54
Show Gist options
  • Select an option

  • Save lucmann/5641130ef6defb102d668987ed6d1ccd to your computer and use it in GitHub Desktop.

Select an option

Save lucmann/5641130ef6defb102d668987ed6d1ccd to your computer and use it in GitHub Desktop.
kmstest log
root@hikey970:/home/hi# ./kmstest
connectors=1 crtcs=1 fbs=0 encoders=1
connector[0] id=37
cr[ 199.048973] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:37:HDMI-A-1]
tc[0] id=35
[ 199.064685] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] CEA VCDB 0xd5
[ 199.064699] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] HDMI: DVI dual 0, max TMDS clock 360000 kHz
connector id=37 status=1 modes=5 type=11[ 199.064706] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] HDMI sink does deep color 30.
[ 199.064712] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] Assigning HDMI sink color depth as 10 bpc.
using mode: 800x600 name=800x600[ 199.064717] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] HDMI sink does YCRCB444 in deep color.
[ 199.064722] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] HDMI sink should do DC_36, but does not!
[ 199.064730] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] ELD monitor Sculptor
[ 199.064735] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] HDMI: latency present 0 0, video latency 0 0, audio latency 0 0
dumb handle=1 pitch=3200 size=1921024[ 199.064742] kirin9xx-drm e8600000.dpe: [drm:update_display_info.part.0] [CONNECTOR:37:HDMI-A-1] ELD size 32, SAD count 1
[ 199.064898] [drm] Valid mode: 1024x768@60, clock 65000 (adjusted to 65000)
[ 199.064919] [drm] Valid mode: 800x600@60, clock 40000 (adjusted to 40000)
fb_id=42[ 199.064970] [drm] Valid mode: 1280x720@60, clock 74250 (adjusted to 72000)
[ 199.065009] [drm] Valid mode: 1280x720@50, clock 74250 (adjusted to 72000)
[ 199.065012] [drm] Valid mode: 1280x720@60, clock 74250 (adjusted to 72000)
[ 199.065018] [drm] Valid mode: 1280x720@60, clock 74176 (adjusted to 74176)
filled RED[ 199.065024] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1920x1080": 60 148500 1920 2008 2052 2200 1080 1082 1087 1125 0x48 0x5 (CLOCK_HIGH)
[ 199.065034] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1920x1080": 50 117000 1920 2008 2052 2080 1080 1084 1089 1125 0x40 0x5 (CLOCK_HIGH)
[ 199.065041] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1152x864": 60 81579 1152 1216 1336 1520 864 865 868 895 0x0 0x6 (CLOCK_HIGH)
[ 199.065049] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1280x1024": 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5 (CLOCK_HIGH)
[ 199.065055] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1600x900": 60 108000 1600 1624 1704 1800 900 901 904 1000 0x40 0x5 (CLOCK_HIGH)
[ 199.065062] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1920x1080": 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5 (CLOCK_HIGH)
[ 199.065068] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1920x1080": 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5 (CLOCK_HIGH)
[ 199.065074] kirin9xx-drm e8600000.dpe: [drm:drm_mode_prune_invalid] Rejected mode: "1920x1080": 60 148352 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5 (CLOCK_HIGH)
[ 199.065083] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:37:HDMI-A-1] probed modes:
[ 199.065089] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] Probed mode: "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 199.065095] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] Probed mode: "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 199.065101] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] Probed mode: "1280x720": 60 74176 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[ 199.065107] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] Probed mode: "1280x720": 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[ 199.065113] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] Probed mode: "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
[ 199.065118] kirin9xx-drm e8600000.dpe: [drm:drm_helper_probe_single_connector_modes] Probed mode: "800x600": 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
[ 199.181474] kirin9xx-drm e8600000.dpe: [drm:drm_mode_addfb2] [FB:42]
[ 199.239464] kirin9xx-drm e8600000.dpe: [drm:drm_mode_setcrtc] [CRTC:35:crtc-0]
[ 199.239496] kirin9xx-drm e8600000.dpe: [drm:drm_mode_setcrtc] [CONNECTOR:37:HDMI-A-1]
[ 199.239535] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] Trying RGB output format with 8 bpc
[ 199.239565] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] RGB Format, checking the constraints.
[ 199.239570] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] RGB format supported in that configuration.
[ 199.239585] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] RGB output format supported with 8 bpc (TMDS char rate: 40000000 Hz)
[ 199.239591] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] Mode 800x600 @ 60Hz: Found configuration: bpc: 8, fmt: RGB, clock: 40000000
[ 199.239624] [drm] Valid mode: 800x600@60, clock 40000 (adjusted to 40000)
[ 199.354444] [drm] +.
[ 199.354598] [drm] dss_pxl0_clk:[238000000]->[237142858].
[ 199.354601] [drm] +.
[ 199.354728] [drm] dss_mmbuf_clk:[208000000]->[207500000].
[ 199.354858] [drm] dss_pri_clk:[277000000]->[276666667].
[ 199.354918] [drm] enabling DPE regulator
[ 199.354921] [drm] -.
[ 199.355044] [drm] dss_pri_clk:[300000000]->[300000000].
[ 199.355166] [drm] dss_mmbuf_clk:[238000000]->[237142858].
[ 199.355193] [drm] Requested clock 40000 kHz, setting to 40000 kHz
[ 199.355199] [drm] PLL7 set to (0x4c03a05, 0x6555555)
[ 199.355327] [drm] dss_pxl0_clk:[144000000]->[144000000].
[ 199.369022] [drm:dss_irq_handler] *ERROR* ldi underflow!
[ 199.415401] [drm:hisi_fb_pan_display] channel0: src:(0,0, 800x600) crtc:(0,0, 800x600), rect(0,0,799,599),fb:800x600, pixel_format=13, stride=3200, paddr=0x32800000, bpp=4.
[ 199.415457] [drm] dsi_mipi_init: id=0
[ 199.415460] [drm] Expected : lane_clock = 320 M
[ 199.415611] [drm] burst_mode = 0x0 (flags: 0x0215)
[ 199.415615] [drm] hsa_time=126, hbp_time=87, hline_time=1046
[ 199.415617] [drm] lane_byte_clk=39600000, pixel_clk=40000000
[ 199.415631] [drm] dsi memory init
[ 199.427484] [drm:dss_irq_handler] *ERROR* ldi underflow!
[ 199.633243] kirin9xx-drm e8600000.dpe: [drm:write_device_infoframe] Writing infoframe type 82
[ 199.642728] kirin9xx-drm e8600000.dpe: [drm:write_device_infoframe] Writing infoframe type 83
[ 199.652342] [drm] dss_enable_vblank
SUCCESS! screen should be RED
now BLUE
[ 204.718844] [drm] dss_disable_vblank
[ 209.660232] kirin9xx-drm e8600000.dpe: [drm:drm_mode_rmfb_work_fn] Removing [FB:42] from all active usage due to RMFB ioctl
[ 209.660256] kirin9xx-drm e8600000.dpe: [drm:drm_framebuffer_remove] Disabling [PLANE:33:plane-0] because [FB:42] is removed
[ 209.660293] [drm] dss_enable_vblank
[ 209.671507] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] Trying RGB output format with 8 bpc
[ 209.671538] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] RGB Format, checking the constraints.
[ 209.671543] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] RGB format supported in that configuration.
[ 209.671559] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] RGB output format supported with 8 bpc (TMDS char rate: 65000000 Hz)
[ 209.671566] kirin9xx-drm e8600000.dpe: [drm:hdmi_compute_format_bpc] Mode 1024x768 @ 60Hz: Found configuration: bpc: 8, fmt: RGB, clock: 65000000
[ 209.671597] [drm] Valid mode: 1024x768@60, clock 65000 (adjusted to 65000)
[ 209.740869] [drm] +.
[ 209.741017] [drm] dss_pxl0_clk:[238000000]->[237142858].
[ 209.741020] [drm] +.
[ 209.741147] [drm] dss_mmbuf_clk:[208000000]->[207500000].
[ 209.741269] [drm] dss_pri_clk:[277000000]->[276666667].
[ 209.741287] [drm] dss_disable_vblank
[ 209.741288] [drm:dss_disable_vblank] *ERROR* power is down! vblank disable fail
[ 209.741324] [drm] enabling DPE regulator
[ 209.741327] [drm] -.
[ 209.741450] [drm] dss_pri_clk:[300000000]->[300000000].
[ 209.741571] [drm] dss_mmbuf_clk:[238000000]->[237142858].
[ 209.741598] [drm] Requested clock 65000 kHz, setting to 65000 kHz
[ 209.741604] [drm] PLL7 set to (0x4b04705, 0x6180000)
[ 209.741732] [drm] dss_pxl0_clk:[144000000]->[144000000].
[ 209.747758] [drm:dss_irq_handler] *ERROR* ldi underflow!
[ 209.801800] [drm:hisi_fb_pan_display] channel0: src:(0,0, 1024x768) crtc:(0,0, 1024x768), rect(0,0,1023,767),fb:1024x768, pixel_format=13, stride=4096, paddr=0x32500000, bpp=4.
[ 209.801851] [drm] dsi_mipi_init: id=0
[ 209.801854] [drm] Expected : lane_clock = 520 M
[ 209.802005] [drm] burst_mode = 0x0 (flags: 0x0215)
[ 209.802008] [drm] hsa_time=135, hbp_time=159, hline_time=1340
[ 209.802011] [drm] lane_byte_clk=64800000, pixel_clk=65000000
[ 209.802025] [drm] dsi memory init
[ 209.806705] [drm:dss_irq_handler] *ERROR* ldi underflow!
[ 209.868876] kirin9xx-drm e8600000.dpe: [drm:write_device_infoframe] Writing infoframe type 82
[ 209.878358] kirin9xx-drm e8600000.dpe: [drm:write_device_infoframe] Writing infoframe type 83
[ 209.887969] [drm] dss_enable_vblank
[ 209.896989] kirin9xx-drm e8600000.dpe: [drm:drm_client_dev_restore] fbdev: ret=0
root@hikey970:/home/hi# [ 214.958844] [drm] dss_disable_vblank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment