BPI-R2: HDMI 4k-TV fail

Hi,

Recently I’ve tried connecting my R2 to 4k TV, using HDMI and got failed with the next dmesg trace:

hdmi_4k_trace.txt (14.6 КБ)

5.10.38-bpi-r2-hnat+gmac2

No HDMI signal on TV, but works w/o any problems with resolution 1080 or less.

The same behaviour on kernel 5.9.

P.S. I didn’t yet tried to force 1080 in kernel bootargs.

P.P.S. The same TV and the same cable works with other SoCs and laptop.

As far as i see it is a warn_on()

WARNING: CPU: 0 PID: 83 at drivers/gpu/drm/drm_atomic_helper.c:1512 drm_atomic_helper_wait_for_vblanks

I guess this is because no usable resolution is found…can you try setting 1080p via cmdline?

tried on my 4k monitor with forced resolution to 1920x1080

fbcon seems good…see message running through, but at time x-server starts i get this:

[   44.660895] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:
32:HDMI-A-1] flip_done timed out                                                
[   44.670895] [drm:mtk_drm_crtc_atomic_begin] *ERROR* new event while there is 
still a pending event                                                           
[   44.780868] ------------[ cut here ]------------                             
[   44.785513] WARNING: CPU: 2 PID: 584 at drivers/gpu/drm/drm_atomic_helper.c:1
512 drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8                       
[   44.797644] [CRTC:41:crtc-0] vblank wait timed out                           
[   44.802464] Modules linked in: mt7615e mt7615_common mt76 mac80211 cfg80211 l
ibarc4 lima gpu_sched mtk_thermal spi_mt65xx pwm_mediatek mtk_pmic_keys mt6577_a
uxadc nvmem_mtk_efuse ip_tables x_tables                                        
[   44.820130] CPU: 2 PID: 584 Comm: Xorg Tainted: G        W         5.10.38-bp
i-r2-hnat+gmac2 #14                                                             
[   44.828915] Hardware name: Mediatek Cortex-A7 (Device Tree)                  
[   44.834485] Backtrace:                                                       
[   44.836947] [<c0c57728>] (dump_backtrace) from [<c0c57aec>] (show_stack+0x20/
0x24)                                                                           
[   44.844515]  r7:000005e8 r6:60080013 r5:00000000 r4:c13ef278                 
[   44.850176] [<c0c57acc>] (show_stack) from [<c0c5b85c>] (dump_stack+0xcc/0xe0
)                                                                               
[   44.857398] [<c0c5b790>] (dump_stack) from [<c0126cdc>] (__warn+0xfc/0x114)  
[   44.864357]  r7:000005e8 r6:c06b30f4 r5:00000009 r4:c1034040                 
[   44.870016] [<c0126be0>] (__warn) from [<c0c58208>] (warn_slowpath_fmt+0xa8/0
xd0)                                                                            
[   44.877493]  r7:c06b30f4 r6:000005e8 r5:c1034040 r4:c10345b0                 
[   44.883156] [<c0c58164>] (warn_slowpath_fmt) from [<c06b30f4>] (drm_atomic_he
lper_wait_for_vblanks.part.0+0x2a0/0x2a8)                                       
[   44.893846]  r8:00000000 r7:00000000 r6:00000264 r5:c6eb4ac0 r4:c52c8040     
[   44.900549] [<c06b2e54>] (drm_atomic_helper_wait_for_vblanks.part.0) from [<c
06b47e4>] (drm_atomic_helper_commit_tail_rpm+0x6c/0x7c)                         
[   44.912455]  r10:c20260c8 r9:c52c8040 r8:00000000 r7:c0d77a6c r6:00000005 r5:
c3a33800                                                                        
[   44.920277]  r4:c6eb4ac0                                                     
[   44.922813] [<c06b4778>] (drm_atomic_helper_commit_tail_rpm) from [<c06b4dec>
] (commit_tail+0xac/0x144)                                                      
[   44.932198]  r5:a0435fbe r4:c6eb4ac0                                         
[   44.935774] [<c06b4d40>] (commit_tail) from [<c06b5c1c>] (drm_atomic_helper_c
ommit+0x144/0x168)                                                              
[   44.944470]  r9:c52c8040 r8:00000000 r7:00000000 r6:c3a33800 r5:00000000 r4:c
6eb4ac0                                                                         
[   44.952214] [<c06b5ad8>] (drm_atomic_helper_commit) from [<c06d37d4>] (drm_at
omic_commit+0x54/0x60)                                                          
[   44.961254]  r7:00000000 r6:c3a33800 r5:c6eb4ac0 r4:00000000                 
[   44.966915] [<c06d3780>] (drm_atomic_commit) from [<c06ed380>] (drm_atomic_co
nnector_commit_dpms+0xa4/0x104)                                                 
[   44.976737]  r7:00000000 r6:c20260c8 r5:c6eb4ac0 r4:00000001                 
[   44.982398] [<c06ed2dc>] (drm_atomic_connector_commit_dpms) from [<c06dbbc0>]
 (drm_mode_obj_set_property_ioctl+0x1c8/0x440)                                  
[   44.993524]  r9:00000000 r8:c5fa2700 r7:c6ef7de4 r6:c20260dc r5:c6eb4ac0 r4:c
22c9480                                                                         
[   45.001266] [<c06db9f8>] (drm_mode_obj_set_property_ioctl) from [<c06d9e5c>] 
(drm_connector_property_set_ioctl+0x5c/0x84)                                    
[   45.012218]  r10:c01064ab r9:c5fa2700 r8:c6ef7ecc r7:c06d9e00 r6:00000002 r5:
00000000                                                                        
[   45.020039]  r4:00000000                                                     
[   45.022577] [<c06d9e00>] (drm_connector_property_set_ioctl) from [<c06c0dc8>]
 (drm_ioctl_kernel+0xc8/0x10c)                                                  
