mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Repeat ioctl when device is busy
Change-Id: I29007c316df610c9410a71a59c5098bd4539b504 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
960aff5637
commit
038577eaf4
@@ -242,6 +242,16 @@ TEST_F(DrmTests, createReturnsDrm) {
|
||||
EXPECT_EQ(0, ret);
|
||||
EXPECT_EQ(deviceId, lDeviceId);
|
||||
|
||||
ioctlCnt = 0;
|
||||
ioctlSeq[0] = -1;
|
||||
errno = EBUSY;
|
||||
// check if device works, although there was EBUSY error from KMD
|
||||
getParam.param = I915_PARAM_CHIPSET_ID;
|
||||
getParam.value = &lDeviceId;
|
||||
ret = drm->ioctl(DRM_IOCTL_I915_GETPARAM, &getParam);
|
||||
EXPECT_EQ(0, ret);
|
||||
EXPECT_EQ(deviceId, lDeviceId);
|
||||
|
||||
ioctlCnt = 0;
|
||||
ioctlSeq[0] = -1;
|
||||
errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user