]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/kvmgt: Support setting dma map for huge pages
authorChangbin Du <changbin.du@intel.com>
Tue, 15 May 2018 02:35:42 +0000 (10:35 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jul 2018 02:34:28 +0000 (10:34 +0800)
commit79e542f5af79918e5e766c441561fb9bff8af3aa
tree211fe11c64288815a2094b18cbc01c69ccfe7bc0
parenteb3a353014d2c2402e572ab7bef86bf5e328160f
drm/i915/kvmgt: Support setting dma map for huge pages

To support huge gtt, we need to support huge pages in kvmgt first.
This patch adds a 'size' param to the intel_gvt_mpt::dma_map_guest_page
API and implements it in kvmgt.

v2: rebase.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/hypercall.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/mpt.h