]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: GVT pin/unpin shadow context
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Thu, 16 Mar 2017 01:47:58 +0000 (09:47 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Mar 2017 08:46:45 +0000 (16:46 +0800)
commitbd0fe21a602283ae2ce41e2966ad5d11fa277b0e
tree25be3c5a6410475b78bca0c148395fe0254a73b9
parent2cc7d513d0cbbcc323d62dcc95147c1dbc670f9e
drm/i915/gvt: GVT pin/unpin shadow context

When handling guest request, GVT needs to populate/update shadow_ctx
with guest context. This behavior needs to make sure the shadow_ctx
is pinned. The current implementation is relying on i195 allocate request
to pin but this way cannot guarantee the i915 not to unpin the shadow_ctx
when GVT update the guest context from shadow_ctx. So GVT should pin/unpin
the shadow_ctx by itself.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c