Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i915: change pr_info to pr_info_ratelimited
@ 2024-08-05 14:29 Mikulas Patocka
  2024-08-05 15:02 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mikulas Patocka @ 2024-08-05 14:29 UTC (permalink / raw)
  To: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	intel-gfx
  Cc: Zdenek Kabelac

Zdenek Kabelac reported that his syslog was flooded with many messages:
Purging GPU memory, 0 pages freed, 0 pages still pinned, 2029 pages left available.

It happened when he was testing the VDO device mapper module (which
requires a lot of kernel memory).

This commit changes the message to be ratelimited, so that it doesn't spam 
the syslog.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>

---
 drivers/gpu/drm/i915/gem/i915_gem_shrinker.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
===================================================================
--- linux-2.6.orig/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c	2024-03-11 12:53:59.000000000 +0100
+++ linux-2.6/drivers/gpu/drm/i915/gem/i915_gem_shrinker.c	2024-08-05 16:07:49.000000000 +0200
@@ -375,7 +375,7 @@ i915_gem_shrinker_oom(struct notifier_bl
 	spin_unlock_irqrestore(&i915->mm.obj_lock, flags);
 
 	if (freed_pages || available)
-		pr_info("Purging GPU memory, %lu pages freed, "
+		pr_info_ratelimited("Purging GPU memory, %lu pages freed, "
 			"%lu pages still pinned, %lu pages left available.\n",
 			freed_pages, unevictable, available);
 


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

end of thread, other threads:[~2024-08-07 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-05 14:29 [PATCH] i915: change pr_info to pr_info_ratelimited Mikulas Patocka
2024-08-05 15:02 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-08-05 15:02 ` ✗ Fi.CI.CHECKPATCH: warning " Patchwork
2024-08-05 23:00 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-08-07 14:40 ` [PATCH] " Andi Shyti

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