drm/i915/gvt: filter cmd "pipe-ctrl" in cmd_handler
authorYan Zhao <yan.y.zhao@intel.com>
Wed, 23 Dec 2020 03:45:26 +0000 (11:45 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 25 Dec 2020 03:16:05 +0000 (11:16 +0800)
"pipe-ctrl" is still a TODO. allow it here.

Cc: Colin Xu <colin.xu@intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20201223034526.17128-1-yan.y.zhao@intel.com
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c

index be0a7d4..83fa4f1 100644 (file)
@@ -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;