All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] arm: imx: fsl_otp: make fuses (OTP memory) read-only
@ 2014-11-07  9:43 Alexander Holler
  2014-11-07  9:43 ` [PATCH 1/1] " Alexander Holler
  2014-11-07 14:00 ` [PATCH 0/1] " Eric Bénard
  0 siblings, 2 replies; 29+ messages in thread
From: Alexander Holler @ 2014-11-07  9:43 UTC (permalink / raw)
  To: meta-freescale; +Cc: Jon Nettleton, Otavio Salvador


Hello.

Jon Nettleton made me aware that there is a driver which makes it very
easy to write to the OTP from userspace.

And I have to admit that I was mildly shocked.

Because OTP stands for One Time Programmable, it means the write
functionality of that driver can be used only once per HW and if that
is done wrong, the HW might be one of those famous electronic bricks
afterwards.

So I've quickly written a patch which makes this driver to a friendly
citizen instead of an heavily armed cowboy.

I really, really think this patch should be attached to all trees which
are including fsl_otp.c. It applies without any error to
imx_3.10.17_1.0.1_ga, imx_3.10.31_1.1.0_beta, linux-linaro-lsk-v3.14-mx6
and likely any other tree which includes that driver.

Regards,

Alexander Holler


^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [PATCH 0/1] arm: imx: fsl_otp: make fuses (OTP memory) read-only
@ 2014-11-08 21:54 Robin Findley
  2014-11-10 14:11 ` Alexander Holler
  0 siblings, 1 reply; 29+ messages in thread
From: Robin Findley @ 2014-11-08 21:54 UTC (permalink / raw)
  To: Alexander Holler; +Cc: meta-freescale@yoctoproject.org

From Alexander Holler
> But there is absolutely no reason to include this ONE TIME FUNCTIONALITY 
> into any kernel meant for the public, especially as it is very 
> dangerous.

The problem isn't that someone can burn fuses in a commercial product. 
Rather, the problem is a designer who ships a product with unburned fuses.  If
a designer is unaware of the fuses, and ships them unburned (unless he has
good reason), then he shouldn't be selling commercial products.  You can't
design an imx product without knowing about the fuses.  They are fundamental
to the design process.

I agree that a config option might be useful, and maybe even disabled by
default.  But for manufacturing purposes, having the ability to burn the fuses
during production testing with production software is a good thing.  And once
they are burned, the proposed nightmare scenarios no longer exist, and it
doesn't matter whether the kernel has the option enabled.

> And for sure not without any content veryfication and some 
> other means to make sure the value one wants to put ONCE into that ONE 
> TIME MEMORY isn't wrong.
> 
> That's why I just refuse to change my patch in order to add write 
> functionality. I don't want to do (imho) foolish things just because 
> someone else tells me to do them. I'm no Lemming.
> 
> At least not without adequate compensations. ;)
> 
> Regards,
> Alexander Holler



^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2014-11-13 19:22 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-07  9:43 [PATCH 0/1] arm: imx: fsl_otp: make fuses (OTP memory) read-only Alexander Holler
2014-11-07  9:43 ` [PATCH 1/1] " Alexander Holler
2014-11-07 11:34   ` Otavio Salvador
2014-11-07 14:40     ` Alexander Holler
2014-11-07 15:06       ` Otavio Salvador
2014-11-07 15:26         ` Alexander Holler
2014-11-07 14:00 ` [PATCH 0/1] " Eric Bénard
2014-11-07 14:31   ` Jon Nettleton
2014-11-07 14:55     ` Alexander Holler
2014-11-07 15:04     ` Eric Bénard
2014-11-07 15:07       ` Otavio Salvador
2014-11-07 15:23         ` Alexander Holler
2014-11-07 16:00           ` Otavio Salvador
2014-11-07 16:38             ` Alexander Holler
2014-11-08  2:03               ` Nikolay Dimitrov
2014-11-08  8:58                 ` Chris Tapp
2014-11-08  9:32                   ` Jon Nettleton
2014-11-08 18:49                 ` Alexander Holler
2014-11-09 10:14                   ` Alexander Holler
2014-11-09 15:09                     ` Eric Bénard
2014-11-09 17:03                       ` Bob Cochran
2014-11-09 12:34                   ` Nikolay Dimitrov
2014-11-09 18:09                     ` Alexander Holler
2014-11-09 19:20                       ` Nikolay Dimitrov
2014-11-07 16:03           ` Eric Bénard
2014-11-07 15:50         ` Eric Bénard
  -- strict thread matches above, loose matches on Subject: below --
2014-11-08 21:54 Robin Findley
2014-11-10 14:11 ` Alexander Holler
2014-11-13 19:19   ` Alexander Holler

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.