Bug 73643 - [HSW] I2C subtest fail in intel-gpu-tools' pm_pc8 case
Summary: [HSW] I2C subtest fail in intel-gpu-tools' pm_pc8 case
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: All Linux (All)
: medium normal
Assignee: Paulo Zanoni
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-15 03:30 UTC by wendy.wang
Modified: 2017-10-06 14:40 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Full dmesg log file (125.57 KB, text/plain)
2014-01-15 03:30 UTC, wendy.wang
no flags Details
tracelog for I2C subtest (316 bytes, text/plain)
2014-01-17 07:52 UTC, wendy.wang
no flags Details
dmesglog20140120.txt (173.59 KB, text/plain)
2014-01-20 07:38 UTC, wendy.wang
no flags Details
IGT debug patch (2.38 KB, patch)
2014-01-24 20:51 UTC, Paulo Zanoni
no flags Details | Splinter Review

Description wendy.wang 2014-01-15 03:30:44 UTC
Created attachment 92109 [details]
Full dmesg log file

Test Environment:
kernel: Linux x-hswu32 3.13.0-rc7_drm-intel- nightly_7ce8d6_20140110+ 
Intel-gpu-tools commitIntel-gpu-tools commit: 2c9e76184518854f21d367296ababef87fb41243

Reproduced Steps:
1. Reboot SUT
2. run ./pm_pc8 under path: /GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests
3. Only I2C subtest fail, others all PASS.

Full dmesg file attached.

Isolation:
1. I2C subtest still fail even switch the Turnable items in Powertop to Good
2. I2C subtest fail no matter connect or disconnect the external panel.
Comment 1 Ben Widawsky 2014-01-16 19:30:47 UTC
I can't reproduce this locally. Can you please show all the output from the test as well?

bwidawsk@statham ~/intel-gfx/intel-gpu-tools (master)$ sudo ./tests/pm_pc8 --run-subtest i2c
IGT-Version: 1.5-g5e278c8 (x86_64) (Linux: 3.13.0-rc7-BEN+ x86_64)
Runtime PM support: 1
PC8 residency support: 0
Subtest i2c: SUCCESS
Comment 2 Ben Widawsky 2014-01-16 19:45:26 UTC
And one with residency support:
bwidawsk@ironside ~/intel-gfx/intel-gpu-tools (master)$ sudo ./tests/pm_pc8 --run-subtest i2c
IGT-Version: 1.5-g5e278c8 (x86_64) (Linux: 3.13.0-rc7-BEN+ x86_64)
Runtime PM support: 1
PC8 residency support: 1
Subtest i2c: SUCCESS
Comment 3 wendy.wang 2014-01-17 07:52:49 UTC
Created attachment 92261 [details]
tracelog for I2C subtest
Comment 4 wendy.wang 2014-01-17 08:00:04 UTC
Retest the intel-gpu-tools' pm_pc8 test on harris beach, and got below messages:
kernel:Linux x-hswu32 3.13.0-rc3_drm-intel-next-queued_ffb646_20140117+ 

1.  
[root@x-hswu32 tests]# ./pm_pc8 --run-subtest i2c
IGT-Version: 1.5-g5e278c8 (x86_64) (Linux: 3.13.0-rc3_drm-intel-next-queued_ffb6                                                                                                                     46_20140117+ x86_64)
Runtime PM support: 1
PC8 residency support: 1
Test assertion failure function test_i2c, file pm_pc8.c:636:
Last errno: 6, No such device or address
Failed assertion: i2c_edids == drm_edids
Subtest i2c: FAIL

2. Trace log for i2c subtest has been attached after executed " strace ./pm_pc8 --run-subtest i2c"

3. The full test result of pm_pc8(note: external display did not attached, so there are some skip subtests)
[root@x-hswu32 tests]# ./pm_pc8
IGT-Version: 1.5-g5e278c8 (x86_64) (Linux: 3.13.0-rc3_drm-intel-next-queued_ffb646_20140117+ x86_64)
Runtime PM support: 1
PC8 residency support: 1
Subtest rte: SUCCESS
Subtest drm-resources-equal: SUCCESS
Subtest modeset-lpsp: SUCCESS
Test requirement not met in function modeset_subtest, file pm_pc8.c:835:
Last errno: 2, No such file or directory
Test requirement: (!(enable_one_screen_with_type(&ms_data, type)))
Subtest modeset-non-lpsp: SKIP
Subtest gem-mmap-cpu: SUCCESS
Subtest gem-mmap-gtt: SUCCESS
Subtest gem-pread: SUCCESS
Subtest gem-execbuf: SUCCESS
Test assertion failure function test_i2c, file pm_pc8.c:636:
Last errno: 6, No such device or address
Failed assertion: i2c_edids == drm_edids
Subtest i2c: FAIL
Subtest pc8-residency: SUCCESS
Subtest debugfs-read: SUCCESS
Subtest debugfs-forcewake-user: SUCCESS
Subtest sysfs-read: SUCCESS
Subtest modeset-lpsp-stress: SUCCESS
Test requirement not met in function modeset_subtest, file pm_pc8.c:835:
Last errno: 5, Input/output error
Test requirement: (!(enable_one_screen_with_type(&ms_data, type)))
Subtest modeset-non-lpsp-stress: SKIP
Subtest modeset-lpsp-stress-no-wait: SUCCESS
Test requirement not met in function modeset_subtest, file pm_pc8.c:835:
Last errno: 5, Input/output error
Test requirement: (!(enable_one_screen_with_type(&ms_data, type)))
Subtest modeset-non-lpsp-stress-no-wait: SKIP
Comment 5 Paulo Zanoni 2014-01-17 18:56:56 UTC
Hi

Your dmesg file is not complete. Can you please just boot the machine with drm.debug=0xe, then run dmesg and attach it here? Even without reproducing the bug.

Also, can you please start X, run "xrandr --verbose" and attach the output here?

Thanks,
Paulo
Comment 6 wendy.wang 2014-01-20 07:37:20 UTC
1. fulldemsg file(named as dmesglog20140120.txt) attached with "drm.debug=0xe" supported
[root@x-hswu32 ~]# cat /proc/cmdline
BOOT_IMAGE=kernels//nightly_parents/2014_01_20/drm-intel-nightly/0c57772c928f9fad7ac00cedf0104ce36c6fb2b6/bzImage_x86_64 root=/dev/sda5 acpi_rsdp=0x00000000acfe9014 drm.debug=0xe modules_path=kernels//nightly_parents/2014_01_20/drm-intel-nightly/0c57772c928f9fad7ac00cedf0104ce36c6fb2b6/modules_x86_64/lib/modules/3.13.0-rc8_drm-intel-nightly_0c5777_20140120+ kexec_jump_back_entry=0xc1110720



2. [root@x-hswu32 ~]# xrandr --verbose
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected 1920x1080+0+0 (0x47) normal (normal left inverted right x axis y axis) 282mm x 165mm
        Identifier: 0x43
        Timestamp:  575072
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:
        CRTC:       0
        CRTCs:      0 1 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
        EDID:
                00ffffffffffff000dae431300000000
                34150104a51c10780293ada9534c9625
                114f5300000001010101010101010101
                010101010101363680a0703820402e1e
                24001aa5100000180000001000382040
                2e1e24001aa510000018000000fe0043
                4d4e0a202020202020202020000000fe
                004e3133334853452d4541310a200095
        BACKLIGHT: 100
                range: (0, 100)
        Backlight: 100
                range: (0, 100)
        scaling mode: Full aspect
                supported: None, Full, Center, Full aspect
        Broadcast RGB: Automatic
                supported: Automatic, Full, Limited 16:235
        audio: auto
                supported: force-dvi, off, auto, on
  1920x1080 (0x47)  138.8MHz -HSync -VSync *current +preferred
        h: width  1920 start 1966 end 1996 total 2080 skew    0 clock   66.7KHz
        v: height 1080 start 1082 end 1086 total 1112           clock   60.0Hz
  1400x1050 (0x108)  122.0MHz +HSync +VSync
        h: width  1400 start 1488 end 1640 total 1880 skew    0 clock   64.9KHz
        v: height 1050 start 1052 end 1064 total 1082           clock   60.0Hz
  1280x1024 (0x109)  108.0MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1280x960 (0x10a)  108.0MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock   60.0KHz
        v: height  960 start  961 end  964 total 1000           clock   60.0Hz
  1024x768 (0x10b)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0x10c)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  800x600 (0x10d)   36.0MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
        v: height  600 start  601 end  603 total  625           clock   56.2Hz
  640x480 (0x10e)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   59.9Hz
HDMI1 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x44
        Timestamp:  575072
        Subpixel:   unknown
        Clones:
        CRTCs:      0 1 2
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
        Broadcast RGB: Automatic
                supported: Automatic, Full, Limited 16:235
        audio: auto
                supported: force-dvi, off, auto, on
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
        Identifier: 0x45
        Timestamp:  575072
        Subpixel:   no subpixels
        Clones:
        CRTCs:      3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter:
Comment 7 wendy.wang 2014-01-20 07:38:38 UTC
Created attachment 92424 [details]
dmesglog20140120.txt
Comment 8 Paulo Zanoni 2014-01-24 20:51:02 UTC
Created attachment 92742 [details] [review]
IGT debug patch

Hi

Could you please apply this patch to intel-gpu-tools, then run "sudo ./pm_pc8.c --run-subtest i2c" and paste the output here?

Thanks,
Paulo
Comment 9 wendy.wang 2014-01-26 02:12:47 UTC
Applied IGT debug patch, and run the I2C subtest, got below message:
[root@x-hswu32 tests]# ./pm_pc8 --run-subtest i2c
IGT-Version: 1.5-gb5109e6 (x86_64) (Linux: 3.13.0-rc8_drm-intel-nightly_42a4af_20140124+ x86_64)
Runtime PM support: 1
PC8 residency support: 1
file:/dev/i2c-6 valid:0
file:/dev/i2c-5 valid:0
file:/dev/i2c-4 valid:0
file:/dev/i2c-3 valid:0
file:/dev/i2c-2 valid:0
file:/dev/i2c-1 valid:0
file:/dev/i2c-0 valid:0
Connector 10 edids:0x11831f0 edid: 00ffffffffffff00
valid:1
Connector 18 edids:(nil)
i2c:0 drm:1
Test assertion failure function test_i2c, file pm_pc8.c:658:
Last errno: 6, No such device or address
Failed assertion: i2c_edids == drm_edids
i2c:0 drm:1
Subtest i2c: FAIL
Comment 10 Guo Jinxian 2014-05-14 06:25:52 UTC
This case still failed on latest -nightly(2be456541ea41728002ccca2de5235f48d14326e) on IVB
./pm_pc8 --run-subtest i2c
IGT-Version: 1.6-gd848a36 (x86_64) (Linux: 3.15.0-rc3_drm-intel-nightly_2be456_20140514+ x86_64)
Runtime PM support: 1
PC8 residency support: 0
Test assertion failure function test_i2c, file pm_pc8.c:654:
Last errno: 6, No such device or address
Failed assertion: i2c_edids == drm_edids
i2c:0 drm:1
Subtest i2c: FAIL
Comment 11 Daniel Vetter 2014-05-15 15:04:01 UTC
Please supply the information requested by Paulo in comment #8
Comment 12 Daniel Vetter 2014-05-15 15:04:43 UTC
Oops, it's already there, sorry for the confusion.
Comment 13 wendy.wang 2014-06-10 06:23:33 UTC
Retest the i2c subtest as following command:
[root@x-hswu32 tests]# ./pm_rpm --run-subtest i2c
IGT-Version: 1.6-g18d2130 (x86_64) (Linux: 3.15.0-rc8_drm-intel-nightly_969b3c_2                                                                                                                     0140609+ x86_64)
Runtime PM support: 1
PC8 residency support: 1
Subtest i2c: SUCCESS
[root@x-hswu32 tests]# uname -a
Linux x-hswu32 3.15.0-rc8_drm-intel-nightly_969b3c_20140609+ #3378 SMP Mon Jun 9 11:24:16 CST 2014 x86_64 x86_64 x86_64 GNU/Linux

I2C case can PASS now, so close this bug as fixed.
Comment 14 Elizabeth 2017-10-06 14:40:24 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.