[PATCH dii-client 2/3] INTEL_DII: drm/i915/arl: ARL false PCH ID

From: Garg, Nemesa
Date: Wed Mar 01 2023 - 06:26:03 EST


Add ARL to the fake PCH handler and assign PCH_MTP

Signed-off-by: Garg, Nemesa <nemesa.garg@xxxxxxxxx>
---
drivers/gpu/drm/i915/soc/intel_pch.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/soc/intel_pch.c b/drivers/gpu/drm/i915/soc/intel_pch.c
index ba9843cb1b13..82ac8d978eef 100644
--- a/drivers/gpu/drm/i915/soc/intel_pch.c
+++ b/drivers/gpu/drm/i915/soc/intel_pch.c
@@ -171,7 +171,7 @@ intel_virt_detect_pch(const struct drm_i915_private *dev_priv,
* make an educated guess as to which PCH is really there.
*/

- if (IS_METEORLAKE(dev_priv))
+ if (IS_METEORLAKE(dev_priv) || IS_ARROWLAKE_P(dev_priv))
id = INTEL_PCH_MTP_DEVICE_ID_TYPE;
else if (IS_ALDERLAKE_S(dev_priv) || IS_ALDERLAKE_P(dev_priv))
id = INTEL_PCH_ADP_DEVICE_ID_TYPE;
@@ -223,7 +223,9 @@ void intel_detect_pch(struct drm_i915_private *dev_priv)
} else if (IS_DG2(dev_priv)) {
dev_priv->pch_type = PCH_DG2;
return;
- }
+ } else if (IS_ARROWLAKE_P(dev_priv)) {
+ dev_priv->pch_type = PCH_MTP;
+ return;

/*
* The reason to probe ISA bridge instead of Dev31:Fun0 is to