drm/i915: Correct a comment about the use of the workqueue.
Subsystems (2)
PATCH 1/6 drm/i915: Correct a comment about the use of the workqueue.
It isn't used for the hangcheck, which does its work right from the timer trigger, but hangcheck can lead to error state recording, which is run off of the workqueue.
--- drivers/gpu/drm/i915/i915_dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/i915/i915_dma.c +1 -1
@@ -1962,7 +1962,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)* bo. * * It is also used for periodic low-priority events, such as -* idle-timers and hangcheck. +* idle-timers and recording error state. * * All tasks on the workqueue are expected to acquire the dev mutex * so there is no point in running more than one instance of the
Signature · 1 line
1.7.2.3
PATCH 5/6 drm/i915: Also reinit the BSD and BLT rings after a GPU reset.
--- drivers/gpu/drm/i915/i915_drv.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +5 -2
@@ -471,9 +471,12 @@ int i915_reset(struct drm_device *dev, u8 flags)*/ if (drm_core_check_feature (dev,DRIVER_MODESET ) || !dev_priv->mm.suspended) { -struct intel_ring_buffer *ring = &dev_priv->render_ring; dev_priv->mm.suspended =0 ; - ring->init (ring); + dev_priv->render_ring.init (&dev_priv->render_ring); +if (HAS_BSD (dev)) + dev_priv->bsd_ring.init (&dev_priv->bsd_ring); +if (HAS_BLT (dev)) + dev_priv->blt_ring.init (&dev_priv->blt_ring);mutex_unlock (&dev->struct_mutex);drm_irq_uninstall (dev);drm_irq_install (dev);
Signature · 1 line
1.7.2.3
PATCH 6/6 drm/i915: Add support for GPU reset on gen6.
In reply to Eric AnholtThis has proven sufficient to recover from a hang of the GPU using the gem_bad_blit test while at the KMS console then starting X. When attempting the same during an X session, the timer doesn't appear to trigger.
--- drivers/gpu/drm/i915/i915_drv.c | 11 +++++++++++ drivers/gpu/drm/i915/i915_reg.h | 6 ++++++ 2 files changed, 17 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +11 -0
@@ -404,6 +404,14 @@ static int ironlake_do_reset(struct drm_device *dev, u8 flags)return wait_for (I915_READ (MCHBAR_MIRROR_BASE +ILK_GDSR ) &0x1 ,500 ); } +static int gen6_do_reset (struct drm_device *dev,u8 flags) +{ +struct drm_i915_private *dev_priv = dev->dev_private; + +I915_WRITE (GEN6_GDRST ,GEN6_GRDOM_FULL ); +return wait_for ((I915_READ (GEN6_GDRST ) &GEN6_GRDOM_FULL ) ==0 ,500 ); +} +/** * i965_reset - reset chip after a hang * @dev: drm device to reset
@@ -438,6 +446,9 @@ int i915_reset(struct drm_device *dev, u8 flags)if (get_seconds () - dev_priv->last_gpu_reset <5 ) {DRM_ERROR ("GPU hanging too fast, declaring wedged!\n" ); }else switch (INTEL_INFO (dev)->gen) { +case 6 : + ret =gen6_do_reset (dev, flags); +break ;case 5 : ret =ironlake_do_reset (dev, flags);break ;
drivers/gpu/drm/i915/i915_reg.h +6 -0
@@ -78,6 +78,12 @@#define GRDOM_RENDER (1<<2)#define GRDOM_MEDIA (3<<2) +#define GEN6_GDRST 0x941c +#define GEN6_GRDOM_FULL (1 << 0) +#define GEN6_GRDOM_RENDER (1 << 1) +#define GEN6_GRDOM_MEDIA (1 << 2) +#define GEN6_GRDOM_BLT (1 << 3) +/* VGA stuff */ #define VGA_ST01_MDA 0x3ba
Signature · 1 line
1.7.2.3
Re: [PATCH 6/6] drm/i915: Add support for GPU reset on gen6.
Eric, only 3 patches (1, 5, 6) turned up in my inbox, can you either resend these to me or push to your tree?
Thanks,
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Re: [PATCH 6/6] drm/i915: Add support for GPU reset on gen6.
Quoted 2 lines · Chris Wilson
Eric, only 3 patches (1, 5, 6) turned up in my inbox, can you either resend these to me or push to your tree?
Sorry the formatting of the mails produced was confusing. The others were the DP fixes and the comment fix sent in separate threads.
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 6/6] drm/i915: Add support for GPU reset on gen6.
Quoted 6 lines · Eric Anholt
Quoted 2 lines · Chris Wilson
Eric, only 3 patches (1, 5, 6) turned up in my inbox, can you either resend these to me or push to your tree?
Sorry the formatting of the mails produced was confusing. The others were the DP fixes and the comment fix sent in separate threads.
Thanks, finally applied to -next.
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre