diff --git a/level_zero/core/source/cmdlist/cmdlist.h b/level_zero/core/source/cmdlist/cmdlist.h index 1c8325c2e3..1d7eb206c4 100644 --- a/level_zero/core/source/cmdlist/cmdlist.h +++ b/level_zero/core/source/cmdlist/cmdlist.h @@ -601,7 +601,7 @@ struct CommandList : _ze_command_list_handle_t { bool scratchAddressPatchingEnabled = false; bool taskCountUpdateFenceRequired = false; bool statelessBuiltinsEnabled = false; - bool l3FlushAfterPostSyncRequired = false; + bool l3FlushAfterPostSyncEnabled = false; bool textureCacheFlushPending = false; bool closedCmdList = false; bool isWalkerWithProfilingEnqueued = false; diff --git a/level_zero/core/source/cmdlist/cmdlist_hw.inl b/level_zero/core/source/cmdlist/cmdlist_hw.inl index 33099e1bd3..99939e4707 100644 --- a/level_zero/core/source/cmdlist/cmdlist_hw.inl +++ b/level_zero/core/source/cmdlist/cmdlist_hw.inl @@ -262,8 +262,8 @@ ze_result_t CommandListCoreFamily::initialize(Device *device, NEO this->defaultPipelinedThreadArbitrationPolicy = gfxCoreHelper.getDefaultThreadArbitrationPolicy(); this->implicitSynchronizedDispatchForCooperativeKernelsAllowed = l0GfxCoreHelper.implicitSynchronizedDispatchForCooperativeKernelsAllowed(); this->maxLocalSubRegionSize = productHelper.getMaxLocalSubRegionSize(hwInfo); - this->l3FlushAfterPostSyncRequired = productHelper.isL3FlushAfterPostSyncRequired(heaplessModeEnabled); - this->compactL3FlushEventPacket = L0GfxCoreHelper::useCompactL3FlushEventPacket(hwInfo, this->l3FlushAfterPostSyncRequired); + this->l3FlushAfterPostSyncEnabled = productHelper.isL3FlushAfterPostSyncSupported(heaplessModeEnabled); + this->compactL3FlushEventPacket = L0GfxCoreHelper::useCompactL3FlushEventPacket(hwInfo, this->l3FlushAfterPostSyncEnabled); this->useAdditionalBlitProperties = productHelper.useAdditionalBlitProperties(); this->isPostImageWriteFlushRequired = releaseHelper ? releaseHelper->isPostImageWriteFlushRequired() : false; this->shouldRegisterEnqueuedWalkerWithProfiling = this->device->getNEODevice()->getProductHelper().shouldRegisterEnqueuedWalkerWithProfiling(); @@ -3177,7 +3177,7 @@ ze_result_t CommandListCoreFamily::appendWaitOnEvents(uint32_t nu if (isCopyOnly(copyOffloadOperation)) { NEO::MiFlushArgs args{this->dummyBlitWa}; encodeMiFlush(0, 0, args); - } else if (!this->l3FlushAfterPostSyncRequired) { + } else if (!this->l3FlushAfterPostSyncEnabled) { NEO::PipeControlArgs args; args.dcFlushEnable = true; args.textureCacheInvalidationEnable = this->consumeTextureCacheFlushPending(); diff --git a/level_zero/core/source/cmdlist/cmdlist_hw_xehp_and_later.inl b/level_zero/core/source/cmdlist/cmdlist_hw_xehp_and_later.inl index 01248f723f..7fb79469e9 100644 --- a/level_zero/core/source/cmdlist/cmdlist_hw_xehp_and_later.inl +++ b/level_zero/core/source/cmdlist/cmdlist_hw_xehp_and_later.inl @@ -212,9 +212,9 @@ ze_result_t CommandListCoreFamily::appendLaunchKernelWithParams(K !launchParams.isKernelSplitOperation; l3FlushInPipeControlEnable = getDcFlushRequired(flushRequired) && - !this->l3FlushAfterPostSyncRequired; + !this->l3FlushAfterPostSyncEnabled; - isFlushL3AfterPostSync = isHostSignalScopeEvent && this->l3FlushAfterPostSyncRequired && !launchParams.isKernelSplitOperation; + isFlushL3AfterPostSync = isHostSignalScopeEvent && this->l3FlushAfterPostSyncEnabled && !launchParams.isKernelSplitOperation; interruptEvent = event->isInterruptModeEnabled(); } diff --git a/level_zero/core/source/gfx_core_helpers/l0_gfx_core_helper_xehp_and_later.inl b/level_zero/core/source/gfx_core_helpers/l0_gfx_core_helper_xehp_and_later.inl index 5dc068ff52..23925d3db3 100644 --- a/level_zero/core/source/gfx_core_helpers/l0_gfx_core_helper_xehp_and_later.inl +++ b/level_zero/core/source/gfx_core_helpers/l0_gfx_core_helper_xehp_and_later.inl @@ -55,7 +55,7 @@ uint32_t L0GfxCoreHelperHw::getEventBaseMaxPacketCount(const NEO::RootDe auto &productHelper = rootDeviceEnvironment.getProductHelper(); auto &hwInfo = *rootDeviceEnvironment.getHardwareInfo(); auto heaplessEnabled = compilerProductHelper.isHeaplessModeEnabled(hwInfo); - bool flushL3AfterPostSync = productHelper.isL3FlushAfterPostSyncRequired(heaplessEnabled); + bool flushL3AfterPostSync = productHelper.isL3FlushAfterPostSyncSupported(heaplessEnabled); uint32_t basePackets = getEventMaxKernelCount(hwInfo); if (NEO::MemorySynchronizationCommands::getDcFlushEnable(true, rootDeviceEnvironment) && !flushL3AfterPostSync) { diff --git a/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h b/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h index bc574a807c..8af25b74f2 100644 --- a/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h +++ b/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h @@ -107,7 +107,7 @@ struct WhiteBox<::L0::CommandListCoreFamily> using BaseClass::isSyncModeQueue; using BaseClass::isTbxMode; using BaseClass::isTimestampEventForMultiTile; - using BaseClass::l3FlushAfterPostSyncRequired; + using BaseClass::l3FlushAfterPostSyncEnabled; using BaseClass::latestOperationRequiredNonWalkerInOrderCmdsChaining; using BaseClass::maxFillPatternSizeForCopyEngine; using BaseClass::obtainKernelPreemptionMode; @@ -324,7 +324,7 @@ struct WhiteBox<::L0::CommandListImp> : public ::L0::CommandListImp { using BaseClass::interruptEvents; using BaseClass::isSyncModeQueue; using BaseClass::isTbxMode; - using BaseClass::l3FlushAfterPostSyncRequired; + using BaseClass::l3FlushAfterPostSyncEnabled; using BaseClass::minimalSizeForBcsSplit; using BaseClass::partitionCount; using BaseClass::pipelineSelectStateTracking; diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp index 84b746987e..4a56e3aa3d 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_4.cpp @@ -884,7 +884,9 @@ HWTEST_F(HostPointerManagerCommandListTest, givenCommandListWhenMemoryFillWithSi auto pc = genCmdCast(*cmdList.rbegin()); - if (!device->getProductHelper().isL3FlushAfterPostSyncRequired(device->getCompilerProductHelper().isHeaplessModeEnabled(*defaultHwInfo)) && NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment())) { + auto l3FlushAfterPostSupported = device->getProductHelper().isL3FlushAfterPostSyncSupported(device->getCompilerProductHelper().isHeaplessModeEnabled(*defaultHwInfo)); + + if (!l3FlushAfterPostSupported && NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment())) { EXPECT_NE(nullptr, pc); EXPECT_TRUE(pc->getDcFlushEnable()); } else { diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp index 36e5f45d01..49f808f1f2 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_5.cpp @@ -709,7 +709,7 @@ HWTEST_F(CommandListCreate, givenCommandListWhenAppendWaitEventsWithDcFlushThenP auto whiteBoxCmdList = static_cast(commandList.get()); - if (NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !whiteBoxCmdList->l3FlushAfterPostSyncRequired) { + if (NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !whiteBoxCmdList->l3FlushAfterPostSyncEnabled) { itor--; EXPECT_NE(nullptr, genCmdCast(*itor)); } else { @@ -741,7 +741,7 @@ HWTEST_F(CommandListCreate, givenAsyncCmdQueueAndImmediateCommandListWhenAppendW EXPECT_NE(nullptr, whiteBoxCmdList->cmdQImmediate); size_t expectedUsed = 2 * NEO::EncodeSemaphore::getSizeMiSemaphoreWait() + sizeof(MI_BATCH_BUFFER_END); - if (NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !whiteBoxCmdList->l3FlushAfterPostSyncRequired) { + if (NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !whiteBoxCmdList->l3FlushAfterPostSyncEnabled) { expectedUsed += sizeof(PIPE_CONTROL); } expectedUsed = alignUp(expectedUsed, 64); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp index 0fa786bf9a..1e8936a502 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_wait_on_events.cpp @@ -558,7 +558,7 @@ HWTEST_F(CommandListAppendWaitOnEvent, givenEventWithWaitScopeFlagDeviceWhenAppe auto whiteBoxCmdList = static_cast(commandList.get()); - if (NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !whiteBoxCmdList->l3FlushAfterPostSyncRequired) { + if (NEO::MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !whiteBoxCmdList->l3FlushAfterPostSyncEnabled) { itor--; auto cmd = genCmdCast(*itor); @@ -755,7 +755,7 @@ HWTEST_F(CommandListAppendWaitOnSecondaryBatchBufferEvent, givenCommandBufferIsE commandList->getCmdContainer().getCommandStream()->getSpace(consumeSpace); size_t expectedConsumedSpace = NEO::EncodeSemaphore::getSizeMiSemaphoreWait(); - if (MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !commandList->l3FlushAfterPostSyncRequired) { + if (MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !commandList->l3FlushAfterPostSyncEnabled) { expectedConsumedSpace += sizeof(PIPE_CONTROL); } @@ -787,7 +787,7 @@ HWTEST_F(CommandListAppendWaitOnSecondaryBatchBufferEvent, givenCommandBufferIsE usedSpaceAfter)); auto itorPC = find(cmdList.begin(), cmdList.end()); - if (MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !commandList->l3FlushAfterPostSyncRequired) { + if (MemorySynchronizationCommands::getDcFlushEnable(true, device->getNEODevice()->getRootDeviceEnvironment()) && !commandList->l3FlushAfterPostSyncEnabled) { ASSERT_NE(cmdList.end(), itorPC); { auto cmd = genCmdCast(*itorPC); diff --git a/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_1.cpp b/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_1.cpp index 559cebf5cb..129d638ea8 100644 --- a/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_1.cpp +++ b/level_zero/core/test/unit_tests/sources/cmdlist/test_in_order_cmdlist_1.cpp @@ -4412,8 +4412,8 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, InOrderCmdListTests, givenInOrderModeWhenProgrammin EXPECT_EQ(0u, postSync.getImmediateData()); } - auto l3FlushAfterPostSyncRequired = this->neoDevice->getProductHelper().isL3FlushAfterPostSyncRequired(true); - if (l3FlushAfterPostSyncRequired) { + auto l3FlushAfterPostSyncEnabled = this->neoDevice->getProductHelper().isL3FlushAfterPostSyncSupported(true); + if (l3FlushAfterPostSyncEnabled) { EXPECT_NE(0u, postSync.getDestinationAddress()); } else { EXPECT_EQ(0u, postSync.getDestinationAddress()); diff --git a/level_zero/core/test/unit_tests/sources/mutable_cmdlist/tests/mutable_cmdlist_tests.cpp b/level_zero/core/test/unit_tests/sources/mutable_cmdlist/tests/mutable_cmdlist_tests.cpp index ef009711ba..c72b92fb33 100644 --- a/level_zero/core/test/unit_tests/sources/mutable_cmdlist/tests/mutable_cmdlist_tests.cpp +++ b/level_zero/core/test/unit_tests/sources/mutable_cmdlist/tests/mutable_cmdlist_tests.cpp @@ -1096,7 +1096,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, using PIPE_CONTROL = typename FamilyType::PIPE_CONTROL; auto &productHelper = this->neoDevice->getProductHelper(); - if (productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } @@ -1146,7 +1146,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, using MI_STORE_REGISTER_MEM = typename FamilyType::MI_STORE_REGISTER_MEM; auto &productHelper = this->neoDevice->getProductHelper(); - if (productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } auto mockBaseCmdList = static_cast(this->mutableCommandList.get()->base); @@ -2007,7 +2007,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, using MI_STORE_DATA_IMM = typename FamilyType::MI_STORE_DATA_IMM; using MI_SEMAPHORE_WAIT = typename FamilyType::MI_SEMAPHORE_WAIT; auto &productHelper = this->neoDevice->getProductHelper(); - if (productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } @@ -2096,7 +2096,7 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, using MI_STORE_REGISTER_MEM = typename FamilyType::MI_STORE_REGISTER_MEM; auto &productHelper = this->neoDevice->getProductHelper(); - if (productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } diff --git a/opencl/source/command_queue/command_queue.cpp b/opencl/source/command_queue/command_queue.cpp index 9ee6a0b897..cfaa0dc5b6 100644 --- a/opencl/source/command_queue/command_queue.cpp +++ b/opencl/source/command_queue/command_queue.cpp @@ -136,7 +136,7 @@ CommandQueue::CommandQueue(Context *context, ClDevice *device, const cl_queue_pr this->heaplessModeEnabled = compilerProductHelper.isHeaplessModeEnabled(hwInfo); this->heaplessStateInitEnabled = compilerProductHelper.isHeaplessStateInitEnabled(this->heaplessModeEnabled); this->isForceStateless = compilerProductHelper.isForceToStatelessRequired(); - this->l3FlushAfterPostSyncEnabled = productHelper.isL3FlushAfterPostSyncRequired(this->heaplessModeEnabled); + this->l3FlushAfterPostSyncEnabled = productHelper.isL3FlushAfterPostSyncSupported(this->heaplessModeEnabled); this->shouldRegisterEnqueuedWalkerWithProfiling = productHelper.shouldRegisterEnqueuedWalkerWithProfiling(); } } @@ -1361,7 +1361,7 @@ bool CommandQueue::isWaitForTimestampsEnabled() const { auto enabled = CommandQueue::isTimestampWaitEnabled(); enabled &= productHelper.isTimestampWaitSupportedForQueues(this->heaplessModeEnabled); - if (productHelper.isL3FlushAfterPostSyncRequired(this->heaplessModeEnabled)) { + if (productHelper.isL3FlushAfterPostSyncSupported(this->heaplessModeEnabled)) { enabled &= true; } else { enabled &= !productHelper.isDcFlushAllowed(); diff --git a/opencl/source/command_queue/hardware_interface_xehp_and_later.inl b/opencl/source/command_queue/hardware_interface_xehp_and_later.inl index 8546349670..3ddafe769b 100644 --- a/opencl/source/command_queue/hardware_interface_xehp_and_later.inl +++ b/opencl/source/command_queue/hardware_interface_xehp_and_later.inl @@ -101,7 +101,7 @@ inline void HardwareInterface::programWalker( if constexpr (heaplessModeEnabled) { auto &productHelper = rootDeviceEnvironment.getHelper(); - if (productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (productHelper.isL3FlushAfterPostSyncSupported(true)) { GpgpuWalkerHelper::setupTimestampPacketFlushL3(walkerCmd, commandQueue, FlushL3Args{.containsPrintBuffer = kernel.hasPrintfOutput(), diff --git a/opencl/test/unit_test/command_queue/command_queue_tests.cpp b/opencl/test/unit_test/command_queue/command_queue_tests.cpp index 029f4a4780..4085403265 100644 --- a/opencl/test/unit_test/command_queue/command_queue_tests.cpp +++ b/opencl/test/unit_test/command_queue/command_queue_tests.cpp @@ -201,7 +201,7 @@ TEST(CommandQueue, givenEnableTimestampWaitWhenCheckIsTimestampWaitEnabledThenRe auto enabled = productHelper.isTimestampWaitSupportedForQueues(heaplessEnabled); - if (productHelper.isL3FlushAfterPostSyncRequired(heaplessEnabled)) { + if (productHelper.isL3FlushAfterPostSyncSupported(heaplessEnabled)) { enabled &= true; } else { enabled &= !productHelper.isDcFlushAllowed(); diff --git a/opencl/test/unit_test/command_queue/enqueue_command_without_kernel_tests.cpp b/opencl/test/unit_test/command_queue/enqueue_command_without_kernel_tests.cpp index ec3eaa1c52..f134035e9a 100644 --- a/opencl/test/unit_test/command_queue/enqueue_command_without_kernel_tests.cpp +++ b/opencl/test/unit_test/command_queue/enqueue_command_without_kernel_tests.cpp @@ -581,7 +581,7 @@ HWTEST_F(EnqueueHandlerTest, givenEnableL3FlushAfterPostSyncWithSignalingEventWh debugManager.flags.EnableL3FlushAfterPostSync.set(1); auto &productHelper = pClDevice->getDevice().getProductHelper(); - if (!productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (!productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } @@ -614,7 +614,7 @@ HWTEST_F(EnqueueHandlerTest, givenL3FlushDeferredIfNeededWhenEnqueueWithoutKerne debugManager.flags.EnableL3FlushAfterPostSync.set(1); auto &productHelper = pClDevice->getDevice().getProductHelper(); - if (!productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (!productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } diff --git a/opencl/test/unit_test/command_queue/finish_tests.cpp b/opencl/test/unit_test/command_queue/finish_tests.cpp index 5fd5233757..a2c9ba7176 100644 --- a/opencl/test/unit_test/command_queue/finish_tests.cpp +++ b/opencl/test/unit_test/command_queue/finish_tests.cpp @@ -106,7 +106,7 @@ HWTEST_F(FinishTest, givenL3FlushAfterPostSyncEnabledWhenFlushTagUpdateIsCalledT debugManager.flags.EnableL3FlushAfterPostSync.set(true); auto &productHelper = pClDevice->getDevice().getProductHelper(); - if (!productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (!productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } @@ -150,7 +150,7 @@ HWTEST_F(FinishTest, givenL3FlushDeferredIfNeededAndL3FlushAfterPostSyncEnabledW debugManager.flags.EnableL3FlushAfterPostSync.set(true); auto &productHelper = pClDevice->getDevice().getProductHelper(); - if (!productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (!productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); } diff --git a/shared/source/command_stream/command_stream_receiver_hw_base.inl b/shared/source/command_stream/command_stream_receiver_hw_base.inl index d229dd2109..28b6f1b228 100644 --- a/shared/source/command_stream/command_stream_receiver_hw_base.inl +++ b/shared/source/command_stream/command_stream_receiver_hw_base.inl @@ -1326,7 +1326,7 @@ inline bool CommandStreamReceiverHw::isUpdateTagFromWaitEnabled() { auto enabled = gfxCoreHelper.isUpdateTaskCountFromWaitSupported(); - if (productHelper.isL3FlushAfterPostSyncRequired(this->heaplessModeEnabled) && ApiSpecificConfig::isUpdateTagFromWaitEnabledForHeapless()) { + if (productHelper.isL3FlushAfterPostSyncSupported(this->heaplessModeEnabled) && ApiSpecificConfig::isUpdateTagFromWaitEnabledForHeapless()) { enabled &= true; } else { enabled &= this->isAnyDirectSubmissionEnabled(); diff --git a/shared/source/os_interface/product_helper.h b/shared/source/os_interface/product_helper.h index 078a545476..3fcc7a2641 100644 --- a/shared/source/os_interface/product_helper.h +++ b/shared/source/os_interface/product_helper.h @@ -264,7 +264,7 @@ class ProductHelper { virtual uint64_t getSharedSystemPatIndex() const = 0; virtual uint32_t getGmmResourceUsageOverride(uint32_t usageType) const = 0; virtual bool isSharingWith3dOrMediaAllowed() const = 0; - virtual bool isL3FlushAfterPostSyncRequired(bool heaplessEnabled) const = 0; + virtual bool isL3FlushAfterPostSyncSupported(bool heaplessEnabled) const = 0; virtual void overrideDirectSubmissionTimeouts(uint64_t &timeoutUs, uint64_t &maxTimeoutUs) const = 0; virtual bool isMisalignedUserPtr2WayCoherent() const = 0; virtual bool isSvmHeapReservationSupported() const = 0; diff --git a/shared/source/os_interface/product_helper.inl b/shared/source/os_interface/product_helper.inl index e0c4a6be80..af7b707c09 100644 --- a/shared/source/os_interface/product_helper.inl +++ b/shared/source/os_interface/product_helper.inl @@ -965,7 +965,7 @@ bool ProductHelperHw::isEvictionIfNecessaryFlagSupported() const { } template -bool ProductHelperHw::isL3FlushAfterPostSyncRequired(bool heaplessEnabled) const { +bool ProductHelperHw::isL3FlushAfterPostSyncSupported(bool heaplessEnabled) const { return false; } diff --git a/shared/source/os_interface/product_helper_hw.h b/shared/source/os_interface/product_helper_hw.h index dbb35cc43f..aca251fa0a 100644 --- a/shared/source/os_interface/product_helper_hw.h +++ b/shared/source/os_interface/product_helper_hw.h @@ -201,7 +201,7 @@ class ProductHelperHw : public ProductHelper { uint64_t getSharedSystemPatIndex() const override; uint32_t getGmmResourceUsageOverride(uint32_t usageType) const override; bool isSharingWith3dOrMediaAllowed() const override; - bool isL3FlushAfterPostSyncRequired(bool heaplessEnabled) const override; + bool isL3FlushAfterPostSyncSupported(bool heaplessEnabled) const override; void overrideDirectSubmissionTimeouts(uint64_t &timeoutUs, uint64_t &maxTimeoutUs) const override; bool isMisalignedUserPtr2WayCoherent() const override; bool isSvmHeapReservationSupported() const override; diff --git a/shared/test/unit_test/os_interface/linux/drm_command_stream_xehp_and_later_tests.cpp b/shared/test/unit_test/os_interface/linux/drm_command_stream_xehp_and_later_tests.cpp index b6b1a46caf..7972af2f1a 100644 --- a/shared/test/unit_test/os_interface/linux/drm_command_stream_xehp_and_later_tests.cpp +++ b/shared/test/unit_test/os_interface/linux/drm_command_stream_xehp_and_later_tests.cpp @@ -107,7 +107,7 @@ struct DrmCommandStreamMultiTileMemExecTestWithCsr : public DrmCommandStreamMult HWCMDTEST_TEMPLATED_F(IGFX_XE_HP_CORE, DrmCommandStreamMultiTileMemExecTestWithCsr, GivenDrmSupportsCompletionFenceAndVmBindWhenCallingCsrExecThenMultipleTagAllocationIsPassed) { auto &productHelper = device->getProductHelper(); - if (productHelper.isL3FlushAfterPostSyncRequired(true)) { + if (productHelper.isL3FlushAfterPostSyncSupported(true)) { GTEST_SKIP(); }