diff mbox series

[CI,1/5] drm/i915: simplify setting of ddi_io_power_domain

Message ID 20191016033841.6888-1-lucas.demarchi@intel.com (mailing list archive)
State New, archived
Headers show
Series [CI,1/5] drm/i915: simplify setting of ddi_io_power_domain | expand

Commit Message

Lucas De Marchi Oct. 16, 2019, 3:38 a.m. UTC
Instead of the ever growing switch, just compute the ddi io power domain
based on the port number.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191011010907.103309-2-lucas.demarchi@intel.com
---
 drivers/gpu/drm/i915/display/intel_ddi.c | 43 ++----------------------
 1 file changed, 3 insertions(+), 40 deletions(-)

Comments

Lucas De Marchi Oct. 17, 2019, 5:49 a.m. UTC | #1
On Wed, Oct 16, 2019 at 8:05 PM Patchwork
<patchwork@emeril.freedesktop.org> wrote:
>
> == Series Details ==
>
> Series: series starting with [CI,1/5] drm/i915: simplify setting of ddi_io_power_domain (rev2)
> URL   : https://patchwork.freedesktop.org/series/68069/
> State : failure
>
> == Summary ==
>
> CI Bug Log - changes from CI_DRM_7114 -> Patchwork_14846
> ====================================================
>
> Summary
> -------
>
>   **FAILURE**
>
>   Serious unknown changes coming with Patchwork_14846 absolutely need to be
>   verified manually.
>
>   If you think the reported changes have nothing to do with the changes
>   introduced in Patchwork_14846, please notify your bug team to allow them
>   to document this new failure mode, which will reduce false positives in CI.
>
>   External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/index.html
>
> Possible new issues
> -------------------
>
>   Here are the unknown changes that may have been introduced in Patchwork_14846:
>
> ### IGT changes ###
>
> #### Possible regressions ####
>
>   * igt@i915_selftest@live_execlists:
>     - fi-icl-u2:          [PASS][1] -> [DMESG-FAIL][2]
>    [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-icl-u2/igt@i915_selftest@live_execlists.html
>    [2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-icl-u2/igt@i915_selftest@live_execlists.html
>     - fi-skl-6260u:       [PASS][3] -> [DMESG-FAIL][4]
>    [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-skl-6260u/igt@i915_selftest@live_execlists.html
>    [4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-skl-6260u/igt@i915_selftest@live_execlists.html
>
>   * igt@i915_selftest@live_gem_contexts:
>     - fi-cfl-8109u:       [PASS][5] -> [DMESG-FAIL][6]
>    [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-cfl-8109u/igt@i915_selftest@live_gem_contexts.html
>    [6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-cfl-8109u/igt@i915_selftest@live_gem_contexts.html
>

nothing really related to what these commits do.

Lucas De Marchi

>
> #### Suppressed ####
>
>   The following results come from untrusted machines, tests, or statuses.
>   They do not affect the overall result.
>
>   * igt@i915_selftest@live_execlists:
>     - {fi-icl-guc}:       NOTRUN -> [DMESG-FAIL][7]
>    [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-icl-guc/igt@i915_selftest@live_execlists.html
>
>
> Known issues
> ------------
>
>   Here are the changes found in Patchwork_14846 that come from known issues:
>
> ### IGT changes ###
>
> #### Issues hit ####
>
>   * igt@i915_pm_rpm@module-reload:
>     - fi-skl-6770hq:      [PASS][8] -> [FAIL][9] ([fdo#108511])
>    [8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-skl-6770hq/igt@i915_pm_rpm@module-reload.html
>    [9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-skl-6770hq/igt@i915_pm_rpm@module-reload.html
>
>   * igt@prime_self_import@basic-with_two_bos:
>     - fi-icl-u3:          [PASS][10] -> [DMESG-WARN][11] ([fdo#107724]) +1 similar issue
>    [10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-icl-u3/igt@prime_self_import@basic-with_two_bos.html
>    [11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-icl-u3/igt@prime_self_import@basic-with_two_bos.html
>
>
> #### Possible fixes ####
>
>   * igt@gem_ctx_create@basic-files:
>     - fi-bdw-gvtdvm:      [DMESG-WARN][12] -> [PASS][13]
>    [12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-bdw-gvtdvm/igt@gem_ctx_create@basic-files.html
>    [13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-bdw-gvtdvm/igt@gem_ctx_create@basic-files.html
>
>   * igt@gem_flink_basic@double-flink:
>     - fi-icl-u3:          [DMESG-WARN][14] ([fdo#107724]) -> [PASS][15] +2 similar issues
>    [14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-icl-u3/igt@gem_flink_basic@double-flink.html
>    [15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-icl-u3/igt@gem_flink_basic@double-flink.html
>
>   * igt@i915_selftest@live_execlists:
>     - fi-cfl-guc:         [DMESG-FAIL][16] -> [PASS][17]
>    [16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-cfl-guc/igt@i915_selftest@live_execlists.html
>    [17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-cfl-guc/igt@i915_selftest@live_execlists.html
>     - fi-cml-u:           [DMESG-FAIL][18] -> [PASS][19]
>    [18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-cml-u/igt@i915_selftest@live_execlists.html
>    [19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-cml-u/igt@i915_selftest@live_execlists.html
>     - fi-whl-u:           [INCOMPLETE][20] -> [PASS][21]
>    [20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-whl-u/igt@i915_selftest@live_execlists.html
>    [21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-whl-u/igt@i915_selftest@live_execlists.html
>     - fi-apl-guc:         [DMESG-FAIL][22] -> [PASS][23]
>    [22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-apl-guc/igt@i915_selftest@live_execlists.html
>    [23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-apl-guc/igt@i915_selftest@live_execlists.html
>
>   * igt@i915_selftest@live_gtt:
>     - {fi-icl-guc}:       [INCOMPLETE][24] ([fdo#107713]) -> [PASS][25]
>    [24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-icl-guc/igt@i915_selftest@live_gtt.html
>    [25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-icl-guc/igt@i915_selftest@live_gtt.html
>
>   * igt@kms_chamelium@common-hpd-after-suspend:
>     - fi-icl-u2:          [DMESG-WARN][26] ([fdo#102505] / [fdo#110390]) -> [PASS][27]
>    [26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-icl-u2/igt@kms_chamelium@common-hpd-after-suspend.html
>    [27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-icl-u2/igt@kms_chamelium@common-hpd-after-suspend.html
>
>
> #### Warnings ####
>
>   * igt@kms_chamelium@hdmi-hpd-fast:
>     - fi-kbl-7500u:       [FAIL][28] ([fdo#111407]) -> [FAIL][29] ([fdo#111045] / [fdo#111096])
>    [28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7114/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html
>    [29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html
>
>
>   {name}: This element is suppressed. This means it is ignored when computing
>           the status of the difference (SUCCESS, WARNING, or FAILURE).
>
>   [fdo#102505]: https://bugs.freedesktop.org/show_bug.cgi?id=102505
>   [fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
>   [fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
>   [fdo#108511]: https://bugs.freedesktop.org/show_bug.cgi?id=108511
>   [fdo#110390]: https://bugs.freedesktop.org/show_bug.cgi?id=110390
>   [fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
>   [fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
>   [fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
>   [fdo#111747]: https://bugs.freedesktop.org/show_bug.cgi?id=111747
>
>
> Participating hosts (52 -> 45)
> ------------------------------
>
>   Missing    (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-gdg-551 fi-icl-y fi-byt-clapper fi-bdw-samus
>
>
> Build changes
> -------------
>
>   * CI: CI-20190529 -> None
>   * Linux: CI_DRM_7114 -> Patchwork_14846
>
>   CI-20190529: 20190529
>   CI_DRM_7114: d9e909272a022597067d3ac2dfcedacd63c61af9 @ git://anongit.freedesktop.org/gfx-ci/linux
>   IGT_5231: e293051f8f99c72cb01d21e4b73a5928ea351eb3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
>   Patchwork_14846: bce36f1cca67960d086164b3f4c8e65a79cb75db @ git://anongit.freedesktop.org/gfx-ci/linux
>
>
> == Linux commits ==
>
> bce36f1cca67 drm/i915: prettify MST debug message
> 6e286c63d250 drm/i915: add pipe id/name to pipe mismatch logs
> 42901b61b4c8 drm/i915: remove extra new line on pipe_config mismatch
> e8a203530c07 drm/i915: fix port checks for MST support on gen >= 11
> e0cfb2012c7f drm/i915: simplify setting of ddi_io_power_domain
>
> == Logs ==
>
> For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14846/index.html
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Saarinen, Jani Oct. 18, 2019, 4:41 a.m. UTC | #2
Hi,

> -----Original Message-----
> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of Patchwork
> Sent: perjantai 18. lokakuuta 2019 5.42
> To: De Marchi, Lucas <lucas.demarchi@intel.com>
> Cc: intel-gfx@lists.freedesktop.org
> Subject: [Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [CI,1/5] drm/i915:
> simplify setting of ddi_io_power_domain (rev3)
> 
> == Series Details ==
> 
> Series: series starting with [CI,1/5] drm/i915: simplify setting of
> ddi_io_power_domain (rev3)
> URL   : https://patchwork.freedesktop.org/series/68069/
> State : failure
> 
> == Summary ==
> 
> CI Bug Log - changes from CI_DRM_7125 -> Patchwork_14870
> ====================================================
> 
> Summary
> -------
> 
>   **FAILURE**
> 
>   Serious unknown changes coming with Patchwork_14870 absolutely need to be
>   verified manually.
> 
>   If you think the reported changes have nothing to do with the changes
>   introduced in Patchwork_14870, please notify your bug team to allow them
>   to document this new failure mode, which will reduce false positives in CI.
> 
>   External URL: https://intel-gfx-ci.01.org/tree/drm-
> tip/Patchwork_14870/index.html
> 
> Possible new issues
> -------------------
> 
>   Here are the unknown changes that may have been introduced in
> Patchwork_14870:
> 
> ### IGT changes ###
> 
> #### Possible regressions ####
> 
>   * igt@i915_selftest@live_execlists:
>     - fi-icl-u3:          NOTRUN -> [DMESG-FAIL][1]
>    [1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-icl-
> u3/igt@i915_selftest@live_execlists.html
>     - fi-glk-dsi:         [PASS][2] -> [DMESG-FAIL][3]
>    [2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-glk-
> dsi/igt@i915_selftest@live_execlists.html
>    [3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-glk-
> dsi/igt@i915_selftest@live_execlists.html
>     - fi-kbl-x1275:       [PASS][4] -> [DMESG-FAIL][5]
>    [4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-kbl-
> x1275/igt@i915_selftest@live_execlists.html
>    [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-kbl-
> x1275/igt@i915_selftest@live_execlists.html
>     - fi-skl-6770hq:      [PASS][6] -> [DMESG-FAIL][7]
>    [6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-skl-
> 6770hq/igt@i915_selftest@live_execlists.html
>    [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-skl-
> 6770hq/igt@i915_selftest@live_execlists.html
> 
Same here again, what is really causing these ? 

> 
> #### Suppressed ####
> 
>   The following results come from untrusted machines, tests, or statuses.
>   They do not affect the overall result.
> 
>   * {igt@i915_selftest@live_perf}:
>     - {fi-tgl-u2}:        NOTRUN -> [INCOMPLETE][8]
>    [8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-tgl-
> u2/igt@i915_selftest@live_perf.html
> 
> 
> Known issues
> ------------
> 
>   Here are the changes found in Patchwork_14870 that come from known issues:
> 
> ### IGT changes ###
> 
> #### Issues hit ####
> 
>   * igt@gem_ctx_create@basic-files:
>     - fi-bxt-dsi:         [PASS][9] -> [INCOMPLETE][10] ([fdo#103927])
>    [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-bxt-
> dsi/igt@gem_ctx_create@basic-files.html
>    [10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-bxt-
> dsi/igt@gem_ctx_create@basic-files.html
> 
> 
> #### Possible fixes ####
> 
>   * igt@gem_mmap_gtt@basic-small-bo:
>     - fi-icl-u3:          [DMESG-WARN][11] ([fdo#107724]) -> [PASS][12]
>    [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-icl-
> u3/igt@gem_mmap_gtt@basic-small-bo.html
>    [12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-icl-
> u3/igt@gem_mmap_gtt@basic-small-bo.html
> 
>   * igt@i915_selftest@live_execlists:
>     - fi-icl-u2:          [INCOMPLETE][13] ([fdo#107713]) -> [PASS][14]
>    [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-icl-
> u2/igt@i915_selftest@live_execlists.html
>    [14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-icl-
> u2/igt@i915_selftest@live_execlists.html
>     - fi-apl-guc:         [DMESG-FAIL][15] -> [PASS][16]
>    [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-apl-
> guc/igt@i915_selftest@live_execlists.html
>    [16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-apl-
> guc/igt@i915_selftest@live_execlists.html
>     - {fi-icl-dsi}:       [DMESG-FAIL][17] -> [PASS][18]
>    [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-icl-
> dsi/igt@i915_selftest@live_execlists.html
>    [18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-icl-
> dsi/igt@i915_selftest@live_execlists.html
>     - fi-skl-6260u:       [DMESG-FAIL][19] -> [PASS][20]
>    [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-skl-
> 6260u/igt@i915_selftest@live_execlists.html
>    [20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-skl-
> 6260u/igt@i915_selftest@live_execlists.html
> 
>   * igt@i915_selftest@live_hangcheck:
>     - {fi-tgl-u2}:        [INCOMPLETE][21] ([fdo#111747]) -> [PASS][22]
>    [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-tgl-
> u2/igt@i915_selftest@live_hangcheck.html
>    [22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-tgl-
> u2/igt@i915_selftest@live_hangcheck.html
>     - fi-icl-u3:          [INCOMPLETE][23] ([fdo#107713] / [fdo#108569]) -> [PASS][24]
>    [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-icl-
> u3/igt@i915_selftest@live_hangcheck.html
>    [24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-icl-
> u3/igt@i915_selftest@live_hangcheck.html
> 
> 
> #### Warnings ####
> 
>   * igt@kms_chamelium@hdmi-hpd-fast:
>     - fi-kbl-7500u:       [FAIL][25] ([fdo#111407]) -> [FAIL][26] ([fdo#111045] /
> [fdo#111096])
>    [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7125/fi-kbl-
> 7500u/igt@kms_chamelium@hdmi-hpd-fast.html
>    [26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14870/fi-kbl-
> 7500u/igt@kms_chamelium@hdmi-hpd-fast.html
> 
> 
>   {name}: This element is suppressed. This means it is ignored when computing
>           the status of the difference (SUCCESS, WARNING, or FAILURE).
> 
>   [fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
>   [fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
>   [fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
>   [fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
>   [fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
>   [fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
>   [fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
>   [fdo#111747]: https://bugs.freedesktop.org/show_bug.cgi?id=111747
> 
> 
> Participating hosts (53 -> 46)
> ------------------------------
> 
>   Missing    (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-
> clapper fi-bdw-samus
> 
> 
> Build changes
> -------------
> 
>   * CI: CI-20190529 -> None
>   * Linux: CI_DRM_7125 -> Patchwork_14870
> 
>   CI-20190529: 20190529
>   CI_DRM_7125: f1ac92f5feb18678a3191a45be0ee4a4d255fc61 @
> git://anongit.freedesktop.org/gfx-ci/linux
>   IGT_5232: bb5735423eaf6fdbf6b2f94ef0b8520e74eab993 @
> git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
>   Patchwork_14870: 94aeb3b30d419c43a57a9f7531447a5456055652 @
> git://anongit.freedesktop.org/gfx-ci/linux
> 
> 
> == Linux commits ==
> 
> 94aeb3b30d41 drm/i915: prettify MST debug message
> fb53a11c4765 drm/i915: add pipe id/name to pipe mismatch logs
> 04b343b84c42 drm/i915: remove extra new line on pipe_config mismatch
> f7755e120d58 drm/i915: fix port checks for MST support on gen >= 11
> da7092cd71c4 drm/i915: simplify setting of ddi_io_power_domain
> 
> == Logs ==
> 
> For more details see: https://intel-gfx-ci.01.org/tree/drm-
> tip/Patchwork_14870/index.html
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
index 80f8e2698be0..cb26c487b68f 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi.c
@@ -4754,46 +4754,9 @@  void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port)
 		intel_encoder->update_complete = intel_ddi_update_complete;
 	}
 
-	switch (port) {
-	case PORT_A:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_A_IO;
-		break;
-	case PORT_B:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_B_IO;
-		break;
-	case PORT_C:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_C_IO;
-		break;
-	case PORT_D:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_D_IO;
-		break;
-	case PORT_E:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_E_IO;
-		break;
-	case PORT_F:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_F_IO;
-		break;
-	case PORT_G:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_G_IO;
-		break;
-	case PORT_H:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_H_IO;
-		break;
-	case PORT_I:
-		intel_dig_port->ddi_io_power_domain =
-			POWER_DOMAIN_PORT_DDI_I_IO;
-		break;
-	default:
-		MISSING_CASE(port);
-	}
+	WARN_ON(port > PORT_I);
+	intel_dig_port->ddi_io_power_domain = POWER_DOMAIN_PORT_DDI_A_IO +
+					      port - PORT_A;
 
 	if (init_dp) {
 		if (!intel_ddi_init_dp_connector(intel_dig_port))