From: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"avorontsov@mvista.com" <avorontsov@mvista.com>,
"gregory.clement@free-electrons.com"
<gregory.clement@free-electrons.com>,
"kgene.kim@samsung.com" <kgene.kim@samsung.com>,
"linux-samsung-soc@vger.kernel.org"
<linux-samsung-soc@vger.kernel.org>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"shawn.guo@linaro.org" <shawn.guo@linaro.org>,
"rubini@unipv.it" <rubini@unipv.it>,
"linus.walleij@linaro.org" <linus.walleij@linaro.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"tony@atomide.com" <tony@atomide.com>,
"horms@verge.net.au" <horms@verge.net.au>,
"magnus.damm@gmail.com" <magnus.damm@gmail.com>,
"viresh.linux@gmail.com" <viresh.linux@gmail.com>,
Shiraz HASHIM <shiraz.hashim@st.com>
Subject: Re: [PATCH v1 1/5] ARM: cache-l2x0: add 'smc' identifier
Date: Tue, 29 Jan 2013 17:08:53 +0530 [thread overview]
Message-ID: <20130129113853.GA22145@bnru10> (raw)
In-Reply-To: <20130129113325.GG2637@n2100.arm.linux.org.uk>
On Tue, Jan 29, 2013 at 12:33:25 +0100, Russell King - ARM Linux wrote:
> On Tue, Jan 29, 2013 at 03:43:31PM +0530, srinidhi kasagar wrote:
> > Add 'smc' (Secure Monitor Call) identifier to differentiates
> > the platforms which implements this.
>
> This patch makes no sense.
>
> So, if setting 'smc' in the DT description is supposed to mean that
> the platform has a secure monitor then...
>
> > + is_smc = of_property_read_bool(np, "smc");
> > +
> > + if (is_smc) {
> > + /* set the debug interface */
> > + outer_cache.set_debug = pl310_set_debug;
> > + }
>
> Now, let's look at what pl310_set_debug() does:
>
> static void pl310_set_debug(unsigned long val)
> {
> writel_relaxed(val, l2x0_base + L2X0_DEBUG_CTRL);
> }
>
> Can you explain where the secure monitor call is there please, because
> I can't see one. In fact, this is the function used when there _isn't_
> a secure monitor. So this patch just seems totally wrong to me.
Today, one and only platform is omap. Please check below snapshot:
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -51,6 +51,7 @@
reg = <0x48242000 0x1000>;
cache-unified;
cache-level = <2>;
+ smc;
};
[...]
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -214,7 +214,7 @@ static int __init omap_l2_cache_init(void)
if (of_have_populated_dt())
l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK);
else
- l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK);
+ l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK, true);
regards/srinidhi
WARNING: multiple messages have this Message-ID (diff)
From: srinidhi.kasagar@stericsson.com (Srinidhi Kasagar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v1 1/5] ARM: cache-l2x0: add 'smc' identifier
Date: Tue, 29 Jan 2013 17:08:53 +0530 [thread overview]
Message-ID: <20130129113853.GA22145@bnru10> (raw)
In-Reply-To: <20130129113325.GG2637@n2100.arm.linux.org.uk>
On Tue, Jan 29, 2013 at 12:33:25 +0100, Russell King - ARM Linux wrote:
> On Tue, Jan 29, 2013 at 03:43:31PM +0530, srinidhi kasagar wrote:
> > Add 'smc' (Secure Monitor Call) identifier to differentiates
> > the platforms which implements this.
>
> This patch makes no sense.
>
> So, if setting 'smc' in the DT description is supposed to mean that
> the platform has a secure monitor then...
>
> > + is_smc = of_property_read_bool(np, "smc");
> > +
> > + if (is_smc) {
> > + /* set the debug interface */
> > + outer_cache.set_debug = pl310_set_debug;
> > + }
>
> Now, let's look at what pl310_set_debug() does:
>
> static void pl310_set_debug(unsigned long val)
> {
> writel_relaxed(val, l2x0_base + L2X0_DEBUG_CTRL);
> }
>
> Can you explain where the secure monitor call is there please, because
> I can't see one. In fact, this is the function used when there _isn't_
> a secure monitor. So this patch just seems totally wrong to me.
Today, one and only platform is omap. Please check below snapshot:
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -51,6 +51,7 @@
reg = <0x48242000 0x1000>;
cache-unified;
cache-level = <2>;
+ smc;
};
[...]
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -214,7 +214,7 @@ static int __init omap_l2_cache_init(void)
if (of_have_populated_dt())
l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK);
else
- l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK);
+ l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK, true);
regards/srinidhi
next prev parent reply other threads:[~2013-01-29 11:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 10:13 [PATCH v1 1/5] ARM: cache-l2x0: add 'smc' identifier srinidhi kasagar
2013-01-29 10:13 ` srinidhi kasagar
2013-01-29 11:33 ` Russell King - ARM Linux
2013-01-29 11:33 ` Russell King - ARM Linux
2013-01-29 11:38 ` Srinidhi Kasagar [this message]
2013-01-29 11:38 ` Srinidhi Kasagar
2013-01-29 11:44 ` Russell King - ARM Linux
2013-01-29 11:44 ` Russell King - ARM Linux
2013-01-29 11:49 ` Srinidhi Kasagar
2013-01-29 11:49 ` Srinidhi Kasagar
2013-01-29 12:22 ` Russell King - ARM Linux
2013-01-29 12:22 ` Russell King - ARM Linux
2013-01-30 5:06 ` Srinidhi Kasagar
2013-01-30 5:06 ` Srinidhi Kasagar
2013-01-29 15:37 ` Tomasz Figa
2013-01-29 15:37 ` Tomasz Figa
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=20130129113853.GA22145@bnru10 \
--to=srinidhi.kasagar@stericsson.com \
--cc=avorontsov@mvista.com \
--cc=gregory.clement@free-electrons.com \
--cc=horms@verge.net.au \
--cc=kernel@pengutronix.de \
--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@arm.linux.org.uk \
--cc=magnus.damm@gmail.com \
--cc=rubini@unipv.it \
--cc=shawn.guo@linaro.org \
--cc=shiraz.hashim@st.com \
--cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.