From: Tony Lindgren <tony@atomide.com>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Barry Song <baohua@kernel.org>,
Kukjin Kim <kgene.kim@samsung.com>,
linux-omap@vger.kernel.org, Ben Dooks <ben-linux@fluff.org>,
Stephen Warren <swarren@wwwdotorg.org>,
Srinivas Kandagatla <srinivas.kandagatla@st.com>,
Linus Walleij <linus.walleij@linaro.org>,
Anton Vorontsov <anton@enomsg.org>,
spear-devel@list.st.com, Shiraz Hashim <shiraz.hashim@st.com>,
Stuart Menefy <stuart.menefy@st.com>,
Thierry Reding <thierry.reding@gmail.com>,
Viresh Kumar <viresh.linux@gmail.com>,
linux-samsung-soc@vger.kernel.org,
Sascha Hauer <kernel@pengutronix.de>,
linux-tegra@vger.kernel.org, Shawn Guo <shawn.guo@linaro.org>,
linux-arm-kernel@lists.infradead.org, kernel@stlinux.com
Subject: Re: [PATCH 49/75] ARM: l2c: fix register naming
Date: Fri, 28 Mar 2014 15:15:32 -0700 [thread overview]
Message-ID: <20140328221532.GA30388@atomide.com> (raw)
In-Reply-To: <20140328210243.GT7528@n2100.arm.linux.org.uk>
* Russell King - ARM Linux <linux@arm.linux.org.uk> [140328 14:06]:
> On Fri, Mar 28, 2014 at 09:00:48AM -0700, Tony Lindgren wrote:
> > * Russell King <rmk+kernel@arm.linux.org.uk> [140328 08:22]:
> > > We have a mixture of different devices with different register layouts,
> > > but we group all the bits together in an opaque mess. Split them out
> > > into those which are L2C-310 specific and ones which refer to earlier
> > > devices. Provide full auxiliary control register definitions.
> > >
> > > Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
> >
> > Acked-by: Tony Lindgren <tony@atomide.com>
> >
> > > --- a/arch/arm/mach-omap2/omap4-common.c
> > > +++ b/arch/arm/mach-omap2/omap4-common.c
> > > @@ -212,15 +212,15 @@ static int __init omap_l2_cache_init(void)
> > > return -ENOMEM;
> > >
> > > /* 16-way associativity, parity disabled, way size - 64KB (es2.0 +) */
> > > - aux_ctrl = (1 << L2X0_AUX_CTRL_ASSOCIATIVITY_SHIFT) |
> > > - (0x1 << 25) |
> > > - (0x1 << L2X0_AUX_CTRL_NS_LOCKDOWN_SHIFT) |
> > > - (0x1 << L2X0_AUX_CTRL_NS_INT_CTRL_SHIFT)) |
> > > - (0x3 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT) |
> > > - (1 << L2X0_AUX_CTRL_SHARE_OVERRIDE_SHIFT) |
> > > - (1 << L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT) |
> > > - (1 << L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT) |
> > > - (1 << L2X0_AUX_CTRL_EARLY_BRESP_SHIFT);
> > > + aux_ctrl = L310_AUX_CTRL_ASSOCIATIVITY_16 |
> > > + L310_AUX_CTRL_CACHE_REPLACE_RR |
> > > + L310_AUX_CTRL_NS_LOCKDOWN |
> > > + L310_AUX_CTRL_NS_INT_CTRL |
> > > + L2C_AUX_CTRL_WAY_SIZE(3) |
> > > + L2C_AUX_CTRL_SHARED_OVERRIDE |
> > > + L310_AUX_CTRL_DATA_PREFETCH |
> > > + L310_AUX_CTRL_INSTR_PREFETCH |
> > > + L310_AUX_CTRL_EARLY_BRESP;
> >
> > I guess eventually we can set up some common configuration mask
> > define for these kind of things?
>
> The idea is that eventually platforms should just specify no changes to
> the auxctl configuration. You will notice later patches remove a number
> of the above flags.
OK thanks great!
Tony
next prev parent reply other threads:[~2014-03-28 22:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20140328151249.GJ7528@n2100.arm.linux.org.uk>
2014-03-28 15:18 ` [PATCH 49/75] ARM: l2c: fix register naming Russell King
2014-03-28 16:00 ` Tony Lindgren
2014-03-28 21:02 ` Russell King - ARM Linux
2014-03-28 22:15 ` Tony Lindgren [this message]
2014-03-28 16:01 ` Tony Lindgren
2014-03-28 18:51 ` [STLinux Kernel] " Maxime Coquelin
[not found] ` <E1WTYYH-0007GB-3M-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org>
2014-03-28 19:01 ` Linus Walleij
2014-03-28 15:18 ` [PATCH 51/75] ARM: l2c: remove platforms/SoCs setting early BRESP Russell King
2014-03-28 16:02 ` Tony Lindgren
[not found] ` <20140328151249.GJ7528-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-03-28 15:18 ` [PATCH 52/75] ARM: l2c: tegra: remove associativity and way size from aux_ctrl Russell King
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=20140328221532.GA30388@atomide.com \
--to=tony@atomide.com \
--cc=anton@enomsg.org \
--cc=baohua@kernel.org \
--cc=ben-linux@fluff.org \
--cc=kernel@pengutronix.de \
--cc=kernel@stlinux.com \
--cc=kgene.kim@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=shawn.guo@linaro.org \
--cc=shiraz.hashim@st.com \
--cc=spear-devel@list.st.com \
--cc=srinivas.kandagatla@st.com \
--cc=stuart.menefy@st.com \
--cc=swarren@wwwdotorg.org \
--cc=thierry.reding@gmail.com \
--cc=viresh.linux@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox