Check new residency model support

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-03-18 09:22:18 +00:00
committed by Compute-Runtime-Automation
parent d223508cad
commit 27ca04f77f
3 changed files with 12 additions and 1 deletions

View File

@ -29,6 +29,7 @@ class DrmMockDefault : public DrmMock {
};
Drm **pDrmToReturnFromCreateFunc = nullptr;
bool disableBindDefaultInTests = true;
Drm *Drm::create(std::unique_ptr<HwDeviceId> hwDeviceId, RootDeviceEnvironment &rootDeviceEnvironment) {
rootDeviceEnvironment.setHwInfo(defaultHwInfo.get());
@ -53,7 +54,9 @@ Drm *Drm::create(std::unique_ptr<HwDeviceId> hwDeviceId, RootDeviceEnvironment &
}
void Drm::overrideBindSupport(bool &useVmBind) {
useVmBind = false;
if (disableBindDefaultInTests) {
useVmBind = false;
}
if (DebugManager.flags.UseVmBind.get() == 1) {
useVmBind = true;
}

View File

@ -133,6 +133,7 @@ class HwHelper {
virtual bool additionalKernelExecInfoSupported(const HardwareInfo &hwInfo) const = 0;
virtual bool isCpuImageTransferPreferred(const HardwareInfo &hwInfo) const = 0;
virtual bool isKmdMigrationSupported(const HardwareInfo &hwInfo) const = 0;
virtual bool isNewResidencyModelSupported() const = 0;
virtual aub_stream::MMIOList getExtraMmioList(const HardwareInfo &hwInfo, const GmmHelper &gmmHelper) const = 0;
virtual uint32_t getDefaultRevisionId(const HardwareInfo &hwInfo) const = 0;
virtual uint32_t getNumCacheRegions(const HardwareInfo &hwInfo) const = 0;
@ -332,6 +333,8 @@ class HwHelperHw : public HwHelper {
bool isKmdMigrationSupported(const HardwareInfo &hwInfo) const override;
bool isNewResidencyModelSupported() const override;
bool isCopyOnlyEngineType(EngineGroupType type) const override;
void adjustAddressWidthForCanonize(uint32_t &addressWidth) const override;

View File

@ -550,6 +550,11 @@ bool HwHelperHw<GfxFamily>::isKmdMigrationSupported(const HardwareInfo &hwInfo)
return false;
}
template <typename GfxFamily>
bool HwHelperHw<GfxFamily>::isNewResidencyModelSupported() const {
return false;
}
template <typename GfxFamily>
bool HwHelperHw<GfxFamily>::isCopyOnlyEngineType(EngineGroupType type) const {
return NEO::EngineGroupType::Copy == type;