intel_reg_dumper: make Haswell dump useful

It was previously printing ironlake_debug_regs and haswell_debug_regs.
Since ironlake_debug_regs contains a lot of registers that don't exist
on Haswell, running intel_reg_dumper on Haswell caused "unclaimed
register" messages. Now I've copied the existing registers from
ironlake_debug_regs to haswell_debug_regs, so we won't print the
registers that don't exist anymore.

Also removed DP_TP_STATUS_A since it doesn't exist.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni
2013-03-01 15:46:25 -03:00
parent 2fadf695ff
commit 5c0ce0f2a9
2 changed files with 140 additions and 7 deletions
+16
View File
@@ -1106,6 +1106,14 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define BCLRPAT_C 0x62020
#define VSYNCSHIFT_C 0x62028
#define HTOTAL_EDP 0x6F000
#define HBLANK_EDP 0x6F004
#define HSYNC_EDP 0x6F008
#define VTOTAL_EDP 0x6F00c
#define VBLANK_EDP 0x6F010
#define VSYNC_EDP 0x6F014
#define VSYNCSHIFT_EDP 0x6F028
#define PP_STATUS 0x61200
# define PP_ON (1 << 31)
/**
@@ -2541,6 +2549,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define PIPEC_DP_LINK_M 0x72060
#define PIPEC_DP_LINK_N 0x72064
#define PIPEEDPCONF 0x7F008
#define DSPACNTR 0x70180
#define DSPBCNTR 0x71180
#define DSPCCNTR 0x72180
@@ -3031,6 +3041,12 @@ typedef enum {
#define PIPEC_LINK_M2 0x62048
#define PIPEC_LINK_N2 0x6204c
#define PIPEEDP_DATA_M1 0x6F030
#define PIPEEDP_DATA_N1 0x6F034
#define PIPEEDP_LINK_M1 0x6F040
#define PIPEEDP_LINK_N1 0x6F044
/* PIPECONF for pipe A/B addr is same */
/* cusor A is only connected to pipe A,