mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* commit "genirq: record trigger type" and powerpc
@ 2008-11-13  6:30 Mark Nelson
  2008-11-13  7:43 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Nelson @ 2008-11-13  6:30 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Benjamin Herrenschmidt, Thomas Gleixner, linux-kernel, David Brownell

Hi Ingo,

I noticed that after commit 0c5d1eb77a8be917b638344a22afe1398236482b
(genirq: record trigger type), several of our powerpc platforms now
spew out warnings about "No set_type function for IRQ..." (in
particular our Cell blades). This is because in our generic platform
code we call set_irq_type() with information from the device tree
when we establish the interrupt mappings; but we do this regardless
of whether the PIC can actually set a type (it might irrelevant
because the type is essentially hardcoded or as in the case for Cell
the interrupts are just messages being past around that have no real
concept of type, or we could even be dealing with a virtual PIC as
on the PS3).

So, would it be possible to turn the:

	pr_warning("No set_type function... 

into a pr_debug() in kernel/irq/manage.c so when our users upgrade
to newer kernels they don't get scared by a whole bunch of new
warnings?

Many thanks!

Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: commit "genirq: record trigger type" and powerpc
  2008-11-13  6:30 commit "genirq: record trigger type" and powerpc Mark Nelson
@ 2008-11-13  7:43 ` Ingo Molnar
  2008-11-13 10:37   ` [PATCH] genirq: __irq_set_trigger: change pr_warning to pr_debug Mark Nelson
  0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2008-11-13  7:43 UTC (permalink / raw)
  To: Mark Nelson
  Cc: Benjamin Herrenschmidt, Thomas Gleixner, linux-kernel, David Brownell


* Mark Nelson <markn@au1.ibm.com> wrote:

> Hi Ingo,
> 
> I noticed that after commit 0c5d1eb77a8be917b638344a22afe1398236482b 
> (genirq: record trigger type), several of our powerpc platforms now 
> spew out warnings about "No set_type function for IRQ..." (in 
> particular our Cell blades). This is because in our generic platform 
> code we call set_irq_type() with information from the device tree 
> when we establish the interrupt mappings; but we do this regardless 
> of whether the PIC can actually set a type (it might irrelevant 
> because the type is essentially hardcoded or as in the case for Cell 
> the interrupts are just messages being past around that have no real 
> concept of type, or we could even be dealing with a virtual PIC as 
> on the PS3).
> 
> So, would it be possible to turn the:
> 
> 	pr_warning("No set_type function... 
> 
> into a pr_debug() in kernel/irq/manage.c so when our users upgrade 
> to newer kernels they don't get scared by a whole bunch of new 
> warnings?

Sure, please send a patch with a changelog.

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] genirq: __irq_set_trigger: change pr_warning to pr_debug
  2008-11-13  7:43 ` Ingo Molnar
@ 2008-11-13 10:37   ` Mark Nelson
  2008-11-13 11:11     ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Nelson @ 2008-11-13 10:37 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Benjamin Herrenschmidt, Thomas Gleixner, linux-kernel, David Brownell

Commit 0c5d1eb77a8be917b638344a22afe1398236482b (genirq: record trigger
type) caused powerpc platforms that had no set_type() function in their
struct irq_chip to spew out warnings about "No set_type function for
IRQ...". This warning isn't necessarily justified though because the
generic powerpc platform code calls set_irq_type() (which in turn calls
__irq_set_trigger) with information from the device tree to establish
the interrupt mappings, regardless of whether the PIC can actually set
a type.

A platform's irq_chip might not have a set_type function for a variety
of reasons, for example: the platform may have the type essentially
hard-coded, or as in the case for Cell interrupts are just messages
past around that have no real concept of type, or the platform
could even have a virtual PIC as on the PS3.

Signed-off-by: Mark Nelson <markn@au1.ibm.com>
---
Thanks Ingo! Much appreciated

 kernel/irq/manage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: upstream/kernel/irq/manage.c
===================================================================
--- upstream.orig/kernel/irq/manage.c
+++ upstream/kernel/irq/manage.c
@@ -327,7 +327,7 @@ int __irq_set_trigger(struct irq_desc *d
 		 * IRQF_TRIGGER_* but the PIC does not support multiple
 		 * flow-types?
 		 */
-		pr_warning("No set_type function for IRQ %d (%s)\n", irq,
+		pr_debug("No set_type function for IRQ %d (%s)\n", irq,
 				chip ? (chip->name ? : "unknown") : "unknown");
 		return 0;
 	}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] genirq: __irq_set_trigger: change pr_warning to pr_debug
  2008-11-13 10:37   ` [PATCH] genirq: __irq_set_trigger: change pr_warning to pr_debug Mark Nelson
@ 2008-11-13 11:11     ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-11-13 11:11 UTC (permalink / raw)
  To: Mark Nelson
  Cc: Benjamin Herrenschmidt, Thomas Gleixner, linux-kernel, David Brownell


* Mark Nelson <markn@au1.ibm.com> wrote:

> Commit 0c5d1eb77a8be917b638344a22afe1398236482b (genirq: record 
> trigger type) caused powerpc platforms that had no set_type() 
> function in their struct irq_chip to spew out warnings about "No 
> set_type function for IRQ...". This warning isn't necessarily 
> justified though because the generic powerpc platform code calls 
> set_irq_type() (which in turn calls __irq_set_trigger) with 
> information from the device tree to establish the interrupt 
> mappings, regardless of whether the PIC can actually set a type.
> 
> A platform's irq_chip might not have a set_type function for a 
> variety of reasons, for example: the platform may have the type 
> essentially hard-coded, or as in the case for Cell interrupts are 
> just messages past around that have no real concept of type, or the 
> platform could even have a virtual PIC as on the PS3.
> 
> Signed-off-by: Mark Nelson <markn@au1.ibm.com>
> ---
> Thanks Ingo! Much appreciated
> 
>  kernel/irq/manage.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied to tip/irq/urgent, thanks Mark!

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-13 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13  6:30 commit "genirq: record trigger type" and powerpc Mark Nelson
2008-11-13  7:43 ` Ingo Molnar
2008-11-13 10:37   ` [PATCH] genirq: __irq_set_trigger: change pr_warning to pr_debug Mark Nelson
2008-11-13 11:11     ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®