<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - igt/prime_nv_api cause Aborted (core dumped)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=68253">68253</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>igt/prime_nv_api cause Aborted (core dumped)
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>guang.a.yang@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=84219" name="attach_84219" title="dmesg of prime_nv_api on HSW">attachment 84219</a> <a href="attachment.cgi?id=84219&action=edit" title="dmesg of prime_nv_api on HSW">[details]</a></span>
dmesg of prime_nv_api on HSW

System Environment:
--------------------------
Platform:    Pineview/Ironlake/Sandybridge/Ivybridge/Haswell
Kernel: (drm-intel-next-queued)815ca9817afc1c1a45799fb9d4a4f413b7b1517c

Bug detailed description:
-----------------------------
igt case:prime_nv_api  will be aborted on
Pineview/Ironlake/Sandybridge/Ivybridge/Haswell with:
Test requirement not met in function main, file prime_nv_api.c:522:
Test requirement: (intel_fd != -1)
Test requirement not met in function main, file prime_nv_api.c:523:
Test requirement: (intel_fd2 != -1)
DRM_IOCTL_I915_GEM_APERTURE failed: Bad file descriptor
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [9]
param: 4, val: 0
Test assertion failure function main, file prime_nv_api.c:527:
Failed assertion: bufmgr
prime_nv_api: drmtest.c:818: igt_fail: Assertion `!test_with_subtests' failed.
Aborted (core dumped)

Daniel, it seems our I915 module won't automated loading with a Nvida card, I
try to load it manually, then it will be at the list of lsmod, but run other
igt cases will fail,such as:gem_exec_nop ,only shows:
Test assertion failure function gem_create, file drmtest.c:515:
Failed assertion: drmIoctl((fd), ((((2U|1U) << (((0+8)+8)+14)) | ((('d')) <<
(0+8)) | (((0x40 + 0x1b)) << 0) | ((((sizeof(struct drm_i915_gem_create)))) <<
((0+8)+8)))), (&create)) == 0
gem_exec_nop: drmtest.c:818: igt_fail: Assertion `!test_with_subtests' failed.
Aborted (core dumped)

So it's why the prime_nv_api fails with Test requirement: (intel_fd != -1)?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>