projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329328e
)
drm/i915/gvt: Remove duplicated register accessible check
author
Zhenyu Wang
<zhenyuw@linux.intel.com>
Wed, 14 Apr 2021 08:48:13 +0000
(16:48 +0800)
committer
Zhenyu Wang
<zhenyuw@linux.intel.com>
Wed, 21 Apr 2021 09:56:06 +0000
(17:56 +0800)
Looks this duplication was missed in code rebase. Remove extra check.
Cc: Yan Zhao <yan.y.zhao@intel.com>
Fixes:
02dd2b12a685
("drm/i915/gvt: unify lri cmd handler and mmio handlers")
Reviewed-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/20210414084813.3763353-2-zhenyuw@linux.intel.com
drivers/gpu/drm/i915/gvt/cmd_parser.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gvt/cmd_parser.c
b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index
fef1e85
..
42c967d
100644
(file)
--- a/
drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/
drivers/gpu/drm/i915/gvt/cmd_parser.c
@@
-941,11
+941,6
@@
static int cmd_reg_handler(struct parser_exec_state *s,
/* below are all lri handlers */
vreg = &vgpu_vreg(s->vgpu, offset);
- if (!intel_gvt_mmio_is_cmd_accessible(gvt, offset)) {
- gvt_vgpu_err("%s access to non-render register (%x)\n",
- cmd, offset);
- return -EBADRQC;
- }
if (is_cmd_update_pdps(offset, s) &&
cmd_pdp_mmio_update_handler(s, offset, index))