Skip to content

Commit 0349ec1

Browse files
committed
drm/i915/gvt: Remove duplicated register accessible check
Looks this duplication was missed in code rebase. Remove extra check. Cc: Yan Zhao <[email protected]> Fixes: 02dd2b1 ("drm/i915/gvt: unify lri cmd handler and mmio handlers") Reviewed-by: Colin Xu <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 329328e commit 0349ec1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/gpu/drm/i915/gvt/cmd_parser.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -941,11 +941,6 @@ static int cmd_reg_handler(struct parser_exec_state *s,
941941

942942
/* below are all lri handlers */
943943
vreg = &vgpu_vreg(s->vgpu, offset);
944-
if (!intel_gvt_mmio_is_cmd_accessible(gvt, offset)) {
945-
gvt_vgpu_err("%s access to non-render register (%x)\n",
946-
cmd, offset);
947-
return -EBADRQC;
948-
}
949944

950945
if (is_cmd_update_pdps(offset, s) &&
951946
cmd_pdp_mmio_update_handler(s, offset, index))

0 commit comments

Comments
 (0)