* [PATCH] drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace
@ 2026-09-21 6:26 Varun Gupta
2026-09-21 6:33 ` sashiko-bot
2026-09-23 7:54 ` Thomas Hellström
0 siblings, 2 replies; 4+ messages in thread
From: Varun Gupta @ 2026-09-21 6:26 UTC (permalink / raw)
To: dri-devel
Cc: intel-xe, matthew.brost, thomas.hellstrom, arvind.yadav,
himal.prasad.ghimiray
Reference-drop trace in drm_pagemap_dev_unhold_work() was changed
from drm_dbg() to drm_dbg_ratelimited() to reduce serial console
bottlenecks.
However, when the ratelimit kicks in, the kernel's ratelimiting subsystem
logs a "callbacks suppressed" notification at the KERN_WARNING level.
Revert the trace macro back to drm_dbg()
Fixes: b66b036c959f ("drm/pagemap: Prevent CPU stalls during unbounded pagemap teardown")
Signed-off-by: Varun Gupta <varun.gupta@intel.com>
---
drivers/gpu/drm/drm_pagemap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_pagemap.c b/drivers/gpu/drm/drm_pagemap.c
index 0867bfbde5c5..ba97daedcd49 100644
--- a/drivers/gpu/drm/drm_pagemap.c
+++ b/drivers/gpu/drm/drm_pagemap.c
@@ -1009,7 +1009,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");
drm_dev_put(drm);
module_put(module);
kfree(dev_hold);
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace
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
2026-09-23 8:39 ` Gupta, Varun
2026-09-23 7:54 ` Thomas Hellström
1 sibling, 1 reply; 4+ messages in thread
From: sashiko-bot @ 2026-09-21 6:33 UTC (permalink / raw)
To: Varun Gupta; +Cc: intel-xe, dri-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace
2026-09-21 6:33 ` sashiko-bot
@ 2026-09-23 8:39 ` Gupta, Varun
0 siblings, 0 replies; 4+ messages in thread
From: Gupta, Varun @ 2026-09-23 8:39 UTC (permalink / raw)
To: sashiko-reviews; +Cc: intel-xe, dri-devel
On 21-Sep-26 12:03 PM, sashiko-bot@kernel.org wrote:
> 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?
This does not introduce a stall, it is handled by the WQ_UNBOUND change.
This log was ratelimited to
just prevent log flooding but it in turn introduces a suppressed warning.
> 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);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/pagemap: Drop ratelimiting from dev_unhold_work debug trace
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
@ 2026-09-23 7:54 ` Thomas Hellström
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Hellström @ 2026-09-23 7:54 UTC (permalink / raw)
To: Varun Gupta, dri-devel
Cc: intel-xe, matthew.brost, arvind.yadav, himal.prasad.ghimiray
On Mon, 2026-09-21 at 11:56 +0530, Varun Gupta wrote:
> Reference-drop trace in drm_pagemap_dev_unhold_work() was changed
> from drm_dbg() to drm_dbg_ratelimited() to reduce serial console
> bottlenecks.
> However, when the ratelimit kicks in, the kernel's ratelimiting
> subsystem
> logs a "callbacks suppressed" notification at the KERN_WARNING level.
> Revert the trace macro back to drm_dbg()
>
> Fixes: b66b036c959f ("drm/pagemap: Prevent CPU stalls during
> unbounded pagemap teardown")
> Signed-off-by: Varun Gupta <varun.gupta@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> ---
> drivers/gpu/drm/drm_pagemap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_pagemap.c
> b/drivers/gpu/drm/drm_pagemap.c
> index 0867bfbde5c5..ba97daedcd49 100644
> --- a/drivers/gpu/drm/drm_pagemap.c
> +++ b/drivers/gpu/drm/drm_pagemap.c
> @@ -1009,7 +1009,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");
> drm_dev_put(drm);
> module_put(module);
> kfree(dev_hold);
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-23 8:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-09-23 8:39 ` Gupta, Varun
2026-09-23 7:54 ` Thomas Hellström
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox