drm/i915/gvt: return error on cmd access
authorZhao Yan <yan.y.zhao@intel.com>
Wed, 1 Aug 2018 04:15:48 +0000 (00:15 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Aug 2018 07:26:39 +0000 (15:26 +0800)
commit8d458ea0ec331adb4c829289e9a56c97d3c1e542
tree6222f71c839e253207993a48e5f2a0f5e9576e91
parentd6c6113bfe19af514128163a6d176437d45b7325
drm/i915/gvt: return error on cmd access

If a register is not cmd accessible, should not just print error
message. Return error here so as not to deliver this cmd.

v2: return -EBADRQC to align with return value elsewhere. (kevin tian)

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