diff options
author | Yan Zhao <yan.y.zhao@intel.com> | 2019-03-27 00:55:45 -0400 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-03-29 10:27:42 +0800 |
commit | 663a50ceac75c2208d2ad95365bc8382fd42f44d (patch) | |
tree | acf9b544b07b6fd2d9142ba146e9286aea27cf63 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | dade58ed5af6365ac50ff4259c2a0bf31219e285 (diff) |
drm/i915/gvt: do not let pin count of shadow mm go negative
shadow mm's pin count got increased in workload preparation phase, which
is after workload scanning.
it will get decreased in complete_current_workload() anyway after
workload completion.
Sometimes, if a workload meets a scanning error, its shadow mm pin count
will not get increased but will get decreased in the end.
This patch lets shadow mm's pin count not go below 0.
Fixes: 2707e4446688 ("drm/i915/gvt: vGPU graphics memory virtualization")
Cc: zhenyuw@linux.intel.com
Cc: stable@vger.kernel.org #4.14+
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions