linux/drivers/gpu/drm/i915/gvt
Yan Zhao 663a50ceac 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: 2707e44466 ("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>
2019-03-29 10:27:42 +08:00
..
aperture_gm.c drm/i915: Markup paired operations on wakerefs 2019-01-14 16:17:53 +00:00
cfg_space.c
cmd_parser.c Merge tag 'gvt-fixes-2019-03-21' of https://github.com/intel/gvt-linux into drm-intel-fixes 2019-03-21 12:33:26 -07:00
cmd_parser.h
debug.h
debugfs.c
display.c drm/i915/gvt: add hotplug emulation 2019-01-31 11:26:55 +08:00
display.h drm/i915/gvt: add functions to get default resolution 2019-01-31 11:26:48 +08:00
dmabuf.c drm/i915/gvt: Enable gfx virtualiztion for CFL 2019-01-10 11:36:43 +08:00
dmabuf.h
edid.c drm/i915/gvt: Refine port select logic for CFL platform 2019-01-10 11:38:04 +08:00
edid.h
execlist.c
execlist.h
fb_decoder.c Merge tag 'gvt-next-2019-01-24' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2019-01-24 14:50:04 -08:00
fb_decoder.h
firmware.c
gtt.c drm/i915/gvt: do not let pin count of shadow mm go negative 2019-03-29 10:27:42 +08:00
gtt.h drm/i915/gvt: Add mutual lock for ppgtt mm LRU list 2019-03-04 14:45:28 +08:00
gvt.c drm/i915/gvt: add hotplug emulation 2019-01-31 11:26:55 +08:00
gvt.h Merge tag 'gvt-next-2019-02-01' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2019-02-01 09:03:24 -08:00
handlers.c Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
hypercall.h Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
interrupt.c drm/i915/gvt: Enable gfx virtualiztion for CFL 2019-01-10 11:36:43 +08:00
interrupt.h
kvmgt.c Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
Makefile drm/i915/gvt: Change KVMGT as self load module 2019-01-02 15:51:26 +08:00
mmio.c drm/i915/gvt: switch to kernel types 2019-01-23 13:56:14 +08:00
mmio.h drm/i915/gvt: Add coffeelake platform definition 2019-01-10 11:35:02 +08:00
mmio_context.c Merge tag 'gvt-fixes-2019-03-21' of https://github.com/intel/gvt-linux into drm-intel-fixes 2019-03-21 12:33:26 -07:00
mmio_context.h
mpt.h Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
opregion.c
page_track.c
page_track.h
reg.h
sched_policy.c Merge tag 'gvt-next-2019-01-24' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2019-01-24 14:50:04 -08:00
sched_policy.h
scheduler.c drm/i915/gvt: do not deliver a workload if its creation fails 2019-03-29 10:26:53 +08:00
scheduler.h Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
trace.h drm/i915/gvt: give the cmd parser cmd_info a const treatment 2019-01-10 11:29:02 +08:00
trace_points.c
vgpu.c Merge tag 'gvt-next-2019-02-01' of https://github.com/intel/gvt-linux into drm-intel-next-queued 2019-02-01 09:03:24 -08:00