diff options
author | Chuanxiao Dong <chuanxiao.dong@intel.com> | 2017-05-08 09:27:39 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-05-08 16:55:35 +0800 |
commit | 2345ab1df8a9aa3cdca942142b48eb141faeb1c3 (patch) | |
tree | 28b666266ff602ca0141488bf69ca1f12f2ef7f9 /drivers/gpu/drm/i915/gvt | |
parent | 7f48d0b48cba2ddc03d09353ba4ef6ae680da520 (diff) | |
download | linux-2345ab1df8a9aa3cdca942142b48eb141faeb1c3.tar.bz2 |
drm/i915/gvt: not to restore in-context mmio
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@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/render.c b/drivers/gpu/drm/i915/gvt/render.c index 0beb83563b08..05b75b9f852a 100644 --- a/drivers/gpu/drm/i915/gvt/render.c +++ b/drivers/gpu/drm/i915/gvt/render.c @@ -333,6 +333,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); |