drm/i915: VLV GT wake FIFO stuff
Subsystems (2)
cover drm/i915: VLV GT wake FIFO stuff
The registers for monitoring the GT wake FIFO have some extra stuff on VLV. This series tries to fix the code to handle those extra bits slightly better.
Just compile tested.
Ville Syrjälä (2):
drm/i915: Report all GTFIFODBG errors drm/i915: Fix GT wake FIFO free entries for VLV
drivers/gpu/drm/i915/i915_reg.h | 8 ++++++-- drivers/gpu/drm/i915/intel_uncore.c | 11 +++++------ 2 files changed, 11 insertions(+), 8 deletions(-)
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/2 drm/i915: Report all GTFIFODBG errors
From: Ville Syrjälä <[email protected]>
On VLV GTFIFODBG has more bits. Just report them all.
--- drivers/gpu/drm/i915/i915_reg.h | 5 ++++- drivers/gpu/drm/i915/intel_uncore.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +4 -1
@@ -4852,7 +4852,10 @@#define FORCEWAKE_MT_ENABLE (1<<5)#define GTFIFODBG 0x120000 -#define GT_FIFO_CPU_ERROR_MASK 7 +#define GT_FIFO_SBDROPERR (1<<6) +#define GT_FIFO_BLOBDROPERR (1<<5) +#define GT_FIFO_SB_READ_ABORTERR (1<<4) +#define GT_FIFO_DROPERR (1<<3)#define GT_FIFO_OVFERR (1<<2)#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0)
drivers/gpu/drm/i915/intel_uncore.c +2 -3
@@ -121,9 +121,8 @@ static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv)u32 gtfifodbg; gtfifodbg =__raw_i915_read32 (dev_priv,GTFIFODBG ); -if (WARN (gtfifodbg >_FIFO_CPU_ERROR_MASK , -"MMIO read or write has been dropped %x\n" , gtfifodbg)) -__raw_i915_write32 (dev_priv,GTFIFODBG ,GT_FIFO_CPU_ERROR_MASK ); +if (WARN (gtfifodbg,"GT wake FIFO error 0x%x\n" , gtfifodbg)) +__raw_i915_write32 (dev_priv,GTFIFODBG , gtfifodbg); }static void __gen6_gt_force_wake_put (struct drm_i915_private *dev_priv)
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/2] drm/i915: Report all GTFIFODBG errors
Quoted 31 lines · [email protected] writes:
From: Ville Syrjälä <[email protected]>
On VLV GTFIFODBG has more bits. Just report them all.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 5 ++++- drivers/gpu/drm/i915/intel_uncore.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_reg.h +4
-1@@ -4852,7 +4852,10 @@#define FORCEWAKE_MT_ENABLE (1<<5)#define GTFIFODBG 0x120000 -#define GT_FIFO_CPU_ERROR_MASK 7 +#define GT_FIFO_SBDROPERR (1<<6) +#define GT_FIFO_BLOBDROPERR (1<<5) +#define GT_FIFO_SB_READ_ABORTERR (1<<4) +#define GT_FIFO_DROPERR (1<<3)#define GT_FIFO_OVFERR (1<<2)#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0)drivers/gpu/drm/i915/intel_uncore.c +0
-0
drivers/gpu/drm/i915/intel_uncore.c static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv) · line 124
Quoted 7 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-3@@ -121,9 +121,8 @@ static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv)u32 gtfifodbg; gtfifodbg =__raw_i915_read32 (dev_priv,GTFIFODBG ); -if (WARN (gtfifodbg >_FIFO_CPU_ERROR_MASK , -"MMIO read or write has been dropped %x\n" , gtfifodbg)) -__raw_i915_write32 (dev_priv,GTFIFODBG ,GT_FIFO_CPU_ERROR_MASK ); +if (WARN (gtfifodbg,"GT wake FIFO error 0x%x\n" , gtfifodbg))
I think you still need mask, there are ro fields != 0 in the same register.
-Mika
Quoted 11 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-0+__raw_i915_write32 (dev_priv,GTFIFODBG , gtfifodbg); }static void __gen6_gt_force_wake_put (struct drm_i915_private *dev_priv)Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/2] drm/i915: Report all GTFIFODBG errors
Quoted 35 lines · Mika Kuoppala
Quoted 33 lines · [email protected] writes:
From: Ville Syrjälä <[email protected]>
On VLV GTFIFODBG has more bits. Just report them all.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 5 ++++- drivers/gpu/drm/i915/intel_uncore.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_reg.h +4
-1@@ -4852,7 +4852,10 @@#define FORCEWAKE_MT_ENABLE (1<<5)#define GTFIFODBG 0x120000 -#define GT_FIFO_CPU_ERROR_MASK 7 +#define GT_FIFO_SBDROPERR (1<<6) +#define GT_FIFO_BLOBDROPERR (1<<5) +#define GT_FIFO_SB_READ_ABORTERR (1<<4) +#define GT_FIFO_DROPERR (1<<3)#define GT_FIFO_OVFERR (1<<2)#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0)drivers/gpu/drm/i915/intel_uncore.c +0
-0@@ -121,9 +121,8 @@ static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv)u32 gtfifodbg;
Quoted 8 lines
drivers/gpu/drm/i915/intel_uncore.c static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv) · line 124
Quoted 5 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-3gtfifodbg =__raw_i915_read32 (dev_priv,GTFIFODBG ); -if (WARN (gtfifodbg >_FIFO_CPU_ERROR_MASK , -"MMIO read or write has been dropped %x\n" , gtfifodbg)) -__raw_i915_write32 (dev_priv,GTFIFODBG ,GT_FIFO_CPU_ERROR_MASK ); +if (WARN (gtfifodbg,"GT wake FIFO error 0x%x\n" , gtfifodbg))I think you still need mask, there are ro fields != 0 in the same register.
Which bits? VLV has those seven low bits, others just three low bits AFAICS.
Signature · 2 lines
Ville Syrjälä Intel OTC
Re: [PATCH 1/2] drm/i915: Report all GTFIFODBG errors
Quoted 45 lines · Ville Syrjälä
Quoted 35 lines · Mika Kuoppala
Quoted 33 lines · [email protected] writes:
From: Ville Syrjälä <[email protected]>
On VLV GTFIFODBG has more bits. Just report them all.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 5 ++++- drivers/gpu/drm/i915/intel_uncore.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_reg.h +4
-1@@ -4852,7 +4852,10 @@#define FORCEWAKE_MT_ENABLE (1<<5)#define GTFIFODBG 0x120000 -#define GT_FIFO_CPU_ERROR_MASK 7 +#define GT_FIFO_SBDROPERR (1<<6) +#define GT_FIFO_BLOBDROPERR (1<<5) +#define GT_FIFO_SB_READ_ABORTERR (1<<4) +#define GT_FIFO_DROPERR (1<<3)#define GT_FIFO_OVFERR (1<<2)#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0)drivers/gpu/drm/i915/intel_uncore.c +0
-0@@ -121,9 +121,8 @@ static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv)u32 gtfifodbg;Quoted 8 lines
drivers/gpu/drm/i915/intel_uncore.c static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv) · line 124
Quoted 5 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-3gtfifodbg =__raw_i915_read32 (dev_priv,GTFIFODBG ); -if (WARN (gtfifodbg >_FIFO_CPU_ERROR_MASK , -"MMIO read or write has been dropped %x\n" , gtfifodbg)) -__raw_i915_write32 (dev_priv,GTFIFODBG ,GT_FIFO_CPU_ERROR_MASK ); +if (WARN (gtfifodbg,"GT wake FIFO error 0x%x\n" , gtfifodbg))I think you still need mask, there are ro fields != 0 in the same register.
Quoted 2 lines
Which bits? VLV has those seven low bits, others just three low bits AFAICS.
OK, so the problem is that bspec seems to list some bogus junk for these registers. The gunit register HAS is what I used to write these patches. Someone with a VLV on their hands should double check whether real hardware agrees with the gunit register HAS. Any volunteers?
Signature · 2 lines
Ville Syrjälä Intel OTC
Re: [PATCH 1/2] drm/i915: Report all GTFIFODBG errors
Quoted 46 lines · Ville Syrjälä
Quoted 45 lines · Ville Syrjälä
Quoted 43 lines · Mika Kuoppala
Quoted 31 lines · [email protected] writes:
From: Ville Syrjälä <[email protected]>
On VLV GTFIFODBG has more bits. Just report them all.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 5 ++++- drivers/gpu/drm/i915/intel_uncore.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_reg.h +4
-1@@ -4852,7 +4852,10 @@#define FORCEWAKE_MT_ENABLE (1<<5)#define GTFIFODBG 0x120000 -#define GT_FIFO_CPU_ERROR_MASK 7 +#define GT_FIFO_SBDROPERR (1<<6) +#define GT_FIFO_BLOBDROPERR (1<<5) +#define GT_FIFO_SB_READ_ABORTERR (1<<4) +#define GT_FIFO_DROPERR (1<<3)#define GT_FIFO_OVFERR (1<<2)#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0)drivers/gpu/drm/i915/intel_uncore.c +0
-0drivers/gpu/drm/i915/intel_uncore.c static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv) · line 124
Quoted 7 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-3@@ -121,9 +121,8 @@ static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv)u32 gtfifodbg; gtfifodbg =__raw_i915_read32 (dev_priv,GTFIFODBG ); -if (WARN (gtfifodbg >_FIFO_CPU_ERROR_MASK , -"MMIO read or write has been dropped %x\n" , gtfifodbg)) -__raw_i915_write32 (dev_priv,GTFIFODBG ,GT_FIFO_CPU_ERROR_MASK ); +if (WARN (gtfifodbg,"GT wake FIFO error 0x%x\n" , gtfifodbg))I think you still need mask, there are ro fields != 0 in the same register.
Quoted 7 lines
Quoted 2 lines
Which bits? VLV has those seven low bits, others just three low bits AFAICS.
OK, so the problem is that bspec seems to list some bogus junk for these registers. The gunit register HAS is what I used to write these patches. Someone with a VLV on their hands should double check whether real hardware agrees with the gunit register HAS. Any volunteers?
Imre had a look on his VLV the other day, and the register contents seemed to match the Gunit register HAS. So I think these patches should be doing the right thing.
Signature · 2 lines
Ville Syrjälä Intel OTC
Jesse Barnes
Reviewed-byRe: [PATCH 1/2] drm/i915: Report all GTFIFODBG errors
Quoted 50 lines · On Wed, 20 Nov 2013 19:14:17 +0200 Ville Syrjälä…
Quoted 49 lines · Ville Syrjälä
Quoted 47 lines · Ville Syrjälä
Quoted 35 lines · Mika Kuoppala
Quoted 33 lines · [email protected] writes:
From: Ville Syrjälä <[email protected]>
On VLV GTFIFODBG has more bits. Just report them all.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 5 ++++- drivers/gpu/drm/i915/intel_uncore.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_reg.h +4
-1@@ -4852,7 +4852,10 @@#define FORCEWAKE_MT_ENABLE (1<<5)#define GTFIFODBG 0x120000 -#define GT_FIFO_CPU_ERROR_MASK 7 +#define GT_FIFO_SBDROPERR (1<<6) +#define GT_FIFO_BLOBDROPERR (1<<5) +#define GT_FIFO_SB_READ_ABORTERR (1<<4) +#define GT_FIFO_DROPERR (1<<3)#define GT_FIFO_OVFERR (1<<2)#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0)drivers/gpu/drm/i915/intel_uncore.c +0
-0@@ -121,9 +121,8 @@ static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv)u32 gtfifodbg;Quoted 8 lines
drivers/gpu/drm/i915/intel_uncore.c static void gen6_gt_check_fifodbg(struct drm_i915_private *dev_priv) · line 124
Quoted 5 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-3gtfifodbg =__raw_i915_read32 (dev_priv,GTFIFODBG ); -if (WARN (gtfifodbg >_FIFO_CPU_ERROR_MASK , -"MMIO read or write has been dropped %x\n" , gtfifodbg)) -__raw_i915_write32 (dev_priv,GTFIFODBG ,GT_FIFO_CPU_ERROR_MASK ); +if (WARN (gtfifodbg,"GT wake FIFO error 0x%x\n" , gtfifodbg))I think you still need mask, there are ro fields != 0 in the same register.
Which bits? VLV has those seven low bits, others just three low bits AFAICS.
Quoted 8 lines
Quoted 4 lines
OK, so the problem is that bspec seems to list some bogus junk for these registers. The gunit register HAS is what I used to write these patches. Someone with a VLV on their hands should double check whether real hardware agrees with the gunit register HAS. Any volunteers?
Imre had a look on his VLV the other day, and the register contents seemed to match the Gunit register HAS. So I think these patches should be doing the right thing.
Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Fix GT wake FIFO free entries for VLV
In reply to [email protected]From: Ville Syrjälä <[email protected]>
On VLV the GTFIFOCTL register has other bits besides the number of free entries in the GT wake FIFO. Apply a mask when we read th register to make sure we don't misinterpret the number of free FIFO entries.
--- drivers/gpu/drm/i915/i915_reg.h | 3 ++- drivers/gpu/drm/i915/intel_uncore.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +2 -1
@@ -4860,7 +4860,8 @@#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0) -#define GT_FIFO_FREE_ENTRIES 0x120008 +#define GTFIFOCTL 0x120008 +#define GT_FIFO_FREE_ENTRIES_MASK 0x7f#define GT_FIFO_NUM_RESERVED_ENTRIES 20#define HSW_IDICR 0x9008
drivers/gpu/drm/i915/intel_uncore.c +3 -3
@@ -148,10 +148,10 @@ static int __gen6_gt_wait_for_fifo(struct drm_i915_private *dev_priv)if (dev_priv->uncore.fifo_count <GT_FIFO_NUM_RESERVED_ENTRIES ) {int loop =500 ; -u32 fifo =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); +u32 fifo =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ;while (fifo <=GT_FIFO_NUM_RESERVED_ENTRIES && loop--) {udelay (10 ); - fifo =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); + fifo =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ; }if (WARN_ON (loop <0 && fifo <=GT_FIFO_NUM_RESERVED_ENTRIES )) ++ret;
@@ -806,7 +806,7 @@ static int gen6_do_reset(struct drm_device *dev) dev_priv->uncore.funcs.force_wake_put (dev_priv);/* Restore fifo count */ - dev_priv->uncore.fifo_count =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); + dev_priv->uncore.fifo_count =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ;spin_unlock_irqrestore (&dev_priv->uncore.lock, irqflags);return ret;
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Fix GT wake FIFO free entries for VLV
Quoted 44 lines · On Thu, 14 Nov 2013 02:00:00 +0200 [email protected] wrote:
From: Ville Syrjälä <[email protected]>
On VLV the GTFIFOCTL register has other bits besides the number of free entries in the GT wake FIFO. Apply a mask when we read th register to make sure we don't misinterpret the number of free FIFO entries.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 3 ++- drivers/gpu/drm/i915/intel_uncore.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_reg.h +2
-1@@ -4860,7 +4860,8 @@#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0) -#define GT_FIFO_FREE_ENTRIES 0x120008 +#define GTFIFOCTL 0x120008 +#define GT_FIFO_FREE_ENTRIES_MASK 0x7f#define GT_FIFO_NUM_RESERVED_ENTRIES 20#define HSW_IDICR 0x9008drivers/gpu/drm/i915/intel_uncore.c +2
-2@@ -148,10 +148,10 @@ static int __gen6_gt_wait_for_fifo(struct drm_i915_private *dev_priv)if (dev_priv->uncore.fifo_count <GT_FIFO_NUM_RESERVED_ENTRIES ) {int loop =500 ; -u32 fifo =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); +u32 fifo =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ;while (fifo <=GT_FIFO_NUM_RESERVED_ENTRIES && loop--) {udelay (10 ); - fifo =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); + fifo =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ; }if (WARN_ON (loop <0 && fifo <=GT_FIFO_NUM_RESERVED_ENTRIES )) ++ret;
drivers/gpu/drm/i915/intel_uncore.c static int gen6_do_reset(struct drm_device *dev) · line 812
Quoted 8 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-1@@ -806,7 +806,7 @@ static int gen6_do_reset(struct drm_device *dev) dev_priv->uncore.funcs.force_wake_put (dev_priv);/* Restore fifo count */ - dev_priv->uncore.fifo_count =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); + dev_priv->uncore.fifo_count =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ;spin_unlock_irqrestore (&dev_priv->uncore.lock, irqflags);return ret;
I don't see this reg on HSW, but it looks like our HSW code uses this routine?
Assuming the spec is just broken today... at least I see it for other gens.
Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Fix GT wake FIFO free entries for VLV
Quoted 59 lines · Jesse Barnes
Quoted 44 lines · On Thu, 14 Nov 2013 02:00:00 +0200 [email protected] wrote:
From: Ville Syrjälä <[email protected]>
On VLV the GTFIFOCTL register has other bits besides the number of free entries in the GT wake FIFO. Apply a mask when we read th register to make sure we don't misinterpret the number of free FIFO entries.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 3 ++- drivers/gpu/drm/i915/intel_uncore.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_reg.h +2
-1@@ -4860,7 +4860,8 @@#define GT_FIFO_IAWRERR (1<<1)#define GT_FIFO_IARDERR (1<<0) -#define GT_FIFO_FREE_ENTRIES 0x120008 +#define GTFIFOCTL 0x120008 +#define GT_FIFO_FREE_ENTRIES_MASK 0x7f#define GT_FIFO_NUM_RESERVED_ENTRIES 20#define HSW_IDICR 0x9008drivers/gpu/drm/i915/intel_uncore.c +2
-2@@ -148,10 +148,10 @@ static int __gen6_gt_wait_for_fifo(struct drm_i915_private *dev_priv)if (dev_priv->uncore.fifo_count <GT_FIFO_NUM_RESERVED_ENTRIES ) {int loop =500 ; -u32 fifo =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); +u32 fifo =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ;while (fifo <=GT_FIFO_NUM_RESERVED_ENTRIES && loop--) {udelay (10 ); - fifo =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); + fifo =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ; }if (WARN_ON (loop <0 && fifo <=GT_FIFO_NUM_RESERVED_ENTRIES )) ++ret;drivers/gpu/drm/i915/intel_uncore.c static int gen6_do_reset(struct drm_device *dev) · line 812
Quoted 8 lines
drivers/gpu/drm/i915/intel_uncore.c +1
-1@@ -806,7 +806,7 @@ static int gen6_do_reset(struct drm_device *dev) dev_priv->uncore.funcs.force_wake_put (dev_priv);/* Restore fifo count */ - dev_priv->uncore.fifo_count =__raw_i915_read32 (dev_priv,GT_FIFO_FREE_ENTRIES ); + dev_priv->uncore.fifo_count =__raw_i915_read32 (dev_priv,GTFIFOCTL ) >_FIFO_FREE_ENTRIES_MASK ;spin_unlock_irqrestore (&dev_priv->uncore.lock, irqflags);return ret;I don't see this reg on HSW, but it looks like our HSW code uses this routine?
Quoted 4 lines
Assuming the spec is just broken today... at least I see it for other gens.
Reviewed-by Jesse Barnes <[email protected]>
Both merged with a little note about this one here. We can back it out again ;-)
Thanks, Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch