]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Add 2M huge gtt support
authorChangbin Du <changbin.du@intel.com>
Tue, 15 May 2018 02:35:43 +0000 (10:35 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jul 2018 02:35:00 +0000 (10:35 +0800)
commita97ac69b4b38caf33f8de4f4b4fed1b38d9ed8d7
tree194c6d0c8a681340c3df38e9e09917318d173505
parent6a73088bb4bf74f4b442bad552bdae00b9cc3b89
drm/i915/gvt: Add 2M huge gtt support

This add 2M huge gtt support for GVTg. Unlike 64K gtt entry, we can
shadow 2M guest entry with real huge gtt. But before that, we have to
check memory physical continuous, alignment and if it is supported on
the host. We can get all supported page sizes from
intel_device_info.page_sizes.

Finally we must split the 2M page into smaller pages if we cannot
satisfy guest Huge Page.

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