[PATCH 1/3][SRU][OEM-5.10] Revert "UBUNTU: SAUCE: drm/i915/gen9bc: Handle TGP PCH during suspend/resume"
Koba Ko
koba.ko at canonical.com
Wed Apr 7 02:13:40 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1922768
This reverts commit 8b246cdc63f3ec6c8aec36fefc229045b51bb755.
Signed-off-by: Koba Ko <koba.ko at canonical.com>
---
drivers/gpu/drm/i915/i915_irq.c | 48 +++++++++++----------------------
1 file changed, 15 insertions(+), 33 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 6d3d2b5047bce..1a7b8342a5a9d 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -2859,20 +2859,8 @@ static void gen8_irq_reset(struct drm_i915_private *dev_priv)
GEN3_IRQ_RESET(uncore, GEN8_DE_MISC_);
GEN3_IRQ_RESET(uncore, GEN8_PCU_);
- if (INTEL_PCH_TYPE(dev_priv) >= PCH_ICP)
- GEN3_IRQ_RESET(uncore, SDE);
- else if (HAS_PCH_SPLIT(dev_priv))
+ if (HAS_PCH_SPLIT(dev_priv))
ibx_irq_reset(dev_priv);
-
- /* Wa_14010685332:cnp/cmp,tgp,adp */
- if (INTEL_PCH_TYPE(dev_priv) == PCH_CNP ||
- (INTEL_PCH_TYPE(dev_priv) >= PCH_TGP &&
- INTEL_PCH_TYPE(dev_priv) < PCH_DG1)) {
- intel_uncore_rmw(uncore, SOUTH_CHICKEN1,
- SBCLK_RUN_REFCLK_DIS, SBCLK_RUN_REFCLK_DIS);
- intel_uncore_rmw(uncore, SOUTH_CHICKEN1,
- SBCLK_RUN_REFCLK_DIS, 0);
- }
}
static void gen11_display_irq_reset(struct drm_i915_private *dev_priv)
@@ -3213,10 +3201,6 @@ static void spt_hpd_irq_setup(struct drm_i915_private *dev_priv)
ibx_display_interrupt_update(dev_priv, hotplug_irqs, enabled_irqs);
spt_hpd_detection_setup(dev_priv);
-
- if (INTEL_PCH_TYPE(dev_priv) >= PCH_ICP)
- icp_hpd_irq_setup(dev_priv,
- ICP_DDI_HPD_ENABLE_MASK, ICP_TC_HPD_ENABLE_MASK);
}
static void ilk_hpd_detection_setup(struct drm_i915_private *dev_priv)
@@ -3490,6 +3474,20 @@ static void gen8_de_irq_postinstall(struct drm_i915_private *dev_priv)
}
}
+static void gen8_irq_postinstall(struct drm_i915_private *dev_priv)
+{
+ if (HAS_PCH_SPLIT(dev_priv))
+ ibx_irq_pre_postinstall(dev_priv);
+
+ gen8_gt_irq_postinstall(&dev_priv->gt);
+ gen8_de_irq_postinstall(dev_priv);
+
+ if (HAS_PCH_SPLIT(dev_priv))
+ ibx_irq_postinstall(dev_priv);
+
+ gen8_master_intr_enable(dev_priv->uncore.regs);
+}
+
static void icp_irq_postinstall(struct drm_i915_private *dev_priv)
{
u32 mask = SDE_GMBUS_ICP;
@@ -3517,22 +3515,6 @@ static void icp_irq_postinstall(struct drm_i915_private *dev_priv)
}
}
-static void gen8_irq_postinstall(struct drm_i915_private *dev_priv)
-{
- if (INTEL_PCH_TYPE(dev_priv) >= PCH_ICP)
- icp_irq_postinstall(dev_priv);
- else if (HAS_PCH_SPLIT(dev_priv))
- ibx_irq_pre_postinstall(dev_priv);
-
- gen8_gt_irq_postinstall(&dev_priv->gt);
- gen8_de_irq_postinstall(dev_priv);
-
- if (HAS_PCH_SPLIT(dev_priv))
- ibx_irq_postinstall(dev_priv);
-
- gen8_master_intr_enable(dev_priv->uncore.regs);
-}
-
static void gen11_irq_postinstall(struct drm_i915_private *dev_priv)
{
struct intel_uncore *uncore = &dev_priv->uncore;
--
2.17.1
More information about the kernel-team
mailing list