[PATCH v4] drm/i915/gvt: update vreg on inhibit context lri command

Zhenyu Wang zhenyuw at linux.intel.com
Thu Jul 5 07:35:12 UTC 2018


On 2018.07.03 17:31:17 +0800, intel-gvt-dev-bounces at lists.freedesktop.org wrote:
> From: Hang Yuan <hang.yuan at linux.intel.com>
> 
> Commit cd7e 61b9"init mmio by lri command in vgpu inhibit context"
> initializes registers saved/restored in context with its vreg value
> through lri command in ring buffer. It relies on vreg got updated
> on every guest access. There is a case found that Linux guest uses
> lri command in inhibit-ctx to update the register. This patch adds
> vreg update on this case.
> 
> v2: move mmio_attribute functions to gvt.h (Zhenyu)
> v3: use mask_mmio_write in vreg update
> v4: refine codes and add more comments (Zhenyu)
> 
> Fixes: cd7e61b9("drm/i915/gvt: init mmio by lri command in vgpu inhibit context")
> Signed-off-by: Hang Yuan <hang.yuan at linux.intel.com>
> Signed-off-by: Weinan Li <weinan.z.li at intel.com>

applied this, but pls pay more attention on style issue, maybe you'd
like to turn on --strict for checkpatch.pl.

-- 
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/20180705/361ae025/attachment.sig>


More information about the intel-gvt-dev mailing list