]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Fix relocation of shadow bb
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jan 2017 19:58:16 +0000 (19:58 +0000)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 17 Jan 2017 08:54:23 +0000 (16:54 +0800)
commite09a5483c3c6296be19a4297ce6eeea51918c3b5
tree048daf5d39393f42f720b84a2751b694a53bc14a
parente75614c531055ea9dafd29be517438c459c1aee2
drm/i915/gvt: Fix relocation of shadow bb

set_gma_to_bb_cmd() is completely bogus - it is (incorrectly) applying
the rules to read a GTT offset from a command as opposed to writing the
GTT offset. And to cap it all set_gma_to_bb_cmd() is called within a list
iterator of the most strange construction.

Fixes: 3af56e7af3a9 ("drm/i915/gvt: vGPU command scanner")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Yulei Zhang <yulei.zhang@intel.com>
Cc: <drm-intel-fixes@lists.freedesktop.org> # v4.10-rc1+
Tested-by: Tina Zhang <tina.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/execlist.c
drivers/gpu/drm/i915/gvt/scheduler.h