summaryrefslogtreecommitdiff
path: root/include/linux/processor.h
diff options
context:
space:
mode:
authorYan Zhao <yan.y.zhao@intel.com>2019-03-27 00:55:45 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-17 08:38:39 +0200
commit8ad895bf4b8bb365d074af01ab9deead7130246d (patch)
treec902d213375038658177c33cd3cc1616a8c2dc5b /include/linux/processor.h
parent646f8e01fc37f383c82eb497f925759fefe440c8 (diff)
drm/i915/gvt: do not let pin count of shadow mm go negative
[ Upstream commit 663a50ceac75c2208d2ad95365bc8382fd42f44d ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/processor.h')
0 files changed, 0 insertions, 0 deletions