[Intel-gfx] [PATCH] drm/i915/execlists: Pull the w/a LRI emission into a helper

Chris Wilson chris at chris-wilson.co.uk
Mon Jun 18 11:05:15 UTC 2018


Quoting Joonas Lahtinen (2018-06-18 12:01:16)
> Quoting Chris Wilson (2018-06-18 12:41:50)
> > Having the w/a registers as an open-coded table leaves a trap for the
> > unwary; it would be easy to miss incrementing the LRI counter when
> > adding a new register to the list. Instead, pull the list of registers
> > into a table, so that we only need add new registers to that table
> > rather than try and remember important side-effects of earlier chunks of
> > GPU instructions.
> > 
> > Suggested-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> 
> Not related to this patch, but the lack of OOB check for batch makes
> one itch a little bit.

We check for the overflow afterwards, if we get that far before the
machine dies. As it's static, that seems reasonable as we'll cover it
entirely in CI.
-Chris


More information about the Intel-gfx mailing list