diff options
author | Yan Zhao <[email protected]> | 2020-12-23 11:45:26 +0800 |
---|---|---|
committer | Zhenyu Wang <[email protected]> | 2020-12-25 11:16:05 +0800 |
commit | 252cec9fc95272fb0b00528a37be96d1f960c277 (patch) | |
tree | cb7bb5f71a002538ed5672d663adb562ef7f2760 | |
parent | 73a37a43d1b0ad4fb2154bc000d44c89e458619d (diff) |
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]>
-rw-r--r-- | drivers/gpu/drm/i915/gvt/cmd_parser.c | 5 |
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; |