All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
	dri-devel@lists.freedesktop.org,
	Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: Re: [PATCH 1/2] drm/i915/display/vlv_dsi: Do not skip panel_pwr_cycle_delay when disabling the panel
Date: Wed, 7 Apr 2021 16:57:36 +0300	[thread overview]
Message-ID: <YG26UEx8XI5vX3P0@intel.com> (raw)
In-Reply-To: <5f54a568-c81a-a54c-cbaf-2c111269c046@redhat.com>

On Wed, Apr 07, 2021 at 03:50:35PM +0200, Hans de Goede wrote:
> Hi,
> 
> On 4/7/21 2:34 PM, Ville Syrjälä wrote:
> > On Tue, Apr 06, 2021 at 03:57:32PM +0200, Hans de Goede wrote:
> >> Hi,
> >>
> >> On 3/25/21 12:48 PM, Hans de Goede wrote:
> >>> After the recently added commit fe0f1e3bfdfe ("drm/i915: Shut down
> >>> displays gracefully on reboot"), the DSI panel on a Cherry Trail based
> >>> Predia Basic tablet would no longer properly light up after reboot.
> >>>
> >>> I've managed to reproduce this without rebooting by doing:
> >>> chvt 3; echo 1 > /sys/class/graphics/fb0/blank;\
> >>> echo 0 > /sys/class/graphics/fb0/blank
> >>>
> >>> Which rapidly turns the panel off and back on again.
> >>>
> >>> The vlv_dsi.c code uses an intel_dsi_msleep() helper for the various delays
> >>> used for panel on/off, since starting with MIPI-sequences version >= 3 the
> >>> delays are already included inside the MIPI-sequences.
> >>>
> >>> The problems exposed by the "Shut down displays gracefully on reboot"
> >>> change, show that using this helper for the panel_pwr_cycle_delay is
> >>> not the right thing to do. This has not been noticed until now because
> >>> normally the panel never is cycled off and directly on again in quick
> >>> succession.
> >>>
> >>> Change the msleep for the panel_pwr_cycle_delay to a normal msleep()
> >>> call to avoid the panel staying black after a quick off + on cycle.
> >>>
> >>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >>> Fixes: fe0f1e3bfdfe ("drm/i915: Shut down displays gracefully on reboot")
> >>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> >>
> >> Ping? Ville AFAICT this is ready for merging, can you review this please so that I can push it to drm-intel-next ?
> > 
> > Didn't get the original mail, but lgtm.
> 
> Yeah, these bounced I mentioned that in a p.s. in one of the emails
> in our private threads about the mail issues, with patchwork links,
> but I guess the p.s. was hidden in all the other stuff in that thread.
> Anyways this is solved now.
> 
> > Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Thank you, note this is patch 1/2 does the Reviewed-by apply to
> both?  Patch 2/2 is here:
> 
> https://patchwork.freedesktop.org/patch/425983/

That one looks good as well.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> 
> Regards,
> 
> Hans
> 
> 
> 
> 
> >>> ---
> >>>  drivers/gpu/drm/i915/display/vlv_dsi.c | 4 ++--
> >>>  1 file changed, 2 insertions(+), 2 deletions(-)
> >>>
> >>> diff --git a/drivers/gpu/drm/i915/display/vlv_dsi.c b/drivers/gpu/drm/i915/display/vlv_dsi.c
> >>> index d5a3f69c5df3..38d5a1f3ded5 100644
> >>> --- a/drivers/gpu/drm/i915/display/vlv_dsi.c
> >>> +++ b/drivers/gpu/drm/i915/display/vlv_dsi.c
> >>> @@ -996,14 +996,14 @@ static void intel_dsi_post_disable(struct intel_atomic_state *state,
> >>>  	 * FIXME As we do with eDP, just make a note of the time here
> >>>  	 * and perform the wait before the next panel power on.
> >>>  	 */
> >>> -	intel_dsi_msleep(intel_dsi, intel_dsi->panel_pwr_cycle_delay);
> >>> +	msleep(intel_dsi->panel_pwr_cycle_delay);
> >>>  }
> >>>  
> >>>  static void intel_dsi_shutdown(struct intel_encoder *encoder)
> >>>  {
> >>>  	struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);
> >>>  
> >>> -	intel_dsi_msleep(intel_dsi, intel_dsi->panel_pwr_cycle_delay);
> >>> +	msleep(intel_dsi->panel_pwr_cycle_delay);
> >>>  }
> >>>  
> >>>  static bool intel_dsi_get_hw_state(struct intel_encoder *encoder,
> >>>
> > 

-- 
Ville Syrjälä
Intel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
	dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/2] drm/i915/display/vlv_dsi: Do not skip panel_pwr_cycle_delay when disabling the panel
Date: Wed, 7 Apr 2021 16:57:36 +0300	[thread overview]
Message-ID: <YG26UEx8XI5vX3P0@intel.com> (raw)
In-Reply-To: <5f54a568-c81a-a54c-cbaf-2c111269c046@redhat.com>

