aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/cmd_parser.c
diff options
context:
space:
mode:
authorYan Zhao <[email protected]>2020-12-23 03:45:26 +0000
committerZhenyu Wang <[email protected]>2020-12-25 03:16:05 +0000
commit252cec9fc95272fb0b00528a37be96d1f960c277 (patch)
treecb7bb5f71a002538ed5672d663adb562ef7f2760 /drivers/gpu/drm/i915/gvt/cmd_parser.c
parentdrm/i915/gvt: filter cmds "lrr-src" and "lrr-dst" in cmd_handler (diff)
downloadkernel-252cec9fc95272fb0b00528a37be96d1f960c277.tar.gz
kernel-252cec9fc95272fb0b00528a37be96d1f960c277.zip
drm/i915/gvt: filter cmd "pipe-ctrl" in cmd_handler
"pipe-ctrl" is still a TODO. allow it here. Cc: Colin Xu <[email protected]> Cc: Kevin Tian <[email protected]> Signed-off-by: Yan Zhao <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Zhenyu Wang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/cmd_parser.c')
-rw-r--r--drivers/gpu/drm/i915/gvt/cmd_parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index be0a7d4e8750..83fa4f17c943 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;