[Intel-gfx] [RFC PATCH 00/11] Refactor HW workaround code
Chris Wilson
chris at chris-wilson.co.uk
Tue Oct 10 20:10:13 UTC 2017
Quoting Oscar Mateo (2017-10-10 19:24:18)
> * Above method can be used to create a complete logical context with
> engine context populated by the hardware. This Logical context can be
> used as an Golden Context Image or template for subsequently created
> contexts.
It's the template part we want (sending down a pair of contexts to be
executed in sequence is problematic).
The current fire are the nonpriv registers that are leaking across the
proto-context, i.e. mesa does LRI that get inherited into a libva
context. Adding those to the context image requires approx a hundred
LRI, so a not impossible task to proofread (esp. as many are just
setting register groups, e.g. the 32 CS_GPR registers, to 0).
But it is still a task that we need to maintain that list of nonpriv
registers. (State outside of the nonpriv that doesn't have a defined
default, cannot be either modified by userspace or assume to have any
particular value.)
-Chris
More information about the Intel-gfx
mailing list