From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Imre Deak <imre.deak@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH 3/3] drm/i915/icl: Fix TypeC legacy DP HPD handling
Date: Thu, 13 Dec 2018 13:08:11 -0800 [thread overview]
Message-ID: <20181213210811.GD1681@intel.com> (raw)
In-Reply-To: <20181213194850.25406-4-imre.deak@intel.com>
On Thu, Dec 13, 2018 at 09:48:50PM +0200, Imre Deak wrote:
> TypeC legacy DP ports can't be implied the same way we implied TypeC
> legacy HDMI ports in the previous patch. So that we still have
> functioning DP legacy ports, mark them as legacy at the first connect
> event. After that we treat the port the same way as in the HDMI case,
> that is keep it in legacy mode whenever we are not suspended.
>
> Eventually - instead of the methods in this and the previous patch -
> we'll depend on an explicit way to detect both HDMI and DP TypeC legacy
> ports either via a VBT option or a HW/FW register.
>
> Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: José Roberto de Souza <jose.souza@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/i915/intel_dp.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index 19e49adab548..f5de0d079ab5 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -5220,8 +5220,14 @@ static bool icl_tc_port_connected(struct drm_i915_private *dev_priv,
> bool is_legacy, is_typec, is_tbt;
> u32 dpsp;
>
> - is_legacy = intel_dig_port->tc_legacy_port ||
> + /*
> + * TODO: Depend only on the tc_legacy_port flag to identify legacy
> + * ports, once we have an explicit detection method for legacy mode
> + * (via VBT or a HW/FW register).
> + */
> + intel_dig_port->tc_legacy_port |=
> I915_READ(SDEISR) & SDE_TC_HOTPLUG_ICP(tc_port);
> + is_legacy = intel_dig_port->tc_legacy_port;
>
> /*
> * The spec says we shouldn't be using the ISR bits for detecting
> --
> 2.13.2
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-12-13 21:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-13 19:48 [PATCH 0/3] drm/i915/icl: Fix TypeC legacy HPD handling Imre Deak
2018-12-13 19:48 ` [PATCH 1/3] drm/i915/icl: Add a debug print for TypeC port disconnection Imre Deak
2018-12-13 20:27 ` Rodrigo Vivi
2018-12-13 19:48 ` [PATCH 2/3] drm/i915/icl: Fix TypeC legacy HDMI HPD handling Imre Deak
2018-12-13 21:06 ` Rodrigo Vivi
2018-12-13 23:25 ` Imre Deak
2018-12-14 22:22 ` Rodrigo Vivi
2018-12-14 23:25 ` Imre Deak
2018-12-17 7:05 ` Rodrigo Vivi
2018-12-17 17:38 ` Imre Deak
2018-12-13 19:48 ` [PATCH 3/3] drm/i915/icl: Fix TypeC legacy DP " Imre Deak
2018-12-13 21:08 ` Rodrigo Vivi [this message]
2018-12-13 19:54 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Fix TypeC legacy " Patchwork
2018-12-13 20:18 ` ✗ Fi.CI.BAT: failure " 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=20181213210811.GD1681@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@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.