Skip to content

Commit 8b73947

Browse files
johnbashgfxbot
authored andcommitted
Unused MOCS Default Programming(L3+LLC)
Mark Unused MOCS Indices to L3,LLC Cacheable Change-Id: Ie7905e8670a898380a674cd68ebccbc2496a5573
1 parent 3ec6a0c commit 8b73947

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Source/GmmLib/CachePolicy/GmmGen11CachePolicy.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@ void GmmLib::GmmGen11CachePolicy::SetUpMOCSTable()
314314

315315
// clang-format off
316316

317+
//Default MOCS Table
318+
for(int index = 0; index < GMM_MAX_NUMBER_MOCS_INDEXES; index++)
319+
{ // Index ESC SCC L3CC LeCC TC LRUM DAoM ERSC SCC PFM SCF CoS SSE
320+
GMM_DEFINE_MOCS(index , 0 , 0 , 3 , 3 , 1 , 3 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )
321+
}
317322
// Explicit MOCS Table
318323
// Index ESC SCC L3CC LeCC TC LRUM DAoM ERSC SCC PFM SCF CoS SSE
319324
GMM_DEFINE_MOCS( 0 , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )

Source/GmmLib/CachePolicy/GmmGen12CachePolicy.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,12 @@ void GmmLib::GmmGen12CachePolicy::SetUpMOCSTable()
634634

635635
// clang-format off
636636

637+
//Default MOCS Table
638+
for(int index = 0; index < GMM_MAX_NUMBER_MOCS_INDEXES; index++)
639+
{ // Index ES SCC L3CC LeCC TC LRUM DAoM ERSC SCC PFM SCF CoS SSE HDCL1
640+
GMM_DEFINE_MOCS( index , 0 , 0 , 3 , 3 , 1 , 3 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )
641+
}
642+
637643
// Fixed MOCS Table
638644
// Index ESC SCC L3CC LeCC TC LRUM DAoM ERSC SCC PFM SCF CoS SSE HDCL1
639645
GMM_DEFINE_MOCS( 0 , 0 , 0 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )

0 commit comments

Comments
 (0)