[PATCH v4 10/11] drm/i915/gvt: update F_CMD_WRITE_PATCH flag when parsing init ctx
Yan Zhao
yan.y.zhao at intel.com
Wed Dec 23 02:07:33 UTC 2020
if a vreg has write handler, set its flag F_CMD_WRITE_PATCH on when
parsing init ctx.
Cc: Kevin Tian <kevin.tian at intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao at intel.com>
---
drivers/gpu/drm/i915/gvt/cmd_parser.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index 4aef34304a98..f6b3f41700f2 100644
--- a/drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c
@@ -951,7 +951,12 @@ static int cmd_reg_handler(struct parser_exec_state *s,
}
if (is_init_ctx(s)) {
+ struct intel_gvt_mmio_info *mmio_info;
+
intel_gvt_mmio_set_cmd_accessible(gvt, offset);
+ mmio_info = intel_gvt_find_mmio_info(gvt, offset);
+ if (mmio_info && mmio_info->write)
+ intel_gvt_mmio_set_cmd_write_patch(gvt, offset);
return 0;
}
--
2.17.1
More information about the intel-gvt-dev
mailing list