* [PATCH] drm/i915: Don't WARN about ring idle bit on gen2
@ 2014-05-28 16:12 ville.syrjala
2014-05-28 16:15 ` Chris Wilson
0 siblings, 1 reply; 3+ messages in thread
From: ville.syrjala @ 2014-05-28 16:12 UTC (permalink / raw)
To: intel-gfx
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Gen2 doesn't have the ring idle/stop bits in the SCPD/MI_MODE register,
so don't go spewing warnings about the state of those bits.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/intel_ringbuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 3379722..279488a 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -1494,7 +1494,7 @@ void intel_cleanup_ring_buffer(struct intel_engine_cs *ring)
return;
intel_stop_ring_buffer(ring);
- WARN_ON((I915_READ_MODE(ring) & MODE_IDLE) == 0);
+ WARN_ON(!IS_GEN2(ring->dev) && (I915_READ_MODE(ring) & MODE_IDLE) == 0);
iounmap(ringbuf->virtual_start);
--
1.8.5.5
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915: Don't WARN about ring idle bit on gen2
2014-05-28 16:12 [PATCH] drm/i915: Don't WARN about ring idle bit on gen2 ville.syrjala
@ 2014-05-28 16:15 ` Chris Wilson
2014-05-28 19:25 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2014-05-28 16:15 UTC (permalink / raw)
To: ville.syrjala; +Cc: intel-gfx
On Wed, May 28, 2014 at 07:12:13PM +0300, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Gen2 doesn't have the ring idle/stop bits in the SCPD/MI_MODE register,
> so don't go spewing warnings about the state of those bits.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
My mistake, forgot about that warning when fixing the earlier call to
idle,
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/i915: Don't WARN about ring idle bit on gen2
2014-05-28 16:15 ` Chris Wilson
@ 2014-05-28 19:25 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2014-05-28 19:25 UTC (permalink / raw)
To: Chris Wilson, ville.syrjala, intel-gfx
On Wed, May 28, 2014 at 05:15:13PM +0100, Chris Wilson wrote:
> On Wed, May 28, 2014 at 07:12:13PM +0300, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Gen2 doesn't have the ring idle/stop bits in the SCPD/MI_MODE register,
> > so don't go spewing warnings about the state of those bits.
> >
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> My mistake, forgot about that warning when fixing the earlier call to
> idle,
>
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-28 19:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28 16:12 [PATCH] drm/i915: Don't WARN about ring idle bit on gen2 ville.syrjala
2014-05-28 16:15 ` Chris Wilson
2014-05-28 19:25 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox