Bug 107798

Summary: [CI][BAT] igt@pm_rpm@module-reload - fail - Failed assertion: is_i915_device(fd)
Product: DRI Reporter: Martin Peres <martin.peres>
Component: IGTAssignee: Default DRI bug account <dri-devel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: highest    
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard: ReadyForDev
i915 platform: i915 features:

Description Martin Peres 2018-09-03 12:04:13 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/IGT_4620/fi-kbl-8809g/igt@pm_rpm@module-reload.html

https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_4754/fi-kbl-8809g/igt@pm_rpm@module-reload.html

(pm_rpm:4358) intel_chipset-CRITICAL: Test assertion failure function intel_get_drm_devid, file ../lib/intel_chipset.c:132:
(pm_rpm:4358) intel_chipset-CRITICAL: Failed assertion: is_i915_device(fd)
(pm_rpm:4358) intel_chipset-CRITICAL: Last errno: 2, No such file or directory
Test pm_rpm failed.
Comment 1 Chris Wilson 2018-09-03 12:06:19 UTC
commit 125eee6e981eac0a004aeb4f327439a132ceac5c (upstream/master, origin/master, origin/HEAD)
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Sep 3 10:44:31 2018 +0100

    lib: Fix strcmp() direction for bsearch.
    
    I fluked out as vgem was the initial mid value, hiding the worst of the
    errors as i915 matched with DRIVER_ANY.
    
    Fixes: 20087bf22698 ("lib: Use a bsearch to find the module name")
    Reported-by: Petri Latvala <petri.latvala@intel.com>
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.