mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Revert "[PVC] Remove tlb flush"
This reverts commit 181d2021ed.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
191d4de033
commit
e53eae6e5f
@@ -42,6 +42,5 @@ class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
||||
TagData currentTagData{};
|
||||
volatile TagAddressType *tagAddress;
|
||||
TaskCountType completionFenceValue{};
|
||||
bool tlbFlushRequired = true;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
@@ -35,8 +35,6 @@ DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(const DirectSubm
|
||||
this->completionFenceValue = static_cast<decltype(completionFenceValue)>(DebugManager.flags.OverrideUserFenceStartValue.get());
|
||||
}
|
||||
|
||||
this->tlbFlushRequired = inputParams.rootDeviceEnvironment.getProductHelper().isTlbFlushRequired();
|
||||
|
||||
auto osContextLinux = static_cast<OsContextLinux *>(&this->osContext);
|
||||
|
||||
auto subDevices = osContextLinux->getDeviceBitfield();
|
||||
@@ -164,7 +162,7 @@ bool DrmDirectSubmission<GfxFamily, Dispatcher>::handleResidency() {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
bool DrmDirectSubmission<GfxFamily, Dispatcher>::isNewResourceHandleNeeded() {
|
||||
auto osContextLinux = static_cast<OsContextLinux *>(&this->osContext);
|
||||
auto newResourcesBound = this->tlbFlushRequired && osContextLinux->isTlbFlushRequired();
|
||||
auto newResourcesBound = osContextLinux->isTlbFlushRequired();
|
||||
|
||||
if (DebugManager.flags.DirectSubmissionNewResourceTlbFlush.get() != -1) {
|
||||
newResourcesBound = DebugManager.flags.DirectSubmissionNewResourceTlbFlush.get();
|
||||
|
||||
@@ -151,7 +151,6 @@ class ProductHelper {
|
||||
virtual bool isMidThreadPreemptionDisallowedForRayTracingKernels() const = 0;
|
||||
virtual bool isBufferPoolAllocatorSupported() const = 0;
|
||||
virtual uint64_t overridePatIndex(AllocationType allocationType, uint64_t patIndex) const = 0;
|
||||
virtual bool isTlbFlushRequired() const = 0;
|
||||
virtual bool getFrontEndPropertyScratchSizeSupport() const = 0;
|
||||
virtual bool getFrontEndPropertyPrivateScratchSizeSupport() const = 0;
|
||||
virtual bool getFrontEndPropertyComputeDispatchAllWalkerSupport() const = 0;
|
||||
@@ -296,7 +295,7 @@ class ProductHelperHw : public ProductHelper {
|
||||
bool isMidThreadPreemptionDisallowedForRayTracingKernels() const override;
|
||||
bool isBufferPoolAllocatorSupported() const override;
|
||||
uint64_t overridePatIndex(AllocationType allocationType, uint64_t patIndex) const override;
|
||||
bool isTlbFlushRequired() const override;
|
||||
|
||||
bool getFrontEndPropertyScratchSizeSupport() const override;
|
||||
bool getFrontEndPropertyPrivateScratchSizeSupport() const override;
|
||||
bool getFrontEndPropertyComputeDispatchAllWalkerSupport() const override;
|
||||
|
||||
@@ -50,11 +50,6 @@ void ProductHelperHw<gfxProduct>::adjustPlatformForProductFamily(HardwareInfo *h
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
void ProductHelperHw<gfxProduct>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) const {}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
bool ProductHelperHw<gfxProduct>::isTlbFlushRequired() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
void ProductHelperHw<gfxProduct>::enableBlitterOperationsSupport(HardwareInfo *hwInfo) const {
|
||||
hwInfo->capabilityTable.blitterOperationsSupported = obtainBlitterPreference(*hwInfo);
|
||||
|
||||
@@ -655,9 +655,6 @@ uint32_t Drm::getVirtualMemoryAddressSpace(uint32_t vmId) const {
|
||||
}
|
||||
|
||||
void Drm::setNewResourceBoundToVM(uint32_t vmHandleId) {
|
||||
if (!this->rootDeviceEnvironment.getProductHelper().isTlbFlushRequired()) {
|
||||
return;
|
||||
}
|
||||
const auto &engines = this->rootDeviceEnvironment.executionEnvironment.memoryManager->getRegisteredEngines();
|
||||
for (const auto &engine : engines) {
|
||||
if (engine.osContext->getDeviceBitfield().test(vmHandleId)) {
|
||||
|
||||
@@ -43,11 +43,6 @@ std::pair<bool, bool> ProductHelperHw<gfxProduct>::isPipeControlPriorToNonPipeli
|
||||
return {isBasicWARequired, isExtendedWARequired};
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::isTlbFlushRequired() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <>
|
||||
void ProductHelperHw<gfxProduct>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) const {
|
||||
using SAMPLER_STATE = typename XeHpcCoreFamily::SAMPLER_STATE;
|
||||
|
||||
Reference in New Issue
Block a user