mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Sysman device reset stability fix
Close PMT, and PMU fds created during Sysman's init before calling device reset. Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c9b5de0f1d
commit
46c51cb8a9
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -11,11 +11,17 @@
|
||||
|
||||
namespace L0 {
|
||||
|
||||
RasHandleContext::~RasHandleContext() {
|
||||
void RasHandleContext::releaseRasHandles() {
|
||||
for (Ras *pRas : handleList) {
|
||||
delete pRas;
|
||||
}
|
||||
handleList.clear();
|
||||
}
|
||||
|
||||
RasHandleContext::~RasHandleContext() {
|
||||
releaseRasHandles();
|
||||
}
|
||||
|
||||
void RasHandleContext::createHandle(zes_ras_error_type_t type, ze_device_handle_t deviceHandle) {
|
||||
Ras *pRas = new RasImp(pOsSysman, type, deviceHandle);
|
||||
handleList.push_back(pRas);
|
||||
|
||||
Reference in New Issue
Block a user