Bug 72900

Summary: [SNB/IVB/HSW/BYT/BDW Regression]igt/gem_ctx_bad_destroy fails
Product: DRI Reporter: lu hua <huax.lu>
Component: DRM/IntelAssignee: Daniel Vetter <daniel>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: high CC: ben, intel-gfx-bugs
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description lu hua 2013-12-20 08:40:23 UTC
System Environment:
--------------------------
Platform: Sandybridge/Ivybridge/Haswell
Kernel:  (drm-intel-nightly)074fdf374fa296c16a7449b9d2d4ad6ff73c0c8d

Bug detailed description:
-------------------------
It fails on Sandybridge/Ivybridge/Haswell with ppgtt and nightly branch. It works well on -fixes and -queued kernel.

The latest good commit: 02905525c3310ba673676f8041d0ff6be4da0e24 
The latest bad commit: a7c1d426ef335ccfb6bd567a3f616fa232418fa2 

output:
IGT-Version: 1.5-g2a71bff (x86_64) (Linux: 3.13.0-rc4_drm-intel-nightly_074fdf_20131219+ x86_64)
default destroy - errno was 1, but should have been 2


Reproduce steps:
----------------------------
1. ./gem_ctx_bad_destroy
Comment 1 Ben Widawsky 2013-12-23 18:36:47 UTC
Can you please try reverting 7c9c4b8f5dfe224ce587a470ce8817214c92271e from the kernel and see if the problem goes away.

If this fixes the problem: the return value is unimportant, my vote is to simply modify the test to not care about the return value.
Comment 2 lu hua 2013-12-24 02:35:11 UTC
(In reply to comment #1)
> Can you please try reverting 7c9c4b8f5dfe224ce587a470ce8817214c92271e from
> the kernel and see if the problem goes away.
> 
> If this fixes the problem: the return value is unimportant, my vote is to
> simply modify the test to not care about the return value.


Revert commit 7c9c4b. It still fails.
output:
default destroy - errno was 1, but should have been 2
Comment 3 Ben Widawsky 2013-12-25 00:03:21 UTC
Please test: https://patchwork.kernel.org/patch/3404741/
Comment 4 lu hua 2013-12-25 05:28:46 UTC
(In reply to comment #3)
> Please test: https://patchwork.kernel.org/patch/3404741/


Fixed by this patch.
Comment 5 lu hua 2013-12-26 06:28:05 UTC
It also fails on BYT and BDW.
Comment 6 Ben Widawsky 2013-12-26 21:58:44 UTC
Assigning to Daniel to decide how to proceed with the patch.
Comment 7 Daniel Vetter 2014-01-08 20:27:22 UTC
Patch merged to topic/ppgtt:

commit f82e4030bbeeef322b8103cf8ad641ddc3cc44fd
Author: Ben Widawsky <benjamin.widawsky@intel.com>
Date:   Tue Dec 24 16:02:54 2013 -0800

    drm/i915/bdw: Return -ENONENT on default ctx destroy
Comment 8 lu hua 2014-01-13 03:09:11 UTC
Verified.Fixed.
Comment 9 Elizabeth 2017-10-06 14:40:58 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.