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 v2 2/4] drm/i915/bios: Parse the VBT TypeC and Thunderbolt port flags
Date: Mon, 17 Dec 2018 12:49:31 -0800 [thread overview]
Message-ID: <20181217204931.GF54091@intel.com> (raw)
In-Reply-To: <20181214182703.18865-3-imre.deak@intel.com>
On Fri, Dec 14, 2018 at 08:27:01PM +0200, Imre Deak wrote:
> This is needed by the next patch to determine if a DDI TypeC port is
> physically wired to a legacy DP or legacy HDMI connector or if the port
> is wired to a USB-C/Thunderbolt connector.
>
> Cc: Jani Nikula <jani.nikula@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/i915_drv.h | 2 ++
> drivers/gpu/drm/i915/intel_bios.c | 11 +++++++++--
> 2 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index e70707e79386..fd3cccaac89e 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -935,6 +935,8 @@ struct ddi_vbt_port_info {
> uint8_t supports_hdmi:1;
> uint8_t supports_dp:1;
> uint8_t supports_edp:1;
> + uint8_t supports_typec_usb:1;
> + uint8_t supports_tbt:1;
>
> uint8_t alternate_aux_channel;
> uint8_t alternate_ddc_pin;
> diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
> index 6d3e0260d49c..e59a5af45e94 100644
> --- a/drivers/gpu/drm/i915/intel_bios.c
> +++ b/drivers/gpu/drm/i915/intel_bios.c
> @@ -1386,8 +1386,15 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv, enum port port,
> info->supports_dp = is_dp;
> info->supports_edp = is_edp;
>
> - DRM_DEBUG_KMS("Port %c VBT info: DP:%d HDMI:%d DVI:%d EDP:%d CRT:%d\n",
> - port_name(port), is_dp, is_hdmi, is_dvi, is_edp, is_crt);
> + if (bdb_version >= 195)
> + info->supports_typec_usb = child->dp_usb_type_c;
> +
> + if (bdb_version >= 209)
> + info->supports_tbt = child->tbt;
> +
> + DRM_DEBUG_KMS("Port %c VBT info: DP:%d HDMI:%d DVI:%d EDP:%d CRT:%d TCUSB:%d TBT:%d\n",
> + port_name(port), is_dp, is_hdmi, is_dvi, is_edp, is_crt,
> + info->supports_typec_usb, info->supports_tbt);
>
> if (is_edp && is_dvi)
> DRM_DEBUG_KMS("Internal DP port %c is TMDS compatible\n",
> --
> 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-17 20:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 18:26 [PATCH v2 0/4] drm/i915/icl: Fix TypeC Legacy HPD handling Imre Deak
2018-12-14 18:27 ` [PATCH v2 1/4] drm/i915/icl: Add a debug print for TypeC port disconnection Imre Deak
2018-12-14 18:27 ` [PATCH v2 2/4] drm/i915/bios: Parse the VBT TypeC and Thunderbolt port flags Imre Deak
2018-12-17 20:49 ` Rodrigo Vivi [this message]
2018-12-14 18:27 ` [PATCH v2 3/4] drm/i915/icl: Fix HPD handling for TypeC legacy ports Imre Deak
2018-12-17 18:05 ` Rodrigo Vivi
2018-12-17 19:35 ` Imre Deak
2018-12-17 20:49 ` Rodrigo Vivi
2018-12-14 18:27 ` [PATCH v2 4/4] drm/i915/icl: Add fallback detection method " Imre Deak
2018-12-18 11:05 ` Kahola, Mika
2018-12-14 19:17 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/icl: Fix TypeC legacy HPD handling (rev2) Patchwork
2018-12-14 19:19 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-12-14 19:36 ` ✓ Fi.CI.BAT: success " Patchwork
2018-12-14 21:28 ` ✓ Fi.CI.IGT: " Patchwork
2018-12-18 15:12 ` Imre Deak
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=20181217204931.GF54091@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox