drm/i915/gvt: handle force-nonpriv registers, cmd parser part
authorZhao Yan <yan.y.zhao@intel.com>
Thu, 9 Mar 2017 02:09:44 +0000 (10:09 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Mar 2017 08:46:45 +0000 (16:46 +0800)
commit4938ca90166d6d3061793789e2eef42cd934fa97
tree467da64107cd9022a813038d5018171e43e05765
parent6aef660370a9c246956ba6d01eebd8063c4214cb
drm/i915/gvt: handle force-nonpriv registers, cmd parser part

this patch adds force non-priv registers check in LRI cmds handler

v4:
transform is_force_nonpriv_mmio() from macro to inline fuction to eliminate
checkpatch warning

v3:
per zhenyu's comment, fix some style warnings

v2:
per zhenyu's comment, refine the code to remove cascaded ifs

Signed-off-by: Zhao Yan <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/mmio.h