mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	drm/amdgpu:Add error message when register failed to reach expected value
Add error message when register failed to reach expected value, It will help discover potential issue. Signed-off-by: James Zhu <James.Zhu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
		
							parent
							
								
									8901a65f08
								
							
						
					
					
						commit
						52e211c1f0
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -56,6 +56,8 @@
 | 
			
		|||
			tmp_ = RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg); \
 | 
			
		||||
			loop--;					\
 | 
			
		||||
			if (!loop) {				\
 | 
			
		||||
				DRM_ERROR("Register(%d) [%s] failed to reach value 0x%08x != 0x%08x\n", \
 | 
			
		||||
							inst, #reg, expected_value, (tmp_ & (mask))); \
 | 
			
		||||
				ret = -ETIMEDOUT;		\
 | 
			
		||||
				break;				\
 | 
			
		||||
			}					\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue