dmaengine: idxd: rate limit printk in misc interrupt thread
Subsystems (2)
PATCH 1/1 dmaengine: idxd: rate limit printk in misc interrupt thread
From: Dave Jiang <[email protected]>
Add rate limit to the dev_warn() call in the misc interrupt thread. This limits dmesg getting spammed if a descriptor submitter is spamming bad descriptors with invalid completion records and resulting the errors being continuously reported by the misc interrupt handling thread.
---
This patch was sent to dmaengine mailing list before:
https://lore.kernel.org/all/165125377735.312075.15715853788802098990.stgit@djiang5-desk3.ch.intel.com/
But it hasn't be merged into upstream yet. Add my Reviewed-by tag and re-send it. No code or commit message change.
drivers/dma/idxd/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/dma/idxd/irq.c +2 -2
@@ -430,8 +430,8 @@ irqreturn_t idxd_misc_thread(int vec, void *data) val |=IDXD_INTC_ERR ;for (i =0 ; i <4 ; i++) -dev_warn (dev,"err[%d]: %#16.16llx\n" , - i, idxd->sw_err.bits[i]); +dev_warn_ratelimited (dev,"err[%d]: %#16.16llx\n" , + i, idxd->sw_err.bits[i]); err = true; }
Signature · 1 line
2.32.0
Quoted 11 lines · Fenghua Yu
From: Dave Jiang <[email protected]>
Add rate limit to the
dev_warn()call in the misc interrupt thread. This limits dmesg getting spammed if a descriptor submitter is spamming bad descriptors with invalid completion records and resulting the errors being continuously reported by the misc interrupt handling thread.Reported-by Sanjay Kumar <[email protected]>Signed-off-by Dave Jiang <[email protected]>Reviewed-by Fenghua Yu <[email protected]>---
Quoted 24 lines
This patch was sent to dmaengine mailing list before:
https://lore.kernel.org/all/165125377735.312075.15715853788802098990.stgit@djiang5-desk3.ch.intel.com/
But it hasn't be merged into upstream yet. Add my Reviewed-by tag and re-send it. No code or commit message change.drivers/dma/idxd/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/dma/idxd/irq.c +2
-2@@ -430,8 +430,8 @@ irqreturn_t idxd_misc_thread(int vec, void *data) val |=IDXD_INTC_ERR ;for (i =0 ; i <4 ; i++) -dev_warn (dev,"err[%d]: %#16.16llx\n" , - i, idxd->sw_err.bits[i]); +dev_warn_ratelimited (dev,"err[%d]: %#16.16llx\n" , + i, idxd->sw_err.bits[i]); err = true; }
Quoted 6 lines · Fenghua Yu
Add rate limit to the
dev_warn()call in the misc interrupt thread. This limits dmesg getting spammed if a descriptor submitter is spamming bad descriptors with invalid completion records and resulting the errors being continuously reported by the misc interrupt handling thread.
Applied, thanks!
[1/1] dmaengine: idxd: rate limit printk in misc interrupt thread
commit: 555921feb2ac03d88647ccc62015e68f157c30a2
Best regards,
Signature · 1 line
~Vinod