diff mbox

[09/10] debugging: add important debug regs

Message ID 1310590312-21669-10-git-send-email-ben@bwidawsk.net (mailing list archive)
State New, archived
Headers show

Commit Message

Ben Widawsky July 13, 2011, 8:51 p.m. UTC
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
---
 lib/intel_reg.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Chris Wilson July 13, 2011, 9:20 p.m. UTC | #1
On Wed, 13 Jul 2011 13:51:51 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
> ---
>  lib/intel_reg.h |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/intel_reg.h b/lib/intel_reg.h
> index 48d8f66..ef9cb63 100644
> --- a/lib/intel_reg.h
> +++ b/lib/intel_reg.h
> @@ -3488,5 +3488,10 @@ typedef enum {
>  #define  TRANS_DP_HSYNC_ACTIVE_HIGH     (1<<3)
>  #define  TRANS_DP_HSYNC_ACTIVE_LOW      0
>  
> +/* Debug */
> +#define INSTPM			0x20c0
> +#define  INSTPM_GLOBAL_DEBUG_EN	(1<<4)
This is a fun little reg that changes meaning on every generation. Might
be worth putting in GENx prefixes from the beginning.
-Chris
diff mbox

Patch

diff --git a/lib/intel_reg.h b/lib/intel_reg.h
index 48d8f66..ef9cb63 100644
--- a/lib/intel_reg.h
+++ b/lib/intel_reg.h
@@ -3488,5 +3488,10 @@  typedef enum {
 #define  TRANS_DP_HSYNC_ACTIVE_HIGH     (1<<3)
 #define  TRANS_DP_HSYNC_ACTIVE_LOW      0
 
+/* Debug */
+#define INSTPM			0x20c0
+#define  INSTPM_GLOBAL_DEBUG_EN	(1<<4)
+#define GEN6_TD_CTL		0x7000
+#define  TD_CTL_FORCE_TD_BKPT	(1<<4)
 
 #endif /* _I810_REG_H */