Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Add vgpu.entry list initialization
@ 2026-01-23 10:11 Krzysztof Karas
  2026-01-23 11:49 ` Sebastian Brzezinka
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Krzysztof Karas @ 2026-01-23 10:11 UTC (permalink / raw)
  To: intel-gfx
  Cc: Andi Shyti, Sebastian Brzezinka, Krzysztof Niemiec,
	Janusz Krzysztofik, Krzysztof Karas

It was observed that during fault injection testing the
vgpu.entry remains uninitialized when taking the error path,
which results in warnings [1]:

<6> [491.828427] list_del corruption, ffff88812cd2d0c8->next is NULL
<4> [491.828430] WARNING: lib/list_debug.c:52 at
 __list_del_entry_valid_or_report+0x6f/0x120, CPU#2: i915_module_loa/2921

Add initialization step to intel_vgpu_detect().

Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
---

Example of failure from intel-gfx-ci:
https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8711/shard-dg2-5/igt@i915_module_load@fault-injection.html#dmesg-warnings385

 drivers/gpu/drm/i915/i915_vgpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915/i915_vgpu.c
index d29a06ea51a5..362282b20f7b 100644
--- a/drivers/gpu/drm/i915/i915_vgpu.c
+++ b/drivers/gpu/drm/i915/i915_vgpu.c
@@ -67,6 +67,7 @@ void intel_vgpu_detect(struct drm_i915_private *dev_priv)
 	u64 magic;
 	u16 version_major;
 	void __iomem *shared_area;
+	INIT_LIST_HEAD(&dev_priv->vgpu.entry);
 
 	BUILD_BUG_ON(sizeof(struct vgt_if) != VGT_PVINFO_SIZE);
 
-- 
2.43.0


-- 
Best Regards,
Krzysztof

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

end of thread, other threads:[~2026-01-28 22:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23 10:11 [PATCH] drm/i915: Add vgpu.entry list initialization Krzysztof Karas
2026-01-23 11:49 ` Sebastian Brzezinka
2026-01-23 11:59 ` ✓ i915.CI.BAT: success for " Patchwork
2026-01-23 15:09 ` [PATCH] " Janusz Krzysztofik
2026-01-23 19:40 ` ✓ i915.CI.Full: success for " Patchwork
2026-01-28 16:56 ` [PATCH] " Andi Shyti
2026-01-28 17:38   ` Jani Nikula
2026-01-28 22:39     ` Andi Shyti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox