All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Kumar, Abhay" <abhay.kumar@intel.com>
To: Paulo Zanoni <przanoni@gmail.com>
Cc: Intel Graphics Development <Intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: Suspend resume timing optimization.
Date: Mon, 7 Dec 2015 22:19:41 +0000	[thread overview]
Message-ID: <A49308764D41694491D5AFB53AB2F16D08830DF7@ORSMSX114.amr.corp.intel.com> (raw)
In-Reply-To: <CA+gsUGSiDUwYXA5koweeiH1+ra7-ZcT+pk396xP2UYj_41swqA@mail.gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 2991 bytes --]

This is for Chrome os perspective which is using upstream kernel.  We have S3 suspend and resume time limit of 1sec.



Currently suspend of i915 driver takes 280ms and resume takes 600ms. To make resume faster and also follow edp spec this patch will move

Half of t12 time from resume path to suspend path.



Will take care of comment in next patchset.

[cid:image001.png@01D130F9.DFFC0300]







-----Original Message-----
From: Paulo Zanoni [mailto:przanoni@gmail.com]
Sent: Monday, December 7, 2015 12:52 PM
To: Kumar, Abhay
Cc: Intel Graphics Development
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Suspend resume timing optimization.



2015-12-07 18:28 GMT-02:00  <abhay.kumar@intel.com<mailto:abhay.kumar@intel.com>>:

> From: Abhay Kumar <abhay.kumar@intel.com<mailto:abhay.kumar@intel.com>>

>

> Moving 250ms from T12 timing to suspend path so that resume path will

> be faster.



Can you please elaborate more on your motivation for this patch? I'm a little confused. You're trying to make resume faster by making suspend slower? What are your main arguments for this?



>

> Signed-off-by: Abhay Kumar <abhay.kumar@intel.com<mailto:abhay.kumar@intel.com>>

> ---

>  drivers/gpu/drm/i915/intel_ddi.c | 6 ++++++

>  1 file changed, 6 insertions(+)

>

> diff --git a/drivers/gpu/drm/i915/intel_ddi.c

> b/drivers/gpu/drm/i915/intel_ddi.c

> index 7f618cf..2679c9e 100644

> --- a/drivers/gpu/drm/i915/intel_ddi.c

> +++ b/drivers/gpu/drm/i915/intel_ddi.c

> @@ -2389,6 +2389,12 @@ static void intel_ddi_post_disable(struct

> intel_encoder *intel_encoder)



Funcion intel_ddi_post_disable() doesn't only run on suspend situations, yet your commit message suggests you're optimizing suspend. Maybe this commit makes non-suspend modesets slower because now we need to wait the panel power cycle earlier? Have you measured the possible downsides?



>                 intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF);

>                 intel_edp_panel_vdd_on(intel_dp);

>                 intel_edp_panel_off(intel_dp);

> +

> +               /* Give additional delay of 250 ms so that resume time will

> +                  be faster and also meets T12 delay.

> +               */



The comment says 250ms, but the code doesn't. Also, there's a missing '*' char in the comment.



> +               wait_remaining_ms_from_jiffies(intel_dp->last_power_cycle,

> +

> + (intel_dp->panel_power_cycle_delay/2));



Why wait half the panel power cycle? Why did you choose exactly this value?



Thanks,

Paulo



>         }

>

>         if (IS_SKYLAKE(dev) || IS_KABYLAKE(dev))

> --

> 1.9.1

>

> _______________________________________________

> Intel-gfx mailing list

> Intel-gfx@lists.freedesktop.org<mailto:Intel-gfx@lists.freedesktop.org>

> http://lists.freedesktop.org/mailman/listinfo/intel-gfx







--

Paulo Zanoni

[-- Attachment #1.1.2: Type: text/html, Size: 9467 bytes --]

[-- Attachment #1.2: image001.png --]
[-- Type: image/png, Size: 53549 bytes --]

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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-12-07 22:19 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 20:28 [PATCH] drm/i915: Suspend resume timing optimization abhay.kumar
2015-12-07 20:52 ` Paulo Zanoni
2015-12-07 22:19   ` Kumar, Abhay [this message]
2015-12-09 10:55   ` Kumar, Shobhit
2015-12-09 12:12     ` Ville Syrjälä
2015-12-09 12:40       ` Kumar, Shobhit
2015-12-09 13:21         ` [PATCH] drm/i915: Wait for PP cycle delay only if panel is in power off sequence Shobhit Kumar
2015-12-09 13:29           ` Kumar, Shobhit
2015-12-09 13:57           ` Ville Syrjälä
2015-12-09 14:37             ` Shobhit Kumar
2015-12-09 15:04               ` Chris Wilson
2015-12-09 15:29                 ` Shobhit Kumar
2015-12-09 16:05                   ` Ville Syrjälä
2015-12-10  9:31                     ` Kumar, Shobhit
2015-12-10  9:50                       ` Daniel Vetter
2015-12-10 10:18                         ` Kumar, Shobhit
2015-12-10 10:58                         ` Thulasimani, Sivakumar
2015-12-10 13:15                       ` Ville Syrjälä
2015-12-10 13:38                         ` Ville Syrjälä
2015-12-10 14:39                           ` Thulasimani, Sivakumar
2015-12-10 15:02                             ` Ville Syrjälä
2015-12-11 11:25                               ` Thulasimani, Sivakumar
2015-12-11 11:41                                 ` Kumar, Shobhit
2015-12-11 17:00                                   ` Daniel Vetter
2015-12-14  3:59                                     ` Kumar, Shobhit
2015-12-11  6:34                         ` Kumar, Shobhit

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=A49308764D41694491D5AFB53AB2F16D08830DF7@ORSMSX114.amr.corp.intel.com \
    --to=abhay.kumar@intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=przanoni@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.