[   45.032310]  r5:c3a33800 r4:00000000                                         
[   45.035886] [<c06c0d00>] (drm_ioctl_kernel) from [<c06c1024>] (drm_ioctl+0x21
8/0x408)                                                                        
[   45.043714]  r9:c5fa2700 r8:000000ab r7:c6ef7ecc r6:c06d9e00 r5:c0d6c9e8 r4:0
0000010                                                                         
[   45.051457] [<c06c0e0c>] (drm_ioctl) from [<c03369f8>] (sys_ioctl+0x88/0xb4) 
[   45.058504]  r10:00000036 r9:fffffdfd r8:c5a99240 r7:be8fea60 r6:c01064ab r5:
c5a99241                                                                        
[   45.066327]  r4:fffffdfd                                                     
[   45.068864] [<c0336970>] (sys_ioctl) from [<c0100060>] (ret_fast_syscall+0x0/
0x54)                                                                           
[   45.076427] Exception stack(0xc6ef7fa8 to 0xc6ef7ff0)                        
[   45.081478] 7fa0:                   00000000 be8fea60 0000000c c01064ab be8fe
a60 0066cd38                                                                    
[   45.089654] 7fc0: 00000000 be8fea60 c01064ab 00000036 0066e5c0 00000000 00000
001 be8fead4                                                                    
[   45.097826] 7fe0: b6e25094 be8fea44 b6e100a3 b6b49f08                        
[   45.102877]  r9:c6ef6000 r8:c0100264 r7:00000036 r6:c01064ab r5:be8fea60 r4:0
0000000                                                                         
[   45.110665] ---[ end trace 333a09c3190f3fc9 ]---                             
[   60.020897] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:41:cr
tc-0] flip_done timed out

5.10.38-bpi-r2-hnat+gmac2

on 5.12 i see no hdmi-output

    root@bpi-r2:~# dmesg |grep drm                                                  
    [    5.497090] mediatek-drm mediatek-drm.1.auto: Adding component match for /ovl
    @14007000                                                                       
    [    5.507161] mediatek-drm mediatek-drm.1.auto: Adding component match for /rdm
    a@14008000                                                                      
    [    5.515379] mediatek-drm mediatek-drm.1.auto: Adding component match for /col
    or@1400b000                                                                     
    [    5.523626] mediatek-drm mediatek-drm.1.auto: Adding component match for /rdm
    a@14012000                                                                      
    [    5.531732] mediatek-drm mediatek-drm.1.auto: Adding component match for /dpi
    @14014000                                                                       
    [    5.542686] [drm] hdmi-audio-codec driver bound to HDMI                      
    [    8.150283] mediatek-drm mediatek-drm.1.auto: bound 14007000.ovl (ops mtk_dis
    p_ovl_component_ops)                                                            
    [    8.159242] mediatek-drm mediatek-drm.1.auto: bound 14008000.rdma (ops mtk_di
    sp_rdma_component_ops)                                                          
    [    8.168340] mediatek-drm mediatek-drm.1.auto: bound 1400b000.color (ops mtk_d
    isp_color_component_ops)                                                        
    [    8.177597] mediatek-drm mediatek-drm.1.auto: bound 14012000.rdma (ops mtk_di
    sp_rdma_component_ops)                                                          
    [    8.186685] [drm:mtk_hdmi_bridge_attach] *ERROR* Fix bridge driver to make co
    nnector optional!                                                               
    [    8.201651] mediatek-drm mediatek-drm.1.auto: failed to bind 14014000.dpi (op
    s mtk_dpi_component_ops): -22                                                   
    [    8.211462] mediatek-drm mediatek-drm.1.auto: master bind failed: -22

5.13 seems to have same problem

[  106.116411] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[  106.116444] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:
32:HDMI-A-1] commit wait timed out                                              
[  116.356403] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[  116.356439] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [PLANE:33:p
lane-0] commit wait timed out                                                   
[  116.356475] [drm:mtk_drm_crtc_atomic_begin] *ERROR* new event while there is 
still a pending event                                                           
[  116.466410] ------------[ cut here ]------------                             
[  116.466425] WARNING: CPU: 0 PID: 541 at drivers/gpu/drm/drm_atomic_helper.c:1
511 drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8                       
[  116.466458] [CRTC:41:crtc-0] vblank wait timed out                           
[  116.466463] Modules linked in: mt7615e mt7615_common mt76_connac_lib mt76 mac
80211 cfg80211 libarc4 lima gpu_sched spi_mt65xx pwm_mediatek mtk_pmic_keys ip_t
ables x_tables                                                                  
[  116.466530] CPU: 0 PID: 541 Comm: Xorg Tainted: G        W         5.13.0-bpi
-r2-main #1                                                                     
[  116.466541] Hardware name: Mediatek Cortex-A7 (Device Tree)                  
[  116.466547] Backtrace:                                                       
[  116.466554] [<c0c8ebb8>] (dump_backtrace) from [<c0c8ef7c>] (show_stack+0x20/
0x24)                                                                           
[  116.466578]  r7:000005e7 r6:600f0013 r5:00000000 r4:c13efb48                 
[  116.466582] [<c0c8ef5c>] (show_stack) from [<c0c92bec>] (dump_stack+0xcc/0xe0
)                                                                               
[  116.466598] [<c0c92b20>] (dump_stack) from [<c0126ed0>] (__warn+0xfc/0x114)  
[  116.466622]  r7:000005e7 r6:c06cc07c r5:00000009 r4:c1056038                 
[  116.466626] [<c0126dd4>] (__warn) from [<c0c8f678>] (warn_slowpath_fmt+0xa8/0
xd0)                                                                            
[  116.466647]  r7:c06cc07c r6:000005e7 r5:c1056038 r4:c10565a8                 
[  116.466651] [<c0c8f5d4>] (warn_slowpath_fmt) from [<c06cc07c>] (drm_atomic_he
lper_wait_for_vblanks.part.0+0x2a0/0x2a8)                                       
[  116.466675]  r8:00000000 r7:00000000 r6:00000001 r5:c781ecc0 r4:c52fc040     
[  116.466680] [<c06cbddc>] (drm_atomic_helper_wait_for_vblanks.part.0) from [<c
06cd72c>] (drm_atomic_helper_commit_tail_rpm+0x6c/0x7c)                         
[  116.466708]  r10:c52d4edc r9:c31af400 r8:c0d86474 r7:00000013 r6:f2569d80 r5:
c31af400                                                                        
[  116.466714]  r4:c781ecc0                                                     
[  116.466717] [<c06cd6c0>] (drm_atomic_helper_commit_tail_rpm) from [<c06cdcd8>
] (commit_tail+0xb0/0x1c8)                                                      
[  116.466739]  r5:00000000 r4:c781ecc0                                         
[  116.466743] [<c06cdc28>] (commit_tail) from [<c06cea98>] (drm_atomic_helper_c
ommit+0x144/0x168)                                                              
[  116.466769]  r9:c31af400 r8:c31db840 r7:00000000 r6:c31af400 r5:00000000 r4:c
781ecc0                                                                         
[  116.466773] [<c06ce954>] (drm_atomic_helper_commit) from [<c06ed6ec>] (drm_at
omic_commit+0x54/0x60)                                                          
[  116.466796]  r7:00000001 r6:c31af400 r5:c781ecc0 r4:00000000                 
[  116.466801] [<c06ed698>] (drm_atomic_commit) from [<c07057f0>] (drm_client_mo
deset_commit_atomic+0x20c/0x250)                                                
[  116.466825]  r7:00000001 r6:00000001 r5:c31af5b8 r4:c781ecc0                 
[  116.466829] [<c07055e4>] (drm_client_modeset_commit_atomic) from [<c070591c>]
 (drm_client_modeset_commit_locked+0x6c/0x194)                                  
