devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Russell King - ARM Linux
	<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>
Cc: "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
	<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
	Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	Marc Zyngier <marc.zyngier-5wv7dgnIgG8@public.gmane.org>,
	Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>,
	Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
Subject: Re: [PATCH] ARM: realview: basic device tree implementation
Date: Thu, 8 May 2014 12:27:50 +0200	[thread overview]
Message-ID: <CACRpkdZ7WoBMBMJjpKcsOeOA5E1erSioOeSDt1xOG=W04RoeCg@mail.gmail.com> (raw)
In-Reply-To: <CAL_JsqKYR1aujNhOASivsg-ED6xDPCsSCcGVnQn5vy4sD1PhAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Wed, Mar 26, 2014 at 6:59 AM, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Wed, Mar 26, 2014 at 4:27 AM, Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:

>> +       if (of_machine_is_compatible("arm,realview-eb"))
>> +               /*
>> +                * 1MB (128KB/way), 8-way associativity,
>> +                * evmon/parity/share enabled
>> +                * Bits:  .... ...0 0111 1001 0000 .... .... ....
>> +                */
>> +               l2x0_of_init(0x00790000, 0xfe000fff);
>> +       else if (of_machine_is_compatible("arm,realview-pb1176"))
>> +               /*
>> +                * 128Kb (16Kb/way) 8-way associativity.
>> +                * evmon/parity/share enabled.
>> +                */
>> +               l2x0_of_init(0x00730000, 0xfe000fff);
>> +       else if (of_machine_is_compatible("arm,realview-pb11mp"))
>> +               /*
>> +                * 1MB (128KB/way), 8-way associativity,
>> +                * evmon/parity/share enabled
>> +                * Bits:  .... ...0 0111 1001 0000 .... .... ....
>> +                */
>> +               l2x0_of_init(0x00730000, 0xfe000fff);
>> +       else if (of_machine_is_compatible("arm,realview-pbx"))
>> +               /*
>> +                * 16KB way size, 8-way associativity, parity disabled
>> +                * Bits:  .. 0 0 0 0 1 00 1 0 1 001 0 000 0 .... .... ....
>> +                */
>> +               l2x0_of_init(0x02520000, 0xc0000fff);
>> +#endif
>
> As Arnd pointed out, see Russell's recent L2x0 emails. Since these are
> L220s, you do need the way size and associativity to be initialized at
> least. There are standard ePAPR definitions for these which should be
> used.
>
> Documenting the initial and final aux ctrl values on these platforms
> would be helpful for Russell's clean-up.

The PB1176 board has the initial value:
L2X0_AUX_CTRL = 0x02020fff

I don't know how I can help out best here unfortunately, it's a little
bit of a moving target I guess and admittedly my understanding of
l2x0 is pretty shallow. :-/

Yours,
Linus Walleij
--
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

      parent reply	other threads:[~2014-05-08 10:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-26  9:27 [PATCH] ARM: realview: basic device tree implementation Linus Walleij
     [not found] ` <1395826060-26662-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2014-03-26 10:56   ` Arnd Bergmann
2014-03-26 17:09     ` Arnd Bergmann
2014-05-08 11:13       ` Linus Walleij
2014-05-08 11:20       ` Linus Walleij
     [not found]         ` <CACRpkdbH4WrMgmj+sdgx83KncV4iGTqvve_QisP14uuLP6XS2w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-08 11:49           ` Arnd Bergmann
2014-05-08  8:37     ` Linus Walleij
2014-03-26 13:59   ` Rob Herring
     [not found]     ` <CAL_JsqKYR1aujNhOASivsg-ED6xDPCsSCcGVnQn5vy4sD1PhAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-03-26 14:03       ` Arnd Bergmann
2014-05-08 10:27       ` Linus Walleij [this message]

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='CACRpkdZ7WoBMBMJjpKcsOeOA5E1erSioOeSDt1xOG=W04RoeCg@mail.gmail.com' \
    --to=linus.walleij-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=arnd-r2nGTMty4D4@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
    --cc=marc.zyngier-5wv7dgnIgG8@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \
    --cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org \
    --cc=will.deacon-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).