]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: access shadow ctx via its virtual address directly
authorYan Zhao <yan.y.zhao@intel.com>
Wed, 15 Apr 2020 03:57:28 +0000 (23:57 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 15 Apr 2020 06:02:17 +0000 (14:02 +0800)
commitdff29158abbf986c0d05746fa5f84914485e5761
tree078b6e0f2e656adf850db965decc028f9658f9ea
parent4ae8e1271ac67e8d0458e36b01eb44d0d3e6d260
drm/i915/gvt: access shadow ctx via its virtual address directly

as shadow context is pinned in intel_vgpu_setup_submission() and
unpinned in intel_vgpu_clean_submission(), its base virtual address of
is safely obtained from lrc_reg_state. no need to call kmap()/kunmap()
repeatedly.

Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200415035728.26424-1-yan.y.zhao@intel.com
drivers/gpu/drm/i915/gvt/scheduler.c