From: sashiko-bot@kernel.org
To: "Varun Gupta" <varun.gupta@intel.com>
Cc: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace
Date: Mon, 21 Sep 2026 06:33:09 +0000 [thread overview]
Message-ID: <20260921063310.89D4D1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921062648.1166903-2-varun.gupta@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] drm/pagemap: CPU stall re-introduced by unbounded drm_dbg() loop
--
commit ea1ff5e58f9772cc1eaec3db21133d24e24bd4f0
Author: Varun Gupta <varun.gupta@intel.com>
drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace
This commit reverts the use of drm_dbg_ratelimited back to drm_dbg in
drm_pagemap_dev_unhold_work to avoid "callbacks suppressed" notifications
from the kernel's ratelimiting subsystem.
> diff --git a/drivers/gpu/drm/drm_pagemap.c b/drivers/gpu/drm/drm_pagemap.c
> index c66c58f85c345..743988036a5f8 100644
> --- a/drivers/gpu/drm/drm_pagemap.c
> +++ b/drivers/gpu/drm/drm_pagemap.c
> @@ -1102,7 +1102,7 @@ static void drm_pagemap_dev_unhold_work(struct work_struct *work)
> struct drm_device *drm = dev_hold->drm;
> struct module *module = drm->driver->fops->owner;
>
> - drm_dbg_ratelimited(drm, "Releasing reference on provider device and module.\n");
> + drm_dbg(drm, "Releasing reference on provider device and module.\n");
[Severity: Medium]
Does this code re-introduce a serial console bottleneck and potential CPU stall
during teardown?
When tearing down an unbounded number of DRM pagemaps,
drm_pagemap_dev_unhold_work() iterates over the entire
drm_pagemap_unhold_list. If DRM debugging is enabled, drm_dbg() is now
called for every single entry unconditionally.
If the goal is to prevent the "callbacks suppressed" warning from the
ratelimiting subsystem, would it be better to drop the repetitive log
entirely, or perhaps log once outside the loop, rather than reverting
the CPU stall fix?
> drm_dev_put(drm);
> module_put(module);
> kfree(dev_hold);
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921062648.1166903-2-varun.gupta@intel.com?part=1
next prev parent reply other threads:[~2026-09-21 6:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 6:26 [PATCH] drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace Varun Gupta
2026-09-21 6:33 ` sashiko-bot [this message]
2026-09-23 8:39 ` Gupta, Varun
2026-09-21 7:25 ` ✓ CI.KUnit: success for " Patchwork
2026-09-21 8:43 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-21 11:25 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-09-23 7:54 ` [PATCH] " Thomas Hellström
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260921063310.89D4D1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=varun.gupta@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox