From: Lee Jones <hidden> Date: 2021-06-17 07:31:59
This sort of information is only generally useful when debugging.
No need to have these sprinkled through the kernel log otherwise.
Cc: Thomas Gleixner <redacted>
Signed-off-by: Lee Jones <redacted>
---
kernel/irq/cpuhotplug.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -42,7 +42,7 @@ static inline bool irq_needs_fixup(struct irq_data *d)*IfthishappensthentherewasamissedIRQfixupatsome*point.Warnaboutitandenforcefixup.*/-pr_warn("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",+pr_debug("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",cpumask_pr_args(m),d->irq,cpu);returntrue;}
@@ -166,7 +166,7 @@ void irq_migrate_all_off_this_cpu(void)raw_spin_unlock(&desc->lock);if(affinity_broken){-pr_warn_ratelimited("IRQ %u: no longer affine to CPU%u\n",+pr_debug_ratelimited("IRQ %u: no longer affine to CPU%u\n",irq,smp_processor_id());}}
--
2.32.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
@@ -42,7 +42,7 @@ static inline bool irq_needs_fixup(struct irq_data *d)*IfthishappensthentherewasamissedIRQfixupatsome*point.Warnaboutitandenforcefixup.*/-pr_warn("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
This one is clearly a warning as this should not happen. See the
comments around that.
quoted hunk
+ pr_debug("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
cpumask_pr_args(m), d->irq, cpu);
return true;
}
@@ -166,7 +166,7 @@ void irq_migrate_all_off_this_cpu(void) raw_spin_unlock(&desc->lock); if (affinity_broken) {- pr_warn_ratelimited("IRQ %u: no longer affine to CPU%u\n",+ pr_debug_ratelimited("IRQ %u: no longer affine to CPU%u\n", irq, smp_processor_id());
Maybe, but distro people might have opinions on that.
Thanks,
tglx
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
@@ -42,7 +42,7 @@ static inline bool irq_needs_fixup(struct irq_data *d)*IfthishappensthentherewasamissedIRQfixupatsome*point.Warnaboutitandenforcefixup.*/-pr_warn("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
This one is clearly a warning as this should not happen. See the
comments around that.
quoted
+ pr_debug("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
cpumask_pr_args(m), d->irq, cpu);
return true;
}
@@ -166,7 +166,7 @@ void irq_migrate_all_off_this_cpu(void) raw_spin_unlock(&desc->lock); if (affinity_broken) {- pr_warn_ratelimited("IRQ %u: no longer affine to CPU%u\n",+ pr_debug_ratelimited("IRQ %u: no longer affine to CPU%u\n", irq, smp_processor_id());
Maybe, but distro people might have opinions on that.
The trouble is, even if these are real warnings, they have an affect
on performance on real products. To the point where so much logging
builds up during pre-release testing, that it sets off the watchdog(s)
on some high profile consumer devices.
What would you suggest?
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Thomas Gleixner <hidden> Date: 2021-08-11 12:08:59
On Wed, Aug 11 2021 at 08:57, Lee Jones wrote:
On Tue, 10 Aug 2021, Thomas Gleixner wrote:
quoted
quoted
@@ -42,7 +42,7 @@ static inline bool irq_needs_fixup(struct irq_data *d) * If this happens then there was a missed IRQ fixup at some * point. Warn about it and enforce fixup. */- pr_warn("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
This one is clearly a warning as this should not happen. See the
comments around that.
quoted
+ pr_debug("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
cpumask_pr_args(m), d->irq, cpu);
return true;
}
@@ -166,7 +166,7 @@ void irq_migrate_all_off_this_cpu(void) raw_spin_unlock(&desc->lock); if (affinity_broken) {- pr_warn_ratelimited("IRQ %u: no longer affine to CPU%u\n",+ pr_debug_ratelimited("IRQ %u: no longer affine to CPU%u\n", irq, smp_processor_id());
Maybe, but distro people might have opinions on that.
The trouble is, even if these are real warnings, they have an affect
on performance on real products. To the point where so much logging
builds up during pre-release testing, that it sets off the watchdog(s)
on some high profile consumer devices.
I'm fine with making the second one debug, but the first one really
should not trigger at all.
Thanks,
tglx
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Lee Jones <hidden> Date: 2021-08-16 07:43:57
On Wed, 11 Aug 2021, Thomas Gleixner wrote:
On Wed, Aug 11 2021 at 08:57, Lee Jones wrote:
quoted
On Tue, 10 Aug 2021, Thomas Gleixner wrote:
quoted
quoted
@@ -42,7 +42,7 @@ static inline bool irq_needs_fixup(struct irq_data *d) * If this happens then there was a missed IRQ fixup at some * point. Warn about it and enforce fixup. */- pr_warn("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
This one is clearly a warning as this should not happen. See the
comments around that.
quoted
+ pr_debug("Eff. affinity %*pbl of IRQ %u contains only offline CPUs after offlining CPU %u\n",
cpumask_pr_args(m), d->irq, cpu);
return true;
}
@@ -166,7 +166,7 @@ void irq_migrate_all_off_this_cpu(void) raw_spin_unlock(&desc->lock); if (affinity_broken) {- pr_warn_ratelimited("IRQ %u: no longer affine to CPU%u\n",+ pr_debug_ratelimited("IRQ %u: no longer affine to CPU%u\n", irq, smp_processor_id());
Maybe, but distro people might have opinions on that.
The trouble is, even if these are real warnings, they have an affect
on performance on real products. To the point where so much logging
builds up during pre-release testing, that it sets off the watchdog(s)
on some high profile consumer devices.
I'm fine with making the second one debug, but the first one really
should not trigger at all.
Understood. I'll follow-up with a subsequent patch and report back
with your advice. Thanks Thomas.
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel