Skip to content

Commit 7cb3eb3

Browse files
mkaholaRadhakrishna Sripada
authored andcommitted
drm/i915/mtl: Add DP rates
Add DP rates for Meteorlake. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Signed-off-by: Mika Kahola <mika.kahola@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230413212443.1504245-2-radhakrishna.sripada@intel.com
1 parent 446a20c commit 7cb3eb3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,11 @@ static int ehl_max_source_rate(struct intel_dp *intel_dp)
420420
return 810000;
421421
}
422422

423+
static int mtl_max_source_rate(struct intel_dp *intel_dp)
424+
{
425+
return intel_dp_is_edp(intel_dp) ? 675000 : 810000;
426+
}
427+
423428
static int vbt_max_link_rate(struct intel_dp *intel_dp)
424429
{
425430
struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base;
@@ -444,6 +449,10 @@ static void
444449
intel_dp_set_source_rates(struct intel_dp *intel_dp)
445450
{
446451
/* The values must be in increasing order */
452+
static const int mtl_rates[] = {
453+
162000, 216000, 243000, 270000, 324000, 432000, 540000, 675000,
454+
810000,
455+
};
447456
static const int icl_rates[] = {
448457
162000, 216000, 270000, 324000, 432000, 540000, 648000, 810000,
449458
1000000, 1350000,
@@ -469,7 +478,11 @@ intel_dp_set_source_rates(struct intel_dp *intel_dp)
469478
drm_WARN_ON(&dev_priv->drm,
470479
intel_dp->source_rates || intel_dp->num_source_rates);
471480

472-
if (DISPLAY_VER(dev_priv) >= 11) {
481+
if (DISPLAY_VER(dev_priv) >= 14) {
482+
source_rates = mtl_rates;
483+
size = ARRAY_SIZE(mtl_rates);
484+
max_rate = mtl_max_source_rate(intel_dp);
485+
} else if (DISPLAY_VER(dev_priv) >= 11) {
473486
source_rates = icl_rates;
474487
size = ARRAY_SIZE(icl_rates);
475488
if (IS_DG2(dev_priv))

0 commit comments

Comments
 (0)