public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] i915/dp: add intel_dp_tps3_supported helper
@ 2015-08-27 10:25 Jani Nikula
  2015-08-27 10:25 ` [PATCH v2 2/3] drm/i915/dp: use the drm dp helper for determining sink tps3 support Jani Nikula
  2015-08-27 10:25 ` [PATCH v2 3/3] drm/i915/dp: move TPS3 logic to where it's used Jani Nikula
  0 siblings, 2 replies; 16+ messages in thread
From: Jani Nikula @ 2015-08-27 10:25 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

We can add this to drm dp helpers later.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 9e90a2be22fa..12096c1df622 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1222,6 +1222,13 @@ intel_dp_sink_rates(struct intel_dp *intel_dp, const int **sink_rates)
 	return (intel_dp_max_link_bw(intel_dp) >> 3) + 1;
 }
 
+static inline bool
+intel_dp_tps3_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
+{
+	return dpcd[DP_DPCD_REV] >= 0x12 &&
+		dpcd[DP_MAX_LANE_COUNT] & DP_TPS3_SUPPORTED;
+}
+
 static bool intel_dp_source_supports_hbr2(struct drm_device *dev)
 {
 	/* WaDisableHBR2:skl */
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-09-03  8:17 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 10:25 [PATCH v2 1/3] i915/dp: add intel_dp_tps3_supported helper Jani Nikula
2015-08-27 10:25 ` [PATCH v2 2/3] drm/i915/dp: use the drm dp helper for determining sink tps3 support Jani Nikula
2015-09-01  9:37   ` Daniel Vetter
2015-09-03  8:20     ` Jani Nikula
2015-08-27 10:25 ` [PATCH v2 3/3] drm/i915/dp: move TPS3 logic to where it's used Jani Nikula
2015-08-27 12:15   ` Ville Syrjälä
2015-08-27 13:23     ` [PATCH 0/3] follow-up Jani Nikula
2015-08-27 13:23       ` [PATCH 1/3] drm/i915: ignore link rate in TPS3 selection Jani Nikula
2015-08-27 13:23       ` [PATCH 2/3] drm/i915: add yesno utility function Jani Nikula
2015-08-27 13:28         ` Chris Wilson
2015-08-27 13:53           ` Jani Nikula
2015-08-31 14:23             ` Jani Nikula
2015-08-31 14:33               ` Chris Wilson
2015-09-02  9:17                 ` Daniel Vetter
2015-08-27 13:23       ` [PATCH 3/3] drm/i915: use the yesno helper for logging Jani Nikula
2015-08-29 19:00   ` [PATCH v2 3/3] drm/i915/dp: move TPS3 logic to where it's used shuang.he

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox