mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: query engine info prior to query topology
don't setup l3 bank count in default gt sys info Related-To: NEO-12073 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3d3dff8dc2
commit
1fa7e14d0b
@@ -20,7 +20,7 @@ TEST(HwInfoTest, givenReleaseHelperWithL3BankConfigWhenSetupDefaultHwInfoThenL3C
|
||||
|
||||
setupDefaultGtSysInfo(&hwInfo, &releaseHelper);
|
||||
|
||||
EXPECT_EQ_VAL(1u, hwInfo.gtSystemInfo.L3BankCount);
|
||||
EXPECT_EQ_VAL(0u, hwInfo.gtSystemInfo.L3BankCount);
|
||||
EXPECT_EQ_VAL(1u, hwInfo.gtSystemInfo.L3CacheSizeInKb);
|
||||
|
||||
releaseHelper.getL3BankCountResult = 0;
|
||||
@@ -28,8 +28,8 @@ TEST(HwInfoTest, givenReleaseHelperWithL3BankConfigWhenSetupDefaultHwInfoThenL3C
|
||||
|
||||
setupDefaultGtSysInfo(&hwInfo, &releaseHelper);
|
||||
|
||||
EXPECT_EQ_VAL(1u, hwInfo.gtSystemInfo.L3BankCount);
|
||||
EXPECT_EQ_VAL(4u, hwInfo.gtSystemInfo.L3CacheSizeInKb);
|
||||
EXPECT_EQ_VAL(0u, hwInfo.gtSystemInfo.L3BankCount);
|
||||
EXPECT_EQ_VAL(0u, hwInfo.gtSystemInfo.L3CacheSizeInKb);
|
||||
|
||||
releaseHelper.getL3BankCountResult = 2;
|
||||
releaseHelper.getL3CacheBankSizeInKbResult = 0;
|
||||
|
||||
@@ -84,7 +84,7 @@ TEST(DrmSystemInfoTest, givenSetupHardwareInfoWhenQuerySystemInfoFalseThenSystem
|
||||
EXPECT_EQ(nullptr, drm.getSystemInfo());
|
||||
|
||||
EXPECT_TRUE(isEmpty(::testing::internal::GetCapturedStdout()));
|
||||
EXPECT_TRUE(isEmpty(::testing::internal::GetCapturedStderr()));
|
||||
EXPECT_FALSE(isEmpty(::testing::internal::GetCapturedStderr()));
|
||||
}
|
||||
|
||||
TEST(DrmSystemInfoTest, whenSetupHardwareInfoThenReleaseHelperContainsCorrectIpVersion) {
|
||||
@@ -233,7 +233,7 @@ TEST(DrmSystemInfoTest, givenSetupHardwareInfoWhenQuerySystemInfoFailsThenSystem
|
||||
if (productHelper.isPlatformQuerySupported()) {
|
||||
EXPECT_TRUE(hasSubstr(::testing::internal::GetCapturedStderr(), "Size got from PRELIM_DRM_I915_QUERY_HW_IP_VERSION query does not match PrelimI915::prelim_drm_i915_query_hw_ip_version size\n"));
|
||||
} else {
|
||||
EXPECT_TRUE(::testing::internal::GetCapturedStderr().empty());
|
||||
EXPECT_FALSE(::testing::internal::GetCapturedStderr().empty());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -167,8 +167,6 @@ HWTEST2_F(XeLpgHwInfoTests, GivenEmptyHwInfoForUnitTestsWhenSetupHardwareInfoIsC
|
||||
EXPECT_GT_VAL(gtSystemInfo.MaxSlicesSupported, 0u);
|
||||
EXPECT_GT_VAL(gtSystemInfo.MaxSubSlicesSupported, 0u);
|
||||
|
||||
EXPECT_GT_VAL(gtSystemInfo.L3BankCount, 0u);
|
||||
|
||||
EXPECT_TRUE(gtSystemInfo.CCSInfo.IsValid);
|
||||
EXPECT_GT_VAL(gtSystemInfo.CCSInfo.NumberOfCCSEnabled, 0u);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user