Dsi no display for some kinds of monitors

Hi,

There are two different monitors A and B.

Our display resolution of HDMI and dsi is 1920x1080@30hz.

When we connnect HDMI to monitors A and B ,ubuntu desktop can be displayed normally on monitor A and B after startup.

When we connect dsi to monitor A,we can see ubuntu desktop on the monitor. But when we connect dsi to monitor B ,nothing shows on the monitor, the screen is black.

From log of the kernel, we have got some useful infomation.

For 1920x1080@30hz, its clock-frequency should be keeped with 74250000. But it shows 74338000.

[    2.273774] fun:tegra_dc_probe:4844 [DSI] ndev[ffffffc0fe248400]                                                                    
[    2.279014] tegradc tegradc.0: Display dc.54200000 registered with id=0                                                             
[    2.285518] Display dc.54200000 registered with id=0                                                                                
[    2.290473] of_dc_parse_platform_data: DC OR node is connected to /host1x/dsi                                                       
[    2.297709] display board info: id 0x0, fab 0x0                                                                                     
[    2.302595] OF_DC_LOG: fb bpp 32                                                                                                    
[    2.305278] OF_DC_LOG: fb flip on probe                                                                                             
[    2.309156] display board info: id 0x0, fab 0x0                                                                                     
[    2.313846] OF_DC_LOG: dsi controller vs DSI_VS_1                                                                                   
[    2.318275] OF_DC_LOG: n data lanes 4                                                                                               
[    2.322011] OF_DC_LOG: dsi video NONE_BURST_MODE_WITH_SYNC_END                                                                      
[    2.327723] OF_DC_LOG: dsi pixel format 24BIT_P                                                                                     
[    2.332241] OF_DC_LOG: dsi refresh rate 30                                                                                          
[    2.336304] OF_DC_LOG: dsi virtual channel 0                                                                                        
[    2.340570] OF_DC_LOG: dsi instance 0                                                                                               
[    2.344189] OF_DC_LOG: dsi panel reset 1                                                                                            
[    2.348087] OF_DC_LOG: dsi panel te polarity low 1                                                                                  
[    2.352866] OF_DC_LOG: dsi panel lp00 pre panel wakeup 1                                                                            
[    2.358155] OF_DC_LOG: dsi suspend_aggr 3                                                                                           
[    2.362152] OF_DC_LOG: dsi-lvds_bridge_enabled 1                                                                                    
[    2.366738] OF_DC_LOG: dsi te_gpio 194                                                                                              
[    2.370461] OF_DC_LOG: dpd_dsi_pads 4                                                                                               
[    2.374086] OF_DC_LOG: dpd_dsi_pads 12                                                                                              
[    2.377814] OF_DC_LOG: dsi power saving suspend 1                                                                                   
[    2.382518] OF_DC_LOG: dsi ulpm_not_supported 1                                                                                     
[    2.387002] OF_DC_LOG: dsi video type VIDEO_MODE                                                                                    
[    2.391605] OF_DC_LOG: dsi video clock mode CONTINUOUS                                                                              
[    2.396815] OF_DC_LOG: out_width 217                                                                                                
[    2.400286] OF_DC_LOG: out_height 135                                                                                               
[    2.403906] OF_DC_LOG: default_out flag 0                                                                                           
[    2.407891] OF_DC_LOG: parent clk pll_d_out0                                                                                        
[    2.412148] OF_DC_LOG: framebuffer xres 1920                                                                                        
[    2.416381] OF_DC_LOG: framebuffer yres 1080                                                                                        
[    2.420655] of_dc_parse_platform_data: could not find vrr-settings node                                                             
[    2.427218] of_dc_parse_platform_data: nvidia,hdmi-vrr-caps not present                                                             
[    2.433825] of_dc_parse_platform_data: could not find cmu node for adobeRGB                                                         
[    2.440768] OF_DC_LOG: nvidia,use-auto-pwm 0                                                                                        
[    2.444982] OF_DC_LOG: nvidia,hw-update-delay 0                                                                                     
[    2.449499] OF_DC_LOG: nvidia,bin-width -1                                                                                          
[    2.453562] OF_DC_LOG: nvidia,aggressiveness 5                                                                                      
[    2.457981] OF_DC_LOG: nvidia,use-vid-luma 0                                                                                        
[    2.462250] OF_DC_LOG: nvidia,phase-in-settings  0                                                                                  
[    2.466996] OF_DC_LOG: nvidia,phase-in-adjustments  0                                                                               
[    2.472032] OF_DC_LOG: nvidia,k-limit-enable  1                                                                                     
[    2.476528] OF_DC_LOG: nvidia,k-limit  200                                                                                          
[    2.480626] OF_DC_LOG: nvidia,sd-window-enable  0                                                                                   
[    2.485282] OF_DC_LOG: nvidia,soft-clipping-enable 1                                                                                
[    2.490233] OF_DC_LOG: nvidia,soft-clipping-threshold 128                                                                           
[    2.495596] OF_DC_LOG: nvidia,smooth-k-enable 1                                                                                     
[    2.500124] OF_DC_LOG: nvidia,smooth-k-incr 4                                                                                       
[    2.504436] OF_DC_LOG: nvidia,use-vpulse2 1                                                                                         
[    2.508595] OF_DC_LOG: nvidia,bl-device-name pwm-backlight                                                                          
[    2.514068] OF_DC_LOG: nvidia,coeff 5 9 2                                                                                           
[    2.518043] OF_DC_LOG: nvidia,fc 0 0                                                                                                
[    2.521619] OF_DC_LOG: nvidia,blp 1024 255                                                                                          
[    2.525678] OF_DC_LOG: of pclk 74250000                                                                                             
[    2.529500] OF_DC_LOG: cmu csc 0x138                                                                                                
[    2.533033] OF_DC_LOG: cmu csc 0x3ba                                                                                                
[    2.536586] OF_DC_LOG: cmu csc 0xd                                                                                                  
[    2.539989] OF_DC_LOG: cmu csc 0x3f5                                                                                                
[    2.543520] OF_DC_LOG: cmu csc 0x120                                                                                                
[    2.547073] OF_DC_LOG: cmu csc 0x3e6                                                                                                
[    2.550636] OF_DC_LOG: cmu csc 0x3fe                                                                                                
[    2.554180] OF_DC_LOG: cmu csc 0x3f8                                                                                                
[    2.557733] OF_DC_LOG: cmu csc 0xe9                                                                                                 
[    2.561257] OF_DC_LOG: dc flags 1                                                                                                   
[    2.564497] OF_DC_LOG: emc clk rate 300000000                                                                                       
[    2.568832] tegradc tegradc.0: DT parsed successfully                                                                               
[    2.574018] tegradc tegradc.0: _tegra_dc_set_mode():MODE:1920x1080@30.000Hz pclk=74250000                                           
[    2.582038] [DSI]tegra_dc_set_out:2852  type[2]                                                                                     
[    2.586466] i2c_new_device: name=dsi2lvds_bridge                                                                                    
[    2.591209] pos:[i2c_register_driver:1424] res[0] driver[dsi2lvds_bridge] registered                                                
[    2.598819] pos:[i2c_register_driver:1438] res[0] driver[dsi2lvds_bridge] registered                                                
[    2.606574] tegradc tegradc.0: DSI: HS clock rate is 223000                                                                         
[    2.612576] [DSI]tegra_dc_probe type[2] pclk[74250000]                                                                              
[    2.617311] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74250000]                                                                       
[    2.622948] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74250000]                                                            
[    2.629699] [DDDDDDSI]tegra_dc_init type[2] pclk[74250000]                                                                          
[    2.636172] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74250000]                                                                  
[    2.641232] tegradc tegradc.0: tegra_dc_program_mode():MODE:1920x1080@30.000Hz pclk=74250000                                        
[    2.649632] nominal-pclk:type[2] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500                                   
[    2.658490] DDDDD  failed_init == 0                                                                                                 
[    2.717997] tegra_get_platform=0                                                                                                    
[    2.719260] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[    2.725735] tegradc tegradc.0: dsi: TaSure mipi range violated                                                                      
[    2.731551] tegradc tegradc.0: dsi: mipi range violated                                                                             
[    2.741877] tegra_get_platform=0                                                                                                    
[    2.743111] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[    2.749625] tegradc tegradc.0: dsi: TaSure mipi range violated                                                                      
[    2.755418] tegradc tegradc.0: dsi: mipi range violated                                                                             
[    2.766405] dsi2lvds_config_lvds value=120                                                                                          
[    2.768503] dsi ttttt                                                                                                               
[    3.112002] tegra_get_platform=0                                                                                                    
[    3.113237] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[    3.119871] tegradc tegradc.0: probed                                                                                               
[    3.202211] tegradc tegradc.0: _tegra_dc_set_mode():MODE:1920x1080@30.035Hz pclk=74338000                                           
[    3.208788] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74338000]                                                                  
[    3.208798] tegradc tegradc.0: tegra_dc_program_mode():MODE:1920x1080@30.035Hz pclk=74338000                                        
[    3.208819] nominal-pclk:type[2] 74338000 parent:222998438 div:3.0 pclk:74332812 73594620~81028420                                  
[    3.224965] Console: switching to colour frame buffer device 240x67                                                                 
[    3.268042] tegradc tegradc.0: fb registered                                                                                        
[    3.272407] fun:tegra_dc_probe:4844 [DSI] ndev[ffffffc0fe248000]                                                                    
[    3.278279] tegradc tegradc.1: Display dc.54240000 registered with id=1                                                             
[    3.284856] Display dc.54240000 registered with id=1                                                                                
[    3.289765] of_dc_parse_platform_data: DC OR node is connected to /host1x/sor1                                                      
[    3.297083] OF_DC_LOG: fb bpp 32                                                                                                    
[    3.300151] OF_DC_LOG: fb flip on probe                                                                                             
[    3.304025] parse_tmds_config: No tmds-config node                                                                                  
[    3.308813] OF_DC_LOG: out_dcc bus 3                                                                                                
[    3.312292] OF_DC_LOG: default_out flag 2                                                                                           
[    3.316251] OF_DC_LOG: tegra dc align msb                                                                                           
[    3.320268] OF_DC_LOG: tegra order red to blue                                                                                      
[    3.324664] OF_DC_LOG: parent clk pll_d2                                                                                            
[    3.328559] of_dc_parse_platform_data: could not find vrr-settings node                                                             
[    3.335187] of_dc_parse_platform_data: nvidia,hdmi-vrr-caps not present                                                             
[    3.341785] of_dc_parse_platform_data: could not find SD settings node                                                              
[    3.348262] of_dc_parse_platform_data: could not find cmu node                                                                      
[    3.354073] of_dc_parse_platform_data: could not find cmu node for adobeRGB                                                         
[    3.361031] OF_DC_LOG: dc flags 1                                                                                                   
[    3.364258] OF_DC_LOG: emc clk rate 300000000                                                                                       
[    3.368601] OF_DC_LOG: cmu enable 1                                                                                                 
[    3.372075] tegradc tegradc.1: DT parsed successfully                                                                               
[    3.377367] hdmi: couldn't get regulator vdd_hdmi_5v0                                                                               
[    3.382168] [DSI]tegra_dc_set_out:2852  type[1]                                                                                     
[    3.386639] i2c_new_device: name=tegra_hdmi2.0                                                                                      
[    3.391130] i2c_new_device: name=tegra_hdmi_scdc                                                                                    
[    3.395793] gpio wake53 for gpio=225                                                                                                
[    4.399119] tegradc tegradc.1: _tegra_dc_set_mode():MODE:1920x1080@30.000Hz pclk=74250000                                           
[    4.405983] [DSI]tegra_dc_probe type[1] pclk[74250000]                                                                              
[    4.411632] edid invalid                                                                                                            
[    4.412966] tegradc tegradc.1: tegra_dc_program_mode():MODE:1920x1080@30.000Hz pclk=74250000                                        
[    4.421484] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500                                   
[    4.430309] DDDDD  failed_init == 0                                                                                                 
[    4.783854] edid invalid                                                                                                            
[    4.787933] edid invalid                                                                                                            
[    4.792551] tegradc tegradc.1: probed                                                                                               
[    4.876950] tegradc tegradc.1: fb registered                                                                                        
[    4.883204] pos:[i2c_register_driver:1424] res[0] driver[tegra_edid] registered                                                     
[    4.892056] pos:[i2c_register_driver:1438] res[0] driver[tegra_edid] registered
[   19.505950] tegra_get_platform=0                                                                                                    
[   19.505957] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   19.517276] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74000000]                                                                       
[   19.517283] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74000000]                                                            
[   19.517365] [DDDDDDSI]tegra_dc_init type[2] pclk[74000000]                                                                          
[   19.522650] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74000000]                                                                  
[   19.522722] nominal-pclk:type[2] 74000000 parent:222000000 div:3.0 pclk:74000000 73260000~80660000                                  
[   19.579052] tegra_get_platform=0                                                                                                    
[   19.579055] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   19.584594] tegra_get_platform=0                                                                                                    
[   19.584596] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   19.922671] tegra_get_platform=0                                                                                                    
[   19.922696] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   20.030226] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500                                   
[  OK  ] Created slice User Slice of ubuntu.                                                                                           
         Starting User Manager for UID 1000...                                                                                         
