mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
fix: read scratch page options during init
Previous logic to initialize scratch page options during Drm::create causes issues when PerContextVm is used, so moved the location of logic to be configured before creating VM. Related-To: GSD-7611 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0f0e7403bd
commit
1fc2a936fc
@@ -98,6 +98,9 @@ Drm *Drm::create(std::unique_ptr<HwDeviceIdDrm> &&hwDeviceId, RootDeviceEnvironm
|
||||
drm->isSetPairAvailable();
|
||||
drm->isChunkingAvailable();
|
||||
|
||||
drm->configureScratchPagePolicy();
|
||||
drm->configureGpuFaultCheckThreshold();
|
||||
|
||||
if (!drm->isPerContextVMRequired()) {
|
||||
if (!drm->createVirtualMemoryAddressSpace(GfxCoreHelper::getSubDevicesCount(rootDeviceEnvironment.getHardwareInfo()))) {
|
||||
printDebugString(debugManager.flags.PrintDebugMessages.get(), stderr, "%s", "INFO: Device doesn't support GEM Virtual Memory\n");
|
||||
@@ -106,9 +109,6 @@ Drm *Drm::create(std::unique_ptr<HwDeviceIdDrm> &&hwDeviceId, RootDeviceEnvironm
|
||||
|
||||
drm->queryAdapterBDF();
|
||||
|
||||
drm->configureScratchPagePolicy();
|
||||
drm->configureGpuFaultCheckThreshold();
|
||||
|
||||
return drm.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user