[  116.466855]  r10:fffffe30 r9:c31af494 r8:c105dec4 r7:c3179bb4 r6:c3179b00 r5:
c3179b18                                                                        
[  116.466861]  r4:c31af400                                                     
[  116.466865] [<c07058b0>] (drm_client_modeset_commit_locked) from [<c0705a78>]
 (drm_client_modeset_commit+0x34/0x50)                                          
[  116.466890]  r9:c31af494 r8:c105dec4 r7:c3179bb4 r6:c1404c6c r5:c31af400 r4:c
3179b00                                                                         
[  116.466895] [<c0705a44>] (drm_client_modeset_commit) from [<c06d4ab4>] (__drm
_fb_helper_restore_fbdev_mode_unlocked+0xb0/0xd8)                               
[  116.466919]  r5:c3179b00 r4:00000000                                         
[  116.466923] [<c06d4a04>] (__drm_fb_helper_restore_fbdev_mode_unlocked) from [
<c06d4b44>] (drm_fbdev_client_restore+0x24/0x2c)                                
[  116.466946]  r7:c31af4a8 r6:c31af400 r5:c31af46c r4:c3179b00                 
[  116.466951] [<c06d4b20>] (drm_fbdev_client_restore) from [<c0704c48>] (drm_cl
ient_dev_restore+0x84/0xc8)                                                     
[  116.466969] [<c0704bc4>] (drm_client_dev_restore) from [<c06d7adc>] (drm_last
close+0x58/0x5c)                                                                
[  116.466993]  r9:c7899fb0 r8:c21bd6d0 r7:c31c6ec0 r6:c23e3c00 r5:c31af46c r4:c
31af400                                                                         
[  116.466998] [<c06d7a84>] (drm_lastclose) from [<c06d7bfc>] (drm_release+0x11c
/0x120)                                                                         
[  116.467018]  r5:c31af46c r4:c31af400                                         
[  116.467022] [<c06d7ae0>] (drm_release) from [<c033186c>] (__fput+0x84/0x240) 
[  116.467047]  r7:c38975d8 r6:c53041f8 r5:000a201f r4:c23e3c00                 
[  116.467051] [<c03317e8>] (__fput) from [<c0331a40>] (____fput+0x18/0x1c)     
[  116.467075]  r9:c7899fb0 r8:000004b4 r7:c148104c r6:c68821c0 r5:c688264c r4:0
0000000                                                                         
[  116.467080] [<c0331a28>] (____fput) from [<c014b2c4>] (task_work_run+0xb0/0xe
0)                                                                              
[  116.467100] [<c014b214>] (task_work_run) from [<c010ce3c>] (do_work_pending+0
x4f8/0x5e8)                                                                     
[  116.467124]  r9:c7899fb0 r8:c1304ecc r7:5ac3c35a r6:00656ed0 r5:c0100264 r4:f
fffe000                                                                         
[  116.467128] [<c010c944>] (do_work_pending) from [<c01000d0>] (slow_work_pendi
ng+0xc/0x20)                                                                    
[  116.467144] Exception stack(0xc7899fb0 to 0xc7899ff8)                        
[  116.467154] 9fa0:                                     00000000 00656e70 e2f2c
300 00000000                                                                    
[  116.467165] 9fc0: 00000000 0000000a 00656ed0 00000006 00656a30 0000000c 00656
e00 00000000                                                                    
[  116.467175] 9fe0: 00000006 bee3bb00 b6bab443 b6bad526 60010030 0000000a      
[  116.467187]  r10:00000006 r9:c7898000 r8:c0100264 r7:00000006 r6:00656ed0 r5:
0000000a                                                                        
[  116.467192]  r4:00000000                                                     
[  116.467196] ---[ end trace b4f26fbbab51460b ]---                             
[  126.682799] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[  126.682835] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:41:cr
tc-0] commit wait timed out                                                     
[  137.123864] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[  137.123896] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:
32:HDMI-A-1] commit wait timed out                                              
[  147.414445] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[  147.414478] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [PLANE:33:p
lane-0] commit wait timed out                                                   
[  147.414515] [drm:mtk_drm_crtc_atomic_begin] *ERROR* new event while there is 
still a pending event                                                           
[  147.524707] ------------[ cut here ]------------                             
[  147.524722] WARNING: CPU: 1 PID: 519 at drivers/gpu/drm/drm_atomic_helper.c:1
511 drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8                       
[  147.524755] [CRTC:41:crtc-0] vblank wait timed out                           
[  147.524761] Modules linked in: mt7615e mt7615_common mt76_connac_lib mt76 mac
80211 cfg80211 libarc4 lima gpu_sched spi_mt65xx pwm_mediatek mtk_pmic_keys ip_t
ables x_tables                                                                  
[  147.524828] CPU: 1 PID: 519 Comm: (agetty) Tainted: G        W         5.13.0
-bpi-r2-main #1                                                                 
[  147.524839] Hardware name: Mediatek Cortex-A7 (Device Tree)                  
[  147.524845] Backtrace:                                                       
[  147.524852] [<c0c8ebb8>] (dump_backtrace) from [<c0c8ef7c>] (show_stack+0x20/
0x24)                                                                           
[  147.524875]  r7:000005e7 r6:60010013 r5:00000000 r4:c13efb48                 
[  147.524880] [<c0c8ef5c>] (show_stack) from [<c0c92bec>] (dump_stack+0xcc/0xe0
)                                                                               
[  147.524896] [<c0c92b20>] (dump_stack) from [<c0126ed0>] (__warn+0xfc/0x114)  
[  147.524920]  r7:000005e7 r6:c06cc07c r5:00000009 r4:c1056038                 
[  147.524925] [<c0126dd4>] (__warn) from [<c0c8f678>] (warn_slowpath_fmt+0xa8/0
xd0)                                                                            
[  147.524946]  r7:c06cc07c r6:000005e7 r5:c1056038 r4:c10565a8                 
[  147.524950] [<c0c8f5d4>] (warn_slowpath_fmt) from [<c06cc07c>] (drm_atomic_he
lper_wait_for_vblanks.part.0+0x2a0/0x2a8)                                       
[  147.524974]  r8:00000000 r7:00000000 r6:00000001 r5:c6026340 r4:c52fc040     
[  147.524979] [<c06cbddc>] (drm_atomic_helper_wait_for_vblanks.part.0) from [<c
06cd72c>] (drm_atomic_helper_commit_tail_rpm+0x6c/0x7c)                         
[  147.525007]  r10:c52d4edc r9:c31af400 r8:c0d86474 r7:0000001b r6:1bd43aa3 r5:
c31af400                                                                        
[  147.525013]  r4:c6026340                                                     
[  147.525017] [<c06cd6c0>] (drm_atomic_helper_commit_tail_rpm) from [<c06cdcd8>
] (commit_tail+0xb0/0x1c8)                                                      
[  147.525039]  r5:00000000 r4:c6026340                                         
[  147.525043] [<c06cdc28>] (commit_tail) from [<c06cea98>] (drm_atomic_helper_c
ommit+0x144/0x168)                                                              
[  147.525068]  r9:c31af400 r8:c31db840 r7:00000000 r6:c31af400 r5:00000000 r4:c
6026340                                                                         
[  147.525073] [<c06ce954>] (drm_atomic_helper_commit) from [<c06ed6ec>] (drm_at
omic_commit+0x54/0x60)                                                          
[  147.525096]  r7:00000001 r6:c31af400 r5:c6026340 r4:00000000                 
[  147.525100] [<c06ed698>] (drm_atomic_commit) from [<c07057f0>] (drm_client_mo
deset_commit_atomic+0x20c/0x250)                                                
[  147.525123]  r7:00000001 r6:00000001 r5:c31af5b8 r4:c6026340                 
[  147.525128] [<c07055e4>] (drm_client_modeset_commit_atomic) from [<c070591c>]
 (drm_client_modeset_commit_locked+0x6c/0x194)                                  
[  147.525154]  r10:c530621c r9:c3179b18 r8:c31af400 r7:c3179bb4 r6:c3179b00 r5:
c3179b18                                                                        
[  147.525160]  r4:c31af400                                                     
[  147.525164] [<c07058b0>] (drm_client_modeset_commit_locked) from [<c06d5dbc>]
 (drm_fb_helper_pan_display+0xe4/0x200)                                         
[  147.525191]  r9:c3179b18 r8:c31af400 r7:c3179bb4 r6:c52fc800 r5:c3179b00 r4:0
0000000                                                                         
[  147.525196] [<c06d5cd8>] (drm_fb_helper_pan_display) from [<c0642800>] (fb_pa
n_display+0xac/0x120)                                                           
[  147.525220]  r10:00000000 r9:c52fc800 r8:00000438 r7:00000000 r6:00000000 r5:
c530621c                                                                        
[  147.525226]  r4:c52fc800                                                     
[  147.525230] [<c0642754>] (fb_pan_display) from [<c064de28>] (bit_update_start
+0x24/0x40)                                                                     
[  147.525255]  r9:c52fc800 r8:c13f8ba4 r7:c5306200 r6:c14ba8f4 r5:c5306200 r4:c
52fc800                                                                         
[  147.525260] [<c064de04>] (bit_update_start) from [<c0649b84>] (fbcon_switch+0
x320/0x46c)                                                                     
[  147.525281]  r5:c14ba7cc r4:c20f4400                                         
[  147.525285] [<c0649864>] (fbcon_switch) from [<c0695390>] (csi_J+0x1e8/0x1f4)
[  147.525308]  r10:c5d4740a r9:0000004a r8:0000004a r7:c5dc0a00 r6:0000004a r5:
c5dc0a00                                                                        
[  147.525313]  r4:c20f4400                                                     
[  147.525317] [<c06951a8>] (csi_J) from [<c06999e8>] (do_con_trol+0xb04/0x16b0)
[  147.525337]  r7:c5dc0a00 r6:0000004a r5:c5dc0a00 r4:c20f4400                 
[  147.525341] [<c0698ee4>] (do_con_trol) from [<c069a788>] (do_con_write+0x1f4/
0x564)                                                                          
[  147.525363]  r10:c5d4740a r9:0000004a r8:0000004a r7:c5dc0a00 r6:0000004a r5:
00000000                                                                        
[  147.525369]  r4:c20f4400                                                     
[  147.525372] [<c069a594>] (do_con_write) from [<c069ab78>] (con_write+0x1c/0x3
0)                                                                              
[  147.525394]  r10:e219226c r9:e2190000 r8:c0d56260 r7:c5d47400 r6:0000000a r5:
c5dc0a00                                                                        
[  147.525399]  r4:0000000a                                                     
[  147.525403] [<c069ab5c>] (con_write) from [<c06804c8>] (n_tty_write+0x210/0x4
f8)                                                                             
[  147.525423]  r5:c5dc0a00 r4:0000000a                                         
[  147.525427] [<c06802b8>] (n_tty_write) from [<c067b920>] (file_tty_write.cons
tprop.0+0x14c/0x2ac)                                                            
[  147.525450]  r10:c787c000 r9:c787def0 r8:00000400 r7:0000000a r6:0000000a r5:
c785fb40                                                                        
[  147.525456]  r4:c5dc0a00                                                     
[  147.525460] [<c067b7d4>] (file_tty_write.constprop.0) from [<c067bb48>] (tty_
write+0x1c/0x20)                                                                
[  147.525482]  r10:00000004 r9:00000000 r8:c787df60 r7:00000000 r6:0000000a r5:
00000000                                                                        
[  147.525488]  r4:c785fb40                                                     
[  147.525491] [<c067bb2c>] (tty_write) from [<c03301bc>] (vfs_write+0x270/0x3ec
)                                                                               
[  147.525510] [<c032ff4c>] (vfs_write) from [<c03304c8>] (ksys_write+0x74/0x100
)                                                                               
[  147.525534]  r9:0000000a r8:b6d703a4 r7:00000000 r6:00000000 r5:c785fb40 r4:c
785fb40                                                                         
[  147.525539] [<c0330454>] (ksys_write) from [<c033056c>] (sys_write+0x18/0x1c)
[  147.525562]  r9:c787c000 r8:c0100264 r7:00000004 r6:00000003 r5:b6d703a4 r4:0
0000074                                                                         
[  147.525567] [<c0330554>] (sys_write) from [<c0100060>] (ret_fast_syscall+0x0/
0x58)                                                                           
[  147.525585] Exception stack(0xc787dfa8 to 0xc787dff0)                        
[  147.525596] dfa0:                   00000074 b6d703a4 00000003 b6d703a4 00000
00a 00000000                                                                    
[  147.525607] dfc0: 00000074 b6d703a4 00000003 00000004 00000000 ffffffff 00661
436 005ecebc                                                                    
[  147.525616] dfe0: 00000004 beb12460 b6e755b3 b6dfe746                        
[  147.525622] ---[ end trace b4f26fbbab51460c ]---

mhm, lower resolutions are broken too…afair at least on 5.10 hdmi was working…so any commit breaks it

  • 5.10.11-bpi-r2-main is good on my normal monitor (1280x1024)
  • 5.10.32-bpi-r2-hnat is still good on normal monitor
  • 5.10.38-hnat+gmac2 is still good on this monitor

so 5.10 seems to have only troubles with 4k Monitor

5.13 is broken on my monitor

hangs at

[    7.071342] mediatek-drm mediatek-drm.1.auto: bound 14007000.ovl (ops mtk_dis
p_ovl_component_ops)                                                            
[    7.080330] mediatek-drm mediatek-drm.1.auto: bound 14008000.rdma (ops mtk_di
sp_rdma_component_ops)                                                          
[    7.089429] mediatek-drm mediatek-drm.1.auto: bound 1400b000.color (ops mtk_d
isp_color_component_ops)                                                        
[    7.098689] mediatek-drm mediatek-drm.1.auto: bound 14012000.rdma (ops mtk_di
sp_rdma_component_ops)                                                          
[    7.107814] mediatek-drm mediatek-drm.1.auto: bound 14014000.dpi (ops mtk_dpi
_component_ops)                                                                 
[    7.116338] mediatek-drm mediatek-drm.1.auto: Not creating crtc 1 because com
ponent 9 is disabled or missing                                                 
[    7.127276] [drm] Initialized mediatek 1.0.0 20150513 for mediatek-drm.1.auto
 on minor 0

and finally

[   38.403957] Console: switching to colour frame buffer device 160x64          
[   48.516398] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[   48.516422] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:41:cr
tc-0] commit wait timed out                                                     
[   58.756384] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[   58.756399] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:
32:HDMI-A-1] commit wait timed out                                              
[   68.996384] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out           
[   68.996399] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [PLANE:33:p
lane-0] commit wait timed out                                                   
[   68.996423] [drm:mtk_drm_crtc_atomic_begin] *ERROR* new event while there is 
still a pending event                                                           
[   69.106385] ------------[ cut here ]------------                             
[   69.106392] WARNING: CPU: 2 PID: 7 at drivers/gpu/drm/drm_atomic_helper.c:151
1 drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8                         
[   69.106414] [CRTC:41:crtc-0] vblank wait timed out
  • 5.11.0-bpi-r2-pci seems good on my monitor

  • 5.12-rc6 starts reporting this

    [ 6.929453] mediatek-dpi 14014000.dpi: Found bridge node: /hdmi@14015000
    [ 6.936492] mediatek-drm mediatek-drm.1.auto: bound 14007000.ovl (ops mtk_dis p_ovl_component_ops)
    [ 6.945479] mediatek-drm mediatek-drm.1.auto: bound 14008000.rdma (ops mtk_di sp_rdma_component_ops)
    [ 6.954571] mediatek-drm mediatek-drm.1.auto: bound 1400b000.color (ops mtk_d isp_color_component_ops)
    [ 6.963825] mediatek-drm mediatek-drm.1.auto: bound 14012000.rdma (ops mtk_di sp_rdma_component_ops)
    [ 6.972918] [drm:mtk_hdmi_bridge_attach] ERROR Fix bridge driver to make co nnector optional!
    [ 6.972939] mediatek-dpi 14014000.dpi: Failed to attach bridge: -22
    [ 6.987845] mediatek-drm mediatek-drm.1.auto: failed to bind 14014000.dpi (op s mtk_dpi_component_ops): -22
    [ 6.997647] mediatek-drm mediatek-drm.1.auto: master bind failed: -22
    [ 7.004146] mediatek-dpi 14014000.dpi: Failed to add component: -22
    [ 7.010468] mediatek-dpi: probe of 14014000.dpi failed with error -22

so at least something between 5.11 and 5.12 breaks current supported hdmi resolutions…and a generic 4k-problem (with forced 1080p)

there is a bunch of commits which may break between 5.11 and 5.12

$ git logone 5.11-main..5.12-main -- drivers/gpu/drm/mediatek/
54c820d05ee8 2021-02-05 Merge tag 'mediatek-drm-next-5.12' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-next 
738ed4156fba 2021-02-02 drm/mediatek: Add matrix_bits private data for ccorr 
dff16681723d 2021-02-02 drm/mediatek: Fix ccorr size config 
072a4cb512e7 2021-02-02 drm/mediatek: Separate ccorr module 
49629304b91f 2021-01-31 drm/mediatek: Enable dither function 
d41ff4dcf093 2021-01-29 drm/mediatek: Enable OVL_LAYER_SMI_ID_EN for multi-layer usecase 
641ef9e7be58 2021-01-29 drm/mediatek: Add support for SoC MT8183 
4a15d1ac37ea 2021-01-29 drm/mediatek: Add has_dither private data for gamma 
69a4237ab1d1 2021-01-29 drm/mediatek: Separate gamma module 
a6b7c98afdca 2021-01-29 drm/mediatek: Add mtk_dither_set_common() function 
e1e4f7fea375 2020-07-21 soc / drm: mediatek: Move mtk mutex driver to soc folder 
42a090b84598 2020-07-21 drm/mediatek: Automatically search unclaimed mtk mutex in mtk_mutex_get() 
4971593f8eb1 2020-07-21 drm/mediatek: Change disp/ddp term to mutex in mtk mutex driver 
8125bfa5bc40 2020-07-21 drm/mediatek: Rename file mtk_drm_ddp to mtk_mutex 
ad19ff82aaa7 2020-07-21 drm/mediatek: Remove redundant file including 
4d2598223da5 2021-01-07 drm/mediatek: Add fifo_size into rdma private data 
71dcadba3420 2021-01-11 drm/mediatek: Fix aal size config 
f01195148967 2020-12-03 drm/mediatek: mtk_dpi: Create connector for bridges 
b1d685b6467a 2021-01-11 drm/mediatek: Check if fb is null 
18589d74f45d 2021-01-07 Merge tag 'drm-misc-next-2020-12-17' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 
435884b06bc0 2020-12-25 drm/mediatek: dsi: Use IRQF_TRIGGER_NONE for dsi irq trigger type 
ff1395609e20 2020-10-13 drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver 
1d33f13a1be3 2020-10-12 drm/mediatek: DRM driver directly refer to sub driver's function 
9b0704988b15 2020-10-12 drm/mediatek: Register vblank callback function 
4d510659cf5d 2020-10-12 drm/mediatek: Change sub driver interface from mtk_ddp_comp to device 
616443ca577e 2020-10-08 drm/mediatek: Move cmdq_reg info from struct mtk_ddp_comp to sub driver private data 
f22a565d10e7 2020-08-28 drm/mediatek: Use struct cmdq_client_reg to gather cmdq variable 
993fd584942a 2020-08-28 drm/mediatek: Remove irq in struct mtk_ddp_comp 
3c87daefc5c3 2020-08-28 drm/mediatek: Move regs info from struct mtk_ddp_comp to sub driver private data 
c0d36de868a6 2020-08-28 drm/mediatek: Move clk info from struct mtk_ddp_comp to sub driver private data 
926df14ec571 2020-11-17 drm/mediatek: Separate getting larb device to a function 
6ea6f8276725 2020-10-19 drm/mediatek: Use correct device pointer to get CMDQ client register 
c822584e2791 2020-10-19 drm/mediatek: Get CMDQ client register for all ddp component 
6ca2ab8086af 2020-12-11 drm: automatic legacy gamma support 
ae75a0431f82 2020-12-15 Merge drm/drm-next into drm-misc-next 
c67e62790f5c 2020-10-08 drm/prime: split array import functions v4

the message “Fix bridge driver” was introduced with

a25b988ff83f 2020-02-26 drm/bridge: Extend bridge API to disable connector creation

did not found yet the timed out messages in mediatek…seems to come from core

crtc_commit_wait seems to be introduced by 5.13

$ grep -Rni 'crtc_commit_wait' drivers/gpu/drm/
drivers/gpu/drm/drm_atomic_helper.c:2208:		ret = drm_crtc_commit_wait(old_crtc_state->commit);
drivers/gpu/drm/drm_atomic_helper.c:2215:		ret = drm_crtc_commit_wait(old_conn_state->commit);
drivers/gpu/drm/drm_atomic_helper.c:2222:		ret = drm_crtc_commit_wait(old_plane_state->commit);
drivers/gpu/drm/vc4/vc4_kms.c:375:		ret = drm_crtc_commit_wait(old_hvs_state->fifo_state[channel].pending_commit);
drivers/gpu/drm/drm_atomic.c:56: * drm_crtc_commit_wait - Waits for a commit to complete
drivers/gpu/drm/drm_atomic.c:66:int drm_crtc_commit_wait(struct drm_crtc_commit *commit)
drivers/gpu/drm/drm_atomic.c:92:EXPORT_SYMBOL(drm_crtc_commit_wait);

$ git logone -S"drm_crtc_commit_wait" -- drivers/gpu/drm/
b99c2c95412c 2021-01-11 drm: Introduce a drm_crtc_commit_wait helper
1 Like

made a bisect between 5.11 and 5.12

turns out that this commit breaks

$ git bisect bad
f27893c49ec8129a0ddac135cd074cf25955e125 is the first bad commit
commit f27893c49ec8129a0ddac135cd074cf25955e125
Author: Hsin-Yi Wang <[email protected]>
Date:   Thu Dec 3 16:24:45 2020 +0800

    drm/mediatek: mtk_dpi: Create connector for bridges
    
    Similar to commit a9d9fea74be2
    ("drm/mediatek: mtk_dsi: Create connector for bridges"):
    
    Use the drm_bridge_connector helper to create a connector for pipelines
    that use drm_bridge. This allows splitting connector operations across
    multiple bridges when necessary, instead of having the last bridge in
    the chain creating the connector and handling all connector operations
    internally.
    
    Signed-off-by: Hsin-Yi Wang <[email protected]>
    Signed-off-by: Chun-Kuang Hu <[email protected]>

dmesg:

[    7.329314] mediatek-dpi 14014000.dpi: Found bridge node: /hdmi@14015000
[    7.336360] mediatek-drm mediatek-drm.1.auto: bound 14007000.ovl (ops mtk_disp_ovl_component_ops)
[    7.345310] mediatek-drm mediatek-drm.1.auto: bound 14008000.rdma (ops mtk_disp_rdma_component_ops)
[    7.354404] mediatek-drm mediatek-drm.1.auto: bound 1400b000.color (ops mtk_disp_color_component_ops)
[    7.363659] mediatek-drm mediatek-drm.1.auto: bound 14012000.rdma (ops mtk_disp_rdma_component_ops)
[    7.372752] [drm:mtk_hdmi_bridge_attach] *ERROR* Fix bridge driver to make connector optional!
[    7.372774] mediatek-dpi 14014000.dpi: Failed to attach bridge: -22
[    7.387686] mediatek-drm mediatek-drm.1.auto: failed to bind 14014000.dpi (ops mtk_dpi_component_ops): -22
[    7.397509] mediatek-drm mediatek-drm.1.auto: master bind failed: -22
[    7.404005] mediatek-dpi 14014000.dpi: Failed to add component: -22
[    7.410325] mediatek-dpi: probe of 14014000.dpi failed with error -22

mainline-commit:

f01195148967 2020-12-03 drm/mediatek: mtk_dpi: Create connector for bridges

When looking on the commit it seems that first line seems to break:

-	ret = drm_bridge_attach(&dpi->encoder, &dpi->bridge, NULL, 0);
+	ret = drm_bridge_attach(&dpi->encoder, &dpi->bridge, NULL,
+				DRM_BRIDGE_ATTACH_NO_CONNECTOR);
 	if (ret) {
 		dev_err(dev, "Failed to attach bridge: %d\n", ret);

I guess it’s related to the

 [drm:mtk_hdmi_bridge_attach] *ERROR* Fix bridge driver to make connector optional!

https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/tree/drivers/gpu/drm/mediatek/mtk_hdmi.c?h=mediatek-drm-next-5.12&id=f011951489678a9c679489136f5df064a86c84dd#n1311

But this seems to be fixed in 5.13,so there is another problem which breaks

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/mediatek/mtk_hdmi.c#n1287

i tried to add only the new part which allows the current binding (not returning -EINVAL if flag is set), but then it fails later (i guess because connector is not added).

commit 2e477391522354e763aa62ee3e281c1ad9e8eb1b
Author: Dafna Hirschfeld <[email protected]>
Date:   Tue Mar 30 13:09:02 2021 +0200

    drm/mediatek: Don't support hdmi connector creation

but i cannot apply the patch to the drm-next-5.12

tried now 5.12.14 which contains this fix too…and is also based on atomic patches…and this works…now i need a way to get the breaking commit between 5.12.14 and 5.13, but here i cannot do a bisect, but 5.13 resetted to this fix (2e4773915223) still do work…now i can do the bisect

while doing this i see multiple versions

  • be18cd1fcae2 shows warning about vblank timeout and purple screen without fbcon (like uboot for 1080p)
  • 01d713689441 do not show anything but also no crash/warning/backtrace
  • 16ae2044e91e same as above (no hdmi output but no traceback)
  • 2ba9bea2d368 same
  • 50eb842fe517 same, and i wonder why i see the “[drm:mtk_hdmi_bridge_attach] ERROR Fix bridge driver to make connector optional!” in dmesg as this should be shown no more as i set fix for this as good

my bisect log shows this:

$ git bisect log
git bisect start
# good: [2e477391522354e763aa62ee3e281c1ad9e8eb1b] drm/mediatek: Don't support hdmi connector creation
git bisect good 2e477391522354e763aa62ee3e281c1ad9e8eb1b
# bad: [562d8e0b1db85c9fecb71d30e489aa571fc5af85] mt76: enable load_eeprom_from_file
git bisect bad 562d8e0b1db85c9fecb71d30e489aa571fc5af85
# bad: [562d8e0b1db85c9fecb71d30e489aa571fc5af85] mt76: enable load_eeprom_from_file
git bisect bad 562d8e0b1db85c9fecb71d30e489aa571fc5af85
# bad: [be18cd1fcae2ed7db58d92d20733dfa8aa0a5173] Merge tag 'mmc-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
git bisect bad be18cd1fcae2ed7db58d92d20733dfa8aa0a5173
# bad: [be18cd1fcae2ed7db58d92d20733dfa8aa0a5173] Merge tag 'mmc-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
git bisect bad be18cd1fcae2ed7db58d92d20733dfa8aa0a5173
# bad: [01d7136894410a71932096e0fb9f1d301b6ccf07] Merge tag 'arm-soc-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect bad 01d7136894410a71932096e0fb9f1d301b6ccf07
# bad: [16ae2044e91e186d69390a8e67bc16141c3c406f] staging: rtl8723bs: Change controlling expressions
git bisect bad 16ae2044e91e186d69390a8e67bc16141c3c406f
# bad: [2ba9bea2d3682361f0f22f68a400bcee4248c205] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
git bisect bad 2ba9bea2d3682361f0f22f68a400bcee4248c205

and while running the bisect i do not see the fix-commit i defined as good at start…maybe this can be caused by merges?

restarted bisect and first (be18cd1fcae2) shows the backtrace

WARNING: CPU: 2 PID: 513 at drivers/gpu/drm/drm_atomic_helper.c:1511 drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8
...
[drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:41:crtc-0] commit wait timed out                                                                      
[  304.500682] [drm:drm_crtc_commit_wait] *ERROR* flip_done timed out                                                                                                            
[  304.506904] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:32:HDMI-A-1] commit wait timed out  

after defining this as bad (bisect stops at 01d7136894410a71932096e0fb9f1d301b6ccf07), the fix is no more included (but why???)

and i see another problem in 5.13: “watchdog: watchdog0: watchdog did not stop!” on reboot-command, but let us fix hdmi

Update july 9:

I have send the bug to mailinglist and it looks like a irq problem

http://lists.infradead.org/pipermail/linux-mediatek/2021-July/026583.html

Watchdog problem is caused by known commit in mtk_wdt.c and not related,wrote the author directly without mailinglist.

Update july 10:

Have found breaking commit and fixed it by adding back the missing function

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Fix is applied to my 5.13-main tree

@DeadMeat maybe this patch fixes 4k-problem?

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

1 Like

Tested with 5.13-main - works both fb and Xorg.

Maybe you want to backport it to last stable (5.10)?

Ok, I’ve found the patch that is required for threshold calculation (4k patch).

Patched 5.10 has been successfully compiled, but not yet tested.

Commits are in my 5.10-main branch. I’ll update the post after testing.

Tested, not works. Probably it was not the main patch to fix 4k.

Further digging into the source.

maybe this?

6385ed8eaa02 2021-05-26 drm/mediatek: dpi: Add dual edge sample mode support

is 5.13 (5.12,5.11) working with the patch…just to get a smaller diff…there is many in drm done between 5.10 and 5.14

I’ve tried 5.14-main, works - confirmed.

I meant going back from 5.13 with the path to get latest version working. Juste to limit count of patches needed. E.g. if 5.13 works and 5.12 not you can get diff/log between these 2

Sure, just tested 4k while testing wifi on 5.14. From my experience :

  • -5.10-main and any prior has hdmi working but w/o 4k.
  • -5.11 - not tested.
  • -5.12-hnat(not tested on main) - hdmi broken (bridge error, not sure if already fixed in 5.12-main )
  • -5.13-main - hdmi fixed, 4k works with the patch( not tested w/o it), also needs Fix cursor plane patch(already included to main tree)
  • -5.14-main - Everything works.(I see rdma threshold patch is already included).

I need some time to tested 5.12 and/or 5.11

Bridge error was fixed in stable 5.12.x,afair i have merged dot-release to 5.12-main,but not rebased 5.12-hnat.

edit: added patches to 5.12-hnat to fix the bridge-error (not tested), 5.11 was working afair

tested with 5.12-hnat, bridge error fixed, but 4k TV doesn’t work both with or w/o adjust rdma fifo threshold patch.

Looks like the problem was resolved in 5.13.

1 Like

Then it is a patch between 5.12 and 5.13…there are not much as between 5.10 and 5.13 :slight_smile:

This is the pull-request https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

This is the only looking related based on commit message:

dpi: Add check for max clock rate in mode_valid

Maybe ask dafna hirschfeld…

i tested with my 4k screen, and yes, 5.14 works.

got 5.13 working in fbdev, but not x-server with these patches on top of 5.12-hnat:

80a8321870da 2021-07-11 drm/mediatek: adjust rdma fifo threshold calculate formula  (HEAD -> 5.12-hnat)
c322ea15e69e 2021-05-26 drm/mediatek: dpi: Add dual edge sample mode support 
4c7d08917bef 2021-04-19 drm/mediatek: hdmi: Add check for CEA modes only

with while xserver is loading i get this trace:

