Skip to content

Commit 78457ca

Browse files
Sean Andersonbjorn-helgaas
authored andcommitted
PCI: xilinx-nwl: Rate-limit misc interrupt messages
The conditions logged by the misc interrupt can occur repeatedly and continuously. Avoid rendering the console unusable by rate-limiting these messages. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Anderson <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent a437027 commit 78457ca

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/pci/controller/pcie-xilinx-nwl.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,37 +267,37 @@ static irqreturn_t nwl_pcie_misc_handler(int irq, void *data)
267267
return IRQ_NONE;
268268

269269
if (misc_stat & MSGF_MISC_SR_RXMSG_OVER)
270-
dev_err(dev, "Received Message FIFO Overflow\n");
270+
dev_err_ratelimited(dev, "Received Message FIFO Overflow\n");
271271

272272
if (misc_stat & MSGF_MISC_SR_SLAVE_ERR)
273-
dev_err(dev, "Slave error\n");
273+
dev_err_ratelimited(dev, "Slave error\n");
274274

275275
if (misc_stat & MSGF_MISC_SR_MASTER_ERR)
276-
dev_err(dev, "Master error\n");
276+
dev_err_ratelimited(dev, "Master error\n");
277277

278278
if (misc_stat & MSGF_MISC_SR_I_ADDR_ERR)
279-
dev_err(dev, "In Misc Ingress address translation error\n");
279+
dev_err_ratelimited(dev, "In Misc Ingress address translation error\n");
280280

281281
if (misc_stat & MSGF_MISC_SR_E_ADDR_ERR)
282-
dev_err(dev, "In Misc Egress address translation error\n");
282+
dev_err_ratelimited(dev, "In Misc Egress address translation error\n");
283283

284284
if (misc_stat & MSGF_MISC_SR_FATAL_AER)
285-
dev_err(dev, "Fatal Error in AER Capability\n");
285+
dev_err_ratelimited(dev, "Fatal Error in AER Capability\n");
286286

287287
if (misc_stat & MSGF_MISC_SR_NON_FATAL_AER)
288-
dev_err(dev, "Non-Fatal Error in AER Capability\n");
288+
dev_err_ratelimited(dev, "Non-Fatal Error in AER Capability\n");
289289

290290
if (misc_stat & MSGF_MISC_SR_CORR_AER)
291-
dev_err(dev, "Correctable Error in AER Capability\n");
291+
dev_err_ratelimited(dev, "Correctable Error in AER Capability\n");
292292

293293
if (misc_stat & MSGF_MISC_SR_UR_DETECT)
294-
dev_err(dev, "Unsupported request Detected\n");
294+
dev_err_ratelimited(dev, "Unsupported request Detected\n");
295295

296296
if (misc_stat & MSGF_MISC_SR_NON_FATAL_DEV)
297-
dev_err(dev, "Non-Fatal Error Detected\n");
297+
dev_err_ratelimited(dev, "Non-Fatal Error Detected\n");
298298

299299
if (misc_stat & MSGF_MISC_SR_FATAL_DEV)
300-
dev_err(dev, "Fatal Error Detected\n");
300+
dev_err_ratelimited(dev, "Fatal Error Detected\n");
301301

302302
if (misc_stat & MSGF_MISC_SR_LINK_AUTO_BWIDTH)
303303
dev_info(dev, "Link Autonomous Bandwidth Management Status bit set\n");

0 commit comments

Comments
 (0)