public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Souza, Jose" <jose.souza@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Chegondi, Harish" <harish.chegondi@intel.com>
Subject: Re: [igt-dev] [PATCH v2 1/1] i915/pm_backlight: Do not turn off DPMS before system suspend
Date: Thu, 4 Apr 2019 22:40:39 +0000	[thread overview]
Message-ID: <23d69bb512afda5863e088c947a6a08efb93c9d0.camel@intel.com> (raw)
In-Reply-To: <f4808a400a4111da36ab2f30a20ec6c5170ae53c.1554339208.git.harish.chegondi@intel.com>


[-- Attachment #1.1: Type: text/plain, Size: 2034 bytes --]

On Wed, 2019-04-03 at 18:26 -0700, Harish Chegondi wrote:
> backlight fade with suspend test turns off dpms which turns off the
> edp
> backlight. Then it does a system suspend and resume. After resume,
> the edp backlight would still be off, but the test sets the
> brightness
> value and reads it back. Since the edp backlight is off, the
> brightness
> values written and read are different causing the test to fail.
> 
> Do not turn off the DPMS before suspend so that after system resume,
> the edp backlight would be on and setting the brightness value would
> be successful.
> 
> v2: Remove "DPMS off" before system suspend instead of adding
>     "DPMS on" after system resume.

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>

And going to push it.

> 
> Cc: Jyoti Yadav <jyoti.r.yadav@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> Cc: Clinton Taylor <clinton.a.taylor@intel.com>
> Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=107820
> Fixes: 377752242995 ("Brightness test with DPMS and System suspend.")
> ---
>  tests/i915/i915_pm_backlight.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> 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_SUSPEN
> DED));
> -
>  	igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
> SUSPEND_TEST_NONE);
>  
>  	test_fade(context);

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2019-04-04 22:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14  6:41 [igt-dev] [RFC i-g-t 1/1] i915/pm_backlight: turn on dpms before backlight fade out and fade in Harish Chegondi
2019-03-14  7:25 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [RFC,i-g-t,1/1] " Patchwork
2019-03-14  7:46 ` [igt-dev] [RFC i-g-t 1/1] " Chris Wilson
2019-04-03  0:47   ` Chegondi, Harish
2019-04-03  7:44     ` Chris Wilson
2019-04-03 14:34       ` Daniel Vetter
2019-04-03 16:10         ` Daniel Vetter
2019-04-03 17:44           ` Chegondi, Harish
2019-03-14 15:23 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [RFC,i-g-t,1/1] " Patchwork
2019-04-04  1:26 ` [igt-dev] [PATCH v2 1/1] i915/pm_backlight: Do not turn off DPMS before system suspend Harish Chegondi
2019-04-04  8:12   ` Daniel Vetter
2019-04-05  0:35     ` Chegondi, Harish
2019-04-04 22:40   ` Souza, Jose [this message]
2019-04-04  3:06 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [v2,1/1] i915/pm_backlight: Do not turn off DPMS before system suspend (rev2) Patchwork
2019-04-04 20:23 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23d69bb512afda5863e088c947a6a08efb93c9d0.camel@intel.com \
    --to=jose.souza@intel.com \
    --cc=harish.chegondi@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox