[Skiboot] [PATCH v3 2/3] debug_descriptor: Claim reserved field for host kernel log buffer

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu May 31 16:11:03 AEST 2018


On Thu, 2018-05-31 at 14:28 +0930, Joel Stanley wrote:
> I guess something could use it to dump the entire region to be
> processed later. We'd need to move things around in the descriptor to
> do this, as the size is u32 and we only have a u16 left over.
> 
> If you're processing it online then we read one entry at a time, and
> keep going until we find a zero length entry in the buffer to know
> that it's the end.

It's a ring buffer, how can you wrap if you don't know its size ?

Cheers,
Ben.



More information about the Skiboot mailing list