fix: ensure proper drm cleanup in L0 sysman init path

drm cleanup currently applied in positive scenario should be also
applied in case of multi GPU if some devices failed at initialization

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2025-07-09 11:16:08 +00:00
committed by Compute-Runtime-Automation
parent 2051b2197a
commit af0e387f35
3 changed files with 23 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022-2023 Intel Corporation
* Copyright (C) 2022-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -11,6 +11,7 @@
#include "shared/source/os_interface/driver_info.h"
#include "shared/source/os_interface/os_interface.h"
#include "shared/test/common/helpers/default_hw_info.h"
#include "shared/test/common/test_macros/mock_method_macros.h"
#include <cstdint>
#include <functional>
@@ -21,6 +22,7 @@ class MockDriverModel : public NEO::DriverModel {
public:
MockDriverModel() : MockDriverModel(NEO::DriverModelType::unknown) {}
MockDriverModel(DriverModelType driverModelType) : DriverModel(driverModelType) {}
ADDMETHOD_NOBASE_VOIDRETURN(cleanup, ());
void setGmmInputArgs(void *args) override {}