[Cryptech Tech] [Cryptech-Commits] [core/platform/novena] 21/21: Sick hacks to compensate for sparse MUX within TRNG core.
Rob Austein
sra at hactrn.net
Fri Oct 2 11:56:35 UTC 2015
At Fri, 02 Oct 2015 10:40:01 +0200, Joachim Strömbergson wrote:
>
> Rob Austein wrote:
> > Or violation sets the bit and it stays set until the CPU performs
> > some kind of explicit reset, eg, sets new flag in the control word.
> > Either could work, but the latter seems more robust.
>
> How about writing to the status register to clear the error bit? Easy to
> implement. Lets just do it that way and move forward.
Um, no, that creates a race condition, because I can only write
words, not individual bits.
Can we please just use the status register for status and the control
register for control? I know it's boring, but excitement is not
really something I'm looking for in an error handling protocol.
> I guess Paul will be the one most affected by this change.
Not really.
> Any suggestions how you want to roll this Paul?
>
> I can start by creating a branch, "api_error_removal" or somesuch to do
> the per-core fixes. I'll start with SHA-1.
>
> > There's a reason why I phrased it as "having a real conversation
> > with the FPGA." Reading a register might be OK. It's when it
> > crosses the line from that to attempting to execute some kind of
> > complex recovery behavior that it starts getting to be too much, eg,
> > several round trips of reading and writing registers, mucking with
> > data structures on the CPU side, etc.
>
> Yes, I think we are in agreement about interrupt handlers.
Whew.
More information about the Tech
mailing list