]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: fix incorrect cache entry for guest page mapping
authorXiaolin Zhang <xiaolin.zhang@intel.com>
Wed, 17 Jul 2019 17:10:24 +0000 (01:10 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 30 Jul 2019 06:29:49 +0000 (14:29 +0800)
commit059b3b1c7c9d2dd1c5b85ec3b1c4e7a8274430c1
tree4d88cd1fc1d7f8247efa53aa61b00b23d1f3f748
parent8ca9d9a61438802297a5e46a5edcc64db1bf362b
drm/i915/gvt: fix incorrect cache entry for guest page mapping

GPU hang observed during the guest OCL conformance test which is caused
by THP GTT feature used durning the test.

It was observed the same GFN with different size (4K and 2M) requested
from the guest in GVT. So during the guest page dma map stage, it is
required to unmap first with orginal size and then remap again with
requested size.

Fixes: a97ac69b4b38 ("drm/i915/gvt: Add 2M huge gtt support")
Cc: stable@vger.kernel.org
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Xiaolin Zhang <xiaolin.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c