On Wed, Apr 07, 2021 at 03:50:35PM +0200, Hans de Goede wrote:
> Hi,
> 
> On 4/7/21 2:34 PM, Ville Syrjälä wrote:
> > On Tue, Apr 06, 2021 at 03:57:32PM +0200, Hans de Goede wrote:
> >> Hi,
> >>
> >> On 3/25/21 12:48 PM, Hans de Goede wrote:
> >>> After the recently added commit fe0f1e3bfdfe ("drm/i915: Shut down
> >>> displays gracefully on reboot"), the DSI panel on a Cherry Trail based
> >>> Predia Basic tablet would no longer properly light up after reboot.
> >>>
> >>> I've managed to reproduce this without rebooting by doing:
> >>> chvt 3; echo 1 > /sys/class/graphics/fb0/blank;\
> >>> echo 0 > /sys/class/graphics/fb0/blank
> >>>
> >>> Which rapidly turns the panel off and back on again.
> >>>
> >>> The vlv_dsi.c code uses an intel_dsi_msleep() helper for the various delays
> >>> used for panel on/off, since starting with MIPI-sequences version >= 3 the
> >>> delays are already included inside the MIPI-sequences.
> >>>
> >>> The problems exposed by the "Shut down displays gracefully on reboot"
> >>> change, show that using this helper for the panel_pwr_cycle_delay is
> >>> not the right thing to do. This has not been noticed until now because
> >>> normally the panel never is cycled off and directly on again in quick
> >>> succession.
> >>>
> >>> Change the msleep for the panel_pwr_cycle_delay to a normal msleep()
> >>> call to avoid the panel staying black after a quick off + on cycle.
> >>>
> >>> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >>> Fixes: fe0f1e3bfdfe ("drm/i915: Shut down displays gracefully on reboot")
> >>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> >>
> >> Ping? Ville AFAICT this is ready for merging, can you review this please so that I can push it to drm-intel-next ?
> > 
> > Didn't get the original mail, but lgtm.
> 
> Yeah, these bounced I mentioned that in a p.s. in one of the emails
> in our private threads about the mail issues, with patchwork links,
> but I guess the p.s. was hidden in all the other stuff in that thread.
> Anyways this is solved now.
> 
> > Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Thank you, note this is patch 1/2 does the Reviewed-by apply to
> both?  Patch 2/2 is here:
> 
> https://patchwork.freedesktop.org/patch/425983/

That one looks good as well.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> 
> Regards,
> 
> Hans
> 
> 
> 
> 
> >>> ---
> >>>  drivers/gpu/drm/i915/display/vlv_dsi.c | 4 ++--
> >>>  1 file changed, 2 insertions(+), 2 deletions(-)
> >>>
> >>> diff --git a/drivers/gpu/drm/i915/display/vlv_dsi.c b/drivers/gpu/drm/i915/display/vlv_dsi.c
> >>> index d5a3f69c5df3..38d5a1f3ded5 100644
> >>> --- a/drivers/gpu/drm/i915/display/vlv_dsi.c
> >>> +++ b/drivers/gpu/drm/i915/display/vlv_dsi.c
> >>> @@ -996,14 +996,14 @@ static void intel_dsi_post_disable(struct intel_atomic_state *state,
> >>>  	 * FIXME As we do with eDP, just make a note of the time here
> >>>  	 * and perform the wait before the next panel power on.
> >>>  	 */
> >>> -	intel_dsi_msleep(intel_dsi, intel_dsi->panel_pwr_cycle_delay);
> >>> +	msleep(intel_dsi->panel_pwr_cycle_delay);
> >>>  }
> >>>  
> >>>  static void intel_dsi_shutdown(struct intel_encoder *encoder)
> >>>  {
> >>>  	struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);
> >>>  
> >>> -	intel_dsi_msleep(intel_dsi, intel_dsi->panel_pwr_cycle_delay);
> >>> +	msleep(intel_dsi->panel_pwr_cycle_delay);
> >>>  }
> >>>  
> >>>  static bool intel_dsi_get_hw_state(struct intel_encoder *encoder,
> >>>
> > 

-- 
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2021-04-07 13:57 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-25 11:48 [PATCH 1/2] drm/i915/display/vlv_dsi: Do not skip panel_pwr_cycle_delay when disabling the panel Hans de Goede
2021-03-25 11:48 ` [Intel-gfx] " Hans de Goede
2021-03-25 11:48 ` [PATCH 2/2] drm/i915/display/vlv_dsi: Move panel_pwr_cycle_delay to next panel-on Hans de Goede
2021-03-25 11:48   ` [Intel-gfx] " Hans de Goede
2021-03-25 21:39 ` [Intel-gfx] ✗ Fi.CI.DOCS: warning for series starting with [1/2] drm/i915/display/vlv_dsi: Do not skip panel_pwr_cycle_delay when disabling the panel Patchwork
2021-03-25 22:05 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-03-26  3:05 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-04-06 13:57 ` [PATCH 1/2] " Hans de Goede
2021-04-06 13:57   ` [Intel-gfx] " Hans de Goede
2021-04-07 12:34   ` Ville Syrjälä
2021-04-07 12:34     ` [Intel-gfx] " Ville Syrjälä
2021-04-07 13:50     ` Hans de Goede
2021-04-07 13:50       ` [Intel-gfx] " Hans de Goede
2021-04-07 13:57       ` Ville Syrjälä [this message]
2021-04-07 13:57         ` Ville Syrjälä
2021-04-12  9:35         ` Hans de Goede
2021-04-12  9:35           ` [Intel-gfx] " Hans de Goede

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=YG26UEx8XI5vX3P0@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hdegoede@redhat.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.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.