]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: unify lri cmd handler and mmio handlers
authorYan Zhao <yan.y.zhao@intel.com>
Wed, 23 Dec 2020 03:46:32 +0000 (11:46 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 25 Dec 2020 03:16:32 +0000 (11:16 +0800)
commit4685d9186322e91bc9fecd042f982cc6f3c3b307
tree73b1d112bbc4cec827fd8a2821989effcb0268b3
parent00df44897398df2340f734307c49205d256ecab7
drm/i915/gvt: unify lri cmd handler and mmio handlers

for common ctxs and commands in workload, call mmio handlers for value
checking and command patching for registers with command fix write flag
set.

after calling mmio handlers, resotre old vreg values so as to keep vreg
unchanged after command scanning.

Note:
for regs in below catigories,
a. in ctx and save-restore list, and is inhibit ctx
b. in mocs
after cmd scanning, do not restore old vreg values, but update vreg as
what has been implemented before this patch.

Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20201223034632.17416-1-yan.y.zhao@intel.com
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c