]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Utility for valid command length check
authorGao, Fred <fred.gao@intel.com>
Thu, 18 Jul 2019 01:39:01 +0000 (09:39 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 13 Aug 2019 09:55:06 +0000 (17:55 +0800)
commit3e71dbcd6766edcf4b3bb2e32cfc424b428c8622
treec994ebcc4ee8b13ae2b4a70d60dfc6f4f55f0e86
parentfafe3d5294631438d14c9c0c16c5f7f60ed42b13
drm/i915/gvt: Utility for valid command length check

Add utility for valid command length check.

v2: Add F_VAL_CONST flag to identify the value is const
    although LEN maybe variable. (Zhenyu)
v3: unused code removal, flag rename/conflict. (Zhenyu)
v4: redefine F_IP_ADVANCE_CUSTOM and move the check function to
    next patch. (Zhenyu)

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Gao, Fred <fred.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c