From: s.trumtrar@pengutronix.de (Steffen Trumtrar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/2] ARM: i.MX53: globally disable supervisor protect
Date: Mon, 7 Jul 2014 18:16:57 +0200 [thread overview]
Message-ID: <20140707161657.GA8178@pengutronix.de> (raw)
In-Reply-To: <20140707140416.GT30239@dragon>
Hi!
On Mon, Jul 07, 2014 at 10:04:18PM +0800, Shawn Guo wrote:
> On Mon, Jul 07, 2014 at 11:41:27AM +0200, Steffen Trumtrar wrote:
> > Most peripherals on the i.MX53 have an
> > Off-Platform Peripheral Access Control Register (OPACR)
> > in which the access rights (together with the MPROT registers) can be declared.
> > However, this does not seem to work for example for SSI1+SDMA, because the
> > supervisor bit is not set for the SDMA unit.
> > It does work for SSI2, the QSB for example uses SSI2 for its audio. But SSI2 only
> > works because it does NOT have an OPACR.
> >
> > The right solution would be to fix the access rights for the SDMA, but the unit
> > responsible for this is the Central Security Unit (CSU), which of course is NOT
> > documented. So, until documentation for this is openly available, turn off the
> > supervisor protection because it cripples the hardware.
> >
> > Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> > ---
> > arch/arm/mach-imx/mach-imx53.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/arm/mach-imx/mach-imx53.c b/arch/arm/mach-imx/mach-imx53.c
> > index 2bad387..1fbd77d 100644
> > --- a/arch/arm/mach-imx/mach-imx53.c
> > +++ b/arch/arm/mach-imx/mach-imx53.c
> > @@ -26,9 +26,13 @@
> >
> > static void __init imx53_dt_init(void)
> > {
> > + const char *aips_compatible = "fsl,imx53-aipstz";
> > +
>
> The variable is not really necessary, since we can just do:
>
> imx_aips_allow_unprivileged_access("fsl,imx53-aipstz");
>
> I'm going to fix it up and apply both patches. Let me know if you have
> concern with that.
>
I'm okay with that. I don't really have any preference here, so
do as you like best.
Thanks,
Steffen
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2014-07-07 16:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-07 9:41 [PATCH v4 1/2] ARM: i.MX: allow disabling supervisor protect via DT Steffen Trumtrar
2014-07-07 9:41 ` [PATCH v4 2/2] ARM: i.MX53: globally disable supervisor protect Steffen Trumtrar
2014-07-07 14:04 ` Shawn Guo
2014-07-07 16:16 ` Steffen Trumtrar [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=20140707161657.GA8178@pengutronix.de \
--to=s.trumtrar@pengutronix.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;
as well as URLs for NNTP newsgroup(s).