Bug 76670 - [IVB/HSW Bisected]igt/gen7_forcewake_mt fails
Summary: [IVB/HSW Bisected]igt/gen7_forcewake_mt fails
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high major
Assignee: Brad Volkin
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 77849 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-27 02:33 UTC by lu hua
Modified: 2017-10-06 14:39 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (102.49 KB, text/plain)
2014-03-27 02:33 UTC, lu hua
no flags Details
Patch to modify the test (3.95 KB, patch)
2014-05-07 16:21 UTC, Brad Volkin
no flags Details | Splinter Review

Description lu hua 2014-03-27 02:33:39 UTC
Created attachment 96437 [details]
dmesg

System Environment:
--------------------------
Platform: Ivybridge
Kernel:  drm-intel-nightly/07071a9d41aed59f4f2ba66afb82ec35557a80c1

Bug detailed description:
-----------------------------
It fails on Ivybridge and haswell with -queued and -nightly kernel.
Bisect shows: 6d42f94084b8c69813d7ecd0466c33fe561bf127 is the first bad commit
commit 6d42f94084b8c69813d7ecd0466c33fe561bf127
Author:     Brad Volkin <bradley.d.volkin@intel.com>
AuthorDate: Tue Feb 18 10:15:57 2014 -0800
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Tue Mar 25 14:11:39 2014 +0100

    drm/i915: Enable command parsing by default

    v2: rebased

    OTC-Tracker: AXIA-4631
    Change-Id: I6747457e1fe7494bd42787af51198fcba398ad78
    Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com>
    Reviewed-by: Jani Nikula <jani.nikula@intel.com>
    [danvet: Resolve tiny conflict in module option text.]
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>


output:
IGT-Version: 1.6-gc819014 (x86_64) (Linux: 3.14.0-rc7_drm-intel-nightly_07071a_20140326+ x86_64)
Test assertion failure function gem_execbuf, file ioctl_wrappers.c:396:
Last errno: 22, Invalid argument
Failed assertion: ret == 0

Reproduce steps:
----------------------------
1. ./gen7_forcewake_mt
Comment 1 Chris Wilson 2014-03-27 07:38:59 UTC
Run the test case as root... if only.
Comment 2 Daniel Vetter 2014-03-27 07:58:46 UTC
FORCEWAKE_MT should be fully allowed, if you're master ... is the test failing to acquire that? At least we should have a little check in there whether we are actually master and fail a bit earlier.
Comment 3 Chris Wilson 2014-03-27 08:03:14 UTC
The test is to make sure I could actually write the suggested workaround for making sure that multiple display writes do not land simultaneous - that is it also does a STORE_REGISTER_MEM - as some versions of the ddx has done as well.
Comment 4 Chris Wilson 2014-03-27 08:05:06 UTC
And yes it takes advantage of certain dispatch infrastructure to assume that it has a ggtt offset to use.
Comment 5 lu hua 2014-04-29 01:30:46 UTC
*** Bug 77849 has been marked as a duplicate of this bug. ***
Comment 6 Brad Volkin 2014-05-07 16:21:33 UTC
Created attachment 98634 [details] [review]
Patch to modify the test
Comment 7 Brad Volkin 2014-05-07 16:22:07 UTC
Please test with the attached patch (0001-tests-gen7_forcewake_mt-Don-t-set-the-GGTT-bit-in-SR.patch). It modifies the test to not violate the command parser's rules. There is an open discussion about whether this is the correct approach or not, but I believe it is.
Comment 8 lu hua 2014-05-08 02:54:18 UTC
(In reply to comment #6)
> Created attachment 98634 [details] [review] [review]
> Patch to modify the test

Fixed by this patch.
Comment 9 Brad Volkin 2014-05-12 17:09:19 UTC
commit 0fee90b56df9a644b305f6cf37785b8284d410b3
Author: Brad Volkin <bradley.d.volkin@intel.com>
Date:   Sat May 10 14:11:53 2014 -0700

    tests/gen7_forcewake_mt: Don't set the GGTT bit in SRM command
    
    The command parser in newer kernels will reject it and setting this
    bit is not required for the actual test case.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76670
    Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Comment 10 lu hua 2014-05-14 03:27:51 UTC
Verified.Fixed.
Comment 11 Elizabeth 2017-10-06 14:39:00 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.