Bug 102568 - [CFL] [IGT] pm_backlight failing if more than 2 pipes connected
Summary: [CFL] [IGT] pm_backlight failing if more than 2 pipes connected
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Elizabeth
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-06 18:31 UTC by Luis Botello
Modified: 2018-02-07 17:41 UTC (History)
1 user (show)

See Also:
i915 platform: CFL
i915 features: power/runtime PM


Attachments

Description Luis Botello 2017-09-06 18:31:54 UTC
Description
===========================================
pm_backlight@basic-brightness and pm_backlight@fade tests are failing if there are more than 2 pipes connected to platform.

             Software
======================================
kernel version              : 4.13.0-rc7-428ed2734-cfl+
architecture                : x86_64
os version                  : Ubuntu 17.04
kernel driver               : i915
bios revision               : 95.4
bios release date           : 07/24/2017
ksc                         : 1.5
libdrm                      : 2.4.83
cairo                       : 1.15.9
intel-gpu-tools (tag)       : intel-gpu-tools-1.19-224-gfc651088
intel-gpu-tools (commit)    : fc651088

             Hardware
======================================
motherboard model          : CoffeeLakeClientPlatform
motherboard id             : CoffeeLakeSUDIMMRVP
form factor                : Desktop
cpu family id              : 6
cpu information            : Genuine Intel(R) CPU 0000 @ 3.60GHz
gpu card                   : Intel Corporation Device 3e92 (prog-if 00 [VGA controller])
memory ram                 : 15.58 GB

             Firmware
======================================
dmc version               : 1.1
guc version found         : 9.14

             IGT output
======================================
(pm_backlight:2883) CRITICAL: Test assertion failure function test_and_verify, file pm_backlight.c:111:
(pm_backlight:2883) CRITICAL: Failed assertion: ({ typeof(0) _a = (0); typeof(val - tolerance) _b = (val - tolerance); _a > _b ? _a : _b; }) <= result
(pm_backlight:2883) CRITICAL: error: 114000 > 0
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [test_and_verify+0x118]
  #2 [_start+0x0]
  #3 [<unknown>+0x0]
  #4 [<unknown>+0x0]
Subtest fade failed.
**** DEBUG ****
(pm_backlight:2883) CRITICAL: Test assertion failure function test_and_verify, file pm_backlight.c:111:
(pm_backlight:2883) CRITICAL: Failed assertion: ({ typeof(0) _a = (0); typeof(val - tolerance) _b = (val - tolerance); _a > _b ? _a : _b; }) <= result
(pm_backlight:2883) CRITICAL: error: 114000 > 0
(pm_backlight:2883) igt-core-INFO: Stack trace:
(pm_backlight:2883) igt-core-INFO:   #0 [__igt_fail_assert+0x101]
(pm_backlight:2883) igt-core-INFO:   #1 [test_and_verify+0x118]
(pm_backlight:2883) igt-core-INFO:   #2 [_start+0x0]
(pm_backlight:2883) igt-core-INFO:   #3 [<unknown>+0x0]
(pm_backlight:2883) igt-core-INFO:   #4 [<unknown>+0x0]
****  END  ****

             dmesg
======================================
[  364.410557] [IGT] pm_backlight: starting subtest fade
[  364.410580] [drm:intel_backlight_device_update_status [i915]] updating intel_backlight, brightness=120000/120000
[  364.410613] [drm:intel_backlight_device_get_brightness [i915]] get backlight PWM = 0
[  364.411014] [drm:intel_backlight_device_update_status [i915]] updating intel_backlight, brightness=120000/120000
[  364.411035] [IGT] pm_backlight: exiting, ret=99
[  364.443984] Console: switching to colour frame buffer device 240x67
Comment 1 Luis Botello 2017-09-06 18:35:04 UTC
As additional info, if only two displays or only eDP are connected to platform, then test result will be pass
Comment 2 Rodrigo Vivi 2017-09-11 17:41:57 UTC
This is a potential fix: https://patchwork.freedesktop.org/patch/173990/

Merged on drm-tip after 4.13.0-rc7...

So, could you please test latest drm-tip?
Comment 3 Elizabeth 2017-10-05 22:53:03 UTC
(In reply to Rodrigo Vivi from comment #2)
> This is a potential fix: https://patchwork.freedesktop.org/patch/173990/
> 
> Merged on drm-tip after 4.13.0-rc7...
> 
> So, could you please test latest drm-tip?
Same status:

With two pipes:

$ : sudo -E ./pm_backlight
IGT-Version: 1.20-g7f93a26 (x86_64) (Linux: 4.14.0-rc3-drm-tip-ww40-commit-247cb84+ x86_64)
Subtest basic-brightness: SUCCESS (0.206s)
Subtest bad-brightness: SUCCESS (0.000s)
Subtest fade: SUCCESS (2.322s)

With three:

$ : sudo -E ./pm_backlight
IGT-Version: 1.19-g08a2f88 (x86_64) (Linux: 4.14.0-rc3-drm-tip-ww40-commit-79f8205+ x86_64)
(pm_backlight:1550) CRITICAL: Test assertion failure function test_and_verify, file pm_backlight.c:111:
(pm_backlight:1550) CRITICAL: Failed assertion: ({ typeof(0) _a = (0); typeof(val - tolerance) _b = (val - tolerance); _a > _b ? _a : _b; }) <= result
(pm_backlight:1550) CRITICAL: error: 114000 > 0
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [test_and_verify+0xff]
  #2 [__libc_csu_init+0x0]
Subtest basic-brightness failed.
**** DEBUG ****
(pm_backlight:1550) CRITICAL: Test assertion failure function test_and_verify, file pm_backlight.c:111:
(pm_backlight:1550) CRITICAL: Failed assertion: ({ typeof(0) _a = (0); typeof(val - tolerance) _b = (val - tolerance); _a > _b ? _a : _b; }) <= result
(pm_backlight:1550) CRITICAL: error: 114000 > 0
(pm_backlight:1550) igt-core-INFO: Stack trace:
(pm_backlight:1550) igt-core-INFO:   #0 [__igt_fail_assert+0x101]
(pm_backlight:1550) igt-core-INFO:   #1 [test_and_verify+0xff]
(pm_backlight:1550) igt-core-INFO:   #2 [__libc_csu_init+0x0]
****  END  ****
Subtest basic-brightness: FAIL (0.001s)
Subtest bad-brightness: SUCCESS (0.000s)
(pm_backlight:1550) CRITICAL: Test assertion failure function test_and_verify, file pm_backlight.c:111:
(pm_backlight:1550) CRITICAL: Failed assertion: ({ typeof(0) _a = (0); typeof(val - tolerance) _b = (val - tolerance); _a > _b ? _a : _b; }) <= result
(pm_backlight:1550) CRITICAL: error: 114000 > 0
Stack trace:
  #0 [__igt_fail_assert+0x101]
  #1 [test_and_verify+0xff]
  #2 [__libc_csu_init+0x0]
Subtest fade failed.
**** DEBUG ****
(pm_backlight:1550) CRITICAL: Test assertion failure function test_and_verify, file pm_backlight.c:111:
(pm_backlight:1550) CRITICAL: Failed assertion: ({ typeof(0) _a = (0); typeof(val - tolerance) _b = (val - tolerance); _a > _b ? _a : _b; }) <= result
(pm_backlight:1550) CRITICAL: error: 114000 > 0
(pm_backlight:1550) igt-core-INFO: Stack trace:
(pm_backlight:1550) igt-core-INFO:   #0 [__igt_fail_assert+0x101]
(pm_backlight:1550) igt-core-INFO:   #1 [test_and_verify+0xff]
(pm_backlight:1550) igt-core-INFO:   #2 [__libc_csu_init+0x0]
****  END  ****
Subtest fade: FAIL (0.000s)
Comment 4 Jari Tahvanainen 2018-02-06 12:01:32 UTC
Elizabeth et.al. Please check the validity of the bug. AFAIK this seems to be okay on the latest executions.
Comment 5 Luis Botello 2018-02-07 17:41:06 UTC
Issue is not seen anymore with latest drm-tip kernel, closing bug.


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.