[   40.820661] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CONNECTOR:32:HDMI-A-1] flip_done timed out                                
[   40.830685] [drm:mtk_drm_crtc_atomic_begin] *ERROR* new event while there is still a pending event                                           
[   40.940664] ------------[ cut here ]------------                                                                                             
[   40.945300] WARNING: CPU: 2 PID: 521 at drivers/gpu/drm/drm_atomic_helper.c:1512 drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8       
[   40.957448] [CRTC:41:crtc-0] vblank wait timed out                                                                                           
[   40.962272] Modules linked in:                                                                                                               
[   40.965341] CPU: 2 PID: 521 Comm: Xorg Tainted: G        W         5.12.0-bpi-r2-hnat #1                                                     
[   40.973432] Hardware name: Mediatek Cortex-A7 (Device Tree)                                                                                  
[   40.979000] Backtrace:                                                                                                                       
[   40.981447] [<c0c6edf0>] (dump_backtrace) from [<c0c6f1b4>] (show_stack+0x20/0x24)                                                           
[   40.989034]  r7:000005e8 r6:600e0013 r5:00000000 r4:c13ef860                                                                                 
[   40.994687] [<c0c6f194>] (show_stack) from [<c0c73010>] (dump_stack+0xcc/0xe0)                                                               
[   41.001915] [<c0c72f44>] (dump_stack) from [<c0126cd8>] (__warn+0xfc/0x114)                                                                  
[   41.008891]  r7:000005e8 r6:c06be158 r5:00000009 r4:c104da84                                                                                 
[   41.014543] [<c0126bdc>] (__warn) from [<c0c6f8b0>] (warn_slowpath_fmt+0xa8/0xd0)                                                            
[   41.022036]  r7:c06be158 r6:000005e8 r5:c104da84 r4:c104e034                                                                                 
[   41.027689] [<c0c6f80c>] (warn_slowpath_fmt) from [<c06be158>] (drm_atomic_helper_wait_for_vblanks.part.0+0x2a0/0x2a8)                       
[   41.038395]  r8:00000000 r7:00000000 r6:000001df r5:c65907c0 r4:c2389040                                                                     
[   41.045089] [<c06bdeb8>] (drm_atomic_helper_wait_for_vblanks.part.0) from [<c06bf808>] (drm_atomic_helper_commit_tail_rpm+0x6c/0x7c)         
[   41.057010]  r10:c2389800 r9:c2389040 r8:c0d8506c r7:00000004 r6:b7799405 r5:c2387c00                                                        
[   41.064833]  r4:c65907c0                                                                                                                     
[   41.067360] [<c06bf79c>] (drm_atomic_helper_commit_tail_rpm) from [<c06bfdb4>] (commit_tail+0xb0/0x1c4)                                      
[   41.076759]  r5:00000000 r4:c65907c0                                                                                                         
[   41.080329] [<c06bfd04>] (commit_tail) from [<c06c0b70>] (drm_atomic_helper_commit+0x144/0x168)                                              
[   41.089036]  r9:c2389040 r8:00000000 r7:00000000 r6:c2387c00 r5:00000000 r4:c65907c0                                                         
[   41.096771] [<c06c0a2c>] (drm_atomic_helper_commit) from [<c06df4a0>] (drm_atomic_commit+0x54/0x60)                                          
[   41.105827]  r7:00000000 r6:c2387c00 r5:c65907c0 r4:00000000                                                                                 
[   41.111480] [<c06df44c>] (drm_atomic_commit) from [<c06f9c38>] (drm_atomic_connector_commit_dpms+0xa4/0x104)                                 
[   41.121316]  r7:00000000 r6:c2389800 r5:c65907c0 r4:00000001                                                                                 
[   41.126969] [<c06f9b94>] (drm_atomic_connector_commit_dpms) from [<c06e7a64>] (drm_mode_obj_set_property_ioctl+0x1c8/0x440)                  
[   41.138108]  r9:00000000 r8:c5fad200 r7:c665fde4 r6:c2389814 r5:c65907c0 r4:c52aa500                                                         
[   41.145844] [<c06e789c>] (drm_mode_obj_set_property_ioctl) from [<c06e5b28>] (drm_connector_property_set_ioctl+0x5c/0x84)                    
[   41.156809]  r10:c01064ab r9:c5fad200 r8:c665fecc r7:c06e5acc r6:00000002 r5:00000000                                                        
[   41.164632]  r4:00000000                                                                                                                     
[   41.167159] [<c06e5acc>] (drm_connector_property_set_ioctl) from [<c06cc590>] (drm_ioctl_kernel+0xc8/0x10c)                                  
[   41.176907]  r5:c2387c00 r4:00000000                                                                                                         
[   41.180476] [<c06cc4c8>] (drm_ioctl_kernel) from [<c06cc7ec>] (drm_ioctl+0x218/0x408)                                                        
[   41.188316]  r9:c5fad200 r8:000000ab r7:c665fecc r6:c06e5acc r5:c0d79bc0 r4:00000010                                                         
[   41.196052] [<c06cc5d4>] (drm_ioctl) from [<c033faf0>] (sys_ioctl+0x88/0xb4)                                                                 
[   41.203116]  r10:00000036 r9:fffffdfd r8:c600e600 r7:be818a60 r6:c01064ab r5:c600e601                                                        
[   41.210939]  r4:fffffdfd                                                                                                                     
[   41.213467] [<c033fa68>] (sys_ioctl) from [<c0100060>] (ret_fast_syscall+0x0/0x58)                                                           
[   41.221043] Exception stack(0xc665ffa8 to 0xc665fff0)                                                                                        
[   41.226096] ffa0:                   00000000 be818a60 0000000c c01064ab be818a60 0061c550                                                    
[   41.234272] ffc0: 00000000 be818a60 c01064ab 00000036 0061ddd8 00000000 00000001 be818ad4                                                    
[   41.242445] ffe0: b6d3f094 be818a44 b6d2a0a3 b6a63f08                                                                                        
[   41.247496]  r9:c665e000 r8:c0100264 r7:00000036 r6:c01064ab r5:be818a60 r4:00000000                                                         
[   41.255282] ---[ end trace 37211af21b39311c ]---                                                                                             
[   55.595020] [drm:drm_atomic_helper_wait_for_dependencies] *ERROR* [CRTC:41:crtc-0] flip_done timed out

so i guess i only miss one/more of the atomic-patches, most of them cannot be applied due to many depencies

Sorry, i didn’t get if that was 5.13 or 5.12? In my case 5.13 needed patch for xorg cursor.

Tried 5.12-hnat…took patches from 5.13

have no mouse connected…only try to bootup into x-server with 4k-screen connected

Probably I’m doing smth wrong, but I can’t apply this patch(or i got wrong one):

Applying: dt-bindings: media: add pclk-sample dual edge property
error: patch failed: Documentation/devicetree/bindings/media/video-interfaces.txt:118
error: Documentation/devicetree/bindings/media/video-interfaces.txt: patch does not apply
Patch failed at 0001 dt-bindings: media: add pclk-sample dual edge property
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Could you plz provide a link to it on patchwork?

You do not need the dtbindings-patch…only code-change. But at least xserver still don’t work

have pushed my 5.10-hnat and 5.12-hnat branch

I’ve tried your 5.12-hnat - not works for me, including fb:

5.12-hnat.4k.txt (6.1 KB)

The dmesg is pretty the same as yours. The TV screen is corrupted.