<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:harish.chegondi@intel.com" title="harish.chegondi@intel.com">harish.chegondi@intel.com</a>
</span> changed
          <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [CI][DRMTIP] igt@pm_backlight@* - incomplete - system hang?"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107820">bug 107820</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>anshuman.gupta@intel.com, jani.nikula@intel.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [CI][DRMTIP] igt@pm_backlight@* - incomplete - system hang?"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107820#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [CI][DRMTIP] igt@pm_backlight@* - incomplete - system hang?"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107820">bug 107820</a>
              from <span class="vcard"><a class="email" href="mailto:harish.chegondi@intel.com" title="harish.chegondi@intel.com">harish.chegondi@intel.com</a>
</span></b>
        <pre>In order to get some more information to respond to Chris Wilson's comments to
the RFC patch, I made some more changes mentioned below to the test and ran the
test. The test passed with these changes. From the experimental test I conclude
that the system suspend is turning off the backlight and the system resume is
properly turning on the backlight. But when the DPMS is turned off before the
system suspend and resume, the DPMS off is turning off something that's
preventing the system resume from turning on the backlight. Now I am
investigating why turning off the DPMS is preventing the system resume from
turning on the backlight.

diff --git a/tests/i915/i915_pm_backlight.c b/tests/i915/i915_pm_backlight.c
index 054300f6..4c1bff5b 100644
--- a/tests/i915/i915_pm_backlight.c
+++ b/tests/i915/i915_pm_backlight.c
@@ -175,13 +175,6 @@ test_fade_with_dpms(struct context *context, igt_output_t
*output)
 static void
 test_fade_with_suspend(struct context *context, igt_output_t *output)
 {
-       igt_require(igt_setup_runtime_pm());
-
-       kmstest_set_connector_dpms(output->display->drm_fd,
-                                  output->config.connector,
-                                  DRM_MODE_DPMS_OFF);
-       igt_require(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED));
-
        igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);

        test_fade(context);</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>