mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
intel_reg_dumper: Add dumping of GPU turbo regs.
I was interested in finding why my IVB system is not getting GPU turbo after suspend/resume. The piece that looks weird to me is that INTERRUPT_THRESHOLD is sitting at 0, whereas pre-suspend it's 0x12000000.
This commit is contained in:
committed by
Daniel Vetter
parent
6624325f13
commit
732547793f
@@ -1826,6 +1826,23 @@ _intel_dump_regs(struct reg_debug *regs, int count)
|
||||
}
|
||||
}
|
||||
|
||||
DEBUGSTRING(gen6_rp_control)
|
||||
{
|
||||
snprintf(result, len, "%s",
|
||||
(val & (1 << 7)) ? "enabled" : "disabled");
|
||||
}
|
||||
|
||||
static struct reg_debug gen6_rp_debug_regs[] = {
|
||||
DEFINEREG2(GEN6_RP_CONTROL, gen6_rp_control),
|
||||
DEFINEREG(GEN6_RPNSWREQ),
|
||||
DEFINEREG(GEN6_RP_DOWN_TIMEOUT),
|
||||
DEFINEREG(GEN6_RP_INTERRUPT_LIMITS),
|
||||
DEFINEREG(GEN6_RP_UP_THRESHOLD),
|
||||
DEFINEREG(GEN6_RP_UP_EI),
|
||||
DEFINEREG(GEN6_RP_DOWN_EI),
|
||||
DEFINEREG(GEN6_RP_IDLE_HYSTERSIS),
|
||||
};
|
||||
|
||||
static void
|
||||
intel_dump_other_regs(void)
|
||||
{
|
||||
@@ -2097,5 +2114,8 @@ int main(int argc, char** argv)
|
||||
intel_dump_other_regs();
|
||||
}
|
||||
|
||||
if (IS_GEN6(devid) || IS_GEN7(devid))
|
||||
intel_dump_regs(gen6_rp_debug_regs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user