[  OK  ] Started Session c1 of user ubuntu.                                                                                            
         Starting RealtimeKit Scheduling Policy Service...                                                                             
[  OK  ] Started RealtimeKit Scheduling Policy Service.                                                                                
         Starting Bluetooth service...                                                                                                 
[  OK  ] Started Bluetooth service.                                                                                                    
[  OK  ] Started User Manager for UID 1000.                                                                                            
         Starting Daemon for power management...                                                                                       
[  OK  ] Started Daemon for power management.                                                                                          
[   23.956044] tegra_get_platform=0                                                                                                    
[   23.956047] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   23.968228] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74000000]                                                                       
[   23.968230] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74000000]                                                            
[   23.968265] [DDDDDDSI]tegra_dc_init type[2] pclk[74000000]                                                                          
[   23.971521] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74000000]                                                                  
[   23.971551] nominal-pclk:type[2] 74000000 parent:222000000 div:3.0 pclk:74000000 73260000~80660000                                  
[   24.062192] tegra_get_platform=0                                                                                                    
[   24.062195] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   24.067563] tegra_get_platform=0                                                                                                    
[   24.067565] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   24.402066] tegra_get_platform=0                                                                                                    
[   24.402069] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   24.572915] tegra_get_platform=0                                                                                                    
[   24.572918] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   24.584679] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74000000]                                                                       
[   24.584682] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74000000]                                                            
[   24.584731] [DDDDDDSI]tegra_dc_init type[2] pclk[74000000]                                                                          
[   24.590291] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74000000]                                                                  
[   24.590338] nominal-pclk:type[2] 74000000 parent:222000000 div:3.0 pclk:74000000 73260000~80660000                                  
[   24.647140] tegra_get_platform=0                                                                                                    
[   24.647143] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   24.652482] tegra_get_platform=0                                                                                                    
[   24.652484] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   24.992136] tegra_get_platform=0                                                                                                    
[   24.992138] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   25.056687] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500                                   
[   25.462684] tegra_get_platform=0                                                                                                    
[   25.462687] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   25.474188] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74000000]                                                                       
[   25.474190] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74000000]                                                            
[   25.474235] [DDDDDDSI]tegra_dc_init type[2] pclk[74000000]                                                                          
[   25.478789] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74000000]                                                                  
[   25.478833] nominal-pclk:type[2] 74000000 parent:222000000 div:3.0 pclk:74000000 73260000~80660000                                  
[   25.536522] tegra_get_platform=0                                                                                                    
[   25.536525] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   25.541814] tegra_get_platform=0                                                                                                    
[   25.541816] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   25.882695] tegra_get_platform=0                                                                                                    
[   25.882720] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[   25.983420] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500
We can find taht  the clock-frequency is changed after serveral lines error message 
] tegra_get_platform=0                                                                                                    
[    2.719260] clk_ps=2252 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                              
[    2.725735] tegradc tegradc.0: dsi: TaSure mipi range violated                                                                      
[    2.731551] tegradc tegradc.0: dsi: mipi range violated

Does this the root cause of the problem? How can solve it?

Or there are other reasons?

Is there any suggestions to figure it out?

Thanks in advance.

Hi anhuimain,

Few questions needed your answer

  1. So monitor A and B are two display with both DSI and HDMI connector?
  2. When you said “HDMI to monitors A and B” and “dsi to monitor A B”, did you mean the hdmi port to two monitors and dsi port to two monitors"?
  3. Are monitor A and B identical?

Please note that dsi driver does not read panel/display edid. The definition of each panel is listed in the device tree(dts), so it is possible that one monitor is working while the other one is down.

Also, the pclk is not precise is a normal behavior when parent clock cannot round up to precise value.

Hi, WayneWWW

I was told that the DSI and HDMI signal was all converted to sdi signal and we connected them to sdi interface of monitor with sdi wire.

I also just learned that the dsi signal was passed to FPGA before output for display.

And the ip core of the FPGA only supports fixed value of 74250000. Any not precise pclk would make FPGA output improperly.

I can’t understand too much for this. I am sorry for that my statement may not correct enough.

So I want to know weather there is a way to fix the pclk at 74250000 just like the HDMI edid.

The two monitor is different. The A monitor which we bought from market has better compatibility and can display a range of frequency but monitor B which is custom from customer can’t.

Thanks!

Such issue has been discussed in past.

Below user also needs precise clk and he has a workaround.
https://devtalk.nvidia.com/default/topic/1025631/jetson-tx1/1080p60-video-refresh-of-dsi-output-can-t-reach-60hz-/post/5219620/#5219620

Hi, WayneWWW

I just modified the source code of kernel.

My driver version is r24.2.1.

And I comment below four lines

static void tegra_dsi_set_dsi_clk(struct tegra_dc *dc,
			struct tegra_dc_dsi_data *dsi, u32 clk)
{
	//u32 rm;   // line 1
	u32 pclk_khz;

	/* Round up to MHz */
	//rm = clk % 1000; // line 2
	//if (rm != 0)    //  line 3
	//	clk -= rm;  // line 4

	/* Set up pixel clock */
	pclk_khz = (clk * dsi->shift_clk_div.div) /
				dsi->shift_clk_div.mul;

The kernel log definitely has some change. But it can’t figure it out.

I run xrander

It shows

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DSI-0 connected primary 1920x1080+0+0 (0x18d) normal (normal left inverted right x axis y axis) 0mm x 0mm
        Identifier: 0x18c
        Timestamp:  25189
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:    
        CRTC:       0                                                                                                                 
        CRTCs:      0 1                                                                                                               
        Transform:  1.000000 0.000000 0.000000                                                                                        
                    0.000000 1.000000 0.000000                                                                                        
                    0.000000 0.000000 1.000000                                                                                        
                   filter:                                                                                                            
        TegraOverlayBlendmode: Opaque                                                                                                 
                supported: Opaque, SourceAlphaBlend, PremultSourceAlphaBlend                                                          
        TegraOverlayPriority: 255                                                                                                     
                range: (0, 255)                                                                                                       
        BorderDimensions: 4                                                                                                           
                supported: 4                                                                                                          
        Border: 0 0 0 0                                                                                                               
                range: (0, 65535)                                                                                                     
        SignalFormat: TMDS                                                                                                            
                supported: TMDS                                                                                                       
        ConnectorType: Panel                                                                                                          
  1920x1080 (0x18d) 74.338MHz *current +preferred                                                                                     
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  33.79KHz                                                       
        v: height 1080 start 1084 end 1089 total 1125           clock  30.04Hz                                                        
HDMI-0 connected 1920x1080+0+0 (0x18f) normal (normal left inverted right x axis y axis) 0mm x 0mm                                    
        Identifier: 0x18e                                                                                                             
        Timestamp:  25189                                                                                                             
        Subpixel:   unknown                                                                                                           
        Gamma:      1.0:1.0:1.0                                                                                                       
        Brightness: 1.0                                                                                                               
        Clones:                                                                                                                       
        CRTC:       1                                                                                                                 
        CRTCs:      0 1                                                                                                               
        Transform:  1.000000 0.000000 0.000000                                                                                        
                    0.000000 1.000000 0.000000                                                                                        
                    0.000000 0.000000 1.000000                                                                                        
                   filter:                                                                                                            
        TegraOverlayBlendmode: Opaque                                                                                                 
                supported: Opaque, SourceAlphaBlend, PremultSourceAlphaBlend                                                          
        TegraOverlayPriority: 255                                                                                                     
                range: (0, 255)                                                                                                       
        BorderDimensions: 4                                                                                                           
                supported: 4                                                                                                          
        Border: 0 0 0 0                                                                                                               
                range: (0, 65535)                                                                                                     
        SignalFormat: TMDS                                                                                                            
                supported: TMDS                                                                                                       
        ConnectorType: HDMI                                                                                                           
  1920x1080 (0x18f) 74.250MHz *current +preferred                                                                                     
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  33.75KHz                                                       
        v: height 1080 start 1084 end 1089 total 1125           clock  30.00Hz

The dsi is still 74.338MHz

The kernel log

[    2.273717] fun:tegra_dc_probe:4844 [DSI] ndev[ffffffc0fe248400]                                                        
[    2.278922] tegradc tegradc.0: Display dc.54200000 registered with id=0                                                 
[    2.285495] Display dc.54200000 registered with id=0                                                                    
[    2.290415] of_dc_parse_platform_data: DC OR node is connected to /host1x/dsi                                           
[    2.297655] display board info: id 0x0, fab 0x0                                                                         
[    2.302570] OF_DC_LOG: fb bpp 32                                                                                        
[    2.305221] OF_DC_LOG: fb flip on probe                                                                                 
[    2.309077] display board info: id 0x0, fab 0x0                                                                         
[    2.313803] OF_DC_LOG: dsi controller vs DSI_VS_1                                                                       
[    2.318219] OF_DC_LOG: n data lanes 4                                                                                   
[    2.321956] OF_DC_LOG: dsi video NONE_BURST_MODE_WITH_SYNC_END                                                          
[    2.327666] OF_DC_LOG: dsi pixel format 24BIT_P                                                                         
[    2.332184] OF_DC_LOG: dsi refresh rate 30                                                                              
[    2.336248] OF_DC_LOG: dsi virtual channel 0                                                                            
[    2.340514] OF_DC_LOG: dsi instance 0                                                                                   
[    2.344133] OF_DC_LOG: dsi panel reset 1                                                                                
[    2.348030] OF_DC_LOG: dsi panel te polarity low 1                                                                      
[    2.352810] OF_DC_LOG: dsi panel lp00 pre panel wakeup 1                                                                
[    2.358100] OF_DC_LOG: dsi suspend_aggr 3                                                                               
[    2.362096] OF_DC_LOG: dsi-lvds_bridge_enabled 1                                                                        
[    2.366682] OF_DC_LOG: dsi te_gpio 194                                                                                  
[    2.370404] OF_DC_LOG: dpd_dsi_pads 4                                                                                   
[    2.374030] OF_DC_LOG: dpd_dsi_pads 12                                                                                  
[    2.377758] OF_DC_LOG: dsi power saving suspend 1                                                                       
[    2.382463] OF_DC_LOG: dsi ulpm_not_supported 1                                                                         
[    2.386945] OF_DC_LOG: dsi video type VIDEO_MODE                                                                        
[    2.391549] OF_DC_LOG: dsi video clock mode CONTINUOUS                                                                  
[    2.396753] OF_DC_LOG: out_width 217                                                                                    
[    2.400229] OF_DC_LOG: out_height 135                                                                                   
[    2.403850] OF_DC_LOG: default_out flag 0                                                                               
[    2.407835] OF_DC_LOG: parent clk pll_d_out0                                                                            
[    2.412090] OF_DC_LOG: framebuffer xres 1920                                                                            
[    2.416324] OF_DC_LOG: framebuffer yres 1080                                                                            
[    2.420598] of_dc_parse_platform_data: could not find vrr-settings node                                                 
[    2.427162] of_dc_parse_platform_data: nvidia,hdmi-vrr-caps not present                                                 
[    2.433770] of_dc_parse_platform_data: could not find cmu node for adobeRGB                                             
[    2.440712] OF_DC_LOG: nvidia,use-auto-pwm 0                                                                            
[    2.444925] OF_DC_LOG: nvidia,hw-update-delay 0                                                                         
[    2.449441] OF_DC_LOG: nvidia,bin-width -1                                                                              
[    2.453505] OF_DC_LOG: nvidia,aggressiveness 5                                                                          
[    2.457924] OF_DC_LOG: nvidia,use-vid-luma 0                                                                            
[    2.462193] OF_DC_LOG: nvidia,phase-in-settings  0                                                                      
[    2.466939] OF_DC_LOG: nvidia,phase-in-adjustments  0                                                                   
[    2.471976] OF_DC_LOG: nvidia,k-limit-enable  1                                                                         
[    2.476471] OF_DC_LOG: nvidia,k-limit  200                                                                              
[    2.480567] OF_DC_LOG: nvidia,sd-window-enable  0                                                                       
[    2.485226] OF_DC_LOG: nvidia,soft-clipping-enable 1                                                                    
[    2.490177] OF_DC_LOG: nvidia,soft-clipping-threshold 128                                                               
[    2.495539] OF_DC_LOG: nvidia,smooth-k-enable 1                                                                         
[    2.500067] OF_DC_LOG: nvidia,smooth-k-incr 4                                                                           
[    2.504380] OF_DC_LOG: nvidia,use-vpulse2 1                                                                             
[    2.508538] OF_DC_LOG: nvidia,bl-device-name pwm-backlight                                                              
[    2.514011] OF_DC_LOG: nvidia,coeff 5 9 2                                                                               
[    2.517987] OF_DC_LOG: nvidia,fc 0 0                                                                                    
[    2.521562] OF_DC_LOG: nvidia,blp 1024 255                                                                              
[    2.525620] OF_DC_LOG: of pclk 74250000                                                                                 
[    2.529443] OF_DC_LOG: cmu csc 0x138                                                                                    
[    2.532977] OF_DC_LOG: cmu csc 0x3ba                                                                                    
[    2.536529] OF_DC_LOG: cmu csc 0xd                                                                                      
[    2.539932] OF_DC_LOG: cmu csc 0x3f5                                                                                    
[    2.543463] OF_DC_LOG: cmu csc 0x120                                                                                    
[    2.547016] OF_DC_LOG: cmu csc 0x3e6                                                                                    
[    2.550580] OF_DC_LOG: cmu csc 0x3fe                                                                                    
[    2.554123] OF_DC_LOG: cmu csc 0x3f8                                                                                    
[    2.557676] OF_DC_LOG: cmu csc 0xe9                                                                                     
[    2.561200] OF_DC_LOG: dc flags 1                                                                                       
[    2.564440] OF_DC_LOG: emc clk rate 300000000                                                                           
[    2.568775] tegradc tegradc.0: DT parsed successfully                                                                   
[    2.573953] tegradc tegradc.0: _tegra_dc_set_mode():MODE:1920x1080@30.000Hz pclk=74250000                               
[    2.581989] [DSI]tegra_dc_set_out:2852  type[2]                                                                         
[    2.586407] i2c_new_device: name=dsi2lvds_bridge                                                                        
[    2.591152] pos:[i2c_register_driver:1424] res[0] driver[dsi2lvds_bridge] registered                                    
[    2.598763] pos:[i2c_register_driver:1438] res[0] driver[dsi2lvds_bridge] registered                                    
[    2.606519] tegradc tegradc.0: DSI: HS clock rate is 223000                                                             
[    2.612542] [DSI]tegra_dc_probe type[2] pclk[74250000]                                                                  
[    2.617254] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74250000]                                                           
[    2.622888] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74250000]                                                
[    2.629638] [DDDDDDSI]tegra_dc_init type[2] pclk[74250000]                                                              
[    2.636115] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74250000]                                                      
[    2.641177] tegradc tegradc.0: tegra_dc_program_mode():MODE:1920x1080@30.000Hz pclk=74250000                            
[    2.649576] nominal-pclk:type[2] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500                       
[    2.658434] DDDDD  failed_init == 0                                                                                     
[    2.717938] tegra_get_platform=0                                                                                        
[    2.719172] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[    2.725701] tegradc tegradc.0: dsi: TaSure mipi range violated                                                          
[    2.731491] tegradc tegradc.0: dsi: mipi range violated                                                                 
[    2.738800] tegra_get_platform=0                                                                                        
[    2.740060] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[    2.746536] tegradc tegradc.0: dsi: TaSure mipi range violated                                                          
[    2.752354] tegradc tegradc.0: dsi: mipi range violated                                                                 
[    2.763339] dsi2lvds_config_lvds value=120                                                                              
[    2.765441] dsi ttttt                                                                                                   
[    3.102334] tegra_get_platform=0                                                                                        
[    3.103570] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[    3.110190] tegradc tegradc.0: probed                                                                                   
[    3.192247] tegradc tegradc.0: _tegra_dc_set_mode():MODE:1920x1080@30.035Hz pclk=74338000                               
[    3.198830] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74338000]                                                      
[    3.198839] tegradc tegradc.0: tegra_dc_program_mode():MODE:1920x1080@30.035Hz pclk=74338000                            
[    3.198860] nominal-pclk:type[2] 74338000 parent:222998438 div:3.0 pclk:74332812 73594620~81028420                      
[    3.214987] Console: switching to colour frame buffer device 240x67                                                     
[    3.258066] tegradc tegradc.0: fb registered                                                                            
[    3.262441] fun:tegra_dc_probe:4844 [DSI] ndev[ffffffc0fe248000]                                                        
[    3.268302] tegradc tegradc.1: Display dc.54240000 registered with id=1                                                 
[    3.274861] Display dc.54240000 registered with id=1                                                                    
[    3.279798] of_dc_parse_platform_data: DC OR node is connected to /host1x/sor1                                          
[    3.287116] OF_DC_LOG: fb bpp 32                                                                                        
[    3.290159] OF_DC_LOG: fb flip on probe                                                                                 
[    3.294044] parse_tmds_config: No tmds-config node                                                                      
[    3.298837] OF_DC_LOG: out_dcc bus 3                                                                                    
[    3.302331] OF_DC_LOG: default_out flag 2                                                                               
[    3.306275] OF_DC_LOG: tegra dc align msb                                                                               
[    3.310270] OF_DC_LOG: tegra order red to blue                                                                          
[    3.314687] OF_DC_LOG: parent clk pll_d2                                                                                
[    3.318584] of_dc_parse_platform_data: could not find vrr-settings node                                                 
[    3.325225] of_dc_parse_platform_data: nvidia,hdmi-vrr-caps not present                                                 
[    3.331797] of_dc_parse_platform_data: could not find SD settings node                                                  
[    3.338285] of_dc_parse_platform_data: could not find cmu node                                                          
[    3.344105] of_dc_parse_platform_data: could not find cmu node for adobeRGB                                             
[    3.351043] OF_DC_LOG: dc flags 1                                                                                       
[    3.354281] OF_DC_LOG: emc clk rate 300000000                                                                           
[    3.358625] OF_DC_LOG: cmu enable 1                                                                                     
[    3.362112] tegradc tegradc.1: DT parsed successfully                                                                   
[    3.367396] hdmi: couldn't get regulator vdd_hdmi_5v0                                                                   
[    3.372173] [DSI]tegra_dc_set_out:2852  type[1]                                                                         
[    3.376663] i2c_new_device: name=tegra_hdmi2.0                                                                          
[    3.381173] i2c_new_device: name=tegra_hdmi_scdc                                                                        
[    3.385815] gpio wake53 for gpio=225                                                                                    
[    4.389434] tegradc tegradc.1: _tegra_dc_set_mode():MODE:1920x1080@30.000Hz pclk=74250000                               
[    4.396262] [DSI]tegra_dc_probe type[1] pclk[74250000]                                                                  
[    4.401958] edid invalid                                                                                                
[    4.403282] tegradc tegradc.1: tegra_dc_program_mode():MODE:1920x1080@30.000Hz pclk=74250000                            
[    4.411774] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500                       
[    4.420639] DDDDD  failed_init == 0                                                                                     
[    4.774169] edid invalid                                                                                                
[    4.778237] edid invalid                                                                                                
[    4.782865] tegradc tegradc.1: probed                                                                                   
[    4.867265] tegradc tegradc.1: fb registered                                                                            
[    4.873410] pos:[i2c_register_driver:1424] res[0] driver[tegra_edid] registered                                         
[    4.882182] pos:[i2c_register_driver:1438] res[0] driver[tegra_edid] registered
[   19.096694] tegra_get_platform=0                                                                                        
[   19.096700] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   19.108049] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74250000]                                                           
[   19.108054] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74250000]                                                
[   19.108136] [DDDDDDSI]tegra_dc_init type[2] pclk[74250000]                                                              
[   19.115250] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74250000]                                                      
[   19.115317] nominal-pclk:type[2] 74250000 parent:222750000 div:3.0 pclk:74250000 73507500~80932500                      
[   19.171583] tegra_get_platform=0                                                                                        
[   19.171586] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   19.173850] tegra_get_platform=0                                                                                        
[   19.173852] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   19.513094] tegra_get_platform=0                                                                                        
[   19.513123] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   19.621214] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500                       
[  OK  ] Created slice User Slice of ubuntu.                                                                               
         Starting User Manager for UID 1000...                                                                             
[  OK  ] Started Session c1 of user ubuntu.                                                                                
         Starting RealtimeKit Scheduling Policy Service...                                                                 
[  OK  ] Started RealtimeKit Scheduling Policy Service.                                                                    
         Starting Bluetooth service...                                                                                     
[  OK  ] Started Bluetooth service.                                                                                        
[  OK  ] Started User Manager for UID 1000.                                                                                
         Starting Daemon for power management...                                                                           
[  OK  ] Started Daemon for power management.                                                                              
[   23.712859] tegra_get_platform=0                                                                                        
[   23.712862] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   23.724411] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74250000]                                                           
[   23.724413] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74250000]                                                
[   23.724450] [DDDDDDSI]tegra_dc_init type[2] pclk[74250000]                                                              
[   23.726738] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74250000]                                                      
[   23.726763] nominal-pclk:type[2] 74250000 parent:222750000 div:3.0 pclk:74250000 73507500~80932500                      
[   23.788522] tegra_get_platform=0                                                                                        
[   23.788525] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   23.791106] tegra_get_platform=0                                                                                        
[   23.791109] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.132388] tegra_get_platform=0                                                                                        
[   24.132390] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.303289] tegra_get_platform=0                                                                                        
[   24.303292] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.314291] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74250000]                                                           
[   24.314292] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74250000]                                                
[   24.314343] [DDDDDDSI]tegra_dc_init type[2] pclk[74250000]                                                              
[   24.319126] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74250000]                                                      
[   24.319172] nominal-pclk:type[2] 74250000 parent:222750000 div:3.0 pclk:74250000 73507500~80932500                      
[   24.375593] tegra_get_platform=0                                                                                        
[   24.375595] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.377912] tegra_get_platform=0                                                                                        
[   24.377914] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.732689] tegra_get_platform=0                                                                                        
[   24.732692] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.836888] tegra_get_platform=0                                                                                        
[   24.836891] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.849395] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74250000]                                                           
[   24.849397] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74250000]                                                
[   24.849441] [DDDDDDSI]tegra_dc_init type[2] pclk[74250000]                                                              
[   24.853998] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74250000]                                                      
[   24.854043] nominal-pclk:type[2] 74250000 parent:222750000 div:3.0 pclk:74250000 73507500~80932500                      
[   24.911379] tegra_get_platform=0                                                                                        
[   24.911382] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   24.913649] tegra_get_platform=0                                                                                        
[   24.913651] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   25.253167] tegra_get_platform=0                                                                                        
[   25.253193] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   25.327440] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500
ubuntu@tegra-ubuntu:~$ [   26.533919] [DDDDDDSI]_tegra_dc_enable type[2] pclk[74250000]                                    
[   26.533922] [DDDDDDSI]_tegra_dc_controller_enable type[2] pclk[74250000]                                                
[   26.533961] [DDDDDDSI]tegra_dc_init type[2] pclk[74250000]                                                              
[   26.535659] [DDDDDDSI]tegra_dc_program_mode type[2] pclk[74250000]                                                      
[   26.535687] nominal-pclk:type[2] 74250000 parent:222750000 div:3.0 pclk:74250000 73507500~80932500                      
[   26.591955] tegra_get_platform=0                                                                                        
[   26.591957] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   26.594384] tegra_get_platform=0                                                                                        
[   26.594387] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   26.932367] tegra_get_platform=0                                                                                        
[   26.932370] clk_ps=2242 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[   27.052071] nominal-pclk:type[1] 74250000 parent:74250000 div:1.0 pclk:74250000 73507500~80932500

We can still see below several lines

tegra_get_platform=0                                                                                        
[    2.719172] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[    2.725701] tegradc tegradc.0: dsi: TaSure mipi range violated                                                          
[    2.731491] tegradc tegradc.0: dsi: mipi range violated                                                                 
[    2.738800] tegra_get_platform=0                                                                                        
[    2.740060] clk_ps=2245 dsi->info.fpga_freq_khz=0 phy_timing->t_tlpx=2                                                  
[    2.746536] tegradc tegradc.0: dsi: TaSure mipi range violated                                                          
[    2.752354] tegradc tegradc.0: dsi: mipi range violated                                                                 
[    2.763339] dsi2lvds_config_lvds value=120

Then the pclk changes to 74338000

Is there anything I missed to change?

Thanks.

Could you go into dsi.c and see why CHECK_RANGE does not pass?

err = CHECK_RANGE(
  		DSI_CONVERT_T_PHY_TO_T_PHY_PS(
  			phy_timing->t_tasure, clk_ps, T_TASURE_HW_INC),
  			MIPI_T_TASURE_PS_MIN(DSI_CONVERT_T_PHY_TO_T_PHY_PS(
  			phy_timing->t_tlpx, clk_ps, T_TLPX_HW_INC)),
  			MIPI_T_TASURE_PS_MAX(DSI_CONVERT_T_PHY_TO_T_PHY_PS(
  			phy_timing->t_tlpx, clk_ps, T_TLPX_HW_INC)));
  		if (err < 0) {
  			dev_dbg(&dsi->dc->ndev->dev,
  				"dsi: TaSure mipi range violated\n");