From: Clint Taylor <clinton.a.taylor@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: Intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: reboot notifier delay for eDP panels
Date: Tue, 12 Jan 2016 09:06:24 -0800 [thread overview]
Message-ID: <56953290.2090305@intel.com> (raw)
In-Reply-To: <20160112132156.GT23290@intel.com>
On 01/12/2016 05:21 AM, Ville Syrjälä wrote:
> On Mon, Jan 11, 2016 at 01:52:17PM -0800, clinton.a.taylor@intel.com wrote:
>> From: Clint Taylor <clinton.a.taylor@intel.com>
>>
>> Add reboot notifier for all platforms. This guarantees T12 delay
>> compliance during reboot cycles when pre-os enables the panel within
>> 500ms.
>>
>> Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
>> ---
>> drivers/gpu/drm/i915/intel_dp.c | 11 ++++++++---
>> 1 file changed, 8 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
>> index 796e3d3..dbbd27a 100644
>> --- a/drivers/gpu/drm/i915/intel_dp.c
>> +++ b/drivers/gpu/drm/i915/intel_dp.c
>> @@ -126,6 +126,7 @@ static struct intel_dp *intel_attached_dp(struct drm_connector *connector)
>> static void intel_dp_link_down(struct intel_dp *intel_dp);
>> static bool edp_panel_vdd_on(struct intel_dp *intel_dp);
>> static void edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync);
>> +static void edp_panel_off(struct intel_dp *intel_dp);
>> static void vlv_init_panel_power_sequencer(struct intel_dp *intel_dp);
>> static void vlv_steal_power_sequencer(struct drm_device *dev,
>> enum pipe pipe);
>> @@ -596,6 +597,10 @@ static int edp_notify_handler(struct notifier_block *this, unsigned long code,
>> I915_WRITE(pp_ctrl_reg, PANEL_UNLOCK_REGS | PANEL_POWER_OFF);
>> msleep(intel_dp->panel_power_cycle_delay);
>> }
>> + else
>> + {
>> + edp_panel_off(intel_dp);
>> + }
>
> I don't think that actually waits for the power cycle delay. Also
> you can't call it without having vdd already enabled unless you
> specifically want to see a WARN.
>
edp_panel_off() does wait for panel off time. This has also been
confirmed with a scope watching vdd.
> I suppose you could just do something along these lines:
>
> if (have_panel_power || have_panel_vdd) {
Good catch. I will add the check to make sure panel power is on before
calling edp_panel_off(). If the panel power was off I will still need to
check to make sure it has been off for the required time.
> edp_panel_vdd_on
> edp_panel_off
> }
> wait_panel_power_cycle
>
> Also should change VLV/CHV to do it the same way.
VLV/CHV PPS handles things a little different and the existing code was
required to prevent VDD from asserting during the reboot cycle. We
increased the delay to MAX the VLV handler to prevent the VDD from
asserting once the PPS cycle completed. I will test on my CHV to confirm
the old handler is still required.
>
>>
>> pps_unlock(intel_dp);
>>
>> @@ -5796,10 +5801,10 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,
>> }
>> mutex_unlock(&dev->mode_config.mutex);
>>
>> - if (IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev)) {
>> - intel_dp->edp_notifier.notifier_call = edp_notify_handler;
>> - register_reboot_notifier(&intel_dp->edp_notifier);
>> + intel_dp->edp_notifier.notifier_call = edp_notify_handler;
>> + register_reboot_notifier(&intel_dp->edp_notifier);
>>
>> + if (IS_VALLEYVIEW(dev) || IS_CHERRYVIEW(dev)) {
>> /*
>> * Figure out the current pipe for the initial backlight setup.
>> * If the current pipe isn't valid, try the PPS pipe, and if that
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-01-12 17:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 21:52 [PATCH] drm/i915: reboot notifier delay for eDP panels clinton.a.taylor
2016-01-12 9:16 ` ✗ warning: Fi.CI.BAT Patchwork
2016-01-12 13:21 ` [PATCH] drm/i915: reboot notifier delay for eDP panels Ville Syrjälä
2016-01-12 17:06 ` Clint Taylor [this message]
2016-01-13 12:14 ` Ville Syrjälä
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=56953290.2090305@intel.com \
--to=clinton.a.taylor@intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@linux.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.