mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	tools/intel_reg_dumper: Add support for debug register
Right now, we only check for hardware DRRS support. But much more can be done with it. Some day. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
This commit is contained in:
		
							parent
							
								
									f3f84bb350
								
							
						
					
					
						commit
						1649ab350f
					
				@ -3494,4 +3494,12 @@ typedef enum {
 | 
			
		||||
#define GEN6_TD_CTL		0x7000 /* <= GEN5 was at 0x8000 */
 | 
			
		||||
#define GEN6_TD_CTL_FORCE_TD_BKPT (1<<4)
 | 
			
		||||
 | 
			
		||||
/* Port debugging
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#define PORT_DBG                    0x42308
 | 
			
		||||
#define  PORT_DBG_DRRS_HW_STATE_OFF     (0<<30)
 | 
			
		||||
#define  PORT_DBG_DRRS_HW_STATE_LOW     (1<<30)
 | 
			
		||||
#define  PORT_DBG_DRRS_HW_STATE_HIGH    (2<<30)
 | 
			
		||||
 | 
			
		||||
#endif /* _I810_REG_H */
 | 
			
		||||
 | 
			
		||||
@ -255,6 +255,24 @@ DEBUGSTRING(i830_debug_pipestat)
 | 
			
		||||
		 _OREG_UPDATE_STATUS);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DEBUGSTRING(ivb_debug_port)
 | 
			
		||||
{
 | 
			
		||||
	char *drrs;
 | 
			
		||||
	switch (val & (2 << 30)) {
 | 
			
		||||
		case PORT_DBG_DRRS_HW_STATE_OFF:
 | 
			
		||||
			drrs = "off";
 | 
			
		||||
			break;
 | 
			
		||||
		case PORT_DBG_DRRS_HW_STATE_LOW:
 | 
			
		||||
			drrs = "low";
 | 
			
		||||
			break;
 | 
			
		||||
		case PORT_DBG_DRRS_HW_STATE_HIGH:
 | 
			
		||||
			drrs = "high";
 | 
			
		||||
			break;
 | 
			
		||||
	}
 | 
			
		||||
	snprintf(result, len, "HW DRRS %s",
 | 
			
		||||
			drrs);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DEBUGSTRING(i830_debug_hvtotal)
 | 
			
		||||
{
 | 
			
		||||
	snprintf(result, len, "%d active, %d total",
 | 
			
		||||
@ -1674,6 +1692,8 @@ static struct reg_debug ironlake_debug_regs[] = {
 | 
			
		||||
	DEFINEREG(PCH_PP_ON_DELAYS),
 | 
			
		||||
	DEFINEREG(PCH_PP_OFF_DELAYS),
 | 
			
		||||
	DEFINEREG(PCH_PP_DIVISOR),
 | 
			
		||||
 | 
			
		||||
	DEFINEREG2(PORT_DBG, ivb_debug_port),
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static struct reg_debug i945gm_mi_regs[] = {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user