dg1: remaining basic enabling patches
Subsystems (3)
cover dg1: remaining basic enabling patches
These are the remaining patches from
https://patchwork.freedesktop.org/series/82594/
Main change here is how we enable hpd interrupt handling since that changed on recent refactors for other platforms. This commit is currently not tested as for DG1 we are still missing the lmem part and other bits to get a usable drivers. I will test it soon with the rebased patches and update here.
I'm also a couple of WAs that were added/changed to the spec.
Aditya Swarup (1):
drm/i915/dg1: Enable ports
Clinton A Taylor (1):
drm/i915/dg1: invert HPD pins
Lucas De Marchi (3):
drm/i915/dg1: add hpd interrupt handling
drm/i915/dg1: map/unmap pll clocks
drm/i915/dg1: make Wa_22010271021 permanent
Swathi Dhanavanthri (1):
drm/i915/dg1: Implement WA_16011163337
drivers/gpu/drm/i915/display/intel_ddi.c | 105 ++++++++++++++++++- drivers/gpu/drm/i915/display/intel_display.c | 33 +++++- drivers/gpu/drm/i915/gt/intel_workarounds.c | 21 ++-- drivers/gpu/drm/i915/i915_irq.c | 46 ++++++-- drivers/gpu/drm/i915/i915_reg.h | 27 +++++ 5 files changed, 209 insertions(+), 23 deletions(-)
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/6 drm/i915/dg1: add hpd interrupt handling
DG1 has one more combo phy port, no TC and all irq handling goes through SDE, like for MCC.
v2: Also change intel_hpd_pin_default() to include DG1 mapping v3, v4: Rebase on hpd refactor
--- drivers/gpu/drm/i915/display/intel_ddi.c | 13 ++++++++- drivers/gpu/drm/i915/i915_irq.c | 37 ++++++++++++++++++++---- drivers/gpu/drm/i915/i915_reg.h | 8 +++++ 3 files changed, 51 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +12 -1
@@ -5066,6 +5066,15 @@ static bool hti_uses_phy(struct drm_i915_private *i915, enum phy phy) i915->hti_state & HDPORT_PHY_USED_HDMI(phy)); } +static enum hpd_pin dg1_hpd_pin (struct drm_i915_private *dev_priv, +enum port port) +{ +if (port >=PORT_D ) +return HPD_PORT_C + port -PORT_D ; +else +return HPD_PORT_A + port -PORT_A ; +} +static enum hpd_pin tgl_hpd_pin (struct drm_i915_private *dev_priv,enum port port) {
@@ -5195,7 +5204,9 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port) encoder->cloneable =0 ; encoder->pipe_mask = ~0 ; -if (IS_ROCKETLAKE (dev_priv)) +if (IS_DG1 (dev_priv)) + encoder->hpd_pin =dg1_hpd_pin (dev_priv, port); +else if (IS_ROCKETLAKE (dev_priv)) encoder->hpd_pin =rkl_hpd_pin (dev_priv, port);else if (INTEL_GEN (dev_priv) >=12 ) encoder->hpd_pin =tgl_hpd_pin (dev_priv, port);
drivers/gpu/drm/i915/i915_irq.c +31 -6
@@ -152,6 +152,13 @@ static const u32 hpd_icp[HPD_NUM_PINS] = { [HPD_PORT_TC6] = SDE_TC_HOTPLUG_ICP(PORT_TC6), }; +static const u32 hpd_sde_dg1[HPD_NUM_PINS ] = { + [HPD_PORT_A ] =SDE_DDI_HOTPLUG_ICP (PORT_A ), + [HPD_PORT_B ] =SDE_DDI_HOTPLUG_ICP (PORT_B ), + [HPD_PORT_C ] =SDE_DDI_HOTPLUG_ICP (PORT_C ), + [HPD_PORT_D ] =SDE_DDI_HOTPLUG_ICP (PORT_D ), +}; +static void intel_hpd_init_pins (struct drm_i915_private *dev_priv) {struct i915_hotplug *hpd = &dev_priv->hotplug;
@@ -176,11 +183,14 @@ static void intel_hpd_init_pins(struct drm_i915_private *dev_priv)else hpd->hpd = hpd_ilk; -if (!HAS_PCH_SPLIT (dev_priv) ||HAS_PCH_NOP (dev_priv)) +if ((INTEL_PCH_TYPE (dev_priv) <PCH_DG1 ) && + (!HAS_PCH_SPLIT (dev_priv) ||HAS_PCH_NOP (dev_priv)))return ; -if (HAS_PCH_TGP (dev_priv) ||HAS_PCH_JSP (dev_priv) || -HAS_PCH_ICP (dev_priv) ||HAS_PCH_MCC (dev_priv)) +if (HAS_PCH_DG1 (dev_priv)) + hpd->pch_hpd = hpd_sde_dg1; +else if (HAS_PCH_TGP (dev_priv) ||HAS_PCH_JSP (dev_priv) || +HAS_PCH_ICP (dev_priv) ||HAS_PCH_MCC (dev_priv)) hpd->pch_hpd = hpd_icp;else if (HAS_PCH_CNP (dev_priv) ||HAS_PCH_SPT (dev_priv)) hpd->pch_hpd = hpd_spt;
@@ -1074,6 +1084,8 @@ static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val)return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_B );case HPD_PORT_C :return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_C ); +case HPD_PORT_D : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_D );default :return false; }
@@ -1864,7 +1876,10 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir)u32 ddi_hotplug_trigger, tc_hotplug_trigger;u32 pin_mask =0 , long_mask =0 ; -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) { + ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_DG1 ; + tc_hotplug_trigger =0 ; + }else if (HAS_PCH_TGP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_TGP ; }else if (HAS_PCH_JSP (dev_priv)) {
@@ -3252,6 +3267,12 @@ static void jsp_hpd_irq_setup(struct drm_i915_private *dev_priv) TGP_DDI_HPD_ENABLE_MASK, 0); } +static void dg1_hpd_irq_setup (struct drm_i915_private *dev_priv) +{ +icp_hpd_irq_setup (dev_priv, +DG1_DDI_HPD_ENABLE_MASK ,0 ); +} +static void gen11_hpd_detection_setup (struct drm_i915_private *dev_priv) {u32 hotplug;
@@ -3645,7 +3666,9 @@ static void icp_irq_postinstall(struct drm_i915_private *dev_priv)gen3_assert_iir_is_zero (&dev_priv->uncore,SDEIIR );I915_WRITE (SDEIMR , ~mask); -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) +icp_ddi_hpd_detection_setup (dev_priv,DG1_DDI_HPD_ENABLE_MASK ); +else if (HAS_PCH_TGP (dev_priv)) {icp_ddi_hpd_detection_setup (dev_priv,TGP_DDI_HPD_ENABLE_MASK );icp_tc_hpd_detection_setup (dev_priv,TGP_TC_HPD_ENABLE_MASK ); }else if (HAS_PCH_JSP (dev_priv)) {
@@ -4162,7 +4185,9 @@ void intel_irq_init(struct drm_i915_private *dev_priv)if (I915_HAS_HOTPLUG (dev_priv)) dev_priv->display.hpd_irq_setup = i915_hpd_irq_setup; }else { -if (HAS_PCH_JSP (dev_priv)) +if (HAS_PCH_DG1 (dev_priv)) + dev_priv->display.hpd_irq_setup = dg1_hpd_irq_setup; +else if (HAS_PCH_JSP (dev_priv)) dev_priv->display.hpd_irq_setup = jsp_hpd_irq_setup;else if (HAS_PCH_MCC (dev_priv)) dev_priv->display.hpd_irq_setup = mcc_hpd_irq_setup;
drivers/gpu/drm/i915/i915_reg.h +8 -0
@@ -8235,6 +8235,10 @@ enum { SDE_TC_HOTPLUG_ICP(PORT_TC3) | \ SDE_TC_HOTPLUG_ICP(PORT_TC2) | \ SDE_TC_HOTPLUG_ICP(PORT_TC1)) +#define SDE_DDI_MASK_DG1 (SDE_DDI_HOTPLUG_ICP(PORT_D) | \ + SDE_DDI_HOTPLUG_ICP(PORT_C) | \ + SDE_DDI_HOTPLUG_ICP(PORT_B) | \ + SDE_DDI_HOTPLUG_ICP(PORT_A))#define SDEISR _MMIO(0xc4000)#define SDEIMR _MMIO(0xc4004)
@@ -8434,6 +8438,10 @@ enum {#define TGP_TC_HPD_ENABLE_MASK (ICP_TC_HPD_ENABLE(PORT_TC6) | \ ICP_TC_HPD_ENABLE(PORT_TC5) | \ ICP_TC_HPD_ENABLE_MASK) +#define DG1_DDI_HPD_ENABLE_MASK (SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_D) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_C) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_B) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_A))#define _PCH_DPLL_A 0xc6014#define _PCH_DPLL_B 0xc6018
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 1/6] drm/i915/dg1: add hpd interrupt handling
Quoted 11 lines · Lucas De Marchi
DG1 has one more combo phy port, no TC and all irq handling goes through SDE, like for MCC.
v2: Also change
intel_hpd_pin_default()to include DG1 mapping v3, v4: Rebase on hpd refactorCc Ville Syrjälä <[email protected]>Cc Anshuman Gupta <[email protected]>Cc José Roberto de Souza <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>
Looks good to me.
I sort of wish we'd named hpd->pch_hpd as hpd->sde_hpd (and hpd->hpd as hpd->nde_hpd) back when we did that refactor, but it doesn't really matter too much.
Matt
Quoted 158 lines
--- drivers/gpu/drm/i915/display/intel_ddi.c | 13 ++++++++- drivers/gpu/drm/i915/i915_irq.c | 37 ++++++++++++++++++++---- drivers/gpu/drm/i915/i915_reg.h | 8 +++++ 3 files changed, 51 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +12
-1@@ -5066,6 +5066,15 @@ static bool hti_uses_phy(struct drm_i915_private *i915, enum phy phy) i915->hti_state & HDPORT_PHY_USED_HDMI(phy)); } +static enum hpd_pin dg1_hpd_pin (struct drm_i915_private *dev_priv, +enum port port) +{ +if (port >=PORT_D ) +return HPD_PORT_C + port -PORT_D ; +else +return HPD_PORT_A + port -PORT_A ; +} +static enum hpd_pin tgl_hpd_pin (struct drm_i915_private *dev_priv,enum port port) {@@ -5195,7 +5204,9 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port) encoder->cloneable =0 ; encoder->pipe_mask = ~0 ; -if (IS_ROCKETLAKE (dev_priv)) +if (IS_DG1 (dev_priv)) + encoder->hpd_pin =dg1_hpd_pin (dev_priv, port); +else if (IS_ROCKETLAKE (dev_priv)) encoder->hpd_pin =rkl_hpd_pin (dev_priv, port);else if (INTEL_GEN (dev_priv) >=12 ) encoder->hpd_pin =tgl_hpd_pin (dev_priv, port);drivers/gpu/drm/i915/i915_irq.c +31
-6@@ -152,6 +152,13 @@ static const u32 hpd_icp[HPD_NUM_PINS] = { [HPD_PORT_TC6] = SDE_TC_HOTPLUG_ICP(PORT_TC6), }; +static const u32 hpd_sde_dg1[HPD_NUM_PINS ] = { + [HPD_PORT_A ] =SDE_DDI_HOTPLUG_ICP (PORT_A ), + [HPD_PORT_B ] =SDE_DDI_HOTPLUG_ICP (PORT_B ), + [HPD_PORT_C ] =SDE_DDI_HOTPLUG_ICP (PORT_C ), + [HPD_PORT_D ] =SDE_DDI_HOTPLUG_ICP (PORT_D ), +}; +static void intel_hpd_init_pins (struct drm_i915_private *dev_priv) {struct i915_hotplug *hpd = &dev_priv->hotplug;@@ -176,11 +183,14 @@ static void intel_hpd_init_pins(struct drm_i915_private *dev_priv)else hpd->hpd = hpd_ilk; -if (!HAS_PCH_SPLIT (dev_priv) ||HAS_PCH_NOP (dev_priv)) +if ((INTEL_PCH_TYPE (dev_priv) <PCH_DG1 ) && + (!HAS_PCH_SPLIT (dev_priv) ||HAS_PCH_NOP (dev_priv)))return ; -if (HAS_PCH_TGP (dev_priv) ||HAS_PCH_JSP (dev_priv) || -HAS_PCH_ICP (dev_priv) ||HAS_PCH_MCC (dev_priv)) +if (HAS_PCH_DG1 (dev_priv)) + hpd->pch_hpd = hpd_sde_dg1; +else if (HAS_PCH_TGP (dev_priv) ||HAS_PCH_JSP (dev_priv) || +HAS_PCH_ICP (dev_priv) ||HAS_PCH_MCC (dev_priv)) hpd->pch_hpd = hpd_icp;else if (HAS_PCH_CNP (dev_priv) ||HAS_PCH_SPT (dev_priv)) hpd->pch_hpd = hpd_spt;@@ -1074,6 +1084,8 @@ static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val)return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_B );case HPD_PORT_C :return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_C ); +case HPD_PORT_D : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_D );default :return false; }@@ -1864,7 +1876,10 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir)u32 ddi_hotplug_trigger, tc_hotplug_trigger;u32 pin_mask =0 , long_mask =0 ; -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) { + ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_DG1 ; + tc_hotplug_trigger =0 ; + }else if (HAS_PCH_TGP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_TGP ; }else if (HAS_PCH_JSP (dev_priv)) {@@ -3252,6 +3267,12 @@ static void jsp_hpd_irq_setup(struct drm_i915_private *dev_priv) TGP_DDI_HPD_ENABLE_MASK, 0); } +static void dg1_hpd_irq_setup (struct drm_i915_private *dev_priv) +{ +icp_hpd_irq_setup (dev_priv, +DG1_DDI_HPD_ENABLE_MASK ,0 ); +} +static void gen11_hpd_detection_setup (struct drm_i915_private *dev_priv) {u32 hotplug;@@ -3645,7 +3666,9 @@ static void icp_irq_postinstall(struct drm_i915_private *dev_priv)gen3_assert_iir_is_zero (&dev_priv->uncore,SDEIIR );I915_WRITE (SDEIMR , ~mask); -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) +icp_ddi_hpd_detection_setup (dev_priv,DG1_DDI_HPD_ENABLE_MASK ); +else if (HAS_PCH_TGP (dev_priv)) {icp_ddi_hpd_detection_setup (dev_priv,TGP_DDI_HPD_ENABLE_MASK );icp_tc_hpd_detection_setup (dev_priv,TGP_TC_HPD_ENABLE_MASK ); }else if (HAS_PCH_JSP (dev_priv)) {@@ -4162,7 +4185,9 @@ void intel_irq_init(struct drm_i915_private *dev_priv)if (I915_HAS_HOTPLUG (dev_priv)) dev_priv->display.hpd_irq_setup = i915_hpd_irq_setup; }else { -if (HAS_PCH_JSP (dev_priv)) +if (HAS_PCH_DG1 (dev_priv)) + dev_priv->display.hpd_irq_setup = dg1_hpd_irq_setup; +else if (HAS_PCH_JSP (dev_priv)) dev_priv->display.hpd_irq_setup = jsp_hpd_irq_setup;else if (HAS_PCH_MCC (dev_priv)) dev_priv->display.hpd_irq_setup = mcc_hpd_irq_setup;drivers/gpu/drm/i915/i915_reg.h +8
-0@@ -8235,6 +8235,10 @@ enum { SDE_TC_HOTPLUG_ICP(PORT_TC3) | \ SDE_TC_HOTPLUG_ICP(PORT_TC2) | \ SDE_TC_HOTPLUG_ICP(PORT_TC1)) +#define SDE_DDI_MASK_DG1 (SDE_DDI_HOTPLUG_ICP(PORT_D) | \ + SDE_DDI_HOTPLUG_ICP(PORT_C) | \ + SDE_DDI_HOTPLUG_ICP(PORT_B) | \ + SDE_DDI_HOTPLUG_ICP(PORT_A))#define SDEISR _MMIO(0xc4000)#define SDEIMR _MMIO(0xc4004)@@ -8434,6 +8438,10 @@ enum {#define TGP_TC_HPD_ENABLE_MASK (ICP_TC_HPD_ENABLE(PORT_TC6) | \ ICP_TC_HPD_ENABLE(PORT_TC5) | \ ICP_TC_HPD_ENABLE_MASK) +#define DG1_DDI_HPD_ENABLE_MASK (SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_D) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_C) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_B) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_A))#define _PCH_DPLL_A 0xc6014#define _PCH_DPLL_B 0xc6018Signature · 1 line
2.28.0
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 1/6] drm/i915/dg1: add hpd interrupt handling
Quoted 13 lines · Matt Roper
Quoted 11 lines · Lucas De Marchi
DG1 has one more combo phy port, no TC and all irq handling goes through SDE, like for MCC.
v2: Also change
intel_hpd_pin_default()to include DG1 mapping v3, v4: Rebase on hpd refactorCc Ville Syrjälä <[email protected]>Cc Anshuman Gupta <[email protected]>Cc José Roberto de Souza <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>
Quoted 7 lines
Looks good to me.
Reviewed-by Matt Roper <[email protected]>I sort of wish we'd named
hpd->pch_hpdashpd->sde_hpd(andhpd->hpdashpd->nde_hpd) back when we did that refactor, but it doesn't really matter too much.
Agreed. I think this would be something good to do once DG1, ADL-S and the refactors from Ville land.
thanks
Lucas De Marchi
Quoted 157 lines
Matt
Quoted 153 lines
--- drivers/gpu/drm/i915/display/intel_ddi.c | 13 ++++++++- drivers/gpu/drm/i915/i915_irq.c | 37 ++++++++++++++++++++---- drivers/gpu/drm/i915/i915_reg.h | 8 +++++ 3 files changed, 51 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +12
-1@@ -5066,6 +5066,15 @@ static bool hti_uses_phy(struct drm_i915_private *i915, enum phy phy) i915->hti_state & HDPORT_PHY_USED_HDMI(phy)); } +static enum hpd_pin dg1_hpd_pin (struct drm_i915_private *dev_priv, +enum port port) +{ +if (port >=PORT_D ) +return HPD_PORT_C + port -PORT_D ; +else +return HPD_PORT_A + port -PORT_A ; +} +static enum hpd_pin tgl_hpd_pin (struct drm_i915_private *dev_priv,enum port port) {@@ -5195,7 +5204,9 @@ void intel_ddi_init(struct drm_i915_private *dev_priv, enum port port) encoder->cloneable =0 ; encoder->pipe_mask = ~0 ; -if (IS_ROCKETLAKE (dev_priv)) +if (IS_DG1 (dev_priv)) + encoder->hpd_pin =dg1_hpd_pin (dev_priv, port); +else if (IS_ROCKETLAKE (dev_priv)) encoder->hpd_pin =rkl_hpd_pin (dev_priv, port);else if (INTEL_GEN (dev_priv) >=12 ) encoder->hpd_pin =tgl_hpd_pin (dev_priv, port);drivers/gpu/drm/i915/i915_irq.c +31
-6@@ -152,6 +152,13 @@ static const u32 hpd_icp[HPD_NUM_PINS] = { [HPD_PORT_TC6] = SDE_TC_HOTPLUG_ICP(PORT_TC6), }; +static const u32 hpd_sde_dg1[HPD_NUM_PINS ] = { + [HPD_PORT_A ] =SDE_DDI_HOTPLUG_ICP (PORT_A ), + [HPD_PORT_B ] =SDE_DDI_HOTPLUG_ICP (PORT_B ), + [HPD_PORT_C ] =SDE_DDI_HOTPLUG_ICP (PORT_C ), + [HPD_PORT_D ] =SDE_DDI_HOTPLUG_ICP (PORT_D ), +}; +static void intel_hpd_init_pins (struct drm_i915_private *dev_priv) {struct i915_hotplug *hpd = &dev_priv->hotplug;@@ -176,11 +183,14 @@ static void intel_hpd_init_pins(struct drm_i915_private *dev_priv)else hpd->hpd = hpd_ilk; -if (!HAS_PCH_SPLIT (dev_priv) ||HAS_PCH_NOP (dev_priv)) +if ((INTEL_PCH_TYPE (dev_priv) <PCH_DG1 ) && + (!HAS_PCH_SPLIT (dev_priv) ||HAS_PCH_NOP (dev_priv)))return ; -if (HAS_PCH_TGP (dev_priv) ||HAS_PCH_JSP (dev_priv) || -HAS_PCH_ICP (dev_priv) ||HAS_PCH_MCC (dev_priv)) +if (HAS_PCH_DG1 (dev_priv)) + hpd->pch_hpd = hpd_sde_dg1; +else if (HAS_PCH_TGP (dev_priv) ||HAS_PCH_JSP (dev_priv) || +HAS_PCH_ICP (dev_priv) ||HAS_PCH_MCC (dev_priv)) hpd->pch_hpd = hpd_icp;else if (HAS_PCH_CNP (dev_priv) ||HAS_PCH_SPT (dev_priv)) hpd->pch_hpd = hpd_spt;@@ -1074,6 +1084,8 @@ static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val)return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_B );case HPD_PORT_C :return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_C ); +case HPD_PORT_D : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_D );default :return false; }@@ -1864,7 +1876,10 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir)u32 ddi_hotplug_trigger, tc_hotplug_trigger;u32 pin_mask =0 , long_mask =0 ; -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) { + ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_DG1 ; + tc_hotplug_trigger =0 ; + }else if (HAS_PCH_TGP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_TGP ; }else if (HAS_PCH_JSP (dev_priv)) {@@ -3252,6 +3267,12 @@ static void jsp_hpd_irq_setup(struct drm_i915_private *dev_priv) TGP_DDI_HPD_ENABLE_MASK, 0); } +static void dg1_hpd_irq_setup (struct drm_i915_private *dev_priv) +{ +icp_hpd_irq_setup (dev_priv, +DG1_DDI_HPD_ENABLE_MASK ,0 ); +} +static void gen11_hpd_detection_setup (struct drm_i915_private *dev_priv) {u32 hotplug;@@ -3645,7 +3666,9 @@ static void icp_irq_postinstall(struct drm_i915_private *dev_priv)gen3_assert_iir_is_zero (&dev_priv->uncore,SDEIIR );I915_WRITE (SDEIMR , ~mask); -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) +icp_ddi_hpd_detection_setup (dev_priv,DG1_DDI_HPD_ENABLE_MASK ); +else if (HAS_PCH_TGP (dev_priv)) {icp_ddi_hpd_detection_setup (dev_priv,TGP_DDI_HPD_ENABLE_MASK );icp_tc_hpd_detection_setup (dev_priv,TGP_TC_HPD_ENABLE_MASK ); }else if (HAS_PCH_JSP (dev_priv)) {@@ -4162,7 +4185,9 @@ void intel_irq_init(struct drm_i915_private *dev_priv)if (I915_HAS_HOTPLUG (dev_priv)) dev_priv->display.hpd_irq_setup = i915_hpd_irq_setup; }else { -if (HAS_PCH_JSP (dev_priv)) +if (HAS_PCH_DG1 (dev_priv)) + dev_priv->display.hpd_irq_setup = dg1_hpd_irq_setup; +else if (HAS_PCH_JSP (dev_priv)) dev_priv->display.hpd_irq_setup = jsp_hpd_irq_setup;else if (HAS_PCH_MCC (dev_priv)) dev_priv->display.hpd_irq_setup = mcc_hpd_irq_setup;drivers/gpu/drm/i915/i915_reg.h +8
-0@@ -8235,6 +8235,10 @@ enum { SDE_TC_HOTPLUG_ICP(PORT_TC3) | \ SDE_TC_HOTPLUG_ICP(PORT_TC2) | \ SDE_TC_HOTPLUG_ICP(PORT_TC1)) +#define SDE_DDI_MASK_DG1 (SDE_DDI_HOTPLUG_ICP(PORT_D) | \ + SDE_DDI_HOTPLUG_ICP(PORT_C) | \ + SDE_DDI_HOTPLUG_ICP(PORT_B) | \ + SDE_DDI_HOTPLUG_ICP(PORT_A))#define SDEISR _MMIO(0xc4000)#define SDEIMR _MMIO(0xc4004)@@ -8434,6 +8438,10 @@ enum {#define TGP_TC_HPD_ENABLE_MASK (ICP_TC_HPD_ENABLE(PORT_TC6) | \ ICP_TC_HPD_ENABLE(PORT_TC5) | \ ICP_TC_HPD_ENABLE_MASK) +#define DG1_DDI_HPD_ENABLE_MASK (SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_D) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_C) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_B) | \ + SHOTPLUG_CTL_DDI_HPD_ENABLE(PORT_A))
Quoted 12 lines
Quoted 5 lines
drivers/gpu/drm/i915/i915_reg.h +0
-1#define _PCH_DPLL_A 0xc6014#define _PCH_DPLL_B 0xc6018 --2.28.0
Signature · 5 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/6 drm/i915/dg1: invert HPD pins
In reply to Lucas De MarchiFrom: Clinton A Taylor <[email protected]>
HPD pins are inverted for DG1 platform.
Bspec: 49956
--- drivers/gpu/drm/i915/i915_irq.c | 9 +++++++++ drivers/gpu/drm/i915/i915_reg.h | 4 ++++ 2 files changed, 13 insertions(+)
drivers/gpu/drm/i915/i915_irq.c +9 -0
@@ -3269,6 +3269,15 @@ static void jsp_hpd_irq_setup(struct drm_i915_private *dev_priv)static void dg1_hpd_irq_setup (struct drm_i915_private *dev_priv) { +u32 val; + + val =I915_READ (SOUTH_CHICKEN1 ); + val |= (INVERT_DDIA_HPD | +INVERT_DDIB_HPD | +INVERT_DDIC_HPD | +INVERT_DDID_HPD ); +I915_WRITE (SOUTH_CHICKEN1 , val); +icp_hpd_irq_setup (dev_priv,DG1_DDI_HPD_ENABLE_MASK ,0 ); }
drivers/gpu/drm/i915/i915_reg.h +4 -0
@@ -8702,6 +8702,10 @@ enum {#define SOUTH_CHICKEN1 _MMIO(0xc2000)#define FDIA_PHASE_SYNC_SHIFT_OVR 19#define FDIA_PHASE_SYNC_SHIFT_EN 18 +#define INVERT_DDID_HPD (1 << 18) +#define INVERT_DDIC_HPD (1 << 17) +#define INVERT_DDIB_HPD (1 << 16) +#define INVERT_DDIA_HPD (1 << 15)#define FDI_PHASE_SYNC_OVR (pipe) (1 << (FDIA_PHASE_SYNC_SHIFT_OVR - ((pipe) * 2)))#define FDI_PHASE_SYNC_EN (pipe) (1 << (FDIA_PHASE_SYNC_SHIFT_EN - ((pipe) * 2)))#define FDI_BC_BIFURCATION_SELECT (1 << 12)
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/6 drm/i915/dg1: map/unmap pll clocks
In reply to Lucas De MarchiDG1 uses 2 registers for the ddi clock mapping, with PHY A and B using DPCLKA_CFGCR0 and PHY C and D using DPCLKA1_CFGCR0. Hide this behind a single macro that chooses the correct register according to the phy being accessed, use the correct bitfields for each pll/phy and implement separate functions for DG1 since it doesn't share much with ICL/TGL anymore.
The previous values were correct for PHY A and B since they were using the same register as before and the bitfields were matching.
--- drivers/gpu/drm/i915/display/intel_ddi.c | 92 +++++++++++++++++++- drivers/gpu/drm/i915/display/intel_display.c | 25 +++++- drivers/gpu/drm/i915/i915_reg.h | 15 ++++ 3 files changed, 128 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +89 -3
@@ -2970,6 +2970,38 @@ static u32 icl_dpclka_cfgcr0_clk_off(struct drm_i915_private *dev_priv,return 0 ; } +static void dg1_map_plls_to_ports (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state) +{ +struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); +struct intel_shared_dpll *pll = crtc_state->shared_dpll; +enum phy phy =intel_port_to_phy (dev_priv, encoder->port); +u32 val; + +/* +* If we fail this, something went very wrong: first 2 PLLs should be +* used by first 2 phys and last 2 PLLs by last phys +*/ +if (WARN_ON ((pll->info->id <DPLL_ID_DG1_DPLL2 && phy >=PHY_C ) || + (pll->info->id >=DPLL_ID_DG1_DPLL2 && phy <PHY_C ))) +return ; + +mutex_lock (&dev_priv->dpll.lock); + + val =intel_de_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)); +WARN_ON ((val &DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy)) ==0 ); + + val &= ~DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (phy); + val |=DG1_DPCLKA_CFGCR0_DDI_CLK_SEL (pll->info->id, phy); +intel_de_write (dev_priv,DG1_DPCLKA_CFGCR0 (phy), val); +intel_de_posting_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)); + + val &= ~DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy); +intel_de_write (dev_priv,DG1_DPCLKA_CFGCR0 (phy), val); + +mutex_unlock (&dev_priv->dpll.lock); +} +static void icl_map_plls_to_ports (struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state) {
@@ -3017,6 +3049,19 @@ static void icl_map_plls_to_ports(struct intel_encoder *encoder,mutex_unlock (&dev_priv->dpll.lock); } +static void dg1_unmap_plls_to_ports (struct intel_encoder *encoder) +{ +struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); +enum phy phy =intel_port_to_phy (dev_priv, encoder->port); + +mutex_lock (&dev_priv->dpll.lock); + +intel_de_rmw (dev_priv,DG1_DPCLKA_CFGCR0 (phy),0 , +DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy)); + +mutex_unlock (&dev_priv->dpll.lock); +} +static void icl_unmap_plls_to_ports (struct intel_encoder *encoder) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);
@@ -3032,6 +3077,40 @@ static void icl_unmap_plls_to_ports(struct intel_encoder *encoder)mutex_unlock (&dev_priv->dpll.lock); } +static void dg1_sanitize_port_clk_off (struct drm_i915_private *dev_priv, +u32 port_mask,bool ddi_clk_needed) +{ +enum port port; +u32 val; + +for_each_port_masked (port, port_mask) { +enum phy phy =intel_port_to_phy (dev_priv, port); +bool ddi_clk_off; + + val =intel_de_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)); + ddi_clk_off = val &DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy); + +if (ddi_clk_needed == !ddi_clk_off) +continue ; + +/* +* Punt on the case now where clock is gated, but it would +* be needed by the port. Something else is really broken then. +*/ +if (ddi_clk_needed) { +WARN (1 ,"ddi_clk_needed=%u ddi_clk_off=%u phy=%u\n" , + ddi_clk_needed, ddi_clk_off, phy); +continue ; + } + +DRM_NOTE ("PHY %c is disabled/in DSI mode with an ungated DDI clock, gate it\n" , +phy_name (phy)); + + val |=DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy); +intel_de_write (dev_priv,DG1_DPCLKA_CFGCR0 (phy), val); + } +} +static void icl_sanitize_port_clk_off (struct drm_i915_private *dev_priv,u32 port_mask,bool ddi_clk_needed) {
@@ -3114,7 +3193,10 @@ void icl_sanitize_encoder_pll_mapping(struct intel_encoder *encoder) ddi_clk_needed = false; } -icl_sanitize_port_clk_off (dev_priv, port_mask, ddi_clk_needed); +if (IS_DG1 (dev_priv)) +dg1_sanitize_port_clk_off (dev_priv, port_mask, ddi_clk_needed); +else +icl_sanitize_port_clk_off (dev_priv, port_mask, ddi_clk_needed); } static void intel_ddi_clk_select(struct intel_encoder *encoder,
@@ -3666,7 +3748,9 @@ static void intel_ddi_pre_enable(struct intel_atomic_state *state,drm_WARN_ON (&dev_priv->drm, crtc_state->has_pch_encoder); -if (INTEL_GEN (dev_priv) >=11 ) +if (IS_DG1 (dev_priv)) +dg1_map_plls_to_ports (encoder, crtc_state); +else if (INTEL_GEN (dev_priv) >=11 )icl_map_plls_to_ports (encoder, crtc_state);intel_set_cpu_fifo_underrun_reporting (dev_priv, pipe, true);
@@ -3848,7 +3932,9 @@ static void intel_ddi_post_disable(struct intel_atomic_state *state,intel_ddi_post_disable_dp (state, encoder, old_crtc_state, old_conn_state); -if (INTEL_GEN (dev_priv) >=11 ) +if (IS_DG1 (dev_priv)) +dg1_unmap_plls_to_ports (encoder); +else if (INTEL_GEN (dev_priv) >=11 )icl_unmap_plls_to_ports (encoder);if (intel_crtc_has_dp_encoder (old_crtc_state) || is_tc_port)
drivers/gpu/drm/i915/display/intel_display.c +24 -1
@@ -10897,6 +10897,27 @@ static int hsw_crtc_compute_clock(struct intel_crtc *crtc,return 0 ; } +static void dg1_get_ddi_pll (struct drm_i915_private *dev_priv,enum port port, +struct intel_crtc_state *pipe_config) +{ +enum icl_port_dpll_id port_dpll_id =ICL_PORT_DPLL_DEFAULT ; +enum phy phy =intel_port_to_phy (dev_priv, port); +enum intel_dpll_id id; +u32 val; + + val =intel_de_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)) + &DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (phy); + id =DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_VAL_TO_ID (val, phy); + +if (WARN_ON (id >DPLL_ID_DG1_DPLL3 )) +return ; + + pipe_config->icl_port_dplls[port_dpll_id].pll = +intel_get_shared_dpll_by_id (dev_priv, id); + +icl_set_active_port_dpll (pipe_config, port_dpll_id); +} +static void cnl_get_ddi_pll (struct drm_i915_private *dev_priv,enum port port,struct intel_crtc_state *pipe_config) {
@@ -11205,7 +11226,9 @@ static void hsw_get_ddi_port_state(struct intel_crtc *crtc, port =TRANS_DDI_FUNC_CTL_VAL_TO_PORT (tmp); } -if (INTEL_GEN (dev_priv) >=11 ) +if (IS_DG1 (dev_priv)) +dg1_get_ddi_pll (dev_priv, port, pipe_config); +else if (INTEL_GEN (dev_priv) >=11 )icl_get_ddi_pll (dev_priv, port, pipe_config);else if (IS_CANNONLAKE (dev_priv))cnl_get_ddi_pll (dev_priv, port, pipe_config);
drivers/gpu/drm/i915/i915_reg.h +15 -0
@@ -230,12 +230,14 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define _TRANS (tran, a, b) _PICK_EVEN(tran, a, b)#define _PORT (port, a, b) _PICK_EVEN(port, a, b)#define _PLL (pll, a, b) _PICK_EVEN(pll, a, b) +#define _PHY (phy, a, b) _PICK_EVEN(phy, a, b)#define _MMIO_PIPE (pipe, a, b) _MMIO(_PIPE(pipe, a, b))#define _MMIO_PLANE (plane, a, b) _MMIO(_PLANE(plane, a, b))#define _MMIO_TRANS (tran, a, b) _MMIO(_TRANS(tran, a, b))#define _MMIO_PORT (port, a, b) _MMIO(_PORT(port, a, b))#define _MMIO_PLL (pll, a, b) _MMIO(_PLL(pll, a, b)) +#define _MMIO_PHY (phy, a, b) _MMIO(_PHY(phy, a, b))#define _PHY3 (phy, ...) _PICK(phy, __VA_ARGS__)
@@ -10299,6 +10301,7 @@ enum skl_power_gate {#define DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (port) (3 << DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT(port))#define DPCLKA_CFGCR0_DDI_CLK_SEL (pll, port) ((pll) << DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT(port)) +/* ICL Clocks */ #define ICL_DPCLKA_CFGCR0 _MMIO(0x164280)#define ICL_DPCLKA_CFGCR0_DDI_CLK_OFF (phy) (1 << _PICK(phy, 10, 11, 24))#define RKL_DPCLKA_CFGCR0_DDI_CLK_OFF (phy) REG_BIT((phy) + 10)
@@ -10314,6 +10317,18 @@ enum skl_power_gate {#define RKL_DPCLKA_CFGCR0_DDI_CLK_SEL (pll, phy) \ ((pll) << RKL_DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT(phy)) +/* DG1 Clocks */ +#define _DG1_DPCLKA_CFGCR0 0x164280 +#define _DG1_DPCLKA1_CFGCR0 0x16C280 +#define DG1_DPCLKA_CFGCR0 (phy) _MMIO_PHY((phy) / 2, \ + _DG1_DPCLKA_CFGCR0, \ + _DG1_DPCLKA1_CFGCR0) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy) (1 << (10 + ((phy) % 2))) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (phy) (0x3 << (((phy) % 2) * 2)) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL (pll, phy) (((pll) % 2) << (((phy) % 2)) * 2) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_VAL_TO_ID (val, phy) \ + ((((val) & DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK(phy)) >> ((phy % 2) * 2)) + (2 * (phy / 2))) +/* CNL PLL */ #define DPLL0_ENABLE 0x46010#define DPLL1_ENABLE 0x46014
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/6] drm/i915/dg1: map/unmap pll clocks
Quoted 34 lines · Lucas De Marchi
DG1 uses 2 registers for the ddi clock mapping, with PHY A and B using
DPCLKA_CFGCR0and PHY C and D usingDPCLKA1_CFGCR0. Hide this behind a single macro that chooses the correct register according to the phy being accessed, use the correct bitfields for each pll/phy and implement separate functions for DG1 since it doesn't share much with ICL/TGL anymore.The previous values were correct for PHY A and B since they were using the same register as before and the bitfields were matching.
Cc José Roberto de Souza <[email protected]>Cc Clinton Taylor <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/display/intel_ddi.c | 92 +++++++++++++++++++- drivers/gpu/drm/i915/display/intel_display.c | 25 +++++- drivers/gpu/drm/i915/i915_reg.h | 15 ++++ 3 files changed, 128 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_ddi.c +7
-0@@ -2970,6 +2970,38 @@ static u32 icl_dpclka_cfgcr0_clk_off(struct drm_i915_private *dev_priv,return 0 ; } +static void dg1_map_plls_to_ports (struct intel_encoder *encoder, +const struct intel_crtc_state *crtc_state) +{ +struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); +struct intel_shared_dpll *pll = crtc_state->shared_dpll; +enum phy phy =intel_port_to_phy (dev_priv, encoder->port); +u32 val;
drivers/gpu/drm/i915/display/intel_ddi.c static u32 icl_dpclka_cfgcr0_clk_off(struct drm_i915_private *dev_priv, · line 2989
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c +10
-0+ +/* +* If we fail this, something went very wrong: first 2 PLLs should be +* used by first 2 phys and last 2 PLLs by last phys +*/ +if (WARN_ON ((pll->info->id <DPLL_ID_DG1_DPLL2 && phy >=PHY_C ) || + (pll->info->id >=DPLL_ID_DG1_DPLL2 && phy <PHY_C ))) +return ; + +mutex_lock (&dev_priv->dpll.lock);
Not specifically related to this patch, but since we're adding more uses of it --- is dpll.lock actually necessary on any modern platform? My understanding is that it was added to prevent racing rmw operations if we had parallel modesets on different CRTCs. But I think any modeset on a gen9+ platform needs to update other global state (the DDB) and would have already grabbed all CRTC locks to prevent racing commits. Am I missing something?
Quoted 188 lines
drivers/gpu/drm/i915/display/intel_ddi.c +72
-3+ + val =intel_de_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)); +WARN_ON ((val &DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy)) ==0 ); + + val &= ~DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (phy); + val |=DG1_DPCLKA_CFGCR0_DDI_CLK_SEL (pll->info->id, phy); +intel_de_write (dev_priv,DG1_DPCLKA_CFGCR0 (phy), val); +intel_de_posting_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)); + + val &= ~DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy); +intel_de_write (dev_priv,DG1_DPCLKA_CFGCR0 (phy), val); + +mutex_unlock (&dev_priv->dpll.lock); +} +static void icl_map_plls_to_ports (struct intel_encoder *encoder,const struct intel_crtc_state *crtc_state) {@@ -3017,6 +3049,19 @@ static void icl_map_plls_to_ports(struct intel_encoder *encoder,mutex_unlock (&dev_priv->dpll.lock); } +static void dg1_unmap_plls_to_ports (struct intel_encoder *encoder) +{ +struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev); +enum phy phy =intel_port_to_phy (dev_priv, encoder->port); + +mutex_lock (&dev_priv->dpll.lock); + +intel_de_rmw (dev_priv,DG1_DPCLKA_CFGCR0 (phy),0 , +DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy)); + +mutex_unlock (&dev_priv->dpll.lock); +} +static void icl_unmap_plls_to_ports (struct intel_encoder *encoder) {struct drm_i915_private *dev_priv =to_i915 (encoder->base.dev);@@ -3032,6 +3077,40 @@ static void icl_unmap_plls_to_ports(struct intel_encoder *encoder)mutex_unlock (&dev_priv->dpll.lock); } +static void dg1_sanitize_port_clk_off (struct drm_i915_private *dev_priv, +u32 port_mask,bool ddi_clk_needed) +{ +enum port port; +u32 val; + +for_each_port_masked (port, port_mask) { +enum phy phy =intel_port_to_phy (dev_priv, port); +bool ddi_clk_off; + + val =intel_de_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)); + ddi_clk_off = val &DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy); + +if (ddi_clk_needed == !ddi_clk_off) +continue ; + +/* +* Punt on the case now where clock is gated, but it would +* be needed by the port. Something else is really broken then. +*/ +if (ddi_clk_needed) { +WARN (1 ,"ddi_clk_needed=%u ddi_clk_off=%u phy=%u\n" , + ddi_clk_needed, ddi_clk_off, phy); +continue ; + } + +DRM_NOTE ("PHY %c is disabled/in DSI mode with an ungated DDI clock, gate it\n" , +phy_name (phy)); + + val |=DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy); +intel_de_write (dev_priv,DG1_DPCLKA_CFGCR0 (phy), val); + } +} +static void icl_sanitize_port_clk_off (struct drm_i915_private *dev_priv,u32 port_mask,bool ddi_clk_needed) {@@ -3114,7 +3193,10 @@ void icl_sanitize_encoder_pll_mapping(struct intel_encoder *encoder) ddi_clk_needed = false; } -icl_sanitize_port_clk_off (dev_priv, port_mask, ddi_clk_needed); +if (IS_DG1 (dev_priv)) +dg1_sanitize_port_clk_off (dev_priv, port_mask, ddi_clk_needed); +else +icl_sanitize_port_clk_off (dev_priv, port_mask, ddi_clk_needed); } static void intel_ddi_clk_select(struct intel_encoder *encoder,@@ -3666,7 +3748,9 @@ static void intel_ddi_pre_enable(struct intel_atomic_state *state,drm_WARN_ON (&dev_priv->drm, crtc_state->has_pch_encoder); -if (INTEL_GEN (dev_priv) >=11 ) +if (IS_DG1 (dev_priv)) +dg1_map_plls_to_ports (encoder, crtc_state); +else if (INTEL_GEN (dev_priv) >=11 )icl_map_plls_to_ports (encoder, crtc_state);intel_set_cpu_fifo_underrun_reporting (dev_priv, pipe, true);@@ -3848,7 +3932,9 @@ static void intel_ddi_post_disable(struct intel_atomic_state *state,intel_ddi_post_disable_dp (state, encoder, old_crtc_state, old_conn_state); -if (INTEL_GEN (dev_priv) >=11 ) +if (IS_DG1 (dev_priv)) +dg1_unmap_plls_to_ports (encoder); +else if (INTEL_GEN (dev_priv) >=11 )icl_unmap_plls_to_ports (encoder);if (intel_crtc_has_dp_encoder (old_crtc_state) || is_tc_port)drivers/gpu/drm/i915/display/intel_display.c +24
-1@@ -10897,6 +10897,27 @@ static int hsw_crtc_compute_clock(struct intel_crtc *crtc,return 0 ; } +static void dg1_get_ddi_pll (struct drm_i915_private *dev_priv,enum port port, +struct intel_crtc_state *pipe_config) +{ +enum icl_port_dpll_id port_dpll_id =ICL_PORT_DPLL_DEFAULT ; +enum phy phy =intel_port_to_phy (dev_priv, port); +enum intel_dpll_id id; +u32 val; + + val =intel_de_read (dev_priv,DG1_DPCLKA_CFGCR0 (phy)) + &DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (phy); + id =DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_VAL_TO_ID (val, phy); + +if (WARN_ON (id >DPLL_ID_DG1_DPLL3 )) +return ; + + pipe_config->icl_port_dplls[port_dpll_id].pll = +intel_get_shared_dpll_by_id (dev_priv, id); + +icl_set_active_port_dpll (pipe_config, port_dpll_id); +} +static void cnl_get_ddi_pll (struct drm_i915_private *dev_priv,enum port port,struct intel_crtc_state *pipe_config) {@@ -11205,7 +11226,9 @@ static void hsw_get_ddi_port_state(struct intel_crtc *crtc, port =TRANS_DDI_FUNC_CTL_VAL_TO_PORT (tmp); } -if (INTEL_GEN (dev_priv) >=11 ) +if (IS_DG1 (dev_priv)) +dg1_get_ddi_pll (dev_priv, port, pipe_config); +else if (INTEL_GEN (dev_priv) >=11 )icl_get_ddi_pll (dev_priv, port, pipe_config);else if (IS_CANNONLAKE (dev_priv))cnl_get_ddi_pll (dev_priv, port, pipe_config);drivers/gpu/drm/i915/i915_reg.h +4
-0@@ -230,12 +230,14 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define _TRANS (tran, a, b) _PICK_EVEN(tran, a, b)#define _PORT (port, a, b) _PICK_EVEN(port, a, b)#define _PLL (pll, a, b) _PICK_EVEN(pll, a, b) +#define _PHY (phy, a, b) _PICK_EVEN(phy, a, b)#define _MMIO_PIPE (pipe, a, b) _MMIO(_PIPE(pipe, a, b))#define _MMIO_PLANE (plane, a, b) _MMIO(_PLANE(plane, a, b))#define _MMIO_TRANS (tran, a, b) _MMIO(_TRANS(tran, a, b))#define _MMIO_PORT (port, a, b) _MMIO(_PORT(port, a, b))#define _MMIO_PLL (pll, a, b) _MMIO(_PLL(pll, a, b)) +#define _MMIO_PHY (phy, a, b) _MMIO(_PHY(phy, a, b))#define _PHY3 (phy, ...) _PICK(phy, __VA_ARGS__)@@ -10299,6 +10301,7 @@ enum skl_power_gate {#define DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (port) (3 << DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT(port))#define DPCLKA_CFGCR0_DDI_CLK_SEL (pll, port) ((pll) << DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT(port)) +/* ICL Clocks */ #define ICL_DPCLKA_CFGCR0 _MMIO(0x164280)#define ICL_DPCLKA_CFGCR0_DDI_CLK_OFF (phy) (1 << _PICK(phy, 10, 11, 24))#define RKL_DPCLKA_CFGCR0_DDI_CLK_OFF (phy) REG_BIT((phy) + 10)@@ -10314,6 +10317,18 @@ enum skl_power_gate {#define RKL_DPCLKA_CFGCR0_DDI_CLK_SEL (pll, phy) \ ((pll) << RKL_DPCLKA_CFGCR0_DDI_CLK_SEL_SHIFT(phy)) +/* DG1 Clocks */
drivers/gpu/drm/i915/i915_reg.h enum skl_power_gate { · line 10330
Quoted 10 lines
drivers/gpu/drm/i915/i915_reg.h +10
-0+#define _DG1_DPCLKA_CFGCR0 0x164280 +#define _DG1_DPCLKA1_CFGCR0 0x16C280 +#define DG1_DPCLKA_CFGCR0 (phy) _MMIO_PHY((phy) / 2, \ + _DG1_DPCLKA_CFGCR0, \ + _DG1_DPCLKA1_CFGCR0) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_OFF (phy) (1 << (10 + ((phy) % 2))) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK (phy) (0x3 << (((phy) % 2) * 2)) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL (pll, phy) (((pll) % 2) << (((phy) % 2)) * 2) +#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_VAL_TO_ID (val, phy) \ + ((((val) & DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK(phy)) >> ((phy % 2) * 2)) + (2 * (phy / 2)))
This sure is ugly. But it looks correct.
Although the code might wind up being slightly longer, I wonder if it would help clarify if we wrote a few at least the last part of this expression with ternary operators and symbolic names. E.g.,
"... + (phy >= PHY_C ? DPLL_ID_DG1_DPLL2 : DPLL_ID_DG1_DPLL0)"
Up to you; the patch looks fine either way.
Quoted 7 lines
drivers/gpu/drm/i915/i915_reg.h +1
-0+/* CNL PLL */ #define DPLL0_ENABLE 0x46010#define DPLL1_ENABLE 0x46014Signature · 1 line
2.28.0
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 3/6] drm/i915/dg1: map/unmap pll clocks
Quoted 5 lines · Matt Roper
drivers/gpu/drm/i915/i915_reg.h enum skl_power_gate { · line 10330
Quoted 2 lines · Lucas De Marchi
drivers/gpu/drm/i915/i915_reg.h +2
-0+#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_VAL_TO_ID (val, phy) \ + ((((val) & DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK(phy)) >> ((phy % 2) * 2)) + (2 * (phy / 2)))This sure is ugly. But it looks correct.
Admittedly this deserves a comment on top
/* don't touch, it's correct */
Quoted 6 lines
Although the code might wind up being slightly longer, I wonder if it would help clarify if we wrote a few at least the last part of this expression with ternary operators and symbolic names. E.g.,
"... + (phy >= PHY_C ? DPLL_ID_DG1_DPLL2 : DPLL_ID_DG1_DPLL0)"
I will think about
Quoted 5 lines
Up to you; the patch looks fine either way.
Reviewed-by Matt Roper <[email protected]>
thanks
Lucas De Marchi
Quoted 18 lines
Quoted 7 lines
+
/* CNL PLL */
#defineDPLL0_ENABLE0x46010
#defineDPLL1_ENABLE0x46014
--
2.28.0Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/6 drm/i915/dg1: Enable ports
In reply to Lucas De MarchiFrom: Aditya Swarup <[email protected]>
For DG1 we have a little of mix up wrt to DDI/port names and indexes. Bspec refers to the ports as DDIA, DDIB, DDI USBC1 and DDI USBC2 (besides the DDIA, DDIB, DDIC, DDID), but the previous naming is the most unambiguous one. This means that for any register on Display Engine we should use the index of A, B, D and E. However in some places this is not true:
- VBT: uses C and D and have to be mapped to D/E
- IO/Combo: uses C and D, but we already differentiate those when we created the phy vs port distinction.
This additional mapping for VBT and phy are already covered in previous patches, so now we can initialize all the DDIs as A, B, D and E.
v2: Squash previous patch enabling just ports A and B since most of the pumbling code is already merged now
--- drivers/gpu/drm/i915/display/intel_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +4 -4
@@ -7337,7 +7337,7 @@ bool intel_phy_is_combo(struct drm_i915_private *dev_priv, enum phy phy) {if (phy ==PHY_NONE )return false; -else if (IS_ROCKETLAKE (dev_priv)) +else if (IS_DG1 (dev_priv) ||IS_ROCKETLAKE (dev_priv))return phy <=PHY_D ;else if (IS_JSL_EHL (dev_priv))return phy <=PHY_C ;
@@ -7349,7 +7349,7 @@ bool intel_phy_is_combo(struct drm_i915_private *dev_priv, enum phy phy)bool intel_phy_is_tc (struct drm_i915_private *dev_priv,enum phy phy) { -if (IS_ROCKETLAKE (dev_priv)) +if (IS_ROCKETLAKE (dev_priv) ||IS_DG1 (dev_priv))return false;else if (INTEL_GEN (dev_priv) >=12 )return phy >=PHY_D && phy <=PHY_I ;
@@ -7361,7 +7361,7 @@ bool intel_phy_is_tc(struct drm_i915_private *dev_priv, enum phy phy)enum phy intel_port_to_phy (struct drm_i915_private *i915,enum port port) { -if (IS_ROCKETLAKE (i915) && port >=PORT_D ) +if ((IS_DG1 (i915) ||IS_ROCKETLAKE (i915)) && port >=PORT_D )return (enum phy )port -1 ;else if (IS_JSL_EHL (i915) && port ==PORT_D )return PHY_A ;
@@ -17123,7 +17123,7 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)if (!HAS_DISPLAY (dev_priv))return ; -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv) ||IS_ROCKETLAKE (dev_priv)) {intel_ddi_init (dev_priv,PORT_A );intel_ddi_init (dev_priv,PORT_B );intel_ddi_init (dev_priv,PORT_D );/* DDI TC1 */
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 4/6] drm/i915/dg1: Enable ports
Quoted 43 lines · Lucas De Marchi
From: Aditya Swarup <[email protected]>
For DG1 we have a little of mix up wrt to DDI/port names and indexes. Bspec refers to the ports as DDIA, DDIB, DDI USBC1 and DDI USBC2 (besides the DDIA, DDIB, DDIC, DDID), but the previous naming is the most unambiguous one. This means that for any register on Display Engine we should use the index of A, B, D and E. However in some places this is not true:
- VBT: uses C and D and have to be mapped to D/E
- IO/Combo: uses C and D, but we already differentiate those when we created the phy vs port distinction.
This additional mapping for VBT and phy are already covered in previous patches, so now we can initialize all the DDIs as A, B, D and E.
v2: Squash previous patch enabling just ports A and B since most of the pumbling code is already merged now
Cc Matt Roper <[email protected]>Cc Clinton Taylor <[email protected]>Signed-off-by Aditya Swarup <[email protected]>Reviewed-by Lucas De Marchi <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>---
drivers/gpu/drm/i915/display/intel_display.c| 8 ++++----1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -7337,7 +7337,7 @@ bool intel_phy_is_combo(struct drm_i915_private *dev_priv, enum phy phy) {if (phy ==PHY_NONE )return false; -else if (IS_ROCKETLAKE (dev_priv)) +else if (IS_DG1 (dev_priv) ||IS_ROCKETLAKE (dev_priv))return phy <=PHY_D ;else if (IS_JSL_EHL (dev_priv))return phy <=PHY_C ;
drivers/gpu/drm/i915/display/intel_display.c bool intel_phy_is_combo(struct drm_i915_private *dev_priv, enum phy phy) · line 7352
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -7349,7 +7349,7 @@ bool intel_phy_is_combo(struct drm_i915_private *dev_priv, enum phy phy)bool intel_phy_is_tc (struct drm_i915_private *dev_priv,enum phy phy) { -if (IS_ROCKETLAKE (dev_priv)) +if (IS_ROCKETLAKE (dev_priv) ||IS_DG1 (dev_priv))
for consistency this should be
if (IS_DG1(dev_priv) || IS_ROCKETLAKE(dev_priv))
Lucas De Marchi
Quoted 24 lines
drivers/gpu/drm/i915/display/intel_display.c +2
-2return false; else if (INTEL_GEN(dev_priv) >= 12) return phy >= PHY_D && phy <= PHY_I;@@ -7361,7 +7361,7 @@ bool intel_phy_is_tc(struct drm_i915_private *dev_priv, enum phy phy)enum phy intel_port_to_phy (struct drm_i915_private *i915,enum port port) { -if (IS_ROCKETLAKE (i915) && port >=PORT_D ) +if ((IS_DG1 (i915) ||IS_ROCKETLAKE (i915)) && port >=PORT_D )return (enum phy )port -1 ;else if (IS_JSL_EHL (i915) && port ==PORT_D )return PHY_A ;@@ -17123,7 +17123,7 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)if (!HAS_DISPLAY (dev_priv))return ; -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv) ||IS_ROCKETLAKE (dev_priv)) {intel_ddi_init (dev_priv,PORT_A );intel_ddi_init (dev_priv,PORT_B );intel_ddi_init (dev_priv,PORT_D );/* DDI TC1 */ Signature · 1 line
2.28.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/6 drm/i915/dg1: make Wa_22010271021 permanent
In reply to Lucas De MarchiJust like for rkl and tgl, this should be permanent as well for dg1 instead just for A0. The commit making it permanent for those platforms ended up "racing" with the commit adding the DG1 WAs, so now fix that up.
--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/gt/intel_workarounds.c +8 -8
@@ -1768,6 +1768,14 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)*/ wa_write_or (wal,GEN7_FF_THREAD_MODE ,GEN12_FF_TESSELATION_DOP_GATE_DISABLE ); + +/* +* Wa_1606700617 +* Wa_22010271021:tgl,rkl,dg1 +*/ +wa_masked_en (wal, +GEN9_CS_DEBUG_MODE1 , +FF_DOP_CLOCK_GATE_DISABLE ); } if (IS_DG1_REVID(i915, DG1_REVID_A0, DG1_REVID_A0) ||
@@ -1796,14 +1804,6 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)GEN6_RC_SLEEP_PSMI_CONTROL ,GEN12_WAIT_FOR_EVENT_POWER_DOWN_DISABLE | GEN8_RC_SEMA_IDLE_MSG_DISABLE); - -/* -* Wa_1606700617:tgl -* Wa_22010271021:tgl,rkl -*/ -wa_masked_en (wal, -GEN9_CS_DEBUG_MODE1 , -FF_DOP_CLOCK_GATE_DISABLE ); }if (IS_GEN (i915,12 )) {
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 5/6] drm/i915/dg1: make Wa_22010271021 permanent
Quoted 15 lines · Lucas De Marchi
Just like for rkl and tgl, this should be permanent as well for dg1 instead just for A0. The commit making it permanent for those platforms ended up "racing" with the commit adding the DG1 WAs, so now fix that up.
Cc Swathi Dhanavanthri <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0
drivers/gpu/drm/i915/gt/intel_workarounds.c rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal) · line 1773
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +3
-0@@ -1768,6 +1768,14 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)*/ wa_write_or (wal,GEN7_FF_THREAD_MODE ,GEN12_FF_TESSELATION_DOP_GATE_DISABLE ); + +/* +* Wa_1606700617
Not sure if you meant to drop the ":tgl" suffix here when you moved it? This alternate number also shows up in the DG1 database now (but not RKL) so we could make this "tgl,dg1" to match the spec.
Either way,
Quoted 26 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +5
-8+* Wa_22010271021:tgl,rkl,dg1 +*/ +wa_masked_en (wal, +GEN9_CS_DEBUG_MODE1 , +FF_DOP_CLOCK_GATE_DISABLE ); } if (IS_DG1_REVID(i915, DG1_REVID_A0, DG1_REVID_A0) ||@@ -1796,14 +1804,6 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)GEN6_RC_SLEEP_PSMI_CONTROL ,GEN12_WAIT_FOR_EVENT_POWER_DOWN_DISABLE | GEN8_RC_SEMA_IDLE_MSG_DISABLE); - -/* -* Wa_1606700617:tgl -* Wa_22010271021:tgl,rkl -*/ -wa_masked_en (wal, -GEN9_CS_DEBUG_MODE1 , -FF_DOP_CLOCK_GATE_DISABLE ); }if (IS_GEN (i915,12 )) {Signature · 1 line
2.28.0
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/6 drm/i915/dg1: Implement WA_16011163337
In reply to Lucas De MarchiFrom: Swathi Dhanavanthri <[email protected]>
Set GS Timer to 224.
Bspec: 53508
--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/gt/intel_workarounds.c +5 -0
@@ -684,6 +684,11 @@ static void dg1_ctx_workarounds_init(struct intel_engine_cs *engine,/* Wa_22010493298 */ WA_SET_BIT_MASKED (HIZ_CHICKEN ,DG1_HZ_READ_SUPPRESSION_OPTIMIZATION_DISABLE ); + +/* Wa_16011163337 */ +wa_add (wal, +FF_MODE2 , +FF_MODE2_GS_TIMER_MASK ,FF_MODE2_GS_TIMER_224 ,0 ); } static void
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 6/6] drm/i915/dg1: Implement WA_16011163337
Quoted 17 lines · Lucas De Marchi
From: Swathi Dhanavanthri <[email protected]>
Set GS Timer to 224.
Bspec: 53508Cc Matt Roper <[email protected]>Signed-off-by Swathi Dhanavanthri <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0
drivers/gpu/drm/i915/gt/intel_workarounds.c static void dg1_ctx_workarounds_init(struct intel_engine_cs *engine, · line 691
Quoted 8 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +5
-0@@ -684,6 +684,11 @@ static void dg1_ctx_workarounds_init(struct intel_engine_cs *engine,/* Wa_22010493298 */ WA_SET_BIT_MASKED (HIZ_CHICKEN ,DG1_HZ_READ_SUPPRESSION_OPTIMIZATION_DISABLE ); + +/* Wa_16011163337 */ +wa_add (wal, +FF_MODE2 , +FF_MODE2_GS_TIMER_MASK ,FF_MODE2_GS_TIMER_224 ,0 );
It looks like with the latest bspec updates we can just move this into gen12_ctx_workarounds_init() (and remove the copy in the tgl_ function); it now applies to all platforms that will be using that function.
Matt
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_workarounds.c +0
-0} static voidSignature · 1 line
2.28.0
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for dg1: remaining basic enabling patches
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: dg1: remaining basic enabling patches
URL : https://patchwork.freedesktop.org/series/82905/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip cb46b8b1fbc0 drm/i915/dg1: add hpd interrupt handling 810c0e12bdf7 drm/i915/dg1: invert HPD pins 1dfe3610ce5f drm/i915/dg1: map/unmap pll clocks -:244: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'phy' - possible side-effects? #244: FILE: drivers/gpu/drm/i915/i915_reg.h:10332: +#define DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_VAL_TO_ID(val, phy) \ + ((((val) & DG1_DPCLKA_CFGCR0_DDI_CLK_SEL_MASK(phy)) >> ((phy % 2) * 2)) + (2 * (phy / 2)))
total: 0 errors, 0 warnings, 1 checks, 204 lines checked f65c4b4b84ec drm/i915/dg1: Enable ports 7e72b27c5ac4 drm/i915/dg1: make Wa_22010271021 permanent 634e785b005e drm/i915/dg1: Implement WA_16011163337
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for dg1: remaining basic enabling patches
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: dg1: remaining basic enabling patches
URL : https://patchwork.freedesktop.org/series/82905/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately. - +drivers/gpu/drm/i915/gt/intel_reset.c:1312:5: warning: context imbalance in 'intel_gt_reset_trylock' - different lock contexts for basic block +drivers/gpu/drm/i915/gt/selftest_reset.c:100:20: expected void *in +drivers/gpu/drm/i915/gt/selftest_reset.c:100:20: got void [noderef] __iomem *[assigned] s +drivers/gpu/drm/i915/gt/selftest_reset.c:100:20: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gt/selftest_reset.c:101:46: expected void const *src +drivers/gpu/drm/i915/gt/selftest_reset.c:101:46: got void [noderef] __iomem *[assigned] s +drivers/gpu/drm/i915/gt/selftest_reset.c:101:46: warning: incorrect type in argument 2 (different address spaces) +drivers/gpu/drm/i915/gt/selftest_reset.c:136:20: expected void *in +drivers/gpu/drm/i915/gt/selftest_reset.c:136:20: got void [noderef] __iomem *[assigned] s +drivers/gpu/drm/i915/gt/selftest_reset.c:136:20: warning: incorrect type in assignment (different address spaces) +drivers/gpu/drm/i915/gt/selftest_reset.c:137:46: expected void const *src +drivers/gpu/drm/i915/gt/selftest_reset.c:137:46: got void [noderef] __iomem *[assigned] s +drivers/gpu/drm/i915/gt/selftest_reset.c:137:46: warning: incorrect type in argument 2 (different address spaces) +drivers/gpu/drm/i915/gt/selftest_reset.c:98:34: expected unsigned int [usertype] *s +drivers/gpu/drm/i915/gt/selftest_reset.c:98:34: got void [noderef] __iomem *[assigned] s +drivers/gpu/drm/i915/gt/selftest_reset.c:98:34: warning: incorrect type in argument 1 (different address spaces) +drivers/gpu/drm/i915/gvt/mmio.c:290:23: warning: memcpy with byte count of 279040 +drivers/gpu/drm/i915/i915_perf.c:1440:15: warning: memset with byte count of 16777216 +drivers/gpu/drm/i915/i915_perf.c:1494:15: warning: memset with byte count of 16777216 +./include/linux/seqlock.h:752:24: warning: trying to copy expression type 31 +./include/linux/seqlock.h:778:16: warning: trying to copy expression type 31 +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen11_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen12_fwtable_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read64' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_read8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen6_write8' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write16' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write32' - different lock contexts for basic block +./include/linux/spinlock.h:409:9: warning: context imbalance in 'gen8_write8' - different lock contexts for basic block
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for dg1: remaining basic enabling patches
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: dg1: remaining basic enabling patches
URL : https://patchwork.freedesktop.org/series/82905/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9174 -> Patchwork_18748
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/index.html
Known issues
------------
Here are the changes found in Patchwork_18748 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_flip@basic-flip-vs-wf_vblank@b-edp1:
- fi-icl-u2: [PASS][1] -> [DMESG-WARN][2] ([i915#1982]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/fi-icl-u2/igt@kms_flip@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/fi-icl-u2/igt@kms_flip@[email protected]
#### Possible fixes ####
* igt@gem_ctx_create@basic-files:
- fi-apl-guc: [INCOMPLETE][3] ([i915#1635]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/fi-apl-guc/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/fi-apl-guc/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-byt-j1900: [DMESG-WARN][5] ([i915#1982]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/fi-byt-j1900/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/fi-byt-j1900/igt@[email protected]
- fi-bsw-kefka: [DMESG-WARN][7] ([i915#1982]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/fi-bsw-kefka/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/fi-bsw-kefka/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
- fi-icl-u2: [DMESG-WARN][9] ([i915#1982]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/fi-icl-u2/igt@kms_flip@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/fi-icl-u2/igt@kms_flip@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2417]: https://gitlab.freedesktop.org/drm/intel/issues/2417
Participating hosts (44 -> 38)
------------------------------
Additional (1): fi-skl-guc
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-cfl-guc fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_9174 -> Patchwork_18748
CI-20190529: 20190529
CI_DRM_9174: 66ac51120c329a9f93352cf480f5098adab24af8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5822: b4bcf05cb9839037128905deda7146434155cc41 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18748: 634e785b005e6519017a59badf061f5cb01abf30 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
634e785b005e drm/i915/dg1: Implement WA_16011163337 7e72b27c5ac4 drm/i915/dg1: make Wa_22010271021 permanent f65c4b4b84ec drm/i915/dg1: Enable ports 1dfe3610ce5f drm/i915/dg1: map/unmap pll clocks 810c0e12bdf7 drm/i915/dg1: invert HPD pins cb46b8b1fbc0 drm/i915/dg1: add hpd interrupt handling
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for dg1: remaining basic enabling patches
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: dg1: remaining basic enabling patches
URL : https://patchwork.freedesktop.org/series/82905/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9174_full -> Patchwork_18748_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_18748_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@feature_discovery@psr2:
- shard-iclb: [PASS][1] -> [SKIP][2] ([i915#658])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-iclb2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-iclb5/igt@[email protected]
* igt@gem_exec_reloc@basic-many-active@rcs0:
- shard-hsw: [PASS][3] -> [FAIL][4] ([i915#2389])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-hsw8/igt@gem_exec_reloc@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-hsw7/igt@gem_exec_reloc@[email protected]
* igt@gem_userptr_blits@sync-unmap-cycles:
- shard-skl: [PASS][5] -> [TIMEOUT][6] ([i915#2424])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl9/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl2/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-hsw: [PASS][7] -> [WARN][8] ([i915#1519])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-hsw6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-hsw4/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled:
- shard-glk: [PASS][9] -> [FAIL][10] ([i915#52] / [i915#54])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-glk6/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-glk9/igt@[email protected]
- shard-snb: [PASS][11] -> [FAIL][12] ([i915#54])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-snb5/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-snb7/igt@[email protected]
* igt@kms_flip@blocking-wf_vblank@b-edp1:
- shard-skl: [PASS][13] -> [FAIL][14] ([i915#2122])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl4/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl5/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-modesetfrombusy:
- shard-snb: [PASS][15] -> [FAIL][16] ([i915#2546])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-snb5/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-snb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-shrfb-scaledprimary:
- shard-tglb: [PASS][17] -> [DMESG-WARN][18] ([i915#1982])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-tglb3/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-tglb5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-stridechange:
- shard-glk: [PASS][19] -> [DMESG-WARN][20] ([i915#1982])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-glk6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-glk5/igt@[email protected]
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][21] -> [FAIL][22] ([i915#1188])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl8/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][23] -> [FAIL][24] ([fdo#108145] / [i915#265]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl1/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl7/igt@[email protected]
* igt@kms_psr@psr2_cursor_plane_move:
- shard-iclb: [PASS][25] -> [SKIP][26] ([fdo#109441]) +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-iclb2/igt@kms_psr@psr2_cursor_plane_move.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-iclb5/igt@kms_psr@psr2_cursor_plane_move.html
* igt@perf@short-reads:
- shard-skl: [PASS][27] -> [DMESG-WARN][28] ([i915#1982]) +9 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl3/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl4/igt@[email protected]
#### Possible fixes ####
* igt@core_hotunplug@unbind-rebind:
- shard-skl: [DMESG-WARN][29] ([i915#1982]) -> [PASS][30] +6 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl8/igt@[email protected]
* igt@gem_exec_reloc@basic-many-active@vecs0:
- shard-glk: [FAIL][31] ([i915#2389]) -> [PASS][32] +2 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-glk7/igt@gem_exec_reloc@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-glk5/igt@gem_exec_reloc@[email protected]
* igt@gem_exec_whisper@basic-queues-priority-all:
- shard-glk: [FAIL][33] -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-glk6/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-glk6/igt@[email protected]
* igt@i915_suspend@debugfs-reader:
- shard-kbl: [INCOMPLETE][35] ([i915#155]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-kbl4/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-kbl7/igt@[email protected]
* {igt@kms_async_flips@async-flip-with-page-flip-events}:
- shard-kbl: [FAIL][37] ([i915#2521]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-kbl1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-kbl1/igt@[email protected]
* igt@kms_atomic_transition@plane-use-after-nonblocking-unbind@vga-1-pipe-a:
- shard-hsw: [DMESG-WARN][39] ([i915#1982]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-hsw6/igt@kms_atomic_transition@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-hsw6/igt@kms_atomic_transition@[email protected]
* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy:
- shard-hsw: [FAIL][41] ([i915#96]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-hsw6/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-hsw5/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@b-hdmi-a2:
- shard-glk: [FAIL][43] ([i915#79]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-glk2/igt@kms_flip@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-glk4/igt@kms_flip@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [FAIL][45] ([i915#1188]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl8/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl3/igt@[email protected]
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [SKIP][47] ([fdo#109441]) -> [PASS][48] +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-iclb6/igt@kms_psr@psr2_sprite_mmap_gtt.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
* igt@kms_universal_plane@universal-plane-gen9-features-pipe-a:
- shard-kbl: [DMESG-WARN][49] ([i915#1982]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-kbl2/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-kbl2/igt@[email protected]
* igt@kms_vblank@crtc-id:
- shard-tglb: [DMESG-WARN][51] ([i915#1982]) -> [PASS][52] +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-tglb2/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-tglb3/igt@[email protected]
* igt@perf@polling-parameterized:
- shard-skl: [FAIL][53] ([i915#1542]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-skl3/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-skl4/igt@[email protected]
* igt@perf_pmu@module-unload:
- shard-apl: [DMESG-WARN][55] ([i915#1635] / [i915#1982]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-apl1/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-apl6/igt@[email protected]
* igt@prime_vgem@coherency-blt:
- shard-snb: [FAIL][57] -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-snb2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-snb5/igt@[email protected]
- shard-hsw: [FAIL][59] -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-hsw8/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-hsw8/igt@[email protected]
#### Warnings ####
* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-iclb: [SKIP][61] ([i915#658]) -> [SKIP][62] ([i915#588])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-iclb6/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-iclb2/igt@[email protected]
* igt@i915_pm_rpm@pm-tiling:
- shard-tglb: [DMESG-WARN][63] ([i915#2411]) -> [INCOMPLETE][64] ([i915#2411])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9174/shard-tglb1/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/shard-tglb7/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1519]: https://gitlab.freedesktop.org/drm/intel/issues/1519
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#155]: https://gitlab.freedesktop.org/drm/intel/issues/155
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2389]: https://gitlab.freedesktop.org/drm/intel/issues/2389
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#2424]: https://gitlab.freedesktop.org/drm/intel/issues/2424
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#2546]: https://gitlab.freedesktop.org/drm/intel/issues/2546
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#52]: https://gitlab.freedesktop.org/drm/intel/issues/52
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#588]: https://gitlab.freedesktop.org/drm/intel/issues/588
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#96]: https://gitlab.freedesktop.org/drm/intel/issues/96
Participating hosts (11 -> 11)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_9174 -> Patchwork_18748
CI-20190529: 20190529
CI_DRM_9174: 66ac51120c329a9f93352cf480f5098adab24af8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5822: b4bcf05cb9839037128905deda7146434155cc41 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18748: 634e785b005e6519017a59badf061f5cb01abf30 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18748/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · Lucas De Marchi
These are the remaining patches from
https://patchwork.freedesktop.org/series/82594/Main change here is how we enable hpd interrupt handling since that changed on recent refactors for other platforms. This commit is currently not tested as for DG1 we are still missing the lmem part and other bits to get a usable drivers. I will test it soon with the rebased patches and update here.
Tested on DDI-E and it's working. The only possible issues would be on DDI-D and DDI-E, so this seems good.
Lucas De Marchi
Quoted 17 lines
I'm also a couple of WAs that were added/changed to the spec.
Aditya Swarup (1):
drm/i915/dg1: Enable portsClinton A Taylor (1):
drm/i915/dg1: invert HPD pinsLucas De Marchi (3):
drm/i915/dg1: add hpd interrupt handling
drm/i915/dg1: map/unmap pll clocks
drm/i915/dg1: makeWa_22010271021permanentSwathi Dhanavanthri (1):
drm/i915/dg1: ImplementWA_16011163337
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_ddi.c | 105 ++++++++++++++++++- drivers/gpu/drm/i915/display/intel_display.c | 33 +++++- drivers/gpu/drm/i915/gt/intel_workarounds.c | 21 ++-- drivers/gpu/drm/i915/i915_irq.c | 46 ++++++-- drivers/gpu/drm/i915/i915_reg.h | 27 +++++ 5 files changed, 209 insertions(+), 23 deletions(-)Signature · 1 line
2.28.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx