All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest
@ 2018-03-29 10:58 Xiong Zhang
  2018-03-29  2:33 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Xiong Zhang @ 2018-03-29 10:58 UTC (permalink / raw)
  To: intel-gvt-dev, intel-gfx

Four drm_mm_node are used to reserve guest ggtt space, but some of them
may aren't initialized and used in intel_vgt_balloon(), so these unused
drm_mm_node couldn't be removed through drm_mm_remove_node().

Fixes: ff8f797557c7("drm/i915: return the correct usable aperture size under gvt environment")
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
---
 drivers/gpu/drm/i915/i915_vgpu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915/i915_vgpu.c
index 5fe9f3f..7545686 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 (!node->allocated)
+		return;
+
 	DRM_DEBUG_DRIVER("deballoon space: range [0x%llx - 0x%llx] %llu KiB.\n",
 			 node->start,
 			 node->start + node->size,
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-04-03  3:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-29 10:58 [PATCH] drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest Xiong Zhang
2018-03-29  2:33 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-03-29  8:27 ` [PATCH] " Chris Wilson
2018-03-29  8:55   ` Zhang, Xiong Y
2018-04-02  8:34   ` [PATCH v2] " Xiong Zhang
2018-03-29  9:44 ` [PATCH] " Joonas Lahtinen
2018-03-30  7:01   ` Zhang, Xiong Y
2018-03-30  7:36     ` Zhenyu Wang
2018-04-02  8:37   ` [PATCH] drm/i915: Move vgpu balloon info into i915_virtual_gpu struct Xiong Zhang
2018-04-03  3:07     ` Zhenyu Wang
2018-03-29 11:01 ` ✗ Fi.CI.IGT: failure for drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest Patchwork
2018-04-02  8:55 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Don't deballoon unused ggtt drm_mm_node in linux guest (rev3) Patchwork
2018-04-02  9:12 ` ✗ Fi.CI.BAT: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.