From 2072b0d1e8ba2cba2f94bc2c1fda89d6e457a50b Mon Sep 17 00:00:00 2001 From: John Machado Date: Fri, 4 Sep 2020 07:59:42 +0530 Subject: [PATCH] Added the ADL-S device ID's and phyAddr support Change-Id: Ifcd86a7cbbd73aefe0529b9f8c9d5e64583ba335 --- Source/GmmLib/Platform/GmmGen12Platform.cpp | 5 +++++ Source/inc/common/igfxfmid.h | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Source/GmmLib/Platform/GmmGen12Platform.cpp b/Source/GmmLib/Platform/GmmGen12Platform.cpp index 0674406..347ea17 100644 --- a/Source/GmmLib/Platform/GmmGen12Platform.cpp +++ b/Source/GmmLib/Platform/GmmGen12Platform.cpp @@ -257,6 +257,11 @@ FCRECTALIGN(TILE_YS_2D_128bpe, 128, 32, 32, 16, 16); // clang-format on Data.NoOfBitsSupported = 39; Data.HighestAcceptablePhysicalAddress = GFX_MASK_LARGE(0, 38); + if(GFX_GET_CURRENT_PRODUCT(Data.Platform) == IGFX_ALDERLAKE_S) + { + Data.NoOfBitsSupported = 46; + Data.HighestAcceptablePhysicalAddress = GFX_MASK_LARGE(0, 45); + } } void GmmLib::PlatformInfoGen12::ApplyExtendedTexAlign(uint32_t CCSMode, ALIGNMENT &UnitAlign) diff --git a/Source/inc/common/igfxfmid.h b/Source/inc/common/igfxfmid.h index 50490d4..bf29cba 100644 --- a/Source/inc/common/igfxfmid.h +++ b/Source/inc/common/igfxfmid.h @@ -68,6 +68,7 @@ typedef enum { IGFX_TIGERLAKE_LP, IGFX_ROCKETLAKE, + IGFX_ALDERLAKE_S, IGFX_DG1 = 1210, @@ -97,6 +98,7 @@ typedef enum { PCH_CMP_H, // CML Halo PCH PCH_CMP_V, // CML V PCH PCH_JSP_N, // JSL N PCH Device IDs for JSL+ Rev02 + PCH_ADL_S, // ADL_S PCH PCH_PRODUCT_FAMILY_FORCE_ULONG = 0x7fffffff } PCH_PRODUCT_FAMILY; @@ -1235,6 +1237,18 @@ typedef enum __NATIVEGTTYPE #define DEV_ID_4E71 0x4E71 #define DEV_ID_4E55 0x4E55 +//ADL-S PCH Device IDs +#define DEV_ID_4680 0x4680 +#define DEV_ID_4681 0x4681 +#define DEV_ID_4682 0x4682 +#define DEV_ID_4683 0x4683 +#define DEV_ID_4690 0x4690 +#define DEV_ID_4691 0x4691 +#define DEV_ID_4692 0x4692 +#define DEV_ID_4693 0x4693 +#define DEV_ID_4698 0x4698 +#define DEV_ID_4699 0x4699 + //ICL PCH LP Device IDs #define ICP_LP_RESERVED_FUSE_ID 0x3480 #define ICP_LP_U_SUPER_SKU_ID 0x3481