On Fri, 18 Aug 2023 15:39:03 +0100 Steven Price <steven.price@xxxxxxx> wrote: > I'm not sure whether we should really be describing this structure in > the kernel. Beyond the size the kernel has no reason to be looking at > the internals and the spec does have a warning that the layout may change. Yeah, I guess I just wanted to have that documented somewhere, so people understand what this heap context is about. Was quite obscure to me before that. Anyway, I can move that to some mesa doc, that's not a big deal. > > Interestingly kbase also rounds this size up to ensure that it is at > least a cache line. Which I guess might be required if the CPU and GPU > are not coherent as we zero the context (from the CPU) before use. Makes sense.