From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: shmobile: r8a7740: Instantiate GIC from C board code in legacy builds
Date: Wed, 17 Dec 2014 14:20:09 +0000 [thread overview]
Message-ID: <54919119.8030208@arm.com> (raw)
In-Reply-To: <1418823642-28154-1-git-send-email-geert+renesas@glider.be>
On 17/12/14 13:40, Geert Uytterhoeven wrote:
> As of commit 9a1091ef0017c40a ("irqchip: gic: Support hierarchy irq
> domain."), armadillo-legacy hangs during boot with:
>
> sh-tmu.0: ch0: used for clock events
> sh-tmu.0: ch0: used for periodic clock events
> sh-tmu.0: ch0: failed to request irq 230
> sh-tmu.0: ch1: used as clock source
> sh-cmt-48.1: ch0: failed to request irq 90
> sh-cmt-48.1: ch0: registration failed
> earlytimer: unable to probe sh-cmt-48 early.
> Calibrating delay loop...
>
> This happens because the IRQ numbers of the GIC are now virtual, and no
> longer match the hardcoded hardware IRQ numbers in the platform board
> code.
> To fix this, instantiate the GIC from platform board code when compiling
> a legacy kernel, like is done on sh73a0 for kzm9g-legacy.
Ah, that explains why kzm9g-legacy didn't explode in -next...
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> arch/arm/mach-shmobile/setup-r8a7740.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
> index 79ad93dfdae4ee70..d191cf4197313482 100644
> --- a/arch/arm/mach-shmobile/setup-r8a7740.c
> +++ b/arch/arm/mach-shmobile/setup-r8a7740.c
> @@ -800,7 +800,14 @@ void __init r8a7740_init_irq_of(void)
> void __iomem *intc_msk_base = ioremap_nocache(0xe6900040, 0x10);
> void __iomem *pfc_inta_ctrl = ioremap_nocache(0xe605807c, 0x4);
>
> +#ifdef CONFIG_ARCH_SHMOBILE_LEGACY
> + void __iomem *gic_dist_base = ioremap_nocache(0xc2800000, 0x1000);
> + void __iomem *gic_cpu_base = ioremap_nocache(0xc2000000, 0x1000);
> +
> + gic_init(0, 29, gic_dist_base, gic_cpu_base);
> +#else
> irqchip_init();
> +#endif
>
> /* route signals to GIC */
> iowrite32(0x0, pfc_inta_ctrl);
>
Hopefully we'll be able to move away from this kind of thing at some
point. Until then:
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2014-12-17 14:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 13:40 [PATCH] ARM: shmobile: r8a7740: Instantiate GIC from C board code in legacy builds Geert Uytterhoeven
2014-12-17 14:20 ` Marc Zyngier [this message]
2014-12-18 0:33 ` Simon Horman
2014-12-18 8:14 ` Geert Uytterhoeven
2014-12-19 0:12 ` Simon Horman
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=54919119.8030208@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).