mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 17:00:59 +08:00
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:
committed by
Compute-Runtime-Automation
parent
fe1fd22371
commit
eed69f45ed
@@ -464,6 +464,7 @@ bool MemoryManager::getAllocationData(AllocationData &allocationData, const Allo
|
|||||||
case AllocationType::gpuTimestampDeviceBuffer:
|
case AllocationType::gpuTimestampDeviceBuffer:
|
||||||
case AllocationType::preemption:
|
case AllocationType::preemption:
|
||||||
case AllocationType::syncDispatchToken:
|
case AllocationType::syncDispatchToken:
|
||||||
|
case AllocationType::timestampPacketTagBuffer:
|
||||||
allow64KbPages = true;
|
allow64KbPages = true;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -243,7 +243,6 @@ INSTANTIATE_TEST_SUITE_P(Allow32BitAnd64kbPagesTypes,
|
|||||||
::testing::ValuesIn(allocationTypesWith32BitAnd64KbPagesAllowed));
|
::testing::ValuesIn(allocationTypesWith32BitAnd64KbPagesAllowed));
|
||||||
|
|
||||||
static const AllocationType allocationTypesWith32BitAnd64KbPagesNotAllowed[] = {AllocationType::commandBuffer,
|
static const AllocationType allocationTypesWith32BitAnd64KbPagesNotAllowed[] = {AllocationType::commandBuffer,
|
||||||
AllocationType::timestampPacketTagBuffer,
|
|
||||||
AllocationType::profilingTagBuffer,
|
AllocationType::profilingTagBuffer,
|
||||||
AllocationType::image,
|
AllocationType::image,
|
||||||
AllocationType::instructionHeap,
|
AllocationType::instructionHeap,
|
||||||
@@ -612,6 +611,7 @@ HWTEST_F(GetAllocationDataTestHw, givenTimestampPacketTagBufferTypeWhenGetAlloca
|
|||||||
mockMemoryManager.getAllocationData(allocData, properties, nullptr, mockMemoryManager.createStorageInfoFromProperties(properties));
|
mockMemoryManager.getAllocationData(allocData, properties, nullptr, mockMemoryManager.createStorageInfoFromProperties(properties));
|
||||||
EXPECT_FALSE(allocData.flags.useSystemMemory);
|
EXPECT_FALSE(allocData.flags.useSystemMemory);
|
||||||
EXPECT_TRUE(allocData.flags.requiresCpuAccess);
|
EXPECT_TRUE(allocData.flags.requiresCpuAccess);
|
||||||
|
EXPECT_TRUE(allocData.flags.allow64kbPages);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(MemoryManagerTest, givenProfilingTagBufferTypeWhenGetAllocationDataIsCalledThenSystemMemoryIsRequested) {
|
TEST(MemoryManagerTest, givenProfilingTagBufferTypeWhenGetAllocationDataIsCalledThenSystemMemoryIsRequested) {
|
||||||
|
|||||||
Reference in New Issue
Block a user