Introduce DG1
Subsystems (3)
v7 cover Introduce DG1
v7:
- Remove already applied patches and rebase the rest
- Refactor DG1 power well handling to re-use table from TGL
- Squash patch to add all the ports in a single patch
- Use IS_DGFX() for DMC_DEBUG register move
Aditya Swarup (4):
drm/i915/display: allow to skip certain power wells drm/i915/dg1: Add DPLL macros for DG1 drm/i915/dg1: Add and setup DPLLs for DG1 drm/i915/dg1: Enable ports
Anshuman Gupta (2):
drm/i915/dg1: DG1 does not support DC6
drm/i915/dg1: Update DMC_DEBUG register
Clinton A Taylor (1):
drm/i915/dg1: invert HPD pins
Lucas De Marchi (5):
drm/i915/cnl: skip PW_DDI_F on certain skus
drm/i915/dg1: Add DG1 power wells
drm/i915/dg1: Enable DPLL for DG1
drm/i915/dg1: add hpd interrupt handling
drm/i915/dg1: map/unmap pll clocks
Matt Atwood (1):
drm/i915/dg1: Load DMC
Michel Thierry (1):
drm/i915/dgfx: define llc and snooping behaviour
Stuart Summers (1):
drm/i915/dg1: Add initial DG1 workarounds
drivers/gpu/drm/i915/display/intel_csr.c | 12 +- drivers/gpu/drm/i915/display/intel_ddi.c | 92 ++++++++++++++- drivers/gpu/drm/i915/display/intel_display.c | 33 +++++- .../drm/i915/display/intel_display_debugfs.c | 9 +- .../drm/i915/display/intel_display_power.c | 60 ++++++---- .../drm/i915/display/intel_display_power.h | 3 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 54 +++++++-- drivers/gpu/drm/i915/display/intel_dpll_mgr.h | 17 +++ drivers/gpu/drm/i915/display/intel_sprite.c | 4 +- drivers/gpu/drm/i915/gt/intel_workarounds.c | 111 ++++++++++++++---- drivers/gpu/drm/i915/i915_irq.c | 67 +++++++++-- drivers/gpu/drm/i915/i915_pci.c | 4 + drivers/gpu/drm/i915/i915_reg.h | 59 +++++++++- drivers/gpu/drm/i915/intel_pm.c | 39 ++++-- 14 files changed, 470 insertions(+), 94 deletions(-)
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 1/15 drm/i915/display: allow to skip certain power wells
From: Aditya Swarup <[email protected]>
This allows us to skip power wells on a platform allowing it to re-use the table from another one instead of having to create a new table from scratch that is basically a copy with a few removals.
[ Adapt to base ignore logic on pw id rather than adding a new field,
as suggested by Imre ]
--- .../drm/i915/display/intel_display_power.c | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +18 -6
@@ -4554,13 +4554,18 @@ static u32 get_allowed_dc_mask(const struct drm_i915_private *dev_priv,static int __set_power_wells (struct i915_power_domains *power_domains,const struct i915_power_well_desc *power_well_descs, -int power_well_count) +int power_well_descs_sz,u64 skip_mask) {struct drm_i915_private *i915 =container_of (power_domains, struct drm_i915_private, power_domains);u64 power_well_ids =0 ; -int i; +int power_well_count =0 ; +int i, plt_idx =0 ; + +for (i =0 ; i < power_well_descs_sz; i++) +if (!(BIT_ULL (power_well_descs[i].id) & skip_mask)) + power_well_count++; power_domains->power_well_count = power_well_count; power_domains->power_wells =
@@ -4570,10 +4575,14 @@ __set_power_wells(struct i915_power_domains *power_domains,if (!power_domains->power_wells)return -ENOMEM ; -for (i =0 ; i < power_well_count; i++) { +for (i =0 ; i < power_well_descs_sz; i++) {enum i915_power_well_id id = power_well_descs[i].id; - power_domains->power_wells[i].desc = &power_well_descs[i]; +if (BIT_ULL (id) & skip_mask) +continue ; + + power_domains->power_wells[plt_idx++].desc = + &power_well_descs[i];if (id ==DISP_PW_ID_NONE )continue ;
@@ -4586,9 +4595,12 @@ __set_power_wells(struct i915_power_domains *power_domains,return 0 ; } -#define set_power_wells (power_domains, __power_well_descs) \ +#define set_power_wells_mask (power_domains, __power_well_descs, skip_mask) \ __set_power_wells(power_domains, __power_well_descs, \ - ARRAY_SIZE(__power_well_descs)) + ARRAY_SIZE(__power_well_descs), skip_mask) + +#define set_power_wells (power_domains, __power_well_descs) \ + set_power_wells_mask(power_domains, __power_well_descs, 0)/** * intel_power_domains_init - initializes the power domain structures
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 01/15] drm/i915/display: allow to skip certain power wells
Quoted 6 lines · Lucas De Marchi
From: Aditya Swarup <[email protected]>
This allows us to skip power wells on a platform allowing it to re-use the table from another one instead of having to create a new table from scratch that is basically a copy with a few removals.
Quoted 6 lines
Cc Imre Deak <[email protected]>Suggested-by Matt Roper <[email protected]>Signed-off-by Aditya Swarup <[email protected]>[ Adapt to base ignore logic on pw id rather than adding a new field,
as suggested by Imre ]Signed-off-by Lucas De Marchi <[email protected]>
Quoted 64 lines
--- .../drm/i915/display/intel_display_power.c | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/display/intel_display_power.c +18
-6@@ -4554,13 +4554,18 @@ static u32 get_allowed_dc_mask(const struct drm_i915_private *dev_priv,static int __set_power_wells (struct i915_power_domains *power_domains,const struct i915_power_well_desc *power_well_descs, -int power_well_count) +int power_well_descs_sz,u64 skip_mask) {struct drm_i915_private *i915 =container_of (power_domains, struct drm_i915_private, power_domains);u64 power_well_ids =0 ; -int i; +int power_well_count =0 ; +int i, plt_idx =0 ; + +for (i =0 ; i < power_well_descs_sz; i++) +if (!(BIT_ULL (power_well_descs[i].id) & skip_mask)) + power_well_count++; power_domains->power_well_count = power_well_count; power_domains->power_wells =@@ -4570,10 +4575,14 @@ __set_power_wells(struct i915_power_domains *power_domains,if (!power_domains->power_wells)return -ENOMEM ; -for (i =0 ; i < power_well_count; i++) { +for (i =0 ; i < power_well_descs_sz; i++) {enum i915_power_well_id id = power_well_descs[i].id; - power_domains->power_wells[i].desc = &power_well_descs[i]; +if (BIT_ULL (id) & skip_mask) +continue ; + + power_domains->power_wells[plt_idx++].desc = + &power_well_descs[i];if (id ==DISP_PW_ID_NONE )continue ;@@ -4586,9 +4595,12 @@ __set_power_wells(struct i915_power_domains *power_domains,return 0 ; } -#define set_power_wells (power_domains, __power_well_descs) \ +#define set_power_wells_mask (power_domains, __power_well_descs, skip_mask) \ __set_power_wells(power_domains, __power_well_descs, \ - ARRAY_SIZE(__power_well_descs)) + ARRAY_SIZE(__power_well_descs), skip_mask) + +#define set_power_wells (power_domains, __power_well_descs) \ + set_power_wells_mask(power_domains, __power_well_descs, 0)/** * intel_power_domains_init - initializes the power domain structures 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 v7 2/15 drm/i915/cnl: skip PW_DDI_F on certain skus
In reply to Lucas De MarchiThe skus guarded by IS_CNL_WITH_PORT_F() have port F and thus they need those power wells. The others don't have those. Up to now we were just overriding the number of power wells on !IS_CNL_WITH_PORT_F(), relying on those power wells to be the last ones. Now that we have logic in place to skip power wells by id, use it instead.
--- .../drm/i915/display/intel_display_power.c | 19 +++++++------------ .../drm/i915/display/intel_display_power.h | 2 ++ 2 files changed, 9 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +7 -12
@@ -3650,7 +3650,7 @@ static const struct i915_power_well_desc cnl_power_wells[] = { .name = "DDI F IO power well", .domains = CNL_DISPLAY_DDI_F_IO_POWER_DOMAINS, .ops = &hsw_power_well_ops, - .id = DISP_PW_ID_NONE, + .id = CNL_DISP_PW_DDI_F_IO, { .hsw.regs = &hsw_power_well_regs, .hsw.idx = CNL_PW_CTL_IDX_DDI_F,
@@ -3660,7 +3660,7 @@ static const struct i915_power_well_desc cnl_power_wells[] = { .name = "AUX F", .domains = CNL_DISPLAY_AUX_F_POWER_DOMAINS, .ops = &hsw_power_well_ops, - .id = DISP_PW_ID_NONE, + .id = CNL_DISP_PW_DDI_F_AUX, { .hsw.regs = &hsw_power_well_regs, .hsw.idx = CNL_PW_CTL_IDX_AUX_F,
@@ -4640,17 +4640,12 @@ int intel_power_domains_init(struct drm_i915_private *dev_priv) err =set_power_wells (power_domains, tgl_power_wells); }else if (IS_GEN (dev_priv,11 )) { err =set_power_wells (power_domains, icl_power_wells); - }else if (IS_CANNONLAKE (dev_priv)) { + }else if (IS_CNL_WITH_PORT_F (dev_priv)) { err =set_power_wells (power_domains, cnl_power_wells); - -/* -* DDI and Aux IO are getting enabled for all ports -* regardless the presence or use. So, in order to avoid -* timeouts, lets remove them from the list -* for the SKUs without port F. -*/ -if (!IS_CNL_WITH_PORT_F (dev_priv)) - power_domains->power_well_count -=2 ; + }else if (IS_CANNONLAKE (dev_priv)) { + err =set_power_wells_mask (power_domains, cnl_power_wells, +BIT_ULL (CNL_DISP_PW_DDI_F_IO ) | +BIT_ULL (CNL_DISP_PW_DDI_F_AUX )); }else if (IS_GEMINILAKE (dev_priv)) { err =set_power_wells (power_domains, glk_power_wells); }else if (IS_BROXTON (dev_priv)) {
drivers/gpu/drm/i915/display/intel_display_power.h +2 -0
@@ -101,6 +101,8 @@ enum i915_power_well_id {SKL_DISP_PW_MISC_IO ,SKL_DISP_PW_1 ,SKL_DISP_PW_2 , +CNL_DISP_PW_DDI_F_IO , +CNL_DISP_PW_DDI_F_AUX ,ICL_DISP_PW_3 , SKL_DISP_DC_OFF, };
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 02/15] drm/i915/cnl: skip PW_DDI_F on certain skus
Quoted 7 lines · Lucas De Marchi
The skus guarded by
IS_CNL_WITH_PORT_F()have port F and thus they need those power wells. The others don't have those. Up to now we were just overriding the number of power wells on !IS_CNL_WITH_PORT_F(), relying on those power wells to be the last ones. Now that we have logic in place to skip power wells by id, use it instead.Signed-off-by Lucas De Marchi <[email protected]>
Quoted 66 lines
--- .../drm/i915/display/intel_display_power.c | 19 +++++++------------ .../drm/i915/display/intel_display_power.h | 2 ++ 2 files changed, 9 insertions(+), 12 deletions(-)drivers/gpu/drm/i915/display/intel_display_power.c +7
-12@@ -3650,7 +3650,7 @@ static const struct i915_power_well_desc cnl_power_wells[] = { .name = "DDI F IO power well", .domains = CNL_DISPLAY_DDI_F_IO_POWER_DOMAINS, .ops = &hsw_power_well_ops, - .id = DISP_PW_ID_NONE, + .id = CNL_DISP_PW_DDI_F_IO, { .hsw.regs = &hsw_power_well_regs, .hsw.idx = CNL_PW_CTL_IDX_DDI_F,@@ -3660,7 +3660,7 @@ static const struct i915_power_well_desc cnl_power_wells[] = { .name = "AUX F", .domains = CNL_DISPLAY_AUX_F_POWER_DOMAINS, .ops = &hsw_power_well_ops, - .id = DISP_PW_ID_NONE, + .id = CNL_DISP_PW_DDI_F_AUX, { .hsw.regs = &hsw_power_well_regs, .hsw.idx = CNL_PW_CTL_IDX_AUX_F,@@ -4640,17 +4640,12 @@ int intel_power_domains_init(struct drm_i915_private *dev_priv) err =set_power_wells (power_domains, tgl_power_wells); }else if (IS_GEN (dev_priv,11 )) { err =set_power_wells (power_domains, icl_power_wells); - }else if (IS_CANNONLAKE (dev_priv)) { + }else if (IS_CNL_WITH_PORT_F (dev_priv)) { err =set_power_wells (power_domains, cnl_power_wells); - -/* -* DDI and Aux IO are getting enabled for all ports -* regardless the presence or use. So, in order to avoid -* timeouts, lets remove them from the list -* for the SKUs without port F. -*/ -if (!IS_CNL_WITH_PORT_F (dev_priv)) - power_domains->power_well_count -=2 ; + }else if (IS_CANNONLAKE (dev_priv)) { + err =set_power_wells_mask (power_domains, cnl_power_wells, +BIT_ULL (CNL_DISP_PW_DDI_F_IO ) | +BIT_ULL (CNL_DISP_PW_DDI_F_AUX )); }else if (IS_GEMINILAKE (dev_priv)) { err =set_power_wells (power_domains, glk_power_wells); }else if (IS_BROXTON (dev_priv)) {drivers/gpu/drm/i915/display/intel_display_power.h +2
-0@@ -101,6 +101,8 @@ enum i915_power_well_id {SKL_DISP_PW_MISC_IO ,SKL_DISP_PW_1 ,SKL_DISP_PW_2 , +CNL_DISP_PW_DDI_F_IO , +CNL_DISP_PW_DDI_F_AUX ,ICL_DISP_PW_3 , SKL_DISP_DC_OFF, };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 v7 3/15 drm/i915/dg1: Add DG1 power wells
In reply to Lucas De MarchiTGL power wells can be re-used for DG1 with the exception of the fake power well for TC_COLD.
v2: use logic to skip power wells while copying instead of duplicating the definition of TGL power wells (Matt Roper)
Bspec: 49182
--- drivers/gpu/drm/i915/display/intel_display_power.c | 7 +++++-- drivers/gpu/drm/i915/display/intel_display_power.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +5 -2
@@ -4150,7 +4150,7 @@ static const struct i915_power_well_desc tgl_power_wells[] = { .name = "TC cold off", .domains = TGL_TC_COLD_OFF_POWER_DOMAINS, .ops = &tgl_tc_cold_off_ops, - .id = DISP_PW_ID_NONE, + .id = TGL_DISP_PW_TC_COLD_OFF, }, { .name = "AUX A",
@@ -4634,7 +4634,10 @@ int intel_power_domains_init(struct drm_i915_private *dev_priv)* The enabling order will be from lower to higher indexed wells, * the disabling order is reversed. */ -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { + err =set_power_wells_mask (power_domains, tgl_power_wells, +BIT_ULL (TGL_DISP_PW_TC_COLD_OFF )); + }else if (IS_ROCKETLAKE (dev_priv)) { err =set_power_wells (power_domains, rkl_power_wells); }else if (IS_GEN (dev_priv,12 )) { err =set_power_wells (power_domains, tgl_power_wells);
drivers/gpu/drm/i915/display/intel_display_power.h +1 -0
@@ -105,6 +105,7 @@ enum i915_power_well_id {CNL_DISP_PW_DDI_F_AUX ,ICL_DISP_PW_3 ,SKL_DISP_DC_OFF , + TGL_DISP_PW_TC_COLD_OFF, };#define POWER_DOMAIN_PIPE (pipe) ((pipe) + POWER_DOMAIN_PIPE_A)
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 03/15] drm/i915/dg1: Add DG1 power wells
Quoted 11 lines · Lucas De Marchi
TGL power wells can be re-used for DG1 with the exception of the fake power well for
TC_COLD.v2: use logic to skip power wells while copying instead of duplicating the definition of TGL power wells (Matt Roper)
Bspec: 49182
Cc Matt Roper <[email protected]>Cc Anshuman Gupta <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>
Much simpler now. :-)
Quoted 45 lines
--- drivers/gpu/drm/i915/display/intel_display_power.c | 7 +++++-- drivers/gpu/drm/i915/display/intel_display_power.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_display_power.c +5
-2@@ -4150,7 +4150,7 @@ static const struct i915_power_well_desc tgl_power_wells[] = { .name = "TC cold off", .domains = TGL_TC_COLD_OFF_POWER_DOMAINS, .ops = &tgl_tc_cold_off_ops, - .id = DISP_PW_ID_NONE, + .id = TGL_DISP_PW_TC_COLD_OFF, }, { .name = "AUX A",@@ -4634,7 +4634,10 @@ int intel_power_domains_init(struct drm_i915_private *dev_priv)* The enabling order will be from lower to higher indexed wells, * the disabling order is reversed. */ -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { + err =set_power_wells_mask (power_domains, tgl_power_wells, +BIT_ULL (TGL_DISP_PW_TC_COLD_OFF )); + }else if (IS_ROCKETLAKE (dev_priv)) { err =set_power_wells (power_domains, rkl_power_wells); }else if (IS_GEN (dev_priv,12 )) { err =set_power_wells (power_domains, tgl_power_wells);drivers/gpu/drm/i915/display/intel_display_power.h +1
-0@@ -105,6 +105,7 @@ enum i915_power_well_id {CNL_DISP_PW_DDI_F_AUX ,ICL_DISP_PW_3 ,SKL_DISP_DC_OFF , + TGL_DISP_PW_TC_COLD_OFF, };#define POWER_DOMAIN_PIPE (pipe) ((pipe) + POWER_DOMAIN_PIPE_A)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 v7 4/15 drm/i915/dg1: Add DPLL macros for DG1
In reply to Lucas De MarchiFrom: Aditya Swarup <[email protected]>
DG1 has 4 DPLLs where DPLL0 and DPLL1 drive DDIA/B and DPLL2 and DPLL3 drive DDI-TC1/DDI-TC2.
Introduce DG1_DPLL_CFCRx() helper macros to configure DPLL registers.
Bspec: 50288, 50299
--- drivers/gpu/drm/i915/display/intel_dpll_mgr.h | 17 +++++++++++++++++ drivers/gpu/drm/i915/i915_reg.h | 17 ++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +17 -0
@@ -154,6 +154,23 @@ enum intel_dpll_id {* @DPLL_ID_TGL_MGPLL6: TGL TC PLL port 6 (TC6) */ DPLL_ID_TGL_MGPLL6 =8 , + +/** +* @DPLL_ID_DG1_DPLL0: DG1 combo PHY DPLL0 +*/ +DPLL_ID_DG1_DPLL0 =0 , +/** +* @DPLL_ID_DG1_DPLL1: DG1 combo PHY DPLL1 +*/ +DPLL_ID_DG1_DPLL1 =1 , +/** +* @DPLL_ID_DG1_DPLL2: DG1 combo PHY DPLL2 +*/ +DPLL_ID_DG1_DPLL2 =2 , +/** +* @DPLL_ID_DG1_DPLL3: DG1 combo PHY DPLL3 +*/ + DPLL_ID_DG1_DPLL3 = 3, };#define I915_NUM_PLLS 9
drivers/gpu/drm/i915/i915_reg.h +16 -1
@@ -242,7 +242,8 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define _MMIO_PIPE3 (pipe, a, b, c) _MMIO(_PICK(pipe, a, b, c))#define _MMIO_PORT3 (pipe, a, b, c) _MMIO(_PICK(pipe, a, b, c))#define _MMIO_PHY3 (phy, a, b, c) _MMIO(_PHY3(phy, a, b, c)) -#define _MMIO_PLL3 (pll, a, b, c) _MMIO(_PICK(pll, a, b, c)) +#define _MMIO_PLL3 (pll, ...) _MMIO(_PICK(pll, __VA_ARGS__)) +/* * Device info offset array based helpers for groups of registers with unevenly
@@ -10531,6 +10532,20 @@ enum skl_power_gate {#define RKL_DPLL_CFGCR1 (pll) _MMIO_PLL(pll, _TGL_DPLL0_CFGCR1, \ _TGL_DPLL1_CFGCR1) +#define _DG1_DPLL2_CFGCR0 0x16C284 +#define _DG1_DPLL3_CFGCR0 0x16C28C +#define DG1_DPLL_CFGCR0 (pll) _MMIO_PLL3(pll, _TGL_DPLL0_CFGCR0, \ + _TGL_DPLL1_CFGCR0, \ + _DG1_DPLL2_CFGCR0, \ + _DG1_DPLL3_CFGCR0) + +#define _DG1_DPLL2_CFGCR1 0x16C288 +#define _DG1_DPLL3_CFGCR1 0x16C290 +#define DG1_DPLL_CFGCR1 (pll) _MMIO_PLL3(pll, _TGL_DPLL0_CFGCR1, \ + _TGL_DPLL1_CFGCR1, \ + _DG1_DPLL2_CFGCR1, \ + _DG1_DPLL3_CFGCR1) +#define _DKL_PHY1_BASE 0x168000#define _DKL_PHY2_BASE 0x169000#define _DKL_PHY3_BASE 0x16A000
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 5/15 drm/i915/dg1: Add and setup DPLLs for DG1
In reply to Lucas De MarchiFrom: Aditya Swarup <[email protected]>
Add entries for dg1 plls and setup dg1_pll_mgr to reuse ICL callbacks. Initial setup for shared dplls DPLL0/1 for DDIA/DDIB and DPLL2/3 for DDI-TC1/DDI-TC2. Configure dpll cfgcrx registers to drive the plls on DG1.
v2 (Lucas): Reword commit message and add missing update_ref_clks hook
(requested by Matt Roper)
--- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 42 +++++++++++++++++-- 1 file changed, 38 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +38 -4
@@ -3546,7 +3546,17 @@ static bool icl_get_combo_phy_dpll(struct intel_atomic_state *state,icl_calc_dpll_state (dev_priv, &pll_params, &port_dpll->hw_state); -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { +if (port ==PORT_D || port ==PORT_E ) { + dpll_mask = +BIT (DPLL_ID_DG1_DPLL2 ) | +BIT (DPLL_ID_DG1_DPLL3 ); + }else { + dpll_mask = +BIT (DPLL_ID_DG1_DPLL0 ) | +BIT (DPLL_ID_DG1_DPLL1 ); + } + }else if (IS_ROCKETLAKE (dev_priv)) { dpll_mask =BIT (DPLL_ID_EHL_DPLL4 ) | BIT(DPLL_ID_ICL_DPLL1) |
@@ -3842,7 +3852,10 @@ static bool icl_pll_get_hw_state(struct drm_i915_private *dev_priv,if (!(val &PLL_ENABLE )) goto out; -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { + hw_state->cfgcr0 =intel_de_read (dev_priv,DG1_DPLL_CFGCR0 (id)); + hw_state->cfgcr1 =intel_de_read (dev_priv,DG1_DPLL_CFGCR1 (id)); + }else if (IS_ROCKETLAKE (dev_priv)) { hw_state->cfgcr0 =intel_de_read (dev_priv,RKL_DPLL_CFGCR0 (id)); hw_state->cfgcr1 = intel_de_read(dev_priv,
@@ -3895,7 +3908,10 @@ static void icl_dpll_write(struct drm_i915_private *dev_priv,const enum intel_dpll_id id = pll->info->id;i915_reg_t cfgcr0_reg, cfgcr1_reg; -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { + cfgcr0_reg =DG1_DPLL_CFGCR0 (id); + cfgcr1_reg =DG1_DPLL_CFGCR1 (id); + }else if (IS_ROCKETLAKE (dev_priv)) { cfgcr0_reg =RKL_DPLL_CFGCR0 (id); cfgcr1_reg =RKL_DPLL_CFGCR1 (id); }else if (INTEL_GEN (dev_priv) >=12 ) {
@@ -4339,6 +4355,22 @@ static const struct intel_dpll_mgr rkl_pll_mgr = { .dump_hw_state = icl_dump_hw_state, }; +static const struct dpll_info dg1_plls[] = { + {"DPLL 0" , &combo_pll_funcs,DPLL_ID_DG1_DPLL0 ,0 }, + {"DPLL 1" , &combo_pll_funcs,DPLL_ID_DG1_DPLL1 ,0 }, + {"DPLL 2" , &combo_pll_funcs,DPLL_ID_DG1_DPLL2 ,0 }, + {"DPLL 3" , &combo_pll_funcs,DPLL_ID_DG1_DPLL3 ,0 }, + { }, +}; + +static const struct intel_dpll_mgr dg1_pll_mgr = { + .dpll_info = dg1_plls, + .get_dplls = icl_get_dplls, + .put_dplls = icl_put_dplls, + .update_ref_clks = icl_update_dpll_ref_clks, + .dump_hw_state = icl_dump_hw_state, +}; +/** * intel_shared_dpll_init - Initialize shared DPLLs * @dev: drm device
@@ -4352,7 +4384,9 @@ void intel_shared_dpll_init(struct drm_device *dev)const struct dpll_info *dpll_info;int i; -if (IS_ROCKETLAKE (dev_priv)) +if (IS_DG1 (dev_priv)) + dpll_mgr = &dg1_pll_mgr; +else if (IS_ROCKETLAKE (dev_priv)) dpll_mgr = &rkl_pll_mgr;else if (INTEL_GEN (dev_priv) >=12 ) dpll_mgr = &tgl_pll_mgr;
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 05/15] drm/i915/dg1: Add and setup DPLLs for DG1
Quoted 7 lines · Lucas De Marchi
From: Aditya Swarup <[email protected]>
Add entries for dg1 plls and setup
dg1_pll_mgrto reuse ICL callbacks. Initial setup for shared dplls DPLL0/1 for DDIA/DDIB and DPLL2/3 for DDI-TC1/DDI-TC2. Configure dpll cfgcrx registers to drive the plls on DG1.
Quoted 5 lines
v2 (Lucas): Reword commit message and add missing
update_ref_clkshook
(requested by Matt Roper)Signed-off-by Aditya Swarup <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>
Lucas De Marchi
Quoted 92 lines
---
drivers/gpu/drm/i915/display/intel_dpll_mgr.c| 42 +++++++++++++++++--1 file changed, 38 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_dpll_mgr.c +38
-4@@ -3546,7 +3546,17 @@ static bool icl_get_combo_phy_dpll(struct intel_atomic_state *state,icl_calc_dpll_state (dev_priv, &pll_params, &port_dpll->hw_state); -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { +if (port ==PORT_D || port ==PORT_E ) { + dpll_mask = +BIT (DPLL_ID_DG1_DPLL2 ) | +BIT (DPLL_ID_DG1_DPLL3 ); + }else { + dpll_mask = +BIT (DPLL_ID_DG1_DPLL0 ) | +BIT (DPLL_ID_DG1_DPLL1 ); + } + }else if (IS_ROCKETLAKE (dev_priv)) { dpll_mask =BIT (DPLL_ID_EHL_DPLL4 ) | BIT(DPLL_ID_ICL_DPLL1) |@@ -3842,7 +3852,10 @@ static bool icl_pll_get_hw_state(struct drm_i915_private *dev_priv,if (!(val &PLL_ENABLE )) goto out; -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { + hw_state->cfgcr0 =intel_de_read (dev_priv,DG1_DPLL_CFGCR0 (id)); + hw_state->cfgcr1 =intel_de_read (dev_priv,DG1_DPLL_CFGCR1 (id)); + }else if (IS_ROCKETLAKE (dev_priv)) { hw_state->cfgcr0 =intel_de_read (dev_priv,RKL_DPLL_CFGCR0 (id)); hw_state->cfgcr1 = intel_de_read(dev_priv,@@ -3895,7 +3908,10 @@ static void icl_dpll_write(struct drm_i915_private *dev_priv,const enum intel_dpll_id id = pll->info->id;i915_reg_t cfgcr0_reg, cfgcr1_reg; -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { + cfgcr0_reg =DG1_DPLL_CFGCR0 (id); + cfgcr1_reg =DG1_DPLL_CFGCR1 (id); + }else if (IS_ROCKETLAKE (dev_priv)) { cfgcr0_reg =RKL_DPLL_CFGCR0 (id); cfgcr1_reg =RKL_DPLL_CFGCR1 (id); }else if (INTEL_GEN (dev_priv) >=12 ) {@@ -4339,6 +4355,22 @@ static const struct intel_dpll_mgr rkl_pll_mgr = { .dump_hw_state = icl_dump_hw_state, }; +static const struct dpll_info dg1_plls[] = { + {"DPLL 0" , &combo_pll_funcs,DPLL_ID_DG1_DPLL0 ,0 }, + {"DPLL 1" , &combo_pll_funcs,DPLL_ID_DG1_DPLL1 ,0 }, + {"DPLL 2" , &combo_pll_funcs,DPLL_ID_DG1_DPLL2 ,0 }, + {"DPLL 3" , &combo_pll_funcs,DPLL_ID_DG1_DPLL3 ,0 }, + { }, +}; + +static const struct intel_dpll_mgr dg1_pll_mgr = { + .dpll_info = dg1_plls, + .get_dplls = icl_get_dplls, + .put_dplls = icl_put_dplls, + .update_ref_clks = icl_update_dpll_ref_clks, + .dump_hw_state = icl_dump_hw_state, +}; +/** * intel_shared_dpll_init - Initialize shared DPLLs * @dev: drm device @@ -4352,7 +4384,9 @@ void intel_shared_dpll_init(struct drm_device *dev)const struct dpll_info *dpll_info;int i; -if (IS_ROCKETLAKE (dev_priv)) +if (IS_DG1 (dev_priv)) + dpll_mgr = &dg1_pll_mgr; +else if (IS_ROCKETLAKE (dev_priv)) dpll_mgr = &rkl_pll_mgr;else if (INTEL_GEN (dev_priv) >=12 ) dpll_mgr = &tgl_pll_mgr;Signature · 6 lines
2.28.0 _______________________________________________ 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 v7 6/15 drm/i915/dg1: Enable DPLL for DG1
In reply to Lucas De MarchiAdd DG1 DPLL Enable register macro and use the macro to enable the correct DPLL based on PLL id. Although we use _MG_PLL1_ENABLE/_MG_PLL2_ENABLE these are rather combo phys.
While at it, fix coding style: wrong newlines and use if/else chain
v2: Rewrite original patch from Aditya Swarup based on refactors upstream
Bspec: 49443, 49206
--- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 12 ++++++------ drivers/gpu/drm/i915/i915_reg.h | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +6 -6
@@ -151,14 +151,14 @@ static i915_reg_t intel_combo_pll_enable_reg(struct drm_i915_private *i915, struct intel_shared_dpll *pll) { - - if (IS_ELKHARTLAKE(i915) && (pll->info->id == DPLL_ID_EHL_DPLL4)) + if (IS_DG1(i915)) + return DG1_DPLL_ENABLE(pll->info->id); + else if (IS_ELKHARTLAKE(i915) && (pll->info->id == DPLL_ID_EHL_DPLL4)) return MG_PLL_ENABLE(0); - - return CNL_DPLL_ENABLE(pll->info->id); - - + else + return CNL_DPLL_ENABLE(pll->info->id); } +/** * intel_prepare_shared_dpll - call a dpll's prepare hook * @crtc_state: CRTC, and its state, which has a shared dpll
drivers/gpu/drm/i915/i915_reg.h +4 -0
@@ -10316,6 +10316,10 @@ enum skl_power_gate {#define MG_PLL_ENABLE (tc_port) _MMIO_PORT((tc_port), _MG_PLL1_ENABLE, \ _MG_PLL2_ENABLE) +/* DG1 PLL */ +#define DG1_DPLL_ENABLE (pll) _MMIO_PLL3(pll, DPLL0_ENABLE, DPLL1_ENABLE, \ + _MG_PLL1_ENABLE, _MG_PLL2_ENABLE) +#define _MG_REFCLKIN_CTL_PORT1 0x16892C#define _MG_REFCLKIN_CTL_PORT2 0x16992C#define _MG_REFCLKIN_CTL_PORT3 0x16A92C
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 06/15] drm/i915/dg1: Enable DPLL for DG1
Quoted 9 lines · Lucas De Marchi
Add DG1 DPLL Enable register macro and use the macro to enable the correct DPLL based on PLL id. Although we use _MG_PLL1_ENABLE/_MG_PLL2_ENABLE these are rather combo phys.
While at it, fix coding style: wrong newlines and use if/else chain
v2: Rewrite original patch from Aditya Swarup based on refactors upstream
Quoted 6 lines
Bspec: 49443, 49206
Cc Clinton Taylor <[email protected]>Cc Matt Roper <[email protected]>Cc Aditya Swarup <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>
Quoted 36 lines
--- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 12 ++++++------ drivers/gpu/drm/i915/i915_reg.h | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/display/intel_dpll_mgr.c +6
-6@@ -151,14 +151,14 @@ static i915_reg_t intel_combo_pll_enable_reg(struct drm_i915_private *i915, struct intel_shared_dpll *pll) { - - if (IS_ELKHARTLAKE(i915) && (pll->info->id == DPLL_ID_EHL_DPLL4)) + if (IS_DG1(i915)) + return DG1_DPLL_ENABLE(pll->info->id); + else if (IS_ELKHARTLAKE(i915) && (pll->info->id == DPLL_ID_EHL_DPLL4)) return MG_PLL_ENABLE(0); - - return CNL_DPLL_ENABLE(pll->info->id); - - + else + return CNL_DPLL_ENABLE(pll->info->id); } +/** * intel_prepare_shared_dpll - call a dpll's prepare hook * @crtc_state: CRTC, and its state, which has a shared dpll drivers/gpu/drm/i915/i915_reg.h +0
-0
drivers/gpu/drm/i915/i915_reg.h enum skl_power_gate { · line 10325
Quoted 10 lines
drivers/gpu/drm/i915/i915_reg.h +4
-0@@ -10316,6 +10316,10 @@ enum skl_power_gate {#define MG_PLL_ENABLE (tc_port) _MMIO_PORT((tc_port), _MG_PLL1_ENABLE, \ _MG_PLL2_ENABLE) +/* DG1 PLL */ +#define DG1_DPLL_ENABLE (pll) _MMIO_PLL3(pll, DPLL0_ENABLE, DPLL1_ENABLE, \ + _MG_PLL1_ENABLE, _MG_PLL2_ENABLE) +#define _MG_REFCLKIN_CTL_PORT1 0x16892C#define _MG_REFCLKIN_CTL_PORT2 0x16992C#define _MG_REFCLKIN_CTL_PORT3 0x16A92C
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 7/15 drm/i915/dg1: add hpd interrupt handling
In reply to Lucas De MarchiDG1 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: Rebase on hpd refactor
--- drivers/gpu/drm/i915/i915_irq.c | 58 +++++++++++++++++++++++++++++---- drivers/gpu/drm/i915/i915_reg.h | 8 +++++ 2 files changed, 59 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/i915_irq.c +51 -7
@@ -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_dg1_sde[HPD_NUM_PINS ] = { + [HPD_PORT_A ] =SDE_DDI_HOTPLUG_ICP (PHY_A ), + [HPD_PORT_B ] =SDE_DDI_HOTPLUG_ICP (PHY_B ), + [HPD_PORT_D ] =SDE_DDI_HOTPLUG_ICP (PHY_C ), + [HPD_PORT_E ] =SDE_DDI_HOTPLUG_ICP (PHY_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_dg1_sde; +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;
@@ -1079,6 +1089,22 @@ static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val) } } +static bool dg1_ddi_port_hotplug_long_detect (enum hpd_pin pin,u32 val) +{ +switch (pin) { +case HPD_PORT_A : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_A ); +case HPD_PORT_B : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_B ); +case HPD_PORT_D : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_C ); +case HPD_PORT_E : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_D ); +default : +return false; + } +} +static bool icp_tc_port_hotplug_long_detect (enum hpd_pin pin,u32 val) {switch (pin) {
@@ -1863,12 +1889,19 @@ 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 ; +bool (*ddi_port_hotplug_long_detect)(enum hpd_pin pin,u32 val); -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) { + ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_DG1 ; + ddi_port_hotplug_long_detect = dg1_ddi_port_hotplug_long_detect; + tc_hotplug_trigger =0 ; + }else if (HAS_PCH_TGP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_TGP ; }else if (HAS_PCH_JSP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger =0 ; }else if (HAS_PCH_MCC (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_ICP ;
@@ -1879,6 +1912,7 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir) INTEL_PCH_TYPE(dev_priv)); ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_ICP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_ICP ; }
@@ -1891,7 +1925,7 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir)intel_get_hpd_pins (dev_priv, &pin_mask, &long_mask, ddi_hotplug_trigger, dig_hotplug_reg, dev_priv->hotplug.pch_hpd, - icp_ddi_port_hotplug_long_detect); + ddi_port_hotplug_long_detect); }if (tc_hotplug_trigger) {
@@ -3252,6 +3286,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 +3685,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 +4204,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
@@ -8230,6 +8230,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)
@@ -8429,6 +8433,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 v7 07/15] drm/i915/dg1: add hpd interrupt handling
Quoted 86 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: 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]>--- drivers/gpu/drm/i915/i915_irq.c | 58 +++++++++++++++++++++++++++++---- drivers/gpu/drm/i915/i915_reg.h | 8 +++++ 2 files changed, 59 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/i915_irq.c +34
-4@@ -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_dg1_sde[HPD_NUM_PINS ] = { + [HPD_PORT_A ] =SDE_DDI_HOTPLUG_ICP (PHY_A ), + [HPD_PORT_B ] =SDE_DDI_HOTPLUG_ICP (PHY_B ), + [HPD_PORT_D ] =SDE_DDI_HOTPLUG_ICP (PHY_C ), + [HPD_PORT_E ] =SDE_DDI_HOTPLUG_ICP (PHY_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_dg1_sde; +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;@@ -1079,6 +1089,22 @@ static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val) } } +static bool dg1_ddi_port_hotplug_long_detect (enum hpd_pin pin,u32 val) +{ +switch (pin) { +case HPD_PORT_A : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_A ); +case HPD_PORT_B : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_B ); +case HPD_PORT_D : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_C ); +case HPD_PORT_E : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_D ); +default : +return false; + } +} +static bool icp_tc_port_hotplug_long_detect (enum hpd_pin pin,u32 val) {switch (pin) {@@ -1863,12 +1889,19 @@ 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 ; +bool (*ddi_port_hotplug_long_detect)(enum hpd_pin pin,u32 val); -if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) { + ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_DG1 ; + ddi_port_hotplug_long_detect = dg1_ddi_port_hotplug_long_detect; + tc_hotplug_trigger =0 ;
drivers/gpu/drm/i915/i915_irq.c static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir) · line 1907
Quoted 10 lines
drivers/gpu/drm/i915/i915_irq.c +3
-0+ }else if (HAS_PCH_TGP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_TGP ; }else if (HAS_PCH_JSP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger =0 ; }else if (HAS_PCH_MCC (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_ICP ;
Missing ddi_port_hotplug_long_detect assignment for HAS_PCH_MCC.
Just a suggestion: We can by default assign ddi_port_hotplug_long_detect with icp_ddi_port_hotplug_long_detect outside the if else branching(during declaration).
Assign the func ptr within platform checks only if it is different from icp like in the case for dg1.
Aditya
Quoted 69 lines
drivers/gpu/drm/i915/i915_irq.c +14
-3@@ -1879,6 +1912,7 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir) INTEL_PCH_TYPE(dev_priv)); ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_ICP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_ICP ; }@@ -1891,7 +1925,7 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir)intel_get_hpd_pins (dev_priv, &pin_mask, &long_mask, ddi_hotplug_trigger, dig_hotplug_reg, dev_priv->hotplug.pch_hpd, - icp_ddi_port_hotplug_long_detect); + ddi_port_hotplug_long_detect); }if (tc_hotplug_trigger) {@@ -3252,6 +3286,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 +3685,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 +4204,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 +4
-0@@ -8230,6 +8230,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)
drivers/gpu/drm/i915/i915_reg.h enum { · line 8442
Quoted 10 lines
drivers/gpu/drm/i915/i915_reg.h +4
-0@@ -8429,6 +8433,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
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH v7 07/15] drm/i915/dg1: add hpd interrupt handling
Quoted 82 lines · Aditya Swarup
Quoted 81 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: 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]>--- drivers/gpu/drm/i915/i915_irq.c | 58 +++++++++++++++++++++++++++++---- drivers/gpu/drm/i915/i915_reg.h | 8 +++++ 2 files changed, 59 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/i915_irq.c +30
-3@@ -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_dg1_sde[HPD_NUM_PINS ] = { + [HPD_PORT_A ] =SDE_DDI_HOTPLUG_ICP (PHY_A ), + [HPD_PORT_B ] =SDE_DDI_HOTPLUG_ICP (PHY_B ), + [HPD_PORT_D ] =SDE_DDI_HOTPLUG_ICP (PHY_C ), + [HPD_PORT_E ] =SDE_DDI_HOTPLUG_ICP (PHY_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_dg1_sde; +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;@@ -1079,6 +1089,22 @@ static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val) } } +static bool dg1_ddi_port_hotplug_long_detect (enum hpd_pin pin,u32 val) +{ +switch (pin) { +case HPD_PORT_A : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_A ); +case HPD_PORT_B : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_B ); +case HPD_PORT_D : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_C ); +case HPD_PORT_E : +return val &SHOTPLUG_CTL_DDI_HPD_LONG_DETECT (PORT_D ); +default : +return false; + } +} +static bool icp_tc_port_hotplug_long_detect (enum hpd_pin pin,u32 val) {switch (pin) {@@ -1863,12 +1889,19 @@ 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 ; +bool (*ddi_port_hotplug_long_detect)(enum hpd_pin pin,u32 val);
Quoted 16 lines
Quoted 5 lines
drivers/gpu/drm/i915/i915_irq.c +4
-1-if (HAS_PCH_TGP (dev_priv)) { +if (HAS_PCH_DG1 (dev_priv)) { + ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_DG1 ; + ddi_port_hotplug_long_detect = dg1_ddi_port_hotplug_long_detect; + tc_hotplug_trigger =0 ;drivers/gpu/drm/i915/i915_irq.c static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir) · line 1907
Quoted 10 lines
drivers/gpu/drm/i915/i915_irq.c +3
-0+ }else if (HAS_PCH_TGP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_TGP ; }else if (HAS_PCH_JSP (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_TGP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger =0 ; }else if (HAS_PCH_MCC (dev_priv)) { ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_ICP ;Missing
ddi_port_hotplug_long_detectassignment forHAS_PCH_MCC.
humn... indeed, thanks for spotting that.
Quoted 4 lines
Just a suggestion: We can by default assign
ddi_port_hotplug_long_detectwithicp_ddi_port_hotplug_long_detectoutside the if else branching(during declaration).
Assign the func ptr within platform checks only if it is different from icp like in the case for dg1.
either that or I could just fork a new dg1_irq_handler() function so we don't need the function pointer at all.
Ville, since you removed the previous function pointers when refactoring the hotplug part, do you have a preference here?
Lucas De Marchi
Quoted 78 lines
Aditya
Quoted 76 lines
drivers/gpu/drm/i915/i915_irq.c +14
-3@@ -1879,6 +1912,7 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir) INTEL_PCH_TYPE(dev_priv)); ddi_hotplug_trigger = pch_iir &SDE_DDI_MASK_ICP ; + ddi_port_hotplug_long_detect = icp_ddi_port_hotplug_long_detect; tc_hotplug_trigger = pch_iir &SDE_TC_MASK_ICP ; }@@ -1891,7 +1925,7 @@ static void icp_irq_handler(struct drm_i915_private *dev_priv, u32 pch_iir)intel_get_hpd_pins (dev_priv, &pin_mask, &long_mask, ddi_hotplug_trigger, dig_hotplug_reg, dev_priv->hotplug.pch_hpd, - icp_ddi_port_hotplug_long_detect); + ddi_port_hotplug_long_detect); }if (tc_hotplug_trigger) {@@ -3252,6 +3286,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 +3685,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 +4204,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@@ -8230,6 +8230,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)@@ -8429,6 +8433,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 4 lines
drivers/gpu/drm/i915/i915_reg.h enum { · line 8442
Quoted 3 lines
drivers/gpu/drm/i915/i915_reg.h +0
-0#define _PCH_DPLL_A 0xc6014#define _PCH_DPLL_B 0xc6018
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 8/15 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
@@ -3288,6 +3288,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
@@ -8697,6 +8697,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 v7 9/15 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
@@ -10889,6 +10889,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) {
@@ -11197,7 +11218,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__)
@@ -10294,6 +10296,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)
@@ -10309,6 +10312,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
PATCH v7 10/15 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
@@ -7329,7 +7329,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_ELKHARTLAKE (dev_priv))return phy <=PHY_C ;
@@ -7341,7 +7341,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 ;
@@ -7353,7 +7353,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_ELKHARTLAKE (i915) && port ==PORT_D )return PHY_A ;
@@ -17127,7 +17127,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
PATCH v7 11/15 drm/i915/dg1: Load DMC
In reply to Lucas De MarchiFrom: Matt Atwood <[email protected]>
Add support to load DMC v2.0.2 on DG1
While we're at it, make TGL use the same GEN12 firmware size definition and remove obsolete comment.
Bpec: 49230
v2: do not replace GEN12_CSR_MAX_FW_SIZE (from José)
and replace stale comment
--- drivers/gpu/drm/i915/display/intel_csr.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_csr.c +9 -3
@@ -40,13 +40,16 @@#define GEN12_CSR_MAX_FW_SIZE ICL_CSR_MAX_FW_SIZE +#define DG1_CSR_PATH "i915/dg1_dmc_ver2_02.bin" +#define DG1_CSR_VERSION_REQUIRED CSR_VERSION(2, 2) +MODULE_FIRMWARE (DG1_CSR_PATH ); +#define RKL_CSR_PATH "i915/rkl_dmc_ver2_02.bin"#define RKL_CSR_VERSION_REQUIRED CSR_VERSION(2, 2)MODULE_FIRMWARE (RKL_CSR_PATH );#define TGL_CSR_PATH "i915/tgl_dmc_ver2_08.bin"#define TGL_CSR_VERSION_REQUIRED CSR_VERSION(2, 8) -#define TGL_CSR_MAX_FW_SIZE 0x6000MODULE_FIRMWARE (TGL_CSR_PATH );#define ICL_CSR_PATH "i915/icl_dmc_ver1_09.bin"
@@ -686,14 +689,17 @@ void intel_csr_ucode_init(struct drm_i915_private *dev_priv)*/ intel_csr_runtime_pm_get (dev_priv); -if (IS_ROCKETLAKE (dev_priv)) { +if (IS_DG1 (dev_priv)) { + csr->fw_path =DG1_CSR_PATH ; + csr->required_version =DG1_CSR_VERSION_REQUIRED ; + csr->max_fw_size =GEN12_CSR_MAX_FW_SIZE ; + }else if (IS_ROCKETLAKE (dev_priv)) { csr->fw_path =RKL_CSR_PATH ; csr->required_version =RKL_CSR_VERSION_REQUIRED ; csr->max_fw_size =GEN12_CSR_MAX_FW_SIZE ; }else if (INTEL_GEN (dev_priv) >=12 ) { csr->fw_path =TGL_CSR_PATH ; csr->required_version =TGL_CSR_VERSION_REQUIRED ; -/* Allow to load fw via parameter using the last known size */ csr->max_fw_size =GEN12_CSR_MAX_FW_SIZE ; }else if (IS_GEN (dev_priv,11 )) { csr->fw_path =ICL_CSR_PATH ;
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 12/15 drm/i915/dg1: Add initial DG1 workarounds
In reply to Lucas De MarchiFrom: Stuart Summers <[email protected]>
DG1 shares some workarounds with TGL and RKL and also has some additional workarounds of its own.
v2: Correct location of Wa_1408615072 (JohnH).
v3: Apply WAs 1606700617, 18011464164 and 22010931296 to DG1 (José) v4 (Anusha)
- Add Wa_22010271021
- s/Wa_14010096844/Wa_1409836686
v5:
- Extend Wa_14010919138 to all revs (Matt Atwood)
- Power gate media is global gen12 design. (Rodrigo)
- Rebase (Lucas)
BSpec: 53508
--- .../drm/i915/display/intel_display_power.c | 5 +- drivers/gpu/drm/i915/display/intel_sprite.c | 4 +- drivers/gpu/drm/i915/gt/intel_workarounds.c | 111 ++++++++++++++---- drivers/gpu/drm/i915/i915_pci.c | 2 + drivers/gpu/drm/i915/i915_reg.h | 10 +- drivers/gpu/drm/i915/intel_pm.c | 39 ++++-- 6 files changed, 129 insertions(+), 42 deletions(-)
drivers/gpu/drm/i915/display/intel_display_power.c +3 -2
@@ -5273,8 +5273,9 @@ static void tgl_bw_buddy_init(struct drm_i915_private *dev_priv)unsigned long abox_mask =INTEL_INFO (dev_priv)->abox_mask;int config, i; -if (IS_TGL_DISP_REVID (dev_priv,TGL_REVID_A0 ,TGL_REVID_B0 )) -/* Wa_1409767108: tgl */ +if (IS_DG1_REVID (dev_priv,DG1_REVID_A0 ,DG1_REVID_A0 ) || +IS_TGL_DISP_REVID (dev_priv,TGL_REVID_A0 ,TGL_REVID_B0 )) +/* Wa_1409767108:tgl,dg1 */ table = wa_1409767108_buddy_page_masks;else table = tgl_buddy_page_masks;
drivers/gpu/drm/i915/display/intel_sprite.c +2 -2
@@ -2886,8 +2886,8 @@ static bool skl_plane_format_mod_supported(struct drm_plane *_plane,static bool gen12_plane_supports_mc_ccs (struct drm_i915_private *dev_priv,enum plane_id plane_id) { -/* Wa_14010477008:tgl[a0..c0],rkl[all] */ -if (IS_ROCKETLAKE (dev_priv) || +/* Wa_14010477008:tgl[a0..c0],rkl[all],dg1[all] */ +if (IS_DG1 (dev_priv) ||IS_ROCKETLAKE (dev_priv) ||IS_TGL_DISP_REVID (dev_priv,TGL_REVID_A0 ,TGL_REVID_C0 ))return false;
drivers/gpu/drm/i915/gt/intel_workarounds.c +89 -22
175 lines not on this page · raw message
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -910,6 +910,8 @@ static const struct intel_device_info dg1_info __maybe_unused = { .platform_engine_mask =BIT (RCS0 ) |BIT (BCS0 ) |BIT (VECS0 ) | BIT(VCS0) | BIT(VCS2), +/* Wa_16011227922 */ + .ppgtt_size = 47, };#undef GEN
drivers/gpu/drm/i915/i915_reg.h +7 -3
@@ -2530,6 +2530,7 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)#define RING_PSMI_CTL (base) _MMIO((base) + 0x50)#define RING_MAX_IDLE (base) _MMIO((base) + 0x54)#define RING_HWS_PGA (base) _MMIO((base) + 0x80) +#define RING_ID (base) _MMIO((base) + 0x8c)#define RING_HWS_PGA_GEN6 (base) _MMIO((base) + 0x2080)#define RING_RESET_CTL (base) _MMIO((base) + 0xd0)#define RESET_CTL_CAT_ERROR REG_BIT(2)
@@ -4149,6 +4150,7 @@ enum {#define GEN9_CLKGATE_DIS_3 _MMIO(0x46538)#define TGL_VRH_GATING_DIS REG_BIT(31) +#define DPT_GATING_DIS REG_BIT(22)#define GEN9_CLKGATE_DIS_4 _MMIO(0x4653C)#define BXT_GMBUS_GATING_DIS (1 << 14)
@@ -8021,12 +8023,14 @@ enum {#define GEN8_L3CNTLREG _MMIO(0x7034)#define GEN8_ERRDETBCTRL (1 << 9) -#define GEN11_COMMON_SLICE_CHICKEN3 _MMIO(0x7304) -#define GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC (1 << 11) -#define GEN12_DISABLE_CPS_AWARE_COLOR_PIPE (1 << 9) +#define GEN11_COMMON_SLICE_CHICKEN3 _MMIO(0x7304) +#define DG1_FLOAT_POINT_BLEND_OPT_STRICT_MODE_EN REG_BIT(12) +#define GEN11_BLEND_EMB_FIX_DISABLE_IN_RCC REG_BIT(11) +#define GEN12_DISABLE_CPS_AWARE_COLOR_PIPE REG_BIT(9)#define HIZ_CHICKEN _MMIO(0x7018)# define CHV_HZ_8X8_MODE_IN_1X (1 << 15) +# define DG1_HZ_READ_SUPPRESSION_OPTIMIZATION_DISABLE (1 << 14)# define BDW_HIZ_POWER_COMPILER_CLOCK_GATING_DISABLE (1 << 3)#define GEN9_SLICE_COMMON_ECO_CHICKEN0 _MMIO(0x7308)
drivers/gpu/drm/i915/intel_pm.c +26 -13
@@ -7116,25 +7116,26 @@ static void icl_init_clock_gating(struct drm_i915_private *dev_priv) 0, CNL_DELAY_PMRSP); } -static void tgl_init_clock_gating (struct drm_i915_private *dev_priv) +static void gen12_init_clock_gating (struct drm_i915_private *i915) { -u32 vd_pg_enable =0 ;unsigned int i; +/* This is not a WA. Enable VD HCP & MFX_ENC powergate */ +for (i =0 ; i <I915_MAX_VCS ; i++) +if (HAS_ENGINE (&i915->gt,_VCS (i))) +intel_uncore_rmw (&i915->uncore,POWERGATE_ENABLE ,0 , +VDN_HCP_POWERGATE_ENABLE (i) | +VDN_MFX_POWERGATE_ENABLE (i)); +} + +static void tgl_init_clock_gating (struct drm_i915_private *dev_priv) +{ +gen12_init_clock_gating (dev_priv); +/* Wa_1409120013:tgl */ I915_WRITE (ILK_DPFC_CHICKEN ,ILK_DPFC_CHICKEN_COMP_DUMMY_PIXEL ); -/* This is not a WA. Enable VD HCP & MFX_ENC powergate */ -for (i =0 ; i <I915_MAX_VCS ; i++) { -if (HAS_ENGINE (&dev_priv->gt,_VCS (i))) - vd_pg_enable |=VDN_HCP_POWERGATE_ENABLE (i) | -VDN_MFX_POWERGATE_ENABLE (i); - } - -I915_WRITE (POWERGATE_ENABLE , -I915_READ (POWERGATE_ENABLE ) | vd_pg_enable); -/* Wa_1409825376:tgl (pre-prod)*/ if (IS_TGL_DISP_REVID (dev_priv,TGL_REVID_A0 ,TGL_REVID_B1 )) I915_WRITE(GEN9_CLKGATE_DIS_3, I915_READ(GEN9_CLKGATE_DIS_3) |
@@ -7145,6 +7146,16 @@ static void tgl_init_clock_gating(struct drm_i915_private *dev_priv) 0, DFR_DISABLE); } +static void dg1_init_clock_gating (struct drm_i915_private *dev_priv) +{ +gen12_init_clock_gating (dev_priv); + +/* Wa_1409836686:dg1[a0] */ +if (IS_DG1_REVID (dev_priv,DG1_REVID_A0 ,DG1_REVID_A0 )) +I915_WRITE (GEN9_CLKGATE_DIS_3 ,I915_READ (GEN9_CLKGATE_DIS_3 ) | +DPT_GATING_DIS ); +} +static void cnp_init_clock_gating (struct drm_i915_private *dev_priv) {if (!HAS_PCH_CNP (dev_priv))
@@ -7590,7 +7601,9 @@ static void nop_init_clock_gating(struct drm_i915_private *dev_priv)*/ void intel_init_clock_gating_hooks (struct drm_i915_private *dev_priv) { -if (IS_GEN (dev_priv,12 )) +if (IS_DG1 (dev_priv)) + dev_priv->display.init_clock_gating = dg1_init_clock_gating; +else if (IS_GEN (dev_priv,12 )) dev_priv->display.init_clock_gating = tgl_init_clock_gating;else if (IS_GEN (dev_priv,11 )) dev_priv->display.init_clock_gating = icl_init_clock_gating;
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 13/15 drm/i915/dg1: DG1 does not support DC6
In reply to Lucas De MarchiFrom: Anshuman Gupta <[email protected]>
DC6 is not supported on DG1, so change the allowed DC mask for DG1. This is not yet on bspec, but it has been confirmed by HW engineers.
--- drivers/gpu/drm/i915/display/intel_display_power.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_display_power.c +4 -1
@@ -4492,7 +4492,10 @@ static u32 get_allowed_dc_mask(const struct drm_i915_private *dev_priv,int max_dc;if (INTEL_GEN (dev_priv) >=12 ) { - max_dc =4 ; +if (IS_DG1 (dev_priv)) + max_dc =3 ; +else + max_dc =4 ;/* * DC9 has a separate HW flow from the rest of the DC states, * not depending on the DMC firmware. It's needed by system
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 14/15 drm/i915/dg1: Update DMC_DEBUG register
In reply to Lucas De MarchiFrom: Anshuman Gupta <[email protected]>
Update the DMC_DEBUG_DC5 register to its new location and do not try reading the DC6 counter since DG1 doesn't support DC6.
v2: Use IS_DGFX() instead of IS_DG1(). Even if not having DC6 is not directly related to DGFX, the register move to a new location is. So in future, if there is one supporting DC6, it would just need to add the other register rather than fixing the case of a wrong register being read (Matt)
--- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 9 +++++++-- drivers/gpu/drm/i915/i915_reg.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +7 -2
@@ -518,8 +518,13 @@ static int i915_dmc_info(struct seq_file *m, void *unused) CSR_VERSION_MINOR(csr->version));if (INTEL_GEN (dev_priv) >=12 ) { - dc5_reg =TGL_DMC_DEBUG_DC5_COUNT ; - dc6_reg =TGL_DMC_DEBUG_DC6_COUNT ; +if (IS_DGFX (dev_priv)) { + dc5_reg =DG1_DMC_DEBUG_DC5_COUNT ; + }else { + dc5_reg =TGL_DMC_DEBUG_DC5_COUNT ; + dc6_reg =TGL_DMC_DEBUG_DC6_COUNT ; + } +/* * NOTE: DMC_DEBUG3 is a general purpose reg. * According to B.Specs:49196 DMC f/w reuses DC5/6 counter
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -7538,6 +7538,7 @@ enum {#define BXT_CSR_DC3_DC5_COUNT _MMIO(0x80038)#define TGL_DMC_DEBUG_DC5_COUNT _MMIO(0x101084)#define TGL_DMC_DEBUG_DC6_COUNT _MMIO(0x101088) +#define DG1_DMC_DEBUG_DC5_COUNT _MMIO(0x134154)#define DMC_DEBUG3 _MMIO(0x101090)
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v7 15/15 drm/i915/dgfx: define llc and snooping behaviour
In reply to Lucas De MarchiFrom: Michel Thierry <[email protected]>
While we do lack the faster shared LLC, we should still have support for snooping over PCIe.
--- drivers/gpu/drm/i915/i915_pci.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/i915_pci.c +2 -0
@@ -900,6 +900,8 @@ static const struct intel_device_info rkl_info = { GEN12_FEATURES, \ .memory_regions = REGION_SMEM | REGION_LMEM, \ .has_master_unit_irq = 1, \ + .has_llc = 0, \ + .has_snoop = 1, \ .is_dgfx = 1static const struct intel_device_info dg1_info__maybe_unused = {
Signature · 6 lines
2.28.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Introduce DG1
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Introduce DG1
URL : https://patchwork.freedesktop.org/series/82594/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 8623a162621b drm/i915/display: allow to skip certain power wells -:64: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__power_well_descs' - possible side-effects? #64: FILE: drivers/gpu/drm/i915/display/intel_display_power.c:4598: +#define set_power_wells_mask(power_domains, __power_well_descs, skip_mask) \ __set_power_wells(power_domains, __power_well_descs, \ + ARRAY_SIZE(__power_well_descs), skip_mask)
total: 0 errors, 0 warnings, 1 checks, 50 lines checked68df339f83b7 drm/i915/cnl: skip PW_DDI_F on certain skus d0032ba13005 drm/i915/dg1: Add DG1 power wells427e81efb3e5 drm/i915/dg1: Add DPLL macros for DG14718a2b29fcc drm/i915/dg1: Add and setup DPLLs for DG1bd28cc6aa15c drm/i915/dg1: Enable DPLL for DG1b60e1f572176 drm/i915/dg1: add hpd interrupt handling5c559e0d9227 drm/i915/dg1: invert HPD pins4a9095a0b7bb 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:10324:
+#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 checked2277e81c77bb drm/i915/dg1: Enable ports
-:67: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Aditya Swarup <[email protected]>'
total: 0 errors, 1 warnings, 0 checks, 32 lines checked 51a8641ffb98 drm/i915/dg1: Load DMC5da8aa482e31 drm/i915/dg1: Add initial DG1 workarounds ad249d6324c6 drm/i915/dg1: DG1 does not support DC6 ef788aaa1608 drm/i915/dg1: Update DMC_DEBUG register 3200a254244e drm/i915/dgfx: define llc and snooping behaviour
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Introduce DG1
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Introduce DG1
URL : https://patchwork.freedesktop.org/series/82594/
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/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 Introduce DG1
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Introduce DG1
URL : https://patchwork.freedesktop.org/series/82594/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9131 -> Patchwork_18682
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/index.html
Known issues
------------
Here are the changes found in Patchwork_18682 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload:
- fi-byt-j1900: [PASS][1] -> [DMESG-WARN][2] ([i915#1982])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-byt-j1900/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-byt-j1900/igt@[email protected]
* igt@kms_busy@basic@flip:
- fi-tgl-y: [PASS][3] -> [DMESG-WARN][4] ([i915#1982])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-tgl-y/igt@kms_busy@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-tgl-y/igt@kms_busy@[email protected]
* igt@vgem_basic@setversion:
- fi-tgl-y: [PASS][5] -> [DMESG-WARN][6] ([i915#402]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-tgl-y/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-tgl-y/igt@[email protected]
#### Possible fixes ####
* igt@gem_flink_basic@flink-lifetime:
- fi-tgl-y: [DMESG-WARN][7] ([i915#402]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-tgl-y/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-tgl-y/igt@[email protected]
* igt@i915_module_load@reload:
- fi-tgl-u2: [DMESG-WARN][9] ([i915#1982] / [k.org#205379]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-tgl-u2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-tgl-u2/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-byt-j1900: [DMESG-WARN][11] ([i915#1982]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-byt-j1900/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-byt-j1900/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-bsw-n3050: [DMESG-WARN][13] ([i915#1982]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-bsw-n3050/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-bsw-n3050/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-icl-u2: [DMESG-WARN][15] ([i915#1982]) -> [PASS][16] +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-icl-u2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-icl-u2/igt@[email protected]
* igt@vgem_basic@unload:
- fi-skl-guc: [DMESG-WARN][17] ([i915#2203]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/fi-skl-guc/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/fi-skl-guc/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2203]: https://gitlab.freedesktop.org/drm/intel/issues/2203
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[k.org#205379]: https://bugzilla.kernel.org/show_bug.cgi?id=205379
Participating hosts (48 -> 41)
------------------------------
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_9131 -> Patchwork_18682
CI-20190529: 20190529
CI_DRM_9131: 14f6fc98077f4add3c28104ffbc841ad129fefd6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5811: 836f8812f0e6c44674c1c75501640eabbdd8918a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18682: 3200a254244e6327f45417ce96c112968864228f @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
3200a254244e drm/i915/dgfx: define llc and snooping behaviour ef788aaa1608 drm/i915/dg1: Update DMC_DEBUG register ad249d6324c6 drm/i915/dg1: DG1 does not support DC6 5da8aa482e31 drm/i915/dg1: Add initial DG1 workarounds 51a8641ffb98 drm/i915/dg1: Load DMC2277e81c77bb drm/i915/dg1: Enable ports4a9095a0b7bb drm/i915/dg1: map/unmap pll clocks 5c559e0d9227 drm/i915/dg1: invert HPD pins b60e1f572176 drm/i915/dg1: add hpd interrupt handling bd28cc6aa15c drm/i915/dg1: Enable DPLL for DG1 4718a2b29fcc drm/i915/dg1: Add and setup DPLLs for DG1 427e81efb3e5 drm/i915/dg1: Add DPLL macros for DG1 d0032ba13005 drm/i915/dg1: Add DG1 power wells 68df339f83b7 drm/i915/cnl: skip PW_DDI_F on certain skus 8623a162621b drm/i915/display: allow to skip certain power wells
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/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 Introduce DG1
In reply to Lucas De Marchi== Series Details ==
== Series Details ==
Series: Introduce DG1
URL : https://patchwork.freedesktop.org/series/82594/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_9131_full -> Patchwork_18682_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_18682_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@preservation-s3@vcs0:
- shard-skl: [PASS][1] -> [INCOMPLETE][2] ([i915#198])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl7/igt@gem_ctx_isolation@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl5/igt@gem_ctx_isolation@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-hsw: [PASS][3] -> [FAIL][4] ([i915#1860])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-hsw7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-hsw6/igt@[email protected]
* igt@kms_big_fb@yf-tiled-16bpp-rotate-0:
- shard-apl: [PASS][5] -> [DMESG-WARN][6] ([i915#1635] / [i915#1982])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-apl1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-apl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-skl: [PASS][7] -> [INCOMPLETE][8] ([i915#300])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt:
- shard-tglb: [PASS][9] -> [DMESG-WARN][10] ([i915#1982]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-tglb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-tglb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-blt.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-plflip-blt:
- shard-skl: [PASS][11] -> [DMESG-WARN][12] ([i915#1982]) +9 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl8/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl1/igt@[email protected]
* igt@kms_hdr@bpc-switch:
- shard-skl: [PASS][13] -> [FAIL][14] ([i915#1188])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl8/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][15] -> [FAIL][16] ([fdo#108145] / [i915#265]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl10/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl9/igt@[email protected]
* igt@kms_psr@psr2_cursor_plane_move:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#109441]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-iclb2/igt@kms_psr@psr2_cursor_plane_move.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-iclb6/igt@kms_psr@psr2_cursor_plane_move.html
* igt@kms_setmode@basic:
- shard-apl: [PASS][19] -> [FAIL][20] ([i915#1635] / [i915#31])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-apl8/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-apl2/igt@[email protected]
* igt@perf@polling-small-buf:
- shard-skl: [PASS][21] -> [FAIL][22] ([i915#1722])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl8/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl1/igt@[email protected]
#### Possible fixes ####
* igt@gem_mmap_offset@blt-coherency:
- shard-glk: [FAIL][23] ([i915#2328]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-glk5/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-glk2/igt@[email protected]
* igt@gem_userptr_blits@unsync-unmap-cycles:
- shard-skl: [TIMEOUT][25] ([i915#2424]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl5/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl7/igt@[email protected]
* igt@gen9_exec_parse@allowed-single:
- shard-skl: [DMESG-WARN][27] ([i915#1436] / [i915#716]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl10/igt@[email protected]
* igt@i915_suspend@fence-restore-untiled:
- shard-kbl: [INCOMPLETE][29] ([i915#155]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-kbl6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-kbl7/igt@[email protected]
* {igt@kms_async_flips@async-flip-with-page-flip-events}:
- shard-tglb: [FAIL][31] ([i915#2521]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-tglb8/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-tglb7/igt@[email protected]
* igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-xtiled:
- shard-skl: [FAIL][33] ([i915#52] / [i915#54]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl8/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl1/igt@[email protected]
* igt@kms_flip@dpms-vs-vblank-race-interruptible@a-dp1:
- shard-kbl: [DMESG-WARN][35] ([i915#1982]) -> [PASS][36] +1 similar issue
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-kbl7/igt@kms_flip@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-kbl1/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@c-dp1:
- shard-apl: [FAIL][37] ([i915#1635] / [i915#79]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-apl2/igt@kms_flip@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-apl3/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible@c-hdmi-a1:
- shard-hsw: [INCOMPLETE][39] ([i915#2055]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-hsw7/igt@kms_flip@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-hsw4/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-edp1:
- shard-skl: [INCOMPLETE][41] ([i915#198]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl6/igt@kms_flip@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl4/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@a-edp1:
- shard-skl: [FAIL][43] ([i915#2122]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl4/igt@kms_flip@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl2/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-gtt:
- shard-iclb: [FAIL][45] ([i915#49]) -> [PASS][46] +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-iclb8/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-gtt.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-iclb7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-pri-indfb-draw-mmap-gtt.html
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-pwrite:
- shard-tglb: [DMESG-WARN][47] ([i915#1982]) -> [PASS][48] +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-tglb6/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-pwrite.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-tglb8/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-pwrite.html
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [FAIL][49] ([i915#1188]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl5/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [FAIL][51] ([fdo#108145] / [i915#265]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl5/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl7/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [SKIP][53] ([fdo#109441]) -> [PASS][54] +5 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-iclb1/igt@kms_psr@psr2_cursor_mmap_cpu.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@perf_pmu@idle@vecs0:
- shard-skl: [DMESG-WARN][55] ([i915#1982]) -> [PASS][56] +7 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9131/shard-skl10/igt@perf_pmu@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18682/shard-skl9/igt@perf_pmu@[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#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#155]: https://gitlab.freedesktop.org/drm/intel/issues/155
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1860]: https://gitlab.freedesktop.org/drm/intel/issues/1860
[i915#198]: https://gitlab.freedesktop.org/drm/intel/issues/198
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2055]: https://gitlab.freedesktop.org/drm/intel/issues/2055
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2328]: https://gitlab.freedesktop.org/drm/intel/issues/2328
[i915#2424]: https://gitlab.freedesktop.org/drm/intel/issues/2424
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#300]: https://gitlab.freedesktop.org/drm/intel/issues/300
[i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#52]: https://gitlab.freedesktop.org/drm/intel/issues/52
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
Participating hosts (11 -> 12)
------------------------------
Additional (1): pig-snb-2600
Build changes
-------------
* Linux: CI_DRM_9131 -> Patchwork_18682
CI-20190529: 20190529
CI_DRM_9131: 14f6fc98077f4add3c28104ffbc841ad129fefd6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5811: 836f8812f0e6c44674c1c75501640eabbdd8918a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18682: 3200a254244e6327f45417ce96c112968864228f @ 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_18682/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx