drm/i915/gvt: load host render mocs once in mocs switch
authorWeinan Li <weinan.z.li@intel.com>
Wed, 13 Dec 2017 02:47:02 +0000 (10:47 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 18 Dec 2017 08:30:24 +0000 (16:30 +0800)
commitb05b33970e333ecf8f7985d5acad759972919470
treef55c035008f6589d70958d99d286aa2c0764705a
parentf402f2d6c3c5a5192869ffbdc079b782ef32dd01
drm/i915/gvt: load host render mocs once in mocs switch

Load host render mocs registers once for delta update of mocs switch, it
reduces mmio read times obviously, then brings performance improvement
during multi-vms switch.

Signed-off-by: Weinan Li <weinan.z.li@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/mmio_context.c