[PATCH]drm/i915/gvt: not to restore in-context mmio

Zhenyu Wang zhenyuw at linux.intel.com
Mon May 8 09:50:22 UTC 2017


On 2017.05.08 09:27:39 +0800, Chuanxiao Dong wrote:
> Needn't to restore the in-context MMIO when SCHEDULE_OUT. Sometimes
> with restoring the in-context MMIO, some GPU hang can be observed. So
> remove the in-context MMIO restore
> 
> Signed-off-by: Chuanxiao Dong <chuanxiao.dong at intel.com>
> ---
>  drivers/gpu/drm/i915/gvt/render.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/render.c b/drivers/gpu/drm/i915/gvt/render.c
> index c6e7972..a5e11d8 100644
> --- a/drivers/gpu/drm/i915/gvt/render.c
> +++ b/drivers/gpu/drm/i915/gvt/render.c
> @@ -340,6 +340,9 @@ void intel_gvt_restore_render_mmio(struct intel_vgpu *vgpu, int ring_id)
>  		} else
>  			v = mmio->value;
>  
> +		if (mmio->in_context)
> +			continue;
> +
>  		I915_WRITE(mmio->reg, v);
>  		POSTING_READ(mmio->reg);
>  
> -- 

applied, thx!

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170508/566c6caa/attachment.sig>


More information about the intel-gvt-dev mailing list