drm/i915/gvt: check workload empty before real scan
authorPei Zhang <pei.zhang@intel.com>
Wed, 16 Nov 2016 11:05:50 +0000 (19:05 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 16 Nov 2016 03:45:29 +0000 (11:45 +0800)
commit0aaee4cc834261dcfbfb57559442777344ee8cb5
treeab6ddb9c80142acc0bc7292eeb9c501c284fcc36
parenta3614a868fd31b0e3ba670401a651ae89bb527aa
drm/i915/gvt: check workload empty before real scan

This patch will fix warning log print during command scan caused by
empty workload (ring head equals tail). This patch avoid going into
real scan process if workload is empty. It's guest's responsibility
to make sure if an empty workload is proper to submit to HW.

[v2] modify the patch description. It's a fix, not a w/a.

Signed-off-by: Pei Zhang <pei.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c