diff options
| author | Yan Zhao <[email protected]> | 2020-08-11 07:02:33 +0000 |
|---|---|---|
| committer | Zhenyu Wang <[email protected]> | 2020-09-10 05:48:09 +0000 |
| commit | 7e93a0806f5a8b42c0a845a02816b6f80d406f79 (patch) | |
| tree | 4f5774ce1396eb1d98d76f3b909e9db82ab9d6d0 /drivers/gpu/drm/i915/gvt/cmd_parser.c | |
| parent | drm/i915/gvt: remove flag F_CMD_ACCESSED (diff) | |
| download | kernel-7e93a0806f5a8b42c0a845a02816b6f80d406f79.tar.gz kernel-7e93a0806f5a8b42c0a845a02816b6f80d406f79.zip | |
drm/i915/gvt: add/modify interfaces for flag F_CMD_ACCESS
flag F_CMD_ACCESS represents whether an MMIO is able to be accessed by
GPU commands.
In this patch,
1. add interface to set this flag
2. rename intel_gvt_mmio_is_cmd_access() to
intel_gvt_mmio_is_cmd_accessible() and update its description message.
Reviewed-by: Zhenyu Wang <[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]
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/cmd_parser.c')
| -rw-r--r-- | drivers/gpu/drm/i915/gvt/cmd_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c index 0292e3c1deb4..affd05d2c201 100644 --- a/drivers/gpu/drm/i915/gvt/cmd_parser.c +++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c @@ -936,7 +936,7 @@ static int cmd_reg_handler(struct parser_exec_state *s, return -EFAULT; } - if (!intel_gvt_mmio_is_cmd_access(gvt, 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; |
