[Intel-gfx] [PATCH v5] drm/i915 : Added Programming of the MOCS

Antoine, Peter peter.antoine at intel.com
Thu Jun 18 23:34:22 PDT 2015


On Thu, 2015-06-18 at 16:50 +0100, Damien Lespiau wrote:
> On Thu, Jun 18, 2015 at 03:45:44PM +0100, Antoine, Peter wrote:
> > Not a blocker. It gets a little more interesting, as the L3CC
> > registers are shared across all engines, but is only saved in the RCS
> > context. But, it is reset on the context switch when ELSP is set. So
> > we would have to program it (i.e. MMIO) and also set it in the batch
> > start for the RCS. Each ring would have to have a proper
> > init_context() and these registers programmed there.
> 
> Hum, so yes, it's like you say. I think leaving a comment somewhere in
> the init path telling us we rely on the RCS init_context() for all the
> rings would be nice, but that's extra topping that can be done any time.
> 
It is in the file header for the mocs.h in the comment before the table
is defines and in the function header for the init. I can add another
one before it's called, but that might be a little overkill. :)


More information about the Intel-gfx mailing list