Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/mtl: Re-use ADL-P's "DC off" power well

As with ADL-P, MTL's "DC off" power well should be a dependency of the
PGC and PGD power wells, not the entire PG2 well. In fact, the DC5/DC6
requirements between the two platforms are the same, so the Xe_LPD "DC
off" well definition can just be re-used for Xe_LPD+.

Bspec: 49193
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230418220446.2205509-3-radhakrishna.sripada@intel.com

authored by

Matt Roper and committed by
Radhakrishna Sripada
0c8d9870 88c48793

+1 -15
+1 -15
drivers/gpu/drm/i915/display/intel_display_power_map.c
··· 1456 1456 XELPDP_PW_2_POWER_DOMAINS, 1457 1457 POWER_DOMAIN_INIT); 1458 1458 1459 - I915_DECL_PW_DOMAINS(xelpdp_pwdoms_dc_off, 1460 - XELPDP_PW_2_POWER_DOMAINS, 1461 - POWER_DOMAIN_AUDIO_MMIO, 1462 - POWER_DOMAIN_MODESET, 1463 - POWER_DOMAIN_AUX_A, 1464 - POWER_DOMAIN_AUX_B, 1465 - POWER_DOMAIN_DC_OFF, 1466 - POWER_DOMAIN_INIT); 1467 - 1468 1459 I915_DECL_PW_DOMAINS(xelpdp_pwdoms_aux_tc1, 1469 1460 POWER_DOMAIN_AUX_USBC1, 1470 1461 POWER_DOMAIN_AUX_TBT1); ··· 1474 1483 1475 1484 static const struct i915_power_well_desc xelpdp_power_wells_main[] = { 1476 1485 { 1477 - .instances = &I915_PW_INSTANCES( 1478 - I915_PW("DC_off", &xelpdp_pwdoms_dc_off, 1479 - .id = SKL_DISP_DC_OFF), 1480 - ), 1481 - .ops = &gen9_dc_off_power_well_ops, 1482 - }, { 1483 1486 .instances = &I915_PW_INSTANCES( 1484 1487 I915_PW("PW_2", &xelpdp_pwdoms_pw_2, 1485 1488 .hsw.idx = ICL_PW_CTL_IDX_PW_2, ··· 1530 1545 static const struct i915_power_well_desc_list xelpdp_power_wells[] = { 1531 1546 I915_PW_DESCRIPTORS(i9xx_power_wells_always_on), 1532 1547 I915_PW_DESCRIPTORS(icl_power_wells_pw_1), 1548 + I915_PW_DESCRIPTORS(xelpd_power_wells_dc_off), 1533 1549 I915_PW_DESCRIPTORS(xelpdp_power_wells_main), 1534 1550 }; 1535 1551