diff options
author | Ping Gao <ping.a.gao@intel.com> | 2016-12-08 10:14:48 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2016-12-26 09:45:29 +0800 |
commit | d650ac06023796ade7cb5ec4d5650c67dc494ed0 (patch) | |
tree | c2f6e97a268ef00115ec8e761f94c94bfffff9c9 | |
parent | b8395cc7a454efc616e335c22af22d8513abdafc (diff) |
drm/i915/gvt: reset the GGTT entry when vGPU created
The GGTT space is partitioned between vGPUs, it could be reused by
next vGPU after previous one is release, the stale entries need
point to scratch page when vGPU created.
v2: Reset logic move to vGPU create.
v3: Correct the commit msg.
v4: Move the reset function to vGPU init gtt function, as result it's no
need explicitly in vGPU reset logic as vGPU init gtt called during
reset.
Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>