Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2019-09-09 08:55:35 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2019-09-09 09:04:35 +0200
commite06685c63da144b669f120b2f96b048c02462494 (patch)
tree8fd293de5368f3de0bccb9f0b4c2f284c1e4ceed
parent3ed72dea1a4fe4895e59d421f9fa25c5f564ab30 (diff)
drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest (bsc#1142635)
-rw-r--r--drivers/gpu/drm/i915/i915_vgpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915/i915_vgpu.c
index 5fe9f3f39467..e13ddd559f79 100644
--- a/drivers/gpu/drm/i915/i915_vgpu.c
+++ b/drivers/gpu/drm/i915/i915_vgpu.c
@@ -100,6 +100,9 @@ static struct _balloon_info_ bl_info;
static void vgt_deballoon_space(struct i915_ggtt *ggtt,
struct drm_mm_node *node)
{
+ if (!drm_mm_node_allocated(node))
+ return;
+
DRM_DEBUG_DRIVER("deballoon space: range [0x%llx - 0x%llx] %llu KiB.\n",
node->start,
node->start + node->size,