Commit fcd33d43 authored by Arun R Murthy's avatar Arun R Murthy Committed by Joonas Lahtinen

drm/i915/display: BMG supports UHBR13.5

UHBR20 is not supported by battlemage and the maximum link rate
supported is UHBR13.5

v2: Replace IS_DGFX with IS_BATTLEMAGE (Jani)

HSD: 16023263677
Signed-off-by: default avatarArun R Murthy <arun.r.murthy@intel.com>
Reviewed-by: default avatarMika Kahola <mika.kahola@intel.com>
Fixes: 98b1c87a ("drm/i915/xe2hpd: Set maximum DP rate to UHBR13.5")
Signed-off-by: default avatarSuraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240827081205.136569-1-arun.r.murthy@intel.com
(cherry picked from commit 9c2338ac4543e0fab3a1e0f9f025591e0f0d9f8f)
Signed-off-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
parent 9498f2e2
...@@ -531,6 +531,10 @@ static void ...@@ -531,6 +531,10 @@ static void
intel_dp_set_source_rates(struct intel_dp *intel_dp) intel_dp_set_source_rates(struct intel_dp *intel_dp)
{ {
/* The values must be in increasing order */ /* The values must be in increasing order */
static const int bmg_rates[] = {
162000, 216000, 243000, 270000, 324000, 432000, 540000, 675000,
810000, 1000000, 1350000,
};
static const int mtl_rates[] = { static const int mtl_rates[] = {
162000, 216000, 243000, 270000, 324000, 432000, 540000, 675000, 162000, 216000, 243000, 270000, 324000, 432000, 540000, 675000,
810000, 1000000, 2000000, 810000, 1000000, 2000000,
...@@ -561,8 +565,13 @@ intel_dp_set_source_rates(struct intel_dp *intel_dp) ...@@ -561,8 +565,13 @@ intel_dp_set_source_rates(struct intel_dp *intel_dp)
intel_dp->source_rates || intel_dp->num_source_rates); intel_dp->source_rates || intel_dp->num_source_rates);
if (DISPLAY_VER(dev_priv) >= 14) { if (DISPLAY_VER(dev_priv) >= 14) {
if (IS_BATTLEMAGE(dev_priv)) {
source_rates = bmg_rates;
size = ARRAY_SIZE(bmg_rates);
} else {
source_rates = mtl_rates; source_rates = mtl_rates;
size = ARRAY_SIZE(mtl_rates); size = ARRAY_SIZE(mtl_rates);
}
max_rate = mtl_max_source_rate(intel_dp); max_rate = mtl_max_source_rate(intel_dp);
} else if (DISPLAY_VER(dev_priv) >= 11) { } else if (DISPLAY_VER(dev_priv) >= 11) {
source_rates = icl_rates; source_rates = icl_rates;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment