Skip to content

Commit a6aac14

Browse files
Move setting of featureTable flags
ftrL3IACoherency, ftrGpGpuMidBatchPreempt, ftrGpGpuThreadGroupLevelPreempt from configureHardwareCustom to setupFeatureAndWorkaroundTable Related-To: NEO-2755 Change-Id: I508ad321c60bfd88eef3654b3f418343fc5b6b31 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
1 parent 41ca0a0 commit a6aac14

33 files changed

+42
-60
lines changed

runtime/gen10/hw_info_cnl.inl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ void CNL::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
7878
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
7979
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
8080

81+
pSkuTable->ftrL3IACoherency = true;
82+
pSkuTable->ftrGpGpuMidBatchPreempt = true;
83+
pSkuTable->ftrGpGpuThreadGroupLevelPreempt = true;
8184
pSkuTable->ftrGpGpuMidThreadLevelPreempt = true;
8285
pSkuTable->ftr3dMidBatchPreempt = true;
8386
pSkuTable->ftr3dObjectLevelPreempt = true;

runtime/gen10/linux/hw_info_config_cnl.inl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ int HwInfoConfigHw<IGFX_CANNONLAKE>::configureHardwareCustom(HardwareInfo *hwInf
1616
return 0;
1717
}
1818
GT_SYSTEM_INFO *pSysInfo = const_cast<GT_SYSTEM_INFO *>(hwInfo->pSysInfo);
19-
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
20-
21-
pSkuTable->ftrGpGpuMidBatchPreempt = true;
22-
pSkuTable->ftrGpGpuThreadGroupLevelPreempt = true;
23-
pSkuTable->ftrL3IACoherency = true;
2419

2520
if (pSysInfo->SubSliceCount == 9) {
2621
pSysInfo->SliceCount = 4;

runtime/gen11/hw_info_icllp.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ void ICLLP::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
7575
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
7676
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
7777

78+
pSkuTable->ftrL3IACoherency = true;
7879
pSkuTable->ftrPPGTT = true;
7980
pSkuTable->ftrSVM = true;
8081
pSkuTable->ftrIA32eGfxPTEs = true;

runtime/gen11/hw_info_lkf.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ void LKF::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
7474
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
7575
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
7676

77+
pSkuTable->ftrL3IACoherency = true;
7778
pSkuTable->ftrPPGTT = true;
7879
pSkuTable->ftrSVM = true;
7980
pSkuTable->ftrIA32eGfxPTEs = true;

runtime/gen11/linux/hw_info_config_icllp.inl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ int HwInfoConfigHw<IGFX_ICELAKE_LP>::configureHardwareCustom(HardwareInfo *hwInf
1616
return 0;
1717
}
1818

19-
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
2019
GT_SYSTEM_INFO *pSysInfo = const_cast<GT_SYSTEM_INFO *>(hwInfo->pSysInfo);
2120

2221
pSysInfo->SliceCount = 1;
23-
pSkuTable->ftrL3IACoherency = true;
2422

2523
return 0;
2624
}

runtime/gen11/linux/hw_info_config_lkf.inl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ int HwInfoConfigHw<IGFX_LAKEFIELD>::configureHardwareCustom(HardwareInfo *hwInfo
1616
return 0;
1717
}
1818

19-
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
2019
GT_SYSTEM_INFO *pSysInfo = const_cast<GT_SYSTEM_INFO *>(hwInfo->pSysInfo);
2120

2221
pSysInfo->SliceCount = 1;
23-
pSkuTable->ftrL3IACoherency = true;
2422

2523
return 0;
2624
}

runtime/gen8/hw_info_bdw.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ void BDW::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
7979
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
8080
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
8181

82+
pSkuTable->ftrL3IACoherency = true;
8283
pSkuTable->ftrPPGTT = true;
8384
pSkuTable->ftrSVM = true;
8485
pSkuTable->ftrIA32eGfxPTEs = true;

runtime/gen8/linux/hw_info_config_bdw.inl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ int HwInfoConfigHw<IGFX_BROADWELL>::configureHardwareCustom(HardwareInfo *hwInfo
1616
return 0;
1717
}
1818
GT_SYSTEM_INFO *pSysInfo = const_cast<GT_SYSTEM_INFO *>(hwInfo->pSysInfo);
19-
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
20-
21-
pSkuTable->ftrL3IACoherency = true;
2219

2320
// There is no interface to read total slice count from drm/i915, so we
2421
// derive this from the number of EUs and subslices.

runtime/gen9/hw_info_bxt.inl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ void BXT::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
7777
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
7878
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
7979

80+
pSkuTable->ftrGpGpuMidBatchPreempt = true;
81+
pSkuTable->ftrGpGpuThreadGroupLevelPreempt = true;
82+
pSkuTable->ftrL3IACoherency = true;
8083
pSkuTable->ftrVEBOX = true;
8184
pSkuTable->ftrULT = true;
8285
pSkuTable->ftrGpGpuMidThreadLevelPreempt = true;

runtime/gen9/hw_info_cfl.inl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ void CFL::setupFeatureAndWorkaroundTable(HardwareInfo *hwInfo) {
7171
FeatureTable *pSkuTable = const_cast<FeatureTable *>(hwInfo->pSkuTable);
7272
WorkaroundTable *pWaTable = const_cast<WorkaroundTable *>(hwInfo->pWaTable);
7373

74+
pSkuTable->ftrGpGpuMidBatchPreempt = true;
75+
pSkuTable->ftrGpGpuThreadGroupLevelPreempt = true;
76+
pSkuTable->ftrL3IACoherency = true;
7477
pSkuTable->ftrVEBOX = true;
7578
pSkuTable->ftrGpGpuMidThreadLevelPreempt = false;
7679
pSkuTable->ftr3dMidBatchPreempt = true;

0 commit comments

Comments
 (0)