Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A878FE0090E; Fri, 7 Nov 2014 08:03:25 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [188.165.36.253 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 185 seconds by postgrey-1.32 at yocto-www; Fri, 07 Nov 2014 08:03:21 PST Received: from mo4.mail-out.ovh.net (6.mo4.mail-out.ovh.net [188.165.36.253]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DB9EEE005A0 for ; Fri, 7 Nov 2014 08:03:21 -0800 (PST) Received: from mail405.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo4.mail-out.ovh.net (Postfix) with SMTP id CF498FFBF57 for ; Fri, 7 Nov 2014 17:03:20 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 7 Nov 2014 18:03:20 +0200 Received: from pac33-3-88-170-243-169.fbx.proxad.net (HELO e6520eb.localdomain) (eric%eukrea.com@88.170.243.169) by ns0.ovh.net with SMTP; 7 Nov 2014 18:03:18 +0200 Date: Fri, 7 Nov 2014 17:03:17 +0100 From: Eric =?ISO-8859-1?B?QuluYXJk?= To: Alexander Holler Message-ID: <20141107170317.32f36196@e6520eb.localdomain> In-Reply-To: <545CE3DE.4070902@ahsoftware.de> References: <1415353415-3805-1-git-send-email-holler@ahsoftware.de> <20141107150003.27c16356@e6520eb.localdomain> <20141107160443.765f9b19@e6520eb.localdomain> <545CE3DE.4070902@ahsoftware.de> Organization: =?ISO-8859-1?B?RXVrculh?= Electromatique X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Ovh-Tracer-Id: 17097353035908492658 X-Ovh-Remote: 88.170.243.169 (pac33-3-88-170-243-169.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejhedrheehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejhedrheehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Cc: "meta-freescale@yoctoproject.org" , Jon Nettleton , Otavio Salvador Subject: Re: [PATCH 0/1] arm: imx: fsl_otp: make fuses (OTP memory) read-only X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 16:03:25 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Alexander, Le Fri, 07 Nov 2014 16:23:10 +0100, Alexander Holler a =E9crit : > Am 07.11.2014 16:07, schrieb Otavio Salvador: > > On Fri, Nov 7, 2014 at 1:04 PM, Eric B=E9nard wrote: > >> Hi Jon, > >> > >> Le Fri, 7 Nov 2014 15:31:15 +0100, > >> Jon Nettleton a =E9crit : > >>> Fair enough. Can we all agree that it should default to disabled? > >> > >> On your product sure, on the evaluation board that's more questionable. > >> > >> When an evaluation board's user reach this sysfs entries to do a write > >> to it I believe that's not a random choice but a user's choice. > >> > >> Maybe adding a otp_unlock entry to the sysfs before allowing write cou= ld > >> secure more the feature when running on the evaluation boards so that > >> the user can think twice before writing to the fuses. > > > > I like Eric's idea of the unlock sysfs entry for this purpose. >=20 > Maybe I should mention that this extremly dangerous driver already was=20 > posted for submission into the (production) kernel and nobody had a=20 > problem with it's write functionality, just with some other stuff. >=20 In LAKML there was a post for a driver (for 23/28 at the moment) where write support was dropped : http://comments.gmane.org/gmane.linux.drivers.devicetree/94343 In mainline kernel : - on the i.MX there is only one function used to get the MAC : http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/ar= m/mach-mxs/mach-mxs.c#n90 - read only fuse infrastructure was integrated for Tegra : http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers= /soc/tegra/fuse In Freescale's released kernel, the feature is available but one more time I think that's not a production kernel but a base source code to evaluate SOC's features on an evaluation board and then design your own products where it's your responsibility to add / remove features. > And even if it's ok for FSL to promote this feature with their BSP, I=20 > have absolutely no love for the way it was done. It now is likely part=20 > of many production kernels, something never should have happened. >=20 It's the developer's responsibility to add/remove features on _their_ production kernel for _their_ product. > And I still see absolutely no need to have some one time functionality=20 > as part of the kernel, regardless how usefull it might be for some=20 > developers. It's a waste of time and resources to include that write=20 > functionality in something meant for the greater public. Especially=20 > something that dangerous. >=20 If you look how Freescale has designed their "Manufacturing tool" and check a few of their xml files, you will understand why they need this kind of low level access features in the kernel ;-) Here on real products we do all that at bootloader level using a special production version of the bootloader but that's an other story. Best regards, Eric