fix: Enable 64k pages for TSB allocation

Related-To: HSD-18040274716

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski 2024-10-22 14:17:18 +00:00 committed by Compute-Runtime-Automation
parent fe1fd22371
commit eed69f45ed
2 changed files with 2 additions and 1 deletions

View File

@ -464,6 +464,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
case AllocationType::gpuTimestampDeviceBuffer:
case AllocationType::preemption:
case AllocationType::syncDispatchToken:
case AllocationType::timestampPacketTagBuffer:
allow64KbPages = true;
default:
break;

View File

@ -243,7 +243,6 @@ INSTANTIATE_TEST_SUITE_P(Allow32BitAnd64kbPagesTypes,
::testing::ValuesIn(allocationTypesWith32BitAnd64KbPagesAllowed));
static const AllocationType allocationTypesWith32BitAnd64KbPagesNotAllowed[] = {AllocationType::commandBuffer,
AllocationType::timestampPacketTagBuffer,
AllocationType::profilingTagBuffer,
AllocationType::image,
AllocationType::instructionHeap,
@ -612,6 +611,7 @@ HWTEST_F(GetAllocationDataTestHw, givenTimestampPacketTagBufferTypeWhenGetAlloca
mockMemoryManager.getAllocationData(allocData, properties, nullptr, mockMemoryManager.createStorageInfoFromProperties(properties));
EXPECT_FALSE(allocData.flags.useSystemMemory);
EXPECT_TRUE(allocData.flags.requiresCpuAccess);
EXPECT_TRUE(allocData.flags.allow64kbPages);
}
TEST(MemoryManagerTest, givenProfilingTagBufferTypeWhenGetAllocationDataIsCalledThenSystemMemoryIsRequested) {