From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
Cc: linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH 1/2] ARM: realview: Fix PBX-A9 cache description
Date: Thu, 21 Jul 2016 16:00:07 +0100 [thread overview]
Message-ID: <20160721150006.GE20559@leverpostej> (raw)
In-Reply-To: <dbf8749c4af9aa5ffb85e961b7ae09ffeefa7f2a.1468583959.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
On Fri, Jul 15, 2016 at 01:19:12PM +0100, Robin Murphy wrote:
> Clearly QEMU is very permissive in how its PL310 model may be set up,
> but the real hardware turns out to be far more particular about things
> actually being correct. Fix up the DT description so that the real
> thing actually boots:
>
> - The arm,data-latency and arm,tag-latency properties need 3 cells to
> be valid, otherwise we end up retaining the default 8-cycle latencies
> which leads pretty quickly to lockup.
> - The arm,dirty-latency property is only relevant to L210/L220, so get
> rid of it.
> - The cache geometry override also leads to lockup and/or general
> misbehaviour. Irritatingly, the manual doesn't state the actual PL310
> configuration, but based on the boardfile code and poking registers
> from the Boot Monitor, it would seem to be 8 sets of 16KB ways.
>
> With that, we can successfully boot to enjoy the fun of mismatched FPUs...
>
> Signed-off-by: Robin Murphy <robin.murphy-5wv7dgnIgG8@public.gmane.org>
Prior to this patch, v4.7-rc6 would lock up immediately after:
[ 0.000000] L2C OF: override cache size: 1048576 bytes (1024KB)
[ 0.000000] L2C OF: override line size: 32 bytes
[ 0.000000] L2C OF: override way size: 131072 bytes (128KB)
[ 0.000000] L2C OF: override associativity: 8
[ 0.000000] L2C: DT/platform modifies aux control register: 0x02020000 -> 0x02080000
[ 0.000000] L2C: DT/platform tries to modify or specify cache size
[ 0.000000] L2C-310 errata 588369 769419 enabled
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 1024 kB
With this patch, I make it all the way to userspace. I have a Debian Wheezy
armel image which seems happy on the board so far.
So FWIW:
Tested-by: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Thanks,
Mark.
> ---
> arch/arm/boot/dts/arm-realview-pbx-a9.dts | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/boot/dts/arm-realview-pbx-a9.dts b/arch/arm/boot/dts/arm-realview-pbx-a9.dts
> index db808f92dd79..90d00b407f85 100644
> --- a/arch/arm/boot/dts/arm-realview-pbx-a9.dts
> +++ b/arch/arm/boot/dts/arm-realview-pbx-a9.dts
> @@ -70,13 +70,12 @@
> * associativity as these may be erroneously set
> * up by boot loader(s).
> */
> - cache-size = <1048576>; // 1MB
> - cache-sets = <4096>;
> + cache-size = <131072>; // 128KB
> + cache-sets = <512>;
> cache-line-size = <32>;
> arm,parity-disable;
> - arm,tag-latency = <1>;
> - arm,data-latency = <1 1>;
> - arm,dirty-latency = <1>;
> + arm,tag-latency = <1 1 1>;
> + arm,data-latency = <1 1 1>;
> };
>
> scu: scu@1f000000 {
> --
> 2.8.1.dirty
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-07-21 15:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 12:19 [PATCH 1/2] ARM: realview: Fix PBX-A9 cache description Robin Murphy
[not found] ` <dbf8749c4af9aa5ffb85e961b7ae09ffeefa7f2a.1468583959.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2016-07-15 12:19 ` [PATCH 2/2] ARM: realview: Extend PBX family memory description Robin Murphy
[not found] ` <0acef10ce4429e372ec8c35300c6ec6d48aca7e1.1468583959.git.robin.murphy-5wv7dgnIgG8@public.gmane.org>
2016-07-22 15:06 ` Linus Walleij
[not found] ` <CACRpkda8EuC2qfoOydahwWAnBYUX97WPixP85mCQ+04UZq98vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-07-22 18:00 ` Robin Murphy
2016-07-15 17:45 ` [PATCH 1/2] ARM: realview: Fix PBX-A9 cache description Robin Murphy
2016-07-21 15:00 ` Mark Rutland [this message]
2016-07-22 15:02 ` Linus Walleij
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=20160721150006.GE20559@leverpostej \
--to=mark.rutland-5wv7dgnigg8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=robin.murphy-5wv7dgnIgG8@public.gmane.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).