@@ -1537,7 +1537,7 @@ void gen8_irq_power_well_pre_disable(struct drm_i915_private *dev_priv,
1537
1537
* to avoid races with the irq handler, assuming we have MSI. Shared legacy
1538
1538
* interrupts could still race.
1539
1539
*/
1540
- void ibx_irq_postinstall (struct drm_i915_private * dev_priv )
1540
+ static void ibx_irq_postinstall (struct drm_i915_private * dev_priv )
1541
1541
{
1542
1542
struct intel_uncore * uncore = & dev_priv -> uncore ;
1543
1543
u32 mask ;
@@ -1624,6 +1624,9 @@ void ilk_de_irq_postinstall(struct drm_i915_private *i915)
1624
1624
display_mask | extra_mask );
1625
1625
}
1626
1626
1627
+ static void mtp_irq_postinstall (struct drm_i915_private * i915 );
1628
+ static void icp_irq_postinstall (struct drm_i915_private * i915 );
1629
+
1627
1630
void gen8_de_irq_postinstall (struct drm_i915_private * dev_priv )
1628
1631
{
1629
1632
struct intel_uncore * uncore = & dev_priv -> uncore ;
@@ -1641,6 +1644,13 @@ void gen8_de_irq_postinstall(struct drm_i915_private *dev_priv)
1641
1644
if (!HAS_DISPLAY (dev_priv ))
1642
1645
return ;
1643
1646
1647
+ if (DISPLAY_VER (dev_priv ) >= 14 )
1648
+ mtp_irq_postinstall (dev_priv );
1649
+ else if (INTEL_PCH_TYPE (dev_priv ) >= PCH_ICP )
1650
+ icp_irq_postinstall (dev_priv );
1651
+ else if (HAS_PCH_SPLIT (dev_priv ))
1652
+ ibx_irq_postinstall (dev_priv );
1653
+
1644
1654
if (DISPLAY_VER (dev_priv ) <= 10 )
1645
1655
de_misc_masked |= GEN8_DE_MISC_GSE ;
1646
1656
@@ -1721,7 +1731,7 @@ static void mtp_irq_postinstall(struct drm_i915_private *i915)
1721
1731
GEN3_IRQ_INIT (uncore , SDE , ~sde_mask , 0xffffffff );
1722
1732
}
1723
1733
1724
- void icp_irq_postinstall (struct drm_i915_private * dev_priv )
1734
+ static void icp_irq_postinstall (struct drm_i915_private * dev_priv )
1725
1735
{
1726
1736
struct intel_uncore * uncore = & dev_priv -> uncore ;
1727
1737
u32 mask = SDE_GMBUS_ICP ;
@@ -1745,11 +1755,6 @@ void dg1_de_irq_postinstall(struct drm_i915_private *i915)
1745
1755
if (!HAS_DISPLAY (i915 ))
1746
1756
return ;
1747
1757
1748
- if (DISPLAY_VER (i915 ) >= 14 )
1749
- mtp_irq_postinstall (i915 );
1750
- else
1751
- icp_irq_postinstall (i915 );
1752
-
1753
1758
gen8_de_irq_postinstall (i915 );
1754
1759
intel_uncore_write (& i915 -> uncore , GEN11_DISPLAY_INT_CTL ,
1755
1760
GEN11_DISPLAY_IRQ_ENABLE );
0 commit comments