diff --git a/shared/source/os_interface/linux/drm_neo.cpp b/shared/source/os_interface/linux/drm_neo.cpp index 88192428f1..03e71a9b6d 100644 --- a/shared/source/os_interface/linux/drm_neo.cpp +++ b/shared/source/os_interface/linux/drm_neo.cpp @@ -930,10 +930,6 @@ void Drm::setupSystemInfo(HardwareInfo *hwInfo, SystemInfo *sysInfo) { gtSysInfo->MaxDualSubSlicesSupported = sysInfo->getMaxDualSubSlicesSupported(); gtSysInfo->CsrSizeInMb = sysInfo->getCsrSizeInMb(); gtSysInfo->SLMSizeInKb = sysInfo->getSlmSizePerDss(); - - if (gtSysInfo->SLMSizeInKb) { - hwInfo->capabilityTable.slmSize = gtSysInfo->SLMSizeInKb; - } } void Drm::setupCacheInfo(const HardwareInfo &hwInfo) { diff --git a/shared/source/os_interface/windows/wddm/wddm.cpp b/shared/source/os_interface/windows/wddm/wddm.cpp index 7d635c486a..d36652ed7a 100644 --- a/shared/source/os_interface/windows/wddm/wddm.cpp +++ b/shared/source/os_interface/windows/wddm/wddm.cpp @@ -110,7 +110,6 @@ bool Wddm::init() { hardwareInfo->capabilityTable.instrumentationEnabled = (hardwareInfo->capabilityTable.instrumentationEnabled && instrumentationEnabled); - hardwareInfo->capabilityTable.slmSize = gtSystemInfo->SLMSizeInKb; rootDeviceEnvironment.initProductHelper(); rootDeviceEnvironment.initCompilerProductHelper(); auto &productHelper = rootDeviceEnvironment.getHelper(); diff --git a/shared/test/unit_test/os_interface/linux/drm_system_info_tests.cpp b/shared/test/unit_test/os_interface/linux/drm_system_info_tests.cpp index c566ae8fb2..b862210b1f 100644 --- a/shared/test/unit_test/os_interface/linux/drm_system_info_tests.cpp +++ b/shared/test/unit_test/os_interface/linux/drm_system_info_tests.cpp @@ -245,16 +245,13 @@ TEST(DrmSystemInfoTest, givenSetupHardwareInfoWhenQuerySystemInfoSucceedsThenSys HardwareInfo hwInfo = *defaultHwInfo; - hwInfo.capabilityTable.slmSize = 0x1234678u; - auto setupHardwareInfo = [](HardwareInfo *, bool, const ReleaseHelper *) {}; DeviceDescriptor device = {0, &hwInfo, setupHardwareInfo}; int ret = drm.setupHardwareInfo(&device, false); EXPECT_EQ(ret, 0); EXPECT_NE(nullptr, drm.getSystemInfo()); - const auto &newHwInfo = *executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo(); - const auto >SystemInfo = newHwInfo.gtSystemInfo; + const auto >SystemInfo = executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo()->gtSystemInfo; EXPECT_GT(gtSystemInfo.MaxEuPerSubSlice, 0u); EXPECT_GT(gtSystemInfo.MaxSlicesSupported, 0u); @@ -263,8 +260,6 @@ TEST(DrmSystemInfoTest, givenSetupHardwareInfoWhenQuerySystemInfoSucceedsThenSys EXPECT_GT(gtSystemInfo.MemoryType, 0u); EXPECT_EQ(gtSystemInfo.CsrSizeInMb, drm.getSystemInfo()->getCsrSizeInMb()); EXPECT_EQ(gtSystemInfo.SLMSizeInKb, drm.getSystemInfo()->getSlmSizePerDss()); - EXPECT_NE(newHwInfo.capabilityTable.slmSize, hwInfo.capabilityTable.slmSize); - EXPECT_EQ(newHwInfo.capabilityTable.slmSize, drm.getSystemInfo()->getSlmSizePerDss()); } TEST(DrmSystemInfoTest, givenSetupHardwareInfoWhenQuerySystemInfoSucceedsThenSystemInfoIsCreatedAndHardwareInfoSetProperlyBasedOnBlobData) { diff --git a/shared/test/unit_test/os_interface/windows/wddm20_tests.cpp b/shared/test/unit_test/os_interface/windows/wddm20_tests.cpp index 88584710eb..4a8c349048 100644 --- a/shared/test/unit_test/os_interface/windows/wddm20_tests.cpp +++ b/shared/test/unit_test/os_interface/windows/wddm20_tests.cpp @@ -72,12 +72,6 @@ TEST_F(Wddm20Tests, GivenExisitingContextWhenInitializingWddmThenCreateContextRe EXPECT_EQ(1u, wddm->createContextResult.called); } -TEST_F(Wddm20Tests, whenInitializingWddmThenSlmSizeInCapabilityTableIsSameAsInGtSystemInfo) { - wddm->init(); - auto hwInfo = rootDeviceEnvironment->getHardwareInfo(); - EXPECT_EQ(hwInfo->gtSystemInfo.SLMSizeInKb, hwInfo->capabilityTable.slmSize); -} - TEST_F(Wddm20Tests, givenNullPageTableManagerAndCompressedResourceWhenMappingGpuVaThenDontUpdateAuxTable) { GmmRequirements gmmRequirements{}; gmmRequirements.allowLargePages = true;