]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: refine mocs save restore policy
authorWeinan Li <weinan.z.li@intel.com>
Wed, 13 Dec 2017 02:47:01 +0000 (10:47 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 18 Dec 2017 08:30:20 +0000 (16:30 +0800)
commit9c6260b47ae3f79a6b2db56e89cb4c57332c39ec
treebc4f79518948e8645eb65563c41db73f498a8fd4
parent4a95875322b3a7a03a3b2ba410dd2560cd507838
drm/i915/gvt: refine mocs save restore policy

Save and restore the mocs regs of one VM in GVT-g burning too much CPU
utilization. Add LRI command scan to monitor the change of mocs registers,
save the state in vreg, and use delta update policy to restore them.
It can obviously reduce the MMIO r/w count, and improve the performance
of context 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/cmd_parser.c
drivers/gpu/drm/i915/gvt/mmio_context.c