Skip to content

Commit d91d22d

Browse files
Revert "Replicate CONSTANT_SURFACE across tiles"
This reverts commit 9a4467f. Signed-off-by: Compute-Runtime-Validation <[email protected]>
1 parent dba5484 commit d91d22d

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

shared/source/debug_settings/debug_variables_base.inl

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ DECLARE_DEBUG_VARIABLE(int32_t, ForceStatelessL1CachingPolicy, -1, "-1: default,
143143
DECLARE_DEBUG_VARIABLE(int32_t, ForceMemoryBankIndexOverride, -1, "-1: default, 0: disable, 1:enable, Force index=1 of memory bank for XEHP")
144144
DECLARE_DEBUG_VARIABLE(int32_t, EnablePrivateScratchSlot1, -1, "-1: default, 0: disable, 1: enable Allows using private scratch space")
145145
DECLARE_DEBUG_VARIABLE(int32_t, DisablePipeControlPrecedingPostSyncCommand, -1, "-1 default - disabled adding PIPE_CONTROL, 0 - disabled adding PIPE_CONTROL, 1 - enabled adding PIPE_CONTROL")
146-
DECLARE_DEBUG_VARIABLE(int32_t, MultiTileAllocPlacement, -1, "Place ISA or CONSTANT_SURFACE allocation on multi tiles, -1 - default, 0 - disabled, 1 - enabled")
146+
DECLARE_DEBUG_VARIABLE(int32_t, MultiTileIsaPlacement, -1, "Place ISA allocation on multi tiles, -1 - default, 0 - disabled, 1 - enabled")
147147
DECLARE_DEBUG_VARIABLE(int32_t, FormatForStatelessCompressionWithUnifiedMemory, 0xF, "Format for stateless compression with unified memory")
148148
DECLARE_DEBUG_VARIABLE(int32_t, ForceMultiGpuPartialWritesInComputeMode, -1, "-1: default - 0 for multiOsContext capable, 0: program value 0 in MultiGpuPartialWrites bit in STATE_COMPUTE_MODE, 1: program value 1 in MultiGpuPartialWrites bit in STATE_COMPUTE_MODE,")
149149
DECLARE_DEBUG_VARIABLE(int32_t, ForceMultiGpuPartialWrites, -1, "-1: default - 0 for multiOsContext capable, 0: program value 0 in MultiGpuPartialWrites controls 1: program value 1 in MultiGpuPartialWrites controls")

shared/source/memory_manager/definitions/storage_info.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,15 @@ StorageInfo MemoryManager::createStorageInfoFromProperties(const AllocationPrope
4242
sizeof(storageInfo.resourceTag));
4343

4444
switch (properties.allocationType) {
45-
case AllocationType::CONSTANT_SURFACE:
4645
case AllocationType::KERNEL_ISA:
4746
case AllocationType::KERNEL_ISA_INTERNAL:
4847
case AllocationType::DEBUG_MODULE_AREA: {
49-
auto placeAllocOnMultiTile = (properties.subDevicesBitfield.count() != 1);
48+
auto placeIsaOnMultiTile = (properties.subDevicesBitfield.count() != 1);
5049

51-
if (DebugManager.flags.MultiTileAllocPlacement.get() != -1) {
52-
placeAllocOnMultiTile = !!DebugManager.flags.MultiTileAllocPlacement.get();
50+
if (DebugManager.flags.MultiTileIsaPlacement.get() != -1) {
51+
placeIsaOnMultiTile = !!DebugManager.flags.MultiTileIsaPlacement.get();
5352
}
54-
if (placeAllocOnMultiTile) {
53+
if (placeIsaOnMultiTile) {
5554
storageInfo.cloningOfPageTables = false;
5655
storageInfo.memoryBanks = allTilesValue;
5756
storageInfo.tileInstanced = true;

shared/test/common/test_files/igdrcl.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ EnablePrivateScratchSlot1 = -1
295295
DisablePipeControlPrecedingPostSyncCommand = -1
296296
UseClearColorAllocationForBlitter = false
297297
OverrideMultiStoragePlacement = -1
298-
MultiTileAllocPlacement = -1
298+
MultiTileIsaPlacement = -1
299299
FormatForStatelessCompressionWithUnifiedMemory = 0xF
300300
ForceMultiGpuPartialWritesInComputeMode = -1
301301
ForceMultiGpuPartialWrites = -1

shared/test/unit_test/memory_manager/storage_info_tests.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ struct MultiDeviceStorageInfoTest : public ::testing::Test {
3838
MockMemoryManager *memoryManager;
3939
};
4040

41-
TEST_F(MultiDeviceStorageInfoTest, givenEnabledFlagForMultiTileAllocPlacementWhenCreatingStorageInfoForAllocationThenAllMemoryBanksAreOnAndPageTableClonningIsNotRequired) {
41+
TEST_F(MultiDeviceStorageInfoTest, givenEnabledFlagForMultiTileIsaPlacementWhenCreatingStorageInfoForKernelIsaThenAllMemoryBanksAreOnAndPageTableClonningIsNotRequired) {
4242
DebugManagerStateRestore restorer;
43-
DebugManager.flags.MultiTileAllocPlacement.set(1);
43+
DebugManager.flags.MultiTileIsaPlacement.set(1);
4444

45-
AllocationType allocTypes[] = {AllocationType::KERNEL_ISA, AllocationType::KERNEL_ISA_INTERNAL, AllocationType::CONSTANT_SURFACE};
45+
AllocationType isaTypes[] = {AllocationType::KERNEL_ISA, AllocationType::KERNEL_ISA_INTERNAL};
4646

4747
for (uint32_t i = 0; i < 2; i++) {
48-
AllocationProperties properties{mockRootDeviceIndex, false, 0u, allocTypes[i], false, false, singleTileMask};
48+
AllocationProperties properties{mockRootDeviceIndex, false, 0u, isaTypes[i], false, false, singleTileMask};
4949
auto storageInfo = memoryManager->createStorageInfoFromProperties(properties);
5050
EXPECT_FALSE(storageInfo.cloningOfPageTables);
5151
EXPECT_EQ(allTilesMask, storageInfo.memoryBanks);
@@ -61,12 +61,12 @@ TEST_F(MultiDeviceStorageInfoTest, givenEnabledFlagForMultiTileAllocPlacementWhe
6161
}
6262
}
6363

64-
TEST_F(MultiDeviceStorageInfoTest, givenDefaultFlagForMultiTileAllocPlacementWhenCreatingStorageInfoForAllocationThenSingleMemoryBanksIsOnAndPageTableClonningIsRequired) {
64+
TEST_F(MultiDeviceStorageInfoTest, givenDefaultFlagForMultiTileIsaPlacementWhenCreatingStorageInfoForKernelIsaThenSingleMemoryBanksIsOnAndPageTableClonningIsRequired) {
6565

66-
AllocationType allocTypes[] = {AllocationType::KERNEL_ISA, AllocationType::KERNEL_ISA_INTERNAL, AllocationType::CONSTANT_SURFACE};
66+
AllocationType isaTypes[] = {AllocationType::KERNEL_ISA, AllocationType::KERNEL_ISA_INTERNAL};
6767

6868
for (uint32_t i = 0; i < 2; i++) {
69-
AllocationProperties properties{mockRootDeviceIndex, false, 0u, allocTypes[i], false, false, singleTileMask};
69+
AllocationProperties properties{mockRootDeviceIndex, false, 0u, isaTypes[i], false, false, singleTileMask};
7070

7171
auto storageInfo = memoryManager->createStorageInfoFromProperties(properties);
7272
EXPECT_TRUE(storageInfo.cloningOfPageTables);
@@ -83,14 +83,14 @@ TEST_F(MultiDeviceStorageInfoTest, givenDefaultFlagForMultiTileAllocPlacementWhe
8383
}
8484
}
8585

86-
TEST_F(MultiDeviceStorageInfoTest, givenDisabledFlagForMultiTileAllocPlacementWhenCreatingStorageInfoForAllocationThenSingleMemoryBanksIsOnAndPageTableClonningIsRequired) {
86+
TEST_F(MultiDeviceStorageInfoTest, givenDisabledFlagForMultiTileIsaPlacementWhenCreatingStorageInfoForKernelIsaThenSingleMemoryBanksIsOnAndPageTableClonningIsRequired) {
8787
DebugManagerStateRestore restorer;
88-
DebugManager.flags.MultiTileAllocPlacement.set(0);
88+
DebugManager.flags.MultiTileIsaPlacement.set(0);
8989

90-
AllocationType allocTypes[] = {AllocationType::KERNEL_ISA, AllocationType::KERNEL_ISA_INTERNAL, AllocationType::CONSTANT_SURFACE};
90+
AllocationType isaTypes[] = {AllocationType::KERNEL_ISA, AllocationType::KERNEL_ISA_INTERNAL};
9191

9292
for (uint32_t i = 0; i < 2; i++) {
93-
AllocationProperties properties{mockRootDeviceIndex, false, 0u, allocTypes[i], false, false, singleTileMask};
93+
AllocationProperties properties{mockRootDeviceIndex, false, 0u, isaTypes[i], false, false, singleTileMask};
9494
auto storageInfo = memoryManager->createStorageInfoFromProperties(properties);
9595
EXPECT_TRUE(storageInfo.cloningOfPageTables);
9696
EXPECT_EQ(singleTileMask, storageInfo.memoryBanks.to_ulong());

0 commit comments

Comments
 (0)