Skip to content

Commit 753c723

Browse files
Fix urecoverable abort upon detach event
Unrecoverable abort will be invoked when drm ioctls fail during device destruction. Remove abort for case where i915 is unbinded. Related-To: LOCI-3139 Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com> Source: 2c71df0
1 parent 3eb2d95 commit 753c723

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/source/os_interface/linux/drm_neo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,14 @@ void Drm::destroyDrmContext(uint32_t drmContextId) {
354354
GemContextDestroy destroy{};
355355
destroy.contextId = drmContextId;
356356
auto retVal = ioctlHelper->ioctl(DrmIoctl::GemContextDestroy, &destroy);
357-
UNRECOVERABLE_IF(retVal != 0);
357+
UNRECOVERABLE_IF((retVal != 0) && (errno != ENODEV));
358358
}
359359

360360
void Drm::destroyDrmVirtualMemory(uint32_t drmVmId) {
361361
GemVmControl ctl = {};
362362
ctl.vmId = drmVmId;
363363
auto ret = ioctlHelper->ioctl(DrmIoctl::GemVmDestroy, &ctl);
364-
UNRECOVERABLE_IF(ret != 0);
364+
UNRECOVERABLE_IF((ret != 0) && (errno != ENODEV));
365365
}
366366

367367
int Drm::queryVmId(uint32_t drmContextId, uint32_t &vmId) {

0 commit comments

Comments
 (0)