Skip to content

Commit 09046b0

Browse files
matborzyszkowskiigcbot
authored andcommitted
Add support for BMG-G31
Add support for BMG-G31
1 parent 0bd79d0 commit 09046b0

File tree

6 files changed

+55
-2
lines changed

6 files changed

+55
-2
lines changed

IGC/Compiler/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ set(IGC_BUILD__SRC__Compiler
113113
"${IGC_BUILD__GFX_DEV_SRC_DIR}/skuwa/igt_12_71_hw_wa.c"
114114
"${IGC_BUILD__GFX_DEV_SRC_DIR}/skuwa/igt_12_74_hw_wa.c"
115115
"${IGC_BUILD__GFX_DEV_SRC_DIR}/skuwa/igt_20_01_hw_wa.c"
116+
"${IGC_BUILD__GFX_DEV_SRC_DIR}/skuwa/igt_20_02_hw_wa.c"
116117
"${IGC_BUILD__GFX_DEV_SRC_DIR}/skuwa/igt_20_04_hw_wa.c"
117118
"${IGC_BUILD__GFX_DEV_SRC_DIR}/skuwa/igt_30_00_hw_wa.c"
118119
"${IGC_BUILD__GFX_DEV_SRC_DIR}/skuwa/igt_30_01_hw_wa.c"

IGC/Compiler/igc_workaround_linux.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,12 @@ namespace IGC
194194
{
195195
switch (GFX_GET_GMD_RELEASE_VERSION_RENDER(platform->getPlatformInfo()))
196196
{
197-
case GFX_GMD_ARCH_20_RELEASE_XE2_HPG_X2:
197+
case GFX_GMD_ARCH_20_RELEASE_XE2_HPG_2001:
198198
InitGt_20_01HwWaTable(&waTable, pSkuFeatureTable, &stWaInitParam);
199199
break;
200+
case GFX_GMD_ARCH_20_RELEASE_XE2_HPG_2002:
201+
InitGt_20_02HwWaTable(&waTable, pSkuFeatureTable, &stWaInitParam);
202+
break;
200203
case GFX_GMD_ARCH_20_RELEASE_XE2_LPG:
201204
InitGt_20_04HwWaTable(&waTable, pSkuFeatureTable, &stWaInitParam);
202205
break;

inc/common/igfxfmid.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ typedef struct GFX_GMD_ID_DEF
153153
#define GFX_GMD_ARCH_12_RELEASE_XE_LP_LG (71)
154154
#define GFX_GMD_ARCH_12_RELEASE_XE_LPG_PLUS_1274 (74)
155155

156-
#define GFX_GMD_ARCH_20_RELEASE_XE2_HPG_X2 (1)
156+
#define GFX_GMD_ARCH_20_RELEASE_XE2_HPG_2001 (1)
157+
#define GFX_GMD_ARCH_20_RELEASE_XE2_HPG_2002 (2)
157158
#define GFX_GMD_ARCH_20_RELEASE_XE2_LPG (4)
158159

159160
#define GFX_GMD_ARCH_30_RELEASE_XE3_LPG_3000 (0)
@@ -758,6 +759,10 @@ typedef enum __NATIVEGTTYPE
758759
#define DEV_ID_E212 0xE212
759760
#define DEV_ID_E215 0xE215
760761
#define DEV_ID_E216 0xE216
762+
#define DEV_ID_E220 0xE220
763+
#define DEV_ID_E221 0xE221
764+
#define DEV_ID_E222 0xE222
765+
#define DEV_ID_E223 0xE223
761766

762767
// PTL
763768
#define DEV_ID_B080 0xB080

skuwa/igt_20_02_hw_wa.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*========================== begin_copyright_notice ============================
2+
3+
Copyright (C) 2022-2025 Intel Corporation
4+
5+
SPDX-License-Identifier: MIT
6+
7+
============================= end_copyright_notice ===========================*/
8+
9+
// This is an auto-generated file. Please do not edit!
10+
// If changes are needed here please reach out to the codeowners, thanks.
11+
12+
13+
#include "wa_def.h"
14+
#include "igt_20_02_rev_id.h"
15+
16+
17+
void InitGt_20_02HwWaTable(PWA_TABLE pWaTable, PSKU_FEATURE_TABLE pSkuTable, PWA_INIT_PARAM pWaParam)
18+
{
19+
int iStepId_GT_20_02 = (int)pWaParam->usRenderRevID;
20+
21+
22+
}

skuwa/igt_20_02_rev_id.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*========================== begin_copyright_notice ============================
2+
3+
Copyright (C) 2022-2025 Intel Corporation
4+
5+
SPDX-License-Identifier: MIT
6+
7+
============================= end_copyright_notice ===========================*/
8+
9+
// This is an auto-generated file. Please do not edit!
10+
// If changes are needed here please reach out to the codeowners, thanks.
11+
12+
13+
#include "wa_def.h"
14+
15+
#define GT_20_02_REV_ID_A0 SI_REV_ID(0,0)
16+
17+
#define GT_20_02_REV_ID_B0 SI_REV_ID(4,4)
18+

skuwa/wa_def.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ void InitGt_20_01HwWaTable(
379379
PWA_TABLE pWaTable,
380380
PSKU_FEATURE_TABLE pSkuTable,
381381
PWA_INIT_PARAM pWaParam);
382+
void InitGt_20_02HwWaTable(
383+
PWA_TABLE pWaTable,
384+
PSKU_FEATURE_TABLE pSkuTable,
385+
PWA_INIT_PARAM pWaParam);
382386
void InitGt_20_04HwWaTable(
383387
PWA_TABLE pWaTable,
384388
PSKU_FEATURE_TABLE pSkuTable,

0 commit comments

Comments
 (0)