Skip to content

Commit 8729d75

Browse files
Revert "fix: Increase size of reported global memory available to 98%"
Temporarily reverting back to previously reported value to avoid corner-case regression. Intent is reintroduce as soon as regressions are rootcaused. This only affects Linux. Related-To: GSD-5474, GSD-5412 This reverts commit e8ac22c. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com> Source: 6217d97
1 parent 3bfde11 commit 8729d75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared/source/os_interface/linux/drm_memory_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ uint64_t DrmMemoryManager::getSystemSharedMemory(uint32_t rootDeviceIndex) {
11911191

11921192
double DrmMemoryManager::getPercentOfGlobalMemoryAvailable(uint32_t rootDeviceIndex) {
11931193
if (isLocalMemorySupported(rootDeviceIndex)) {
1194-
return 0.98;
1194+
return 0.95;
11951195
}
11961196
return 0.8;
11971197
}

shared/test/unit_test/os_interface/linux/drm_memory_manager_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4549,7 +4549,7 @@ TEST_F(DrmMemoryManagerTest, givenCustomAlignmentWhenWddmMemoryManagerIsCreatedT
45494549
TEST_F(DrmMemoryManagerTest, givenDrmManagerWithLocalMemoryWhenGettingGlobalMemoryPercentThenCorrectValueIsReturned) {
45504550
TestedDrmMemoryManager memoryManager(true, false, false, *executionEnvironment);
45514551
uint32_t rootDeviceIndex = 0u;
4552-
EXPECT_EQ(memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex), 0.98);
4552+
EXPECT_EQ(memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex), 0.95);
45534553
}
45544554

45554555
TEST_F(DrmMemoryManagerTest, givenDrmManagerWithoutLocalMemoryWhenGettingGlobalMemoryPercentThenCorrectValueIsReturned) {

0 commit comments

Comments
 (0)