[PATCH v4] drm/i915/gvt: add some new MMIOs to cmd_access white list
Zhenyu Wang
zhenyuw at linux.intel.com
Fri Feb 24 09:22:14 UTC 2017
On 2017.02.24 16:03:28 +0800, Weinan Li wrote:
> From: Pei Zhang <pei.zhang at intel.com>
>
> Guest is now acces some MMIOs (0x215c, RING_INSTPM) through command which
> is not originally in gvt's white list. This cause huge error log printed in
> gvt.
> This patch addes these MMIOs to the white list.
>
> V2. change the commit message content.
> V3. remove duplicate defination of 0x20c0.
> V4. refine code style.
>
> Signed-off-by: Pei Zhang <pei.zhang at intel.com>
> Signed-off-by: Weinan Li <weinan.z.li at intel.com>
> ---
Applied, thanks!
> drivers/gpu/drm/i915/gvt/handlers.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
> index 223b366..56695a4 100644
> --- a/drivers/gpu/drm/i915/gvt/handlers.c
> +++ b/drivers/gpu/drm/i915/gvt/handlers.c
> @@ -1589,7 +1589,8 @@ static int init_generic_mmio_info(struct intel_gvt *gvt)
> #undef RING_REG
>
> MMIO_RING_DFH(RING_MI_MODE, D_ALL, F_MODE_MASK, NULL, NULL);
> - MMIO_RING_DFH(RING_INSTPM, D_ALL, F_MODE_MASK, NULL, NULL);
> + MMIO_RING_DFH(RING_INSTPM, D_ALL, F_MODE_MASK | F_CMD_ACCESS,
> + NULL, NULL);
> MMIO_RING_DFH(RING_TIMESTAMP, D_ALL, F_CMD_ACCESS,
> ring_timestamp_mmio_read, NULL);
> MMIO_RING_DFH(RING_TIMESTAMP_UDW, D_ALL, F_CMD_ACCESS,
> @@ -2284,7 +2285,7 @@ static int init_generic_mmio_info(struct intel_gvt *gvt)
> MMIO_D(0x1a054, D_ALL);
>
> MMIO_D(0x44070, D_ALL);
> - MMIO_D(0x215c, D_HSW_PLUS);
> + MMIO_DFH(0x215c, D_HSW_PLUS, F_CMD_ACCESS, NULL, NULL);
> MMIO_DFH(0x2178, D_ALL, F_CMD_ACCESS, NULL, NULL);
> MMIO_DFH(0x217c, D_ALL, F_CMD_ACCESS, NULL, NULL);
> MMIO_DFH(0x12178, D_ALL, F_CMD_ACCESS, NULL, NULL);
> --
> 1.9.1
>
> _______________________________________________
> 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: 163 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170224/ad58dfc6/attachment.sig>
More information about the intel-gvt-dev
mailing list