Bug 69503 - [HSW Bisected]igt/pc8/i2c fails
Summary: [HSW Bisected]igt/pc8/i2c fails
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Paulo Zanoni
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-18 02:54 UTC by lu hua
Modified: 2017-10-06 14:43 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (110.05 KB, text/plain)
2013-09-18 02:54 UTC, lu hua
no flags Details

Description lu hua 2013-09-18 02:54:14 UTC
Created attachment 86035 [details]
dmesg

System Environment:
--------------------------
Platform:  Haswell
Kernel: (drm-intel-next-queued) 47e4248c5f2bdd229052564ae1cc47b186409cd2

Bug detailed description:
-----------------------------
It fails on haswell with -queued,-fixes and -nightly kernel.
Following cases also fail:
igt/pc8/batch	
igt/pc8/drm-resources-equal		
igt/pc8/register-compare	
igt/pc8/stress-test	

Bisect shows:9d49c0ef40890064ca552230c2e3ae0e1fb3b617 is the first bad commit.
commit 9d49c0ef40890064ca552230c2e3ae0e1fb3b617
Author:     Paulo Zanoni <paulo.r.zanoni@intel.com>
AuthorDate: Thu Sep 12 18:06:43 2013 -0300
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Fri Sep 13 11:40:19 2013 +0200

    drm/i915: move more code to __i915_drm_thaw

    Both callers had code to sanitize the uncore and restore the GTT
    mappings just before calling __i915_drm_thaw, so Chris suggested I
    should unify the code.

    Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
    Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>


output:
Test assertion failure function get_residency, file pc8.c:124:
Failed assertion: rc == sizeof(ret)
Subtest drm-resources-equal: FAIL
Subtest batch: FAIL
Subtest i2c: FAIL
Subtest stress-test: FAIL
Subtest register-compare: FAIL

Reproduce steps:
----------------------------
1. ./pc8 --run-subtest i2c
Comment 1 Daniel Vetter 2013-09-18 08:14:54 UTC
Paulo's feature broken by Paulo's patch ...
Comment 2 Paulo Zanoni 2013-09-18 13:49:51 UTC
But the I2C test fails since it was added, I know this. Are you sure this bisect is correct?
Comment 3 Paulo Zanoni 2013-09-18 13:55:33 UTC
The failure in line 124 is expected since your machine is not ULT. But we should be getting a "skip" instead of a failure on that case.

Can you please run ./pc8 without the "--run-subtest i2c" argument and then paste the full output and the return value here? We should really get a skip instead of a failure.

I wonder if igt_fixture/igt_require are not doing the right thing.
Comment 4 lu hua 2013-09-22 06:20:46 UTC
(In reply to comment #3)
> The failure in line 124 is expected since your machine is not ULT. But we
> should be getting a "skip" instead of a failure on that case.

Run it on ULT, the result is "skip". If run it on desktop, it is fail.
output on ULT:
Machine is not reaching PC8+ states, please check its configuration.
Test requirement not met in function main, file pc8.c:770:
Test requirement: (!(setup_environment()))
Subtest drm-resources-equal: SKIP
Subtest batch: SKIP
Subtest i2c: SKIP
Subtest stress-test: SKIP
Subtest register-compare: SKIP


> Can you please run ./pc8 without the "--run-subtest i2c" argument and then
> paste the full output and the return value here? We should really get a skip
> instead of a failure.

Run ./pc8
output:
Test assertion failure function get_residency, file pc8.c:124:
Failed assertion: rc == sizeof(ret)
Subtest drm-resources-equal: FAIL
Subtest batch: FAIL
Subtest i2c: FAIL
Subtest stress-test: FAIL
Subtest register-compare: FAIL
Comment 5 Paulo Zanoni 2013-09-23 19:21:57 UTC
I just committed "tests/pc8: fix supports_pc8_plus_residencies" to the intel-gpu-tools repository. With this, non-ULT machines should now SKIP instead of fail.

The i2c test should still fail on properly-configured ULT machines, but this problem requires a Kernel patch.
Comment 6 lu hua 2013-09-25 08:27:34 UTC
Fixed.
Comment 7 lu hua 2013-09-25 08:27:50 UTC
Verified.
Comment 8 Daniel Vetter 2013-09-25 10:21:52 UTC
Just to check: This testcase should fail on HSW ULT. Can you confirm that and if so file a bug report about it?
Comment 9 lu hua 2013-09-26 07:40:27 UTC
(In reply to comment #8)
> Just to check: This testcase should fail on HSW ULT. Can you confirm that
> and if so file a bug report about it?

It also skip on HSW ULT.
./pc8
output:
Machine is not reaching PC8+ states, please check its configuration.
Test requirement not met in function main, file pc8.c:770:
Test requirement: (!(setup_environment()))
Subtest drm-resources-equal: SKIP
Subtest batch: SKIP
Subtest i2c: SKIP
Subtest stress-test: SKIP
Subtest register-compare: SKIP
Comment 10 Daniel Vetter 2013-09-26 07:45:26 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Just to check: This testcase should fail on HSW ULT. Can you confirm that
> > and if so file a bug report about it?
> 
> It also skip on HSW ULT.
> ./pc8
> output:
> Machine is not reaching PC8+ states, please check its configuration.
> Test requirement not met in function main, file pc8.c:770:
> Test requirement: (!(setup_environment()))
> Subtest drm-resources-equal: SKIP
> Subtest batch: SKIP
> Subtest i2c: SKIP
> Subtest stress-test: SKIP
> Subtest register-compare: SKIP

That's not good ... Can you please file a new bug report about this? Paulo, I think we need to check for pci ids in the testcase and only skip it for !ULT, but fail if an ULT machine fails to reach pc8.
Comment 11 Paulo Zanoni 2013-09-26 13:50:46 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > Just to check: This testcase should fail on HSW ULT. Can you confirm that
> > > and if so file a bug report about it?
> > 
> > It also skip on HSW ULT.
> > ./pc8
> > output:
> > Machine is not reaching PC8+ states, please check its configuration.
> > Test requirement not met in function main, file pc8.c:770:
> > Test requirement: (!(setup_environment()))
> > Subtest drm-resources-equal: SKIP
> > Subtest batch: SKIP
> > Subtest i2c: SKIP
> > Subtest stress-test: SKIP
> > Subtest register-compare: SKIP
> 
> That's not good ... Can you please file a new bug report about this? Paulo,
> I think we need to check for pci ids in the testcase and only skip it for
> !ULT, but fail if an ULT machine fails to reach pc8.

See my response on bug #69838. I think we can move the discussion to there.
Comment 12 Elizabeth 2017-10-06 14:43: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.