From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: prima2: remove L2 cache size override
Date: Wed, 16 Apr 2014 10:52:27 +0200 [thread overview]
Message-ID: <6113510.ZYPB60x7iK@wuerfel> (raw)
In-Reply-To: <20140415215615.GZ24070@n2100.arm.linux.org.uk>
On Tuesday 15 April 2014 22:56:15 Russell King - ARM Linux wrote:
> On Tue, Apr 15, 2014 at 06:13:27PM +0800, Barry Song wrote:
> >
> > ok, it seems we still need to hook this into the callback of this
> > specific machine instead of using a global early_initcall(). since now
> > the dt compatible field has been generic enough, it will cause other
> > platforms to execute l2x0_of_init() too.
>
> What I did for Versatile Express was to move it to the init_irq stage.
> I'm not condoning using init_irq() for non-IRQ stuff, but that was
> just to see whether it was possible (the .init_early is too early for
> it.) Let me put it another way: I'm not thrilled by the idea of
> having it in init_irq() but that's a better location to call L2 cache
> initialisation than half-way through the kernel's initialisation.
Would it help to introduce a new .init_l2_cache() callback? That
way, the architecture code can default to initializing any l2x0
that it finds in DT, and have give platforms the option of
overriding the call if they need to, and we can do it at the
same point during early boot for everyone.
A number of platforms currently have the same
static void __init this_platform_init(void)
{
l2x0_of_init(0, ~0UL);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
Where the second line is already the default for .init_machine,
and it would be nice to get rid of the callback entirely, especially
for the machines that don't do anything else in their platform
code.
Arnd
next prev parent reply other threads:[~2014-04-16 8:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 9:49 [PATCH] ARM: prima2: remove L2 cache size override Barry Song
2014-04-15 10:00 ` Russell King - ARM Linux
2014-04-15 10:13 ` Barry Song
2014-04-15 21:56 ` Russell King - ARM Linux
2014-04-16 8:24 ` Barry Song
2014-04-16 8:29 ` Russell King - ARM Linux
2014-04-16 8:52 ` Arnd Bergmann [this message]
2014-04-16 9:13 ` Barry Song
2014-04-16 9:23 ` Russell King - ARM Linux
2014-04-16 9:21 ` Russell King - ARM Linux
2014-04-16 9:24 ` Russell King - ARM Linux
2014-04-23 18:21 ` Russell King - ARM Linux
2014-04-23 23:11 ` Barry Song
2014-04-23 23:43 ` Russell King - ARM Linux
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=6113510.ZYPB60x7iK@wuerfel \
--to=arnd@arndb.de \
--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