lib: Use INSTDONE_I965 and INSTDONE_1 for gen6
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 4 Jun 2013 10:36:23 +0000 (11:36 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Tue, 7 Jan 2014 16:48:04 +0000 (16:48 +0000)
The GEN6_INSTDONE_1 and GEN6_INSTDONE_2 registers are just the old
INSTDONE_I965 and INSTDONE_1 registers but renamed. Let's use the old
names (this is what the kernel does).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
lib/instdone.c
tools/intel_reg_dumper.c

index 18b2613..99857e2 100644 (file)
 # define G4X_VS0_DONE                  (1 << 1)
 # define G4X_VF_DONE                   (1 << 0)
 
-/* GEN6_INSTDONE_2 */
+/* INSTDONE_1 */
 # define GEN6_GAM_DONE                 (1 << 31)
 # define GEN6_CS_DONE                  (1 << 30)
 # define GEN6_WMBE_DONE                        (1 << 29)
@@ -307,13 +307,13 @@ gen4_instdone1_bit(uint32_t bit, const char *name)
 static void
 gen6_instdone1_bit(uint32_t bit, const char *name)
 {
-       add_instdone_bit(GEN6_INSTDONE_1, bit, name);
+       add_instdone_bit(INSTDONE_I965, bit, name);
 }
 
 static void
 gen6_instdone2_bit(uint32_t bit, const char *name)
 {
-       add_instdone_bit(GEN6_INSTDONE_2, bit, name);
+       add_instdone_bit(INSTDONE_1, bit, name);
 }
 
 static void
index 8d8aa91..805b665 100644 (file)
@@ -2003,8 +2003,8 @@ static struct reg_debug gen6_fences[] = {
 
 static struct reg_debug ironlake_debug_regs[] = {
        DEFINEREG(PGETBL_CTL),
-       DEFINEREG(GEN6_INSTDONE_1),
-       DEFINEREG(GEN6_INSTDONE_2),
+       DEFINEREG(INSTDONE_I965),
+       DEFINEREG(INSTDONE_1),
        DEFINEREG2(CPU_VGACNTRL, i830_debug_vgacntrl),
        DEFINEREG(DIGITAL_PORT_HOTPLUG_CNTRL),