Bug 68253 - igt/prime_nv_api cause Aborted (core dumped)
Summary: igt/prime_nv_api cause Aborted (core dumped)
Status: CLOSED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Daniel Vetter
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-19 05:04 UTC by Guang Yang
Modified: 2017-10-06 14:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg of prime_nv_api on HSW (99.18 KB, text/plain)
2013-08-19 05:04 UTC, Guang Yang
no flags Details

Description Guang Yang 2013-08-19 05:04:03 UTC
Created attachment 84219 [details]
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)?
Comment 1 Daniel Vetter 2013-08-19 05:44:27 UTC
Yup, there's no i915 driver in the dmesg. I'll improve igt a bit so that the test doesn't crash if a "Test requirement not met" case happens, but that issue is already tracked in bug #68166.

Loading i915 manually won't help since apparently the intel gfx device is disabled. Some BIOS automatically disable integrated GFX when a discrete gpu is plugged in. You need to check BIOS options to enable both integrated and discrete gpus. So this is a test enviroment issue, closing accordingly.
Comment 2 Guang Yang 2013-08-19 07:12:35 UTC
(In reply to comment #1)
> Yup, there's no i915 driver in the dmesg. I'll improve igt a bit so that the
> test doesn't crash if a "Test requirement not met" case happens, but that
> issue is already tracked in bug #68166.
> 
> Loading i915 manually won't help since apparently the intel gfx device is
> disabled. Some BIOS automatically disable integrated GFX when a discrete gpu
> is plugged in. You need to check BIOS options to enable both integrated and
> discrete gpus. So this is a test enviroment issue, closing accordingly.
Got it, I check BIOS to enable the integrated GFX ,the issue is gone.
Comment 3 Elizabeth 2017-10-06 14:43:54 UTC
Closing old verified.


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.