public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Jesse Barnes <jbarnes@virtuousgeek.org>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/6] drm/i915: don't set sink DPMS status on eDP
Date: Mon, 07 Apr 2014 11:36:46 +0300	[thread overview]
Message-ID: <87lhvha63l.fsf@intel.com> (raw)
In-Reply-To: <1396653132-908-4-git-send-email-jbarnes@virtuousgeek.org>

On Sat, 05 Apr 2014, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> This only applies to external sinks.

[citation needed]

eDP 1.3 has SET_POWER_CAPABLE (bit 7) in in DPCD
EDP_GENERAL_CAPABILITY_REGISTER_1 (register 0x702) which indicates
whether panel power state can be controlled through DP_SET_POWER. Even
when the panel is not capable, writing to DP_SET_POWER should have no
effect on the panel.

BR,
Jani.

>
> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> ---
>  drivers/gpu/drm/i915/intel_dp.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index 7642415..df7cc11 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -1783,7 +1783,8 @@ static void intel_disable_dp(struct intel_encoder *encoder)
>  	 * ensure that we have vdd while we switch off the panel. */
>  	intel_edp_panel_vdd_on(intel_dp);
>  	intel_edp_backlight_off(intel_dp);
> -	intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF);
> +	if (!is_edp(intel_dp))
> +		intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_OFF);
>  	intel_edp_panel_off(intel_dp);
>  
>  	/* cpu edp my only be disable _after_ the cpu pipe/plane is disabled. */
> @@ -1821,7 +1822,8 @@ static void intel_enable_dp(struct intel_encoder *encoder)
>  		return;
>  
>  	intel_edp_panel_vdd_on(intel_dp);
> -	intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_ON);
> +	if (!is_edp(intel_dp))
> +		intel_dp_sink_dpms(intel_dp, DRM_MODE_DPMS_ON);
>  	intel_dp_start_link_train(intel_dp);
>  	intel_edp_panel_on(intel_dp);
>  	edp_panel_vdd_off(intel_dp, true);
> -- 
> 1.8.4.2
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Jani Nikula, Intel Open Source Technology Center

  reply	other threads:[~2014-04-07  8:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-04 23:12 [PATCH 1/6] drm/i915: use VBT to determine whether to enumerate the VGA port Jesse Barnes
2014-04-04 23:12 ` [PATCH 2/6] drm/i915: remove unnecessary delays in intel_dp_link_down Jesse Barnes
2014-04-05  6:26   ` Chris Wilson
2014-04-11 21:25     ` [PATCH 1/2] drm/i915: remove unexplained vblank wait in the DP off code Jesse Barnes
2014-04-11 21:25       ` [PATCH 2/2] drm/i915: remove misplaced panel wait in " Jesse Barnes
2014-04-12  7:03       ` [PATCH 1/2] drm/i915: remove unexplained vblank wait in the " Chris Wilson
2014-04-17 12:21       ` Ville Syrjälä
2014-04-22 19:17         ` Daniel Vetter
2014-04-04 23:12 ` [PATCH 3/6] drm/i915: warn when a vblank wait times out Jesse Barnes
2014-04-05  6:29   ` Chris Wilson
2014-04-05 15:22     ` Daniel Vetter
2014-04-05 18:52       ` Jesse Barnes
2014-04-07  6:20         ` Daniel Vetter
2014-04-04 23:12 ` [PATCH 4/6] drm/i915: don't set sink DPMS status on eDP Jesse Barnes
2014-04-07  8:36   ` Jani Nikula [this message]
2014-04-07 14:58     ` Jesse Barnes
2014-04-04 23:12 ` [PATCH 5/6] drm/i915/vlv: move DP enable after plane/pipe enable per latest spec Jesse Barnes
2014-04-04 23:12 ` [PATCH 6/6] drm/i915/vlv: re-order TX lane reset " Jesse Barnes
2014-05-29 21:47 ` [PATCH 1/6] drm/i915: use VBT to determine whether to enumerate the VGA port Ben Widawsky
2014-06-02  8:24   ` Daniel Vetter

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=87lhvha63l.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jbarnes@virtuousgeek.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