Skip to content

Commit 12561f6

Browse files
vcheahintel-mediadev
authored andcommitted
Add registry to configure MTL Media CCS
Signed-off-by: Cheah, Vincent Beng Keat <vincent.beng.keat.cheah@intel.com>
1 parent e77144d commit 12561f6

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

media_common/linux/common/os/mos_util_user_feature_keys_specific.h

+1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@
4141
#define __MEDIA_USER_FEATURE_VALUE_ENABLE_SOFTPIN "Enable Softpin"
4242
#define __MEDIA_USER_FEATURE_VALUE_DISABLE_KMD_WATCHDOG "Disable KMD Watchdog"
4343
#define __MEDIA_USER_FEATURE_VALUE_ENABLE_VM_BIND "Enable VM Bind"
44+
#define __MEDIA_USER_FEATURE_VALUE_ENABLE_MEDIA_CCS "Enable Media CCS"
4445

4546
#endif // __MOS_UTIL_USER_FEATURE_KEYS_SPECIFIC_H__

media_softlet/linux/Xe_M_plus/ddi/media_sku_wa_mtl.cpp

+16-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,22 @@ static bool InitMtlMediaSkuExt(struct GfxDeviceInfo *devInfo,
177177
MEDIA_WR_SKU(skuTable, FtrHcpDecMemoryCompression, 0);
178178
MEDIA_WR_SKU(skuTable, Ftr10bitDecMemoryCompression, 0);
179179

180+
#if (_DEBUG || _RELEASE_INTERNAL)
181+
uint32_t value = 0;
182+
ReadUserSettingForDebug(
183+
userSettingPtr,
184+
value,
185+
__MEDIA_USER_FEATURE_VALUE_ENABLE_MEDIA_CCS,
186+
MediaUserSetting::Group::Device);
187+
188+
/* MEDIA_CSS default value is 1 */
189+
if (value > 1)
190+
value = 1;
191+
192+
MEDIA_WR_SKU(skuTable, FtrCCSNode, (uint8_t)value);
193+
#else
180194
MEDIA_WR_SKU(skuTable, FtrCCSNode, 1);
195+
#endif
181196

182197
MEDIA_WR_SKU(skuTable, FtrVpP010Output, 1);
183198
MEDIA_WR_SKU(skuTable, FtrVp10BitSupport, 1);
@@ -337,4 +352,4 @@ static struct LinuxDeviceInit arlDeviceInit =
337352
};
338353

339354
static bool arlDeviceRegister = DeviceInfoFactory<LinuxDeviceInit>::
340-
RegisterDevice((uint32_t)IGFX_ARROWLAKE, &arlDeviceInit);
355+
RegisterDevice((uint32_t)IGFX_ARROWLAKE, &arlDeviceInit);

media_softlet/linux/common/os/mos_user_setting_specific.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,14 @@ MOS_STATUS MosUserSetting::InitMosUserSettingSpecific(MediaUserSettingSharedPtr
5959
0,
6060
false); //
6161

62+
#if (_DEBUG || _RELEASE_INTERNAL)
63+
DeclareUserSettingKeyForDebug(
64+
userSettingPtr,
65+
__MEDIA_USER_FEATURE_VALUE_ENABLE_MEDIA_CCS,
66+
MediaUserSetting::Group::Device,
67+
1,
68+
false); //
69+
#endif
70+
6271
return MOS_STATUS_SUCCESS;
6372
}

media_softlet/linux/common/os/osservice/mos_utilities_specific.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,9 @@ MOS_STATUS MosUtilities::MosInitializeReg(RegBufferMap &regBufferMap)
15541554
std::string id = "";
15551555

15561556
static const char *disableReportRegKeyList[] = {
1557+
#if (_DEBUG || _RELEASE_INTERNAL)
1558+
__MEDIA_USER_FEATURE_VALUE_ENABLE_MEDIA_CCS,
1559+
#endif
15571560
"INTEL MEDIA ALLOC MODE"
15581561
};
15591562
static const uint32_t disableReportRegKeyListCount = sizeof(disableReportRegKeyList) / sizeof(disableReportRegKeyList[0]);

0 commit comments

Comments
 (0)