Skip to content

Commit fcd33d4

Browse files
armurthyjlahtine-intel
authored andcommitted
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: Arun R Murthy <[email protected]> Reviewed-by: Mika Kahola <[email protected]> Fixes: 98b1c87 ("drm/i915/xe2hpd: Set maximum DP rate to UHBR13.5") Signed-off-by: Suraj Kandpal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 9c2338a) Signed-off-by: Joonas Lahtinen <[email protected]>
1 parent 9498f2e commit fcd33d4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,10 @@ static void
531531
intel_dp_set_source_rates(struct intel_dp *intel_dp)
532532
{
533533
/* The values must be in increasing order */
534+
static const int bmg_rates[] = {
535+
162000, 216000, 243000, 270000, 324000, 432000, 540000, 675000,
536+
810000, 1000000, 1350000,
537+
};
534538
static const int mtl_rates[] = {
535539
162000, 216000, 243000, 270000, 324000, 432000, 540000, 675000,
536540
810000, 1000000, 2000000,
@@ -561,8 +565,13 @@ intel_dp_set_source_rates(struct intel_dp *intel_dp)
561565
intel_dp->source_rates || intel_dp->num_source_rates);
562566

563567
if (DISPLAY_VER(dev_priv) >= 14) {
564-
source_rates = mtl_rates;
565-
size = ARRAY_SIZE(mtl_rates);
568+
if (IS_BATTLEMAGE(dev_priv)) {
569+
source_rates = bmg_rates;
570+
size = ARRAY_SIZE(bmg_rates);
571+
} else {
572+
source_rates = mtl_rates;
573+
size = ARRAY_SIZE(mtl_rates);
574+
}
566575
max_rate = mtl_max_source_rate(intel_dp);
567576
} else if (DISPLAY_VER(dev_priv) >= 11) {
568577
source_rates = icl_rates;

0 commit comments

Comments
 (0)