drm/amd/display: Wait for backlight programming completion in set backlight level
[WHY] Currently we don't wait for blacklight programming completion in DMCU when setting backlight level. Some sequences such as PSR static screen event trigger reprogramming requires it to be complete. [How] Add generic wait for dmcu command completion in set backlight level. Signed-off-by: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
		
							parent
							
								
									8fb843d179
								
							
						
					
					
						commit
						d35d77a6a5
					
				| @ -239,6 +239,10 @@ static void dmcu_set_backlight_level( | ||||
| 	s2 |= (backlight_8_bit << ATOM_S2_CURRENT_BL_LEVEL_SHIFT); | ||||
| 
 | ||||
| 	REG_WRITE(BIOS_SCRATCH_2, s2); | ||||
| 
 | ||||
| 	/* waitDMCUReadyForCmd */ | ||||
| 	REG_WAIT(MASTER_COMM_CNTL_REG, MASTER_COMM_INTERRUPT, | ||||
| 			0, 1, 80000); | ||||
| } | ||||
| 
 | ||||
| static void dce_abm_init(struct abm *abm) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user