From: Marc Zyngier <marc.zyngier@arm.com>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"linux@openrisc.net" <linux@openrisc.net>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"shawn.guo@freescale.com" <shawn.guo@freescale.com>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"tony@atomide.com" <tony@atomide.com>,
Will Deacon <Will.Deacon@arm.com>,
"jonas@southpole.se" <jonas@southpole.se>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"jason@lakedaemon.net" <jason@lakedaemon.net>,
"shc_work@mail.ru" <shc_work@mail.ru>,
"baohua@kernel.org" <baohua@kernel.org>,
"maxime.ripard@free-electrons.com"
<maxime.ripard@free-electrons.com>,
"khilman@linaro.org" <khilman@linaro.org>,
"sboyd@codeaurora.org" <sboyd@codeaurora.org>,
Lorenzo Pieralisi <Lorenzo.Piera>
Subject: Re: [PATCH v2 02/26] arm64: convert handle_IRQ to use __handle_domain_irq
Date: Tue, 26 Aug 2014 17:58:47 +0100 [thread overview]
Message-ID: <53FCBCC7.3090004@arm.com> (raw)
In-Reply-To: <20140826165138.GM16482@arm.com>
On 26/08/14 17:51, Catalin Marinas wrote:
> On Tue, Aug 26, 2014 at 11:03:17AM +0100, Marc Zyngier wrote:
>> In order to limit code duplication, convert the architecture specific
>> handle_IRQ to use the generic __handle_domain_irq function.
>>
>> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
>> ---
>> arch/arm64/Kconfig | 1 +
>> arch/arm64/kernel/irq.c | 18 +-----------------
>> 2 files changed, 2 insertions(+), 17 deletions(-)
>>
>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
>> index fd4e81a..1f16ed9 100644
>> --- a/arch/arm64/Kconfig
>> +++ b/arch/arm64/Kconfig
>> @@ -30,6 +30,7 @@ config ARM64
>> select GENERIC_STRNCPY_FROM_USER
>> select GENERIC_STRNLEN_USER
>> select GENERIC_TIME_VSYSCALL
>> + select HANDLE_DOMAIN_IRQ
>> select HARDIRQS_SW_RESEND
>> select HAVE_ARCH_AUDITSYSCALL
>> select HAVE_ARCH_JUMP_LABEL
>> diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c
>> index 0f08dfd..2c0e2a7 100644
>> --- a/arch/arm64/kernel/irq.c
>> +++ b/arch/arm64/kernel/irq.c
>> @@ -48,23 +48,7 @@ int arch_show_interrupts(struct seq_file *p, int prec)
>> */
>> void handle_IRQ(unsigned int irq, struct pt_regs *regs)
>> {
>> - struct pt_regs *old_regs = set_irq_regs(regs);
>> -
>> - irq_enter();
>> -
>> - /*
>> - * Some hardware gives randomly wrong interrupts. Rather
>> - * than crashing, do something sensible.
>> - */
>> - if (unlikely(irq >= nr_irqs)) {
>> - pr_warn_ratelimited("Bad IRQ%u\n", irq);
>> - ack_bad_irq(irq);
>> - } else {
>> - generic_handle_irq(irq);
>> - }
>> -
>> - irq_exit();
>> - set_irq_regs(old_regs);
>> + __handle_domain_irq(NULL, irq, false, regs);
>> }
>
> The only thing that's missing is a pr_warn_ratelimited(). Do we still
> need it? We could add it to ack_bad_irq() though.
Indeed, we could move the warning to ack_bad_irq(), which is always
architecture specific. I'll add that to the next version of the series.
> Either way:
>
> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
>
Thanks,
M.
--
Jazz is not dead. It just smells funny...
WARNING: multiple messages have this Message-ID (diff)
From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 02/26] arm64: convert handle_IRQ to use __handle_domain_irq
Date: Tue, 26 Aug 2014 17:58:47 +0100 [thread overview]
Message-ID: <53FCBCC7.3090004@arm.com> (raw)
In-Reply-To: <20140826165138.GM16482@arm.com>
On 26/08/14 17:51, Catalin Marinas wrote:
> On Tue, Aug 26, 2014 at 11:03:17AM +0100, Marc Zyngier wrote:
>> In order to limit code duplication, convert the architecture specific
>> handle_IRQ to use the generic __handle_domain_irq function.
>>
>> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
>> ---
>> arch/arm64/Kconfig | 1 +
>> arch/arm64/kernel/irq.c | 18 +-----------------
>> 2 files changed, 2 insertions(+), 17 deletions(-)
>>
>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
>> index fd4e81a..1f16ed9 100644
>> --- a/arch/arm64/Kconfig
>> +++ b/arch/arm64/Kconfig
>> @@ -30,6 +30,7 @@ config ARM64
>> select GENERIC_STRNCPY_FROM_USER
>> select GENERIC_STRNLEN_USER
>> select GENERIC_TIME_VSYSCALL
>> + select HANDLE_DOMAIN_IRQ
>> select HARDIRQS_SW_RESEND
>> select HAVE_ARCH_AUDITSYSCALL
>> select HAVE_ARCH_JUMP_LABEL
>> diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c
>> index 0f08dfd..2c0e2a7 100644
>> --- a/arch/arm64/kernel/irq.c
>> +++ b/arch/arm64/kernel/irq.c
>> @@ -48,23 +48,7 @@ int arch_show_interrupts(struct seq_file *p, int prec)
>> */
>> void handle_IRQ(unsigned int irq, struct pt_regs *regs)
>> {
>> - struct pt_regs *old_regs = set_irq_regs(regs);
>> -
>> - irq_enter();
>> -
>> - /*
>> - * Some hardware gives randomly wrong interrupts. Rather
>> - * than crashing, do something sensible.
>> - */
>> - if (unlikely(irq >= nr_irqs)) {
>> - pr_warn_ratelimited("Bad IRQ%u\n", irq);
>> - ack_bad_irq(irq);
>> - } else {
>> - generic_handle_irq(irq);
>> - }
>> -
>> - irq_exit();
>> - set_irq_regs(old_regs);
>> + __handle_domain_irq(NULL, irq, false, regs);
>> }
>
> The only thing that's missing is a pr_warn_ratelimited(). Do we still
> need it? We could add it to ack_bad_irq() though.
Indeed, we could move the warning to ack_bad_irq(), which is always
architecture specific. I'll add that to the next version of the series.
> Either way:
>
> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
>
Thanks,
M.
--
Jazz is not dead. It just smells funny...
WARNING: multiple messages have this Message-ID (diff)
From: Marc Zyngier <marc.zyngier@arm.com>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"linux@openrisc.net" <linux@openrisc.net>,
"linux@arm.linux.org.uk" <linux@arm.linux.org.uk>,
"shawn.guo@freescale.com" <shawn.guo@freescale.com>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"tony@atomide.com" <tony@atomide.com>,
Will Deacon <Will.Deacon@arm.com>,
"jonas@southpole.se" <jonas@southpole.se>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"jason@lakedaemon.net" <jason@lakedaemon.net>,
"shc_work@mail.ru" <shc_work@mail.ru>,
"baohua@kernel.org" <baohua@kernel.org>,
"maxime.ripard@free-electrons.com"
<maxime.ripard@free-electrons.com>,
"khilman@linaro.org" <khilman@linaro.org>,
"sboyd@codeaurora.org" <sboyd@codeaurora.org>,
Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>,
"larry.bassel@linaro.org" <larry.bassel@linaro.org>,
Mark Rutland <Mark.Rutland@arm.com>,
Sudeep Holla <Sudeep.Holla@arm.com>,
"stefan.kristiansson@saunalahti.fi"
<stefan.kristiansson@saunalahti.fi>,
"vkale@apm.com" <vkale@apm.com>,
"schwidefsky@de.ibm.com" <schwidefsky@de.ibm.com>
Subject: Re: [PATCH v2 02/26] arm64: convert handle_IRQ to use __handle_domain_irq
Date: Tue, 26 Aug 2014 17:58:47 +0100 [thread overview]
Message-ID: <53FCBCC7.3090004@arm.com> (raw)
In-Reply-To: <20140826165138.GM16482@arm.com>
On 26/08/14 17:51, Catalin Marinas wrote:
> On Tue, Aug 26, 2014 at 11:03:17AM +0100, Marc Zyngier wrote:
>> In order to limit code duplication, convert the architecture specific
>> handle_IRQ to use the generic __handle_domain_irq function.
>>
>> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
>> ---
>> arch/arm64/Kconfig | 1 +
>> arch/arm64/kernel/irq.c | 18 +-----------------
>> 2 files changed, 2 insertions(+), 17 deletions(-)
>>
>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
>> index fd4e81a..1f16ed9 100644
>> --- a/arch/arm64/Kconfig
>> +++ b/arch/arm64/Kconfig
>> @@ -30,6 +30,7 @@ config ARM64
>> select GENERIC_STRNCPY_FROM_USER
>> select GENERIC_STRNLEN_USER
>> select GENERIC_TIME_VSYSCALL
>> + select HANDLE_DOMAIN_IRQ
>> select HARDIRQS_SW_RESEND
>> select HAVE_ARCH_AUDITSYSCALL
>> select HAVE_ARCH_JUMP_LABEL
>> diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c
>> index 0f08dfd..2c0e2a7 100644
>> --- a/arch/arm64/kernel/irq.c
>> +++ b/arch/arm64/kernel/irq.c
>> @@ -48,23 +48,7 @@ int arch_show_interrupts(struct seq_file *p, int prec)
>> */
>> void handle_IRQ(unsigned int irq, struct pt_regs *regs)
>> {
>> - struct pt_regs *old_regs = set_irq_regs(regs);
>> -
>> - irq_enter();
>> -
>> - /*
>> - * Some hardware gives randomly wrong interrupts. Rather
>> - * than crashing, do something sensible.
>> - */
>> - if (unlikely(irq >= nr_irqs)) {
>> - pr_warn_ratelimited("Bad IRQ%u\n", irq);
>> - ack_bad_irq(irq);
>> - } else {
>> - generic_handle_irq(irq);
>> - }
>> -
>> - irq_exit();
>> - set_irq_regs(old_regs);
>> + __handle_domain_irq(NULL, irq, false, regs);
>> }
>
> The only thing that's missing is a pr_warn_ratelimited(). Do we still
> need it? We could add it to ack_bad_irq() though.
Indeed, we could move the warning to ack_bad_irq(), which is always
architecture specific. I'll add that to the next version of the series.
> Either way:
>
> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
>
Thanks,
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2014-08-26 16:58 UTC|newest]
Thread overview: 162+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 10:03 [PATCH v2 00/26] genirq: fix use of irq_find_mapping outside of legal RCU context Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 01/26] genirq: add irq_domain-aware core IRQ handler Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 17:42 ` Stephen Boyd
2014-08-26 17:42 ` Stephen Boyd
2014-08-26 17:42 ` Stephen Boyd
2014-08-26 18:07 ` Marc Zyngier
2014-08-26 18:07 ` Marc Zyngier
2014-08-26 18:07 ` Marc Zyngier
2014-08-26 18:46 ` Stephen Boyd
2014-08-26 18:46 ` Stephen Boyd
2014-08-26 18:46 ` Stephen Boyd
2014-08-26 19:05 ` Stephen Boyd
2014-08-26 19:05 ` Stephen Boyd
2014-08-26 19:05 ` Stephen Boyd
2014-09-01 15:22 ` Russell King - ARM Linux
2014-09-01 15:22 ` Russell King - ARM Linux
2014-09-01 15:22 ` Russell King - ARM Linux
2014-08-26 10:03 ` [PATCH v2 02/26] arm64: convert handle_IRQ to use __handle_domain_irq Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 16:51 ` Catalin Marinas
2014-08-26 16:51 ` Catalin Marinas
2014-08-26 16:51 ` Catalin Marinas
2014-08-26 16:58 ` Marc Zyngier [this message]
2014-08-26 16:58 ` Marc Zyngier
2014-08-26 16:58 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 03/26] ARM: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 04/26] openrisc: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 05/26] irqchip: GIC: convert to handle_domain_irq Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 06/26] irqchip: armada-370-xp: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 07/26] irqchip: clps711x: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 08/26] irqchip: mmp: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 09/26] irqchip: mxs: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-27 6:38 ` Shawn Guo
2014-08-27 6:38 ` Shawn Guo
2014-08-27 6:38 ` Shawn Guo
2014-08-26 10:03 ` [PATCH v2 10/26] irqchip: orion: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 11/26] irqchip: s3c24xx: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 12/26] irqchip: sirfsoc: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 13/26] irqchip: sun4i: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 14/26] irqchip: versatile-fpga: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 15/26] irqchip: vic: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 16/26] irqchip: vt8500: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 17/26] irqchip: zevio: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 18/26] irqchip: GICv3: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` [PATCH v2 19/26] irqchip: atmel-aic: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-09-01 9:32 ` Nicolas Ferre
2014-09-01 9:32 ` Nicolas Ferre
2014-09-01 9:32 ` Nicolas Ferre
2014-09-01 10:16 ` Boris BREZILLON
2014-09-01 10:16 ` Boris BREZILLON
2014-09-01 10:16 ` Boris BREZILLON
2014-08-26 10:03 ` [PATCH v2 20/26] irqchip: atmel-aic5: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-09-01 9:33 ` Nicolas Ferre
2014-09-01 9:33 ` Nicolas Ferre
2014-09-01 9:33 ` Nicolas Ferre
2014-09-01 9:51 ` Boris BREZILLON
2014-09-01 9:51 ` Boris BREZILLON
2014-09-01 9:51 ` Boris BREZILLON
2014-08-26 10:03 ` [PATCH v2 21/26] irqchip: or1k-pic: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-27 17:09 ` Stefan Kristiansson
2014-08-27 17:09 ` Stefan Kristiansson
2014-08-27 17:09 ` Stefan Kristiansson
2014-08-26 10:03 ` [PATCH v2 22/26] ARM: imx: avic: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-27 6:40 ` Shawn Guo
2014-08-27 6:40 ` Shawn Guo
2014-08-27 6:40 ` Shawn Guo
2014-08-26 10:03 ` [PATCH v2 23/26] ARM: imx: tzic: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-27 6:40 ` Shawn Guo
2014-08-27 6:40 ` Shawn Guo
2014-08-27 6:40 ` Shawn Guo
2014-08-26 10:03 ` [PATCH v2 24/26] ARM: omap2: irq: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 20:57 ` Tony Lindgren
2014-08-26 20:57 ` Tony Lindgren
2014-08-26 20:57 ` Tony Lindgren
2014-08-26 10:03 ` [PATCH v2 25/26] arm64: get rid of handle_IRQ Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 16:53 ` Catalin Marinas
2014-08-26 16:53 ` Catalin Marinas
2014-08-26 16:53 ` Catalin Marinas
2014-08-26 10:03 ` [PATCH v2 26/26] openrisc: " Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 10:03 ` Marc Zyngier
2014-08-26 21:34 ` [PATCH v2 00/26] genirq: fix use of irq_find_mapping outside of legal RCU context Thomas Gleixner
2014-08-26 21:34 ` Thomas Gleixner
2014-08-26 21:34 ` Thomas Gleixner
2014-08-27 9:33 ` Marc Zyngier
2014-08-27 9:33 ` Marc Zyngier
2014-08-27 9:33 ` Marc Zyngier
2014-09-03 12:04 ` Jason Cooper
2014-09-03 12:04 ` Jason Cooper
2014-09-03 12:04 ` Jason Cooper
2014-09-03 12:09 ` Thomas Gleixner
2014-09-03 12:09 ` Thomas Gleixner
2014-09-03 12:09 ` Thomas Gleixner
2014-09-03 12:21 ` Marc Zyngier
2014-09-03 12:21 ` Marc Zyngier
2014-09-03 12:21 ` Marc Zyngier
2014-09-03 12:25 ` Thomas Gleixner
2014-09-03 12:25 ` Thomas Gleixner
2014-09-03 12:25 ` Thomas Gleixner
2014-09-03 12:37 ` Jason Cooper
2014-09-03 12:37 ` Jason Cooper
2014-09-03 12:37 ` Jason Cooper
2014-09-03 12:40 ` Marc Zyngier
2014-09-03 12:40 ` Marc Zyngier
2014-09-03 12:40 ` Marc Zyngier
2014-09-03 12:37 ` Marc Zyngier
2014-09-03 12:37 ` Marc Zyngier
2014-09-03 12:37 ` Marc Zyngier
2014-09-03 13:18 ` Jason Cooper
2014-09-03 13:18 ` Jason Cooper
2014-09-03 13:18 ` Jason Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53FCBCC7.3090004@arm.com \
--to=marc.zyngier@arm.com \
--cc=Will.Deacon@arm.com \
--cc=baohua@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=jason@lakedaemon.net \
--cc=jonas@southpole.se \
--cc=kernel@pengutronix.de \
--cc=khilman@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=linux@openrisc.net \
--cc=maxime.ripard@free-electrons.com \
--cc=sboyd@codeaurora.org \
--cc=shawn.guo@freescale.com \
--cc=shc_work@mail.ru \
--cc=tglx@linutronix.de \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.