]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/gvt: only copy the first page for restore inhibit context
authorZhao Yan <yan.y.zhao@intel.com>
Wed, 1 Aug 2018 04:15:31 +0000 (00:15 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 2 Aug 2018 05:27:54 +0000 (13:27 +0800)
commit8bfa02c885ee538353f52b36d16de90655e1bcde
tree6f2436d8f2acf3a5d8ec13ff8fb08fd072d0458e
parentdb47685da1d8224f0eaa35c32e1a1ea97b05bae0
drm/i915/gvt: only copy the first page for restore inhibit context

if a context is a restore inhibit context, gfx hw only load the first page
for ring context, so we only need to copy from guest the 1 page too.

v3: use "return" instead of "goto" for inhibit case. (zhenyu wang)
v2: move judgement of restore inhibit to a macro in  mmio_context.h

Signed-off-by: Zhao Yan <yan.y.zhao@intel.com>
Acked-by: Hang Yuan <hang.yuan@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/mmio_context.h
drivers/gpu/drm/i915/gvt/scheduler.c