From: Yan Zhao Date: Wed, 23 Dec 2020 03:45:26 +0000 (+0800) Subject: drm/i915/gvt: filter cmd "pipe-ctrl" in cmd_handler X-Git-Tag: accepted/tizen/unified/20230118.172025~7733^2~16^2~1^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=252cec9fc95272fb0b00528a37be96d1f960c277;p=platform%2Fkernel%2Flinux-rpi.git drm/i915/gvt: filter cmd "pipe-ctrl" in cmd_handler "pipe-ctrl" is still a TODO. allow it here. Cc: Colin Xu Cc: Kevin Tian Signed-off-by: Yan Zhao Signed-off-by: Zhenyu Wang Link: http://patchwork.freedesktop.org/patch/msgid/20201223034526.17128-1-yan.y.zhao@intel.com Reviewed-by: Zhenyu Wang --- diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c index be0a7d4..83fa4f1 100644 --- a/drivers/gpu/drm/i915/gvt/cmd_parser.c +++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c @@ -999,6 +999,11 @@ static int cmd_reg_handler(struct parser_exec_state *s, return -EPERM; } + if (!strncmp(cmd, "pipe_ctrl", 9)) { + /* TODO: add LRI POST logic here */ + return 0; + } + if (is_cmd_update_pdps(offset, s) && cmd_pdp_mmio_update_handler(s, offset, index)) return -EINVAL;