From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?q?Roh=C3=A1r?= Subject: Re: runtime check for omap-aes bus access permission (was: Re: 3.13-rc3 (commit 7ce93f3) breaks Nokia N900 DT boot) Date: Tue, 25 Nov 2014 22:31:45 +0100 Message-ID: <201411252231.45217@pali> References: <20131206213613.GA19648@earth.universe> <20131207232205.GS26766@atomide.com> <201411252208.17594@pali> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2329955.pHUaeljG9A"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f43.google.com ([74.125.82.43]:57707 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbaKYVbs (ORCPT ); Tue, 25 Nov 2014 16:31:48 -0500 Received: by mail-wg0-f43.google.com with SMTP id l18so2023474wgh.30 for ; Tue, 25 Nov 2014 13:31:47 -0800 (PST) In-Reply-To: <201411252208.17594@pali> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Tony Lindgren Cc: linux-omap@vger.kernel.org, Aaro Koskinen , Joel Fernandes , Sebastian Reichel , Pavel Machek , Nishanth Menon --nextPart2329955.pHUaeljG9A Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tuesday 25 November 2014 22:08:17 Pali Roh=C3=A1r wrote: > On Sunday 08 December 2013 00:22:06 Tony Lindgren wrote: > > * Sebastian Reichel [131207 15:04]: > > > On Sat, Dec 07, 2013 at 01:11:37PM -0800, Tony Lindgren >=20 > wrote: > > > > > I asked Pali to send me his copy of the updated NOLO > > > > > bootloader, so that I can test this. I just checked > > > > > the omap documentation (I only have access to the > > > > > public one) and crypto related stuff is not > > > > > documented for the L3_PM_READ_PERMISSION register. > > > > > There are a couple of reserved bits, which may be > > > > > used for this, though. > > > > >=20 > > > > > I also CC'd Joel Fernandes, since he worked on the > > > > > driver before and may have access to the > > > > > documentation. > > > >=20 > > > > Looks like at least the 36xx public version referenced > > > > here has them: > > > >=20 > > > > http://www.spinics.net/lists/linux-omap/msg21857.html > > > >=20 > > > > I'd assume the registers are the same for 34xx since we > > > > don't have them defined separately in the kernel. > > >=20 > > > I can't find it in the omap36xx documentation either. > > > Maybe I search at the wrong position. I tried to find > > > something crypto related in > > >=20 > > > Table 9-89. L3_PM_READ_PERMISSION_i > >=20 > > Hmm maybe it's done based on the address in > > L3_PM_ADDR_MATCH_k? > >=20 > > I guess the thing to do would be to compare the register > > output between the two different firmware versions. > >=20 > > Regards, > >=20 > > Tony >=20 > Tony, if you can tell me how to read those registers I can > provide output from both bootloaders (one that enable aes > support in L3 firewall and one which not). >=20 > Also I can test other patches or provide other logs if you > need something more... CCing Nishanth Menon Problem is that when L3 firewall is not configured by signed=20 bootloader then loading omap aes driver cause kernel crash. We=20 need some code which can check if omap aes is enabled or not at=20 runtime in kernel... More details with full email tread conversation is there: http://thread.gmane.org/gmane.linux.ports.arm.omap/108397/ =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart2329955.pHUaeljG9A Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlR09UEACgkQi/DJPQPkQ1LgyQCfeBifDkPZiewbVzDJcAeKakd8 tyAAoKWWWq2Wb6YIOPDh4tqc2SDMZpqs =Daqj -----END PGP SIGNATURE----- --nextPart2329955.pHUaeljG9A--