Skip to content

Commit a999c84

Browse files
authored
Introduce Battlemage basic enabling support (#203)
1 parent 8d74657 commit a999c84

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

Source/inc/common/gtsysinfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ typedef struct GT_SYSTEM_INFO
283283
GT_CACHE_TYPES CacheTypes; // Types of caches available on system (L3/LLC/eDRAM).
284284
uint32_t MaxVECS; // Max VECS instances.
285285
uint32_t MemoryType; // GT_MEMORY_TYPES - type of memory supported in current platform
286-
286+
uint32_t SLMSizeInKb; // SLM Size
287287
} GT_SYSTEM_INFO, *PGT_SYSTEM_INFO;
288288

289289
#pragma pack(pop)

Source/inc/common/igfxfmid.h

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ typedef enum {
7777
IGFX_PVC = 1271,
7878
IGFX_METEORLAKE = 1272,
7979
IGFX_ARROWLAKE = 1273,
80-
IGFX_LUNARLAKE = 1275,
81-
80+
IGFX_BMG = 1274,
81+
IGFX_LUNARLAKE = 1275,
82+
8283
IGFX_MAX_PRODUCT,
8384
IGFX_GENNEXT = 0x7ffffffe,
8485
PRODUCT_FAMILY_FORCE_ULONG = 0x7fffffff
@@ -138,8 +139,9 @@ typedef enum {
138139
IGFX_XE_HP_CORE = 0x0c05, //XE_HP family
139140
IGFX_XE_HPG_CORE = 0x0c07, // XE_HPG Family
140141
IGFX_XE_HPC_CORE = 0x0c08, // XE_HPC Family
141-
IGFX_XE2_LPG_CORE = 0x0c09, // XE2_LPG Family
142-
142+
IGFX_XE2_LPG_CORE = 0x0c09, // XE2_LPG Family
143+
IGFX_XE2_HPG_CORE = IGFX_XE2_LPG_CORE, //XE2_HPG Family
144+
143145
//Please add new GENs BEFORE THIS !
144146
IGFX_MAX_CORE,
145147

@@ -298,7 +300,8 @@ typedef enum __NATIVEGTTYPE
298300
// This macro returns true if the product family is discrete
299301
#define GFX_IS_DISCRETE_PRODUCT(pf) ( ( pf == IGFX_DG1 ) || \
300302
( pf == IGFX_DG2 ) || \
301-
( pf == IGFX_XE_HP_SDV ) )
303+
( pf == IGFX_XE_HP_SDV ) || \
304+
( pf == IGFX_BMG ) )
302305

303306
#define GFX_IS_DISCRETE_FAMILY(p) GFX_IS_DISCRETE_PRODUCT(GFX_GET_CURRENT_PRODUCT(p))
304307

@@ -327,6 +330,7 @@ typedef enum __NATIVEGTTYPE
327330
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HP_CORE ) || \
328331
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPG_CORE ) || \
329332
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPC_CORE ) || \
333+
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE2_HPG_CORE ) || \
330334
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GENNEXT_CORE ) )
331335

332336
#define GFX_IS_GEN_5_OR_LATER(p) ( ( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GEN5_CORE ) || \
@@ -343,6 +347,7 @@ typedef enum __NATIVEGTTYPE
343347
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HP_CORE ) || \
344348
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPG_CORE ) || \
345349
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPC_CORE ) || \
350+
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE2_HPG_CORE ) || \
346351
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GENNEXT_CORE ) )
347352

348353
#define GFX_IS_GEN_5_75_OR_LATER(p) ( ( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GEN5_75_CORE ) || \
@@ -357,6 +362,7 @@ typedef enum __NATIVEGTTYPE
357362
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HP_CORE ) || \
358363
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPG_CORE ) || \
359364
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPC_CORE ) || \
365+
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE2_HPG_CORE ) || \
360366
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GENNEXT_CORE ) )
361367

362368
#define GFX_IS_GEN_6_OR_LATER(p) ( ( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GEN6_CORE ) || \
@@ -369,6 +375,7 @@ typedef enum __NATIVEGTTYPE
369375
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HP_CORE ) || \
370376
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPG_CORE ) || \
371377
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPC_CORE ) || \
378+
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE2_HPG_CORE ) || \
372379
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GENNEXT_CORE ) )
373380

374381
#define GFX_IS_GEN_7_OR_LATER(p) ( ( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GEN7_CORE ) || \
@@ -381,6 +388,7 @@ typedef enum __NATIVEGTTYPE
381388
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HP_CORE ) || \
382389
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPG_CORE ) || \
383390
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE_HPC_CORE ) || \
391+
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_XE2_HPG_CORE ) || \
384392
( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GENNEXT_CORE ) )
385393

386394
#define GFX_IS_GEN_7_5_OR_LATER(p) ( ( GFX_GET_CURRENT_RENDERCORE(p) == IGFX_GEN7_5_CORE ) || \
@@ -1983,6 +1991,12 @@ typedef enum __NATIVEGTTYPE
19831991
#define DEV_ID_6420 0x6420
19841992
#define DEV_ID_64B0 0x64B0
19851993

1994+
//BMG
1995+
#define DEV_ID_E202 0xE202
1996+
#define DEV_ID_E20B 0xE20B
1997+
#define DEV_ID_E20C 0xE20C
1998+
#define DEV_ID_E20D 0xE20D
1999+
#define DEV_ID_E212 0xE212
19862000

19872001
#define MGM_HAS 0
19882002

0 commit comments

Comments
 (0)