fix: proper lock order when reinitialize context

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-11-05 07:08:33 +00:00
committed by Compute-Runtime-Automation
parent 140f787b11
commit 01885fe362
4 changed files with 3 additions and 2 deletions

View File

@@ -255,6 +255,7 @@ CommandQueue *CommandQueue::create(uint32_t productFamily, Device *device, NEO::
auto &osContext = csr->getOsContext();
DriverHandleImp *driverHandleImp = static_cast<DriverHandleImp *>(device->getDriverHandle());
if (driverHandleImp->powerHint && driverHandleImp->powerHint != osContext.getUmdPowerHintValue()) {
csr->unregisterDirectSubmissionFromController();
auto lock = csr->obtainUniqueOwnership();
csr->resetDirectSubmission();
osContext.setUmdPowerHintValue(driverHandleImp->powerHint);