mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
fix: Update SIP kernel initialization logic
Initialize SIP kernel when shared device is being initialized instead of api-specific device. Initialize debugger when shared device is being initialized instead of during platform or driver initialization. Add missing makeResident calls for SIP kernel in heapless paths. Related-To: HSD-18038645398, HSD-18038819112 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6ded319b0f
commit
2f6eaf149a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -223,6 +223,9 @@ TEST_F(DeferrableAllocationDeletionTest, givenAllocationUsedByUnregisteredEngine
|
||||
DeferrableAllocationDeletion deletion{*memoryManager, *allocation};
|
||||
|
||||
device.reset();
|
||||
for (const auto &rootDeviceEnvironment : executionEnvironment->rootDeviceEnvironments) {
|
||||
executionEnvironment->releaseRootDeviceEnvironmentResources(rootDeviceEnvironment.get());
|
||||
}
|
||||
executionEnvironment->rootDeviceEnvironments.clear();
|
||||
EXPECT_EQ(0u, memoryManager->getRegisteredEngines(rootDeviceIndex).size());
|
||||
EXPECT_TRUE(allocation->isUsed());
|
||||
|
||||
Reference in New Issue
Block a user