[PATCH 1/2] drm/i915/gvt: Add read handler for GDRST register
Zhenyu Wang
zhenyuw at linux.intel.com
Fri May 26 08:07:45 UTC 2017
On 2017.05.24 12:02:24 +0800, fred gao wrote:
> emulating the GDRST read behavior to ack the guest
> reset request.
>
> v2:
> - split the original patch into two:
> GDRST read handler and virtual gpu reset. (Zhengyu)
> v3:
> - emulate the GDRST read right after write. (Zhengyu)
>
> Cc: Zhenyu Wang <zhenyuw at linux.intel.com>
> Cc: Zhang Yulei <yulei.zhang at intel.com>
> Signed-off-by: fred gao <fred.gao at intel.com>
> ---
I have to fix the title for this as "drm/i915/gvt: Fix GDRST vreg state after reset",
instead of current as no more handler added.
Pushed, thx!
> drivers/gpu/drm/i915/gvt/handlers.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
> index 973396b..d826f40 100644
> --- a/drivers/gpu/drm/i915/gvt/handlers.c
> +++ b/drivers/gpu/drm/i915/gvt/handlers.c
> @@ -297,6 +297,9 @@ static int gdrst_mmio_write(struct intel_vgpu *vgpu, unsigned int offset,
>
> intel_gvt_reset_vgpu_locked(vgpu, false, engine_mask);
>
> + /* sw will wait for the device to ack the reset request */
> + vgpu_vreg(vgpu, offset) = 0;
> +
> return 0;
> }
>
> --
> 2.7.4
>
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev
--
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/20170526/cd5e89ff/attachment.sig>
More information about the intel-gvt-dev
mailing list