]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915/gvt: reset the GGTT entry when vGPU created
authorPing Gao <ping.a.gao@intel.com>
Thu, 8 Dec 2016 02:14:48 +0000 (10:14 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 26 Dec 2016 01:45:29 +0000 (09:45 +0800)
commitd650ac06023796ade7cb5ec4d5650c67dc494ed0
treec2f6e97a268ef00115ec8e761f94c94bfffff9c9
parentb8395cc7a454efc616e335c22af22d8513abdafc
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>
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/gtt.h