intel_reg_dumper: debug SDEISR on Haswell
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 22 Mar 2013 17:28:24 +0000 (14:28 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 22 Mar 2013 17:45:06 +0000 (14:45 -0300)
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tools/intel_reg_dumper.c

index 0d24d01..a09afd4 100644 (file)
@@ -1795,6 +1795,19 @@ DEBUGSTRING(hsw_debug_wm_pipe)
                 sprite, cursor);
 }
 
+DEBUGSTRING(hsw_debug_sinterrupt)
+{
+       int portd, portc, portb, crt;
+
+       portd = (val >> 23) & 1;
+       portc = (val >> 22) & 1;
+       portb = (val >> 21) & 1;
+       crt = (val >> 19) & 1;
+
+       snprintf(result, len, "port d:%d, port c:%d, port b:%d, crt:%d",
+                portd, portc, portb, crt);
+}
+
 static struct reg_debug ironlake_debug_regs[] = {
        DEFINEREG(PGETBL_CTL),
        DEFINEREG(GEN6_INSTDONE_1),
@@ -2253,6 +2266,8 @@ static struct reg_debug haswell_debug_regs[] = {
 
        DEFINEREG(PIXCLK_GATE),
 
+       DEFINEREG2(SDEISR, hsw_debug_sinterrupt),
+
        DEFINEREG(RC6_RESIDENCY_TIME),
 };