[Mesa-dev] [PATCH 02/13] i965: Keep track of whether LRI is allowed in the context struct.

Francisco Jerez currojerez at riseup.net
Mon Sep 7 07:52:04 PDT 2015


Chris Wilson <chris at chris-wilson.co.uk> writes:

> On Mon, Sep 07, 2015 at 05:21:53PM +0300, Francisco Jerez wrote:
>> I'm sure you had some specific practical advantage in mind?  Bashing the
>> rather sensitive L3 configuration registers to see if something sticks
>> is a hack with potential implications.  I'd prefer to avoid that unless
>> there is a reason why it could be useful.
>
> It prevents an incorrect assumption about kernel ABI. The cost of which
> is seeing whether you know how to program registers correctly from the
> ring.
> -Chris

All other codepaths that need to use LRI to write registers share the
same can_do_pipelined_register_writes() test and make assumptions about
the kernel ABI from there.  Ideally there would be a kernel param
userspace could use to query whether the command parser is active, but
there is not, so it doesn't look like we can do better than pick some
harmless register (the L3 config registers are not), write it from a
batch, and infer whether the command parser is active or not from the
result.

If you have any evidence that the assumption about the kernel ABI made
here is wrong, please share it, we should probably just blacklist the
specific command parser revisions for which the assumption doesn't hold.

>
> -- 
> Chris Wilson, Intel Open Source Technology Centre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150907/8c7dd86e/attachment.sig>


More information about the mesa-dev mailing list