-
Notifications
You must be signed in to change notification settings - Fork 2k
Update README.md #1370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md #1370
Conversation
@lurch Indeed - just checking it's an appropriate fix with the bosses. |
I wonder if this change should instead go in https://github.com/raspberrypi/documentation/blob/master/hardware/raspberrypi/otpbits.md since #1298 suggests that these bits don't appear in |
@lurch. After checking the code, I think all three of the bits documented will appear in cpuinfo, I checked that the no overvoltage does appear. @ghollingworth has suggested a link to this page. https://www.raspberrypi.org/documentation/hardware/industrial/README.md |
The "Locking the OTP changes" part of that page says "It is possible to lock the OTP changes to avoid them being edited again. ... Once locked, none of the customer OTP values can be accessed." a) Should the last sentence say "... none of the customer OTP values can be edited." ? (as "accessed" might be misinterpreted to mean "read") ping @ghollingworth |
a) Yes, I think so. |
As I understand it, the only way to program the OTP from Linux is to set the requisite options in config.txt and reboot. Therefore only customer OTP bits are capable of being programmed. I personally don't see the need to make the table more wordy by adding 'customer' to this page: the reason being it is not a page about OTP, and it links to a page that describes 'customer' OTP bits and additionally which bits are publicly documented. On the other hand, it would be more consistent if all pages referred to the bits as 'customer'. |
I think there is a mailbox that will allow you to set bits, but need to check. Not got full answers to @lurch Q's above - will try to find out today. |
a) Yes, this prevent them being set in the future, they can still be read. |
Added more detail in the linked OTP page https://github.com/raspberrypi/documentation/pull/1411/files |
Are the 'N', 'O' and 'Q' bits documented in this PR visible in the output of |
OTP register location 30 would appear to be where the revision code (all 32 bits, including N, O and Q) is actually stored. Rather than duplicate the information that is in revision-codes/README.md in otpbits.md as well, what about making the description for location 30 in otpbits.md (which currently reads 'revision number') a link to revision-codes/README.md? That would be consistent with the line below it, which links to a page describing the customer OTP bits. And maybe add a quick mention to revision-codes/README.md that the revision codes are stored in OTP register location 30, with a link to otpbits.md? Also, some terminology is slightly inconsistent between these pages - OTP bits v. OTP values, revision codes v. revision number |
Done, good call 👍
I'm not sure if that'd be too confusing? Probably best to have that page only document |
Also tidy up some table alignment
Any final objections to merge? |
Maybe another nitpick: whilst I think Maybe "allowed / disallowed" would make more sense here than "enabled / disabled"? 🤷♂️ |
I think the 4 new bits being documented could do with a short introduction above the table, since they are not actually part of the revision code as such. Something like "There are also 3 bits which can be used to disable certain features, and a single bit which is set by the firmware to indicate whether the warranty has been voided by overclocking". Also, instead of the existing "overvoltage enable, overvoltage disabled" etc entries for the 3 feature bits, it would perhaps be more clear to instead state something line "When set, the firmware will prevent any overvoltage from being applied". Similarly with OTP programming and OTP reading. And a note somewhere that all Pis ship with these 3 bits unset. |
Btw the "enabled/disabled" confused me as well and I exactly interpreted it as "is/was (not) overvolted" at first. allowed/disallowed sounds better to me. As of #1348
|
ping @pelwell & @popcornmix - are the bits 24 and 26 above correct? Are they worth adding to the documentation? |
We can work on the phrasing, but factually that is correct. And yes, they should be added. |
Just checked with Oxford Dictionaries (via lexicon.com/en) as "disallowed" didn't sound quite right to me. It seems "disallow" is not the opposite of "allow", in the sense we are trying to use it here. It only has one definition (unlike "allow" which has several). The definition of "disallow" is "refuse to declare valid" which is not what we're trying to say here. The correct term here would be "not allowed". |
@andrum99 |
OK, but it does sound clunky. I withdraw my objection. |
Even if it's not strictly speaking 100% grammatically correct, it would seem obvious from the way that it's being used here that it means exactly "not allowed" ?? |
Otherwise, why not use "not allowed". While it IMO doesn't make anything better or worse, it at least matches usual coding and mathematical syntax to negate something with leading |
🤷♂️ I just thought that "allowed / disallowed" nicely mirrored "enabled / disabled". |
Added the missing User OTP bits that can appear in the board revision.