summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTina Zhang <tina.zhang@intel.com>2017-01-17 14:33:16 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-01-17 16:53:16 +0800
commit58c744da9dcc82a4b55a18e05149ae0e32624d11 (patch)
tree7ed8cc51a198455fd5099b8a32392d4812d83f02
parentc34eaa8d0f9d9ae26a4a6af7bc3aca57310cf483 (diff)
downloadlinux-58c744da9dcc82a4b55a18e05149ae0e32624d11.tar.gz
linux-58c744da9dcc82a4b55a18e05149ae0e32624d11.tar.xz
drm/i915/gvt: Enable the shadow batch buffer
Shadow batch buffer is used to shadow the privileged batch buffer which is submitted by vGPU's workload. This patch is used to unmark this functionality. Signed-off-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
-rw-r--r--drivers/gpu/drm/i915/gvt/cmd_parser.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/gvt/cmd_parser.c b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index d26a092c70e8..e4563984cb1e 100644
--- a/drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/drivers/gpu/drm/i915/gvt/cmd_parser.c
@@ -481,7 +481,6 @@ struct parser_exec_state {
(s->vgpu->gvt->device_info.gmadr_bytes_in_cmd >> 2)
static unsigned long bypass_scan_mask = 0;
-static bool bypass_batch_buffer_scan = true;
/* ring ALL, type = 0 */
static struct sub_op_bits sub_op_mi[] = {
@@ -1525,9 +1524,6 @@ static int batch_buffer_needs_scan(struct parser_exec_state *s)
{
struct intel_gvt *gvt = s->vgpu->gvt;
- if (bypass_batch_buffer_scan)
- return 0;
-
if (IS_BROADWELL(gvt->dev_priv) || IS_SKYLAKE(gvt->dev_priv)) {
/* BDW decides privilege based on address space */
if (cmd_val(s, 0) & (1 << 8))