[igt-dev] [PATCH i-g-t 0/1] lib/rendercopy_gen9: Program platform specific MOCS index

Siddiqui, Ayaz A ayaz.siddiqui at intel.com
Mon Aug 16 17:25:26 UTC 2021



> -----Original Message-----
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Sent: Monday, August 16, 2021 10:26 PM
> To: Siddiqui, Ayaz A <ayaz.siddiqui at intel.com>
> Cc: igt-dev at lists.freedesktop.org
> Subject: Re: [igt-dev] [PATCH i-g-t 0/1] lib/rendercopy_gen9: Program
> platform specific MOCS index
> 
> On Tue, Aug 03, 2021 at 04:39:33PM +0530, Ayaz A Siddiqui wrote:
> > Since Gen12 onward PTE based catchability is not supported to changing
> > PTE index to UC as safest  catchability.
> 
> That doesn't make any sense to me. Without a PTE MOCS setting all buffers
> that have the potential of becoming scanout buffers will have to be UC,
> which doesn't sound particularly great.
Well  there is no PTE MOCS in gen12 so if PTE MOCS index is being selected
then It may be come L3_WB for one platform and UC for another platform.
These tests are not doing cache flush to WB_L3 leads to data corruption.
So if  WB_L3 is needed some test  then proper flush need to be added.
> 
> Also we do have the PTE MOCS index still programmed on gen12 AFAICS.
Yes it may be the case, all those tests need to be corrected to use correct
MOCS index.

Regards
-Ayaz

> 
> >
> > Based on further need, we may move intel_get_uc_mocs() in some
> common
> > file, so that it can be useed for providing uc index for other modules also.
> >
> >
> > Ayaz A Siddiqui (1):
> >   lib/rendercopy_gen9: Program MOCS value based on platform
> >
> >  lib/rendercopy_gen9.c | 33 ++++++++++++++++++++++++++++++++-
> >  1 file changed, 32 insertions(+), 1 deletion(-)
> >
> > --
> > 2.26.2
> 
> --
> Ville Syrjälä
> Intel


More information about the igt-dev mailing list