drm/i915/ehl: Add EHL platform info and PCI IDs
Subsystems (2)
Rodrigo Vivi
maintainerPATCH 1/6 drm/i915/ehl: Add EHL platform info and PCI IDs
From: James Ausmus <[email protected]>
Add known EHL PCI IDs.
v2 (Rodrigo): Removed x86 early quirk. To be sent in a separated
patch cc'ing the appropriated list and maintainers for proper ack.
v3: (Rodrigo): - Removed .num_pipes = 3 that is coming since GEN&_FEATURES.
- Added ppgtt type and size after rework from Bob and Chris
--- drivers/gpu/drm/i915/i915_pci.c | 10 ++++++++++ include/drm/i915_pciids.h | 7 +++++++ 2 files changed, 17 insertions(+)
drivers/gpu/drm/i915/i915_pci.c +10 -0
@@ -730,6 +730,15 @@ static const struct intel_device_info intel_icelake_11_info = { BIT(RCS0) | BIT(BCS0) | BIT(VECS0) | BIT(VCS0) | BIT(VCS2), }; +static const struct intel_device_info intel_elkhartlake_info = { +GEN11_FEATURES , +PLATFORM (INTEL_ICELAKE ), + .is_alpha_support =1 , + .engine_mask =BIT (RCS0 ) |BIT (BCS0 ) |BIT (VCS0 ), + .ppgtt_type =INTEL_PPGTT_FULL , + .ppgtt_size =36 , +}; +#undef GEN#undef PLATFORM
@@ -799,6 +808,7 @@ static const struct pci_device_id pciidlist[] = {INTEL_CML_GT2_IDS (&intel_coffeelake_gt2_info),INTEL_CNL_IDS (&intel_cannonlake_info),INTEL_ICL_11_IDS (&intel_icelake_11_info), +INTEL_EHL_IDS (&intel_elkhartlake_info), {0, 0, 0} };MODULE_DEVICE_TABLE (pci, pciidlist);
include/drm/i915_pciids.h +7 -0
@@ -498,4 +498,11 @@INTEL_VGA_DEVICE (0x8A70 , info), \INTEL_VGA_DEVICE (0x8A53 , info) +/* EHL */ +#define INTEL_EHL_IDS (info) \ + INTEL_VGA_DEVICE(0x4500, info), \ + INTEL_VGA_DEVICE(0x4571, info), \ + INTEL_VGA_DEVICE(0x4551, info), \ + INTEL_VGA_DEVICE(0x4541, info) +#endif /* _I915_PCIIDS_H */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH 2/6 drm/i915/ehl: Add ElkhartLake platform
From: Bob Paauwe <[email protected]>
Add ElkhartLake as a unique platform as there are some differences between it and Icelake.
--- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_pci.c | 2 +- drivers/gpu/drm/i915/intel_device_info.c | 1 + drivers/gpu/drm/i915/intel_device_info.h | 1 + 4 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -2320,6 +2320,7 @@ static inline unsigned int i915_sg_segment_size(void)#define IS_COFFEELAKE (dev_priv) IS_PLATFORM(dev_priv, INTEL_COFFEELAKE)#define IS_CANNONLAKE (dev_priv) IS_PLATFORM(dev_priv, INTEL_CANNONLAKE)#define IS_ICELAKE (dev_priv) IS_PLATFORM(dev_priv, INTEL_ICELAKE) +#define IS_ELKHARTLAKE (dev_priv) IS_PLATFORM(dev_priv, INTEL_ELKHARTLAKE)#define IS_MOBILE (dev_priv) (INTEL_INFO(dev_priv)->is_mobile)#define IS_HSW_EARLY_SDV (dev_priv) (IS_HASWELL(dev_priv) && \ (INTEL_DEVID(dev_priv) & 0xFF00) == 0x0C00)
drivers/gpu/drm/i915/i915_pci.c +1 -1
@@ -732,7 +732,7 @@ static const struct intel_device_info intel_icelake_11_info = {static const struct intel_device_info intel_elkhartlake_info = {GEN11_FEATURES , -PLATFORM (INTEL_ICELAKE ), +PLATFORM (INTEL_ELKHARTLAKE ), .is_alpha_support =1 , .engine_mask =BIT (RCS0 ) |BIT (BCS0 ) |BIT (VCS0 ), .ppgtt_type =INTEL_PPGTT_FULL ,
drivers/gpu/drm/i915/intel_device_info.c +1 -0
@@ -57,6 +57,7 @@ static const char * const platform_names[] = {PLATFORM_NAME (COFFEELAKE ),PLATFORM_NAME (CANNONLAKE ),PLATFORM_NAME (ICELAKE ), + PLATFORM_NAME(ELKHARTLAKE), };#undef PLATFORM_NAME
drivers/gpu/drm/i915/intel_device_info.h +1 -0
@@ -73,6 +73,7 @@ enum intel_platform {INTEL_CANNONLAKE ,/* gen11 */ INTEL_ICELAKE , +INTEL_ELKHARTLAKE , INTEL_MAX_PLATFORMS };
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH 3/6 drm/i915/ehl: Add dpll mgr
In reply to Rodrigo ViviFrom: Lucas De Marchi <[email protected]>
Elkhart Lake has a different set of PLLs as compared to Ice Lake, although programming them is very similar.
v2: Rebase on top of s/icl_pll_funcs/combo_pll_funcs
--- drivers/gpu/drm/i915/intel_dpll_mgr.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_dpll_mgr.c +15 -1
@@ -3245,6 +3245,18 @@ static const struct intel_dpll_mgr icl_pll_mgr = { .dump_hw_state = icl_dump_hw_state, }; +static const struct dpll_info ehl_plls[] = { + {"DPLL 0" , &combo_pll_funcs,DPLL_ID_ICL_DPLL0 ,0 }, + {"DPLL 1" , &combo_pll_funcs,DPLL_ID_ICL_DPLL1 ,0 }, + { }, +}; + +static const struct intel_dpll_mgr ehl_pll_mgr = { + .dpll_info = ehl_plls, + .get_dpll = icl_get_dpll, + .dump_hw_state = icl_dump_hw_state, +}; +/** * intel_shared_dpll_init - Initialize shared DPLLs * @dev: drm device
@@ -3258,7 +3270,9 @@ void intel_shared_dpll_init(struct drm_device *dev)const struct dpll_info *dpll_info;int i; -if (INTEL_GEN (dev_priv) >=11 ) +if (IS_ELKHARTLAKE (dev_priv)) + dpll_mgr = &ehl_pll_mgr; +else if (INTEL_GEN (dev_priv) >=11 ) dpll_mgr = &icl_pll_mgr;else if (IS_CANNONLAKE (dev_priv)) dpll_mgr = &cnl_pll_mgr;
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH 4/6 drm/i915/ehl: EHL outputs are different from ICL
In reply to Rodrigo ViviFrom: Bob Paauwe <[email protected]>
Configure the correct set of outputs for EHL. EHL has three DDI's plus MIPI.
--- drivers/gpu/drm/i915/intel_display.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +6 -1
@@ -14713,7 +14713,12 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)if (!HAS_DISPLAY (dev_priv))return ; -if (INTEL_GEN (dev_priv) >=11 ) { +if (IS_ELKHARTLAKE (dev_priv)) { +intel_ddi_init (dev_priv,PORT_A ); +intel_ddi_init (dev_priv,PORT_B ); +intel_ddi_init (dev_priv,PORT_C ); +icl_dsi_init (dev_priv); + }else if (INTEL_GEN (dev_priv) >=11 ) {intel_ddi_init (dev_priv,PORT_A );intel_ddi_init (dev_priv,PORT_B );intel_ddi_init (dev_priv,PORT_C );
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [CI 4/6] drm/i915/ehl: EHL outputs are different from ICL
Quoted 4 lines · Rodrigo Vivi
From: Bob Paauwe <[email protected]>
Configure the correct set of outputs for EHL. EHL has three DDI's plus MIPI.
Broken record, we don't have MIPI, we have MIPI DSI or just DSI.
Similarly, we don't have VESA, we have VESA DP or just DP.
BR,
Jani.
Quoted 28 lines
Cc Lucas De Marchi <[email protected]>Signed-off-by Bob Paauwe <[email protected]>Signed-off-by Rodrigo Vivi <[email protected]>Reviewed-by Lucas De Marchi <[email protected]>Reviewed-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_display.c +6
-1@@ -14713,7 +14713,12 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)if (!HAS_DISPLAY (dev_priv))return ; -if (INTEL_GEN (dev_priv) >=11 ) { +if (IS_ELKHARTLAKE (dev_priv)) { +intel_ddi_init (dev_priv,PORT_A ); +intel_ddi_init (dev_priv,PORT_B ); +intel_ddi_init (dev_priv,PORT_C ); +icl_dsi_init (dev_priv); + }else if (INTEL_GEN (dev_priv) >=11 ) {intel_ddi_init (dev_priv,PORT_A );intel_ddi_init (dev_priv,PORT_B );intel_ddi_init (dev_priv,PORT_C );
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH 5/6 drm/i915/ehl: Set proper eu slice/subslice parameters for EHL
In reply to Rodrigo ViviFrom: Bob Paauwe <[email protected]>
EHL has a different number of subslices.
--- drivers/gpu/drm/i915/intel_device_info.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_device_info.c +9 -3
@@ -156,9 +156,15 @@ static void gen11_sseu_info_init(struct drm_i915_private *dev_priv)u8 eu_en;int s; - sseu->max_slices =1 ; - sseu->max_subslices =8 ; - sseu->max_eus_per_subslice =8 ; +if (IS_ELKHARTLAKE (dev_priv)) { + sseu->max_slices =1 ; + sseu->max_subslices =4 ; + sseu->max_eus_per_subslice =8 ; + }else { + sseu->max_slices =1 ; + sseu->max_subslices =8 ; + sseu->max_eus_per_subslice =8 ; + } s_en =I915_READ (GEN11_GT_SLICE_ENABLE ) &GEN11_GT_S_ENA_MASK ; ss_en = ~I915_READ (GEN11_GT_SUBSLICE_DISABLE );
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH 6/6 drm/i915/ehl: Add Support for DMC on EHL
In reply to Rodrigo ViviFrom: Anusha Srivatsa <[email protected]>
EHL uses the same firmware as ICL.
--- drivers/gpu/drm/i915/intel_csr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_csr.c +1 -1
@@ -486,7 +486,7 @@ void intel_csr_ucode_init(struct drm_i915_private *dev_priv)if (INTEL_GEN (dev_priv) >=12 ) {/* Allow to load fw via parameter using the last known size */ csr->max_fw_size =GEN12_CSR_MAX_FW_SIZE ; - }else if (IS_ICELAKE (dev_priv)) { + }else if (IS_GEN (dev_priv,11 )) { csr->fw_path =ICL_CSR_PATH ; csr->required_version =ICL_CSR_VERSION_REQUIRED ; csr->max_fw_size =ICL_CSR_MAX_FW_SIZE ;
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH 1/1 drm/i915/ehl: Add EHL platform info and PCI IDs
In reply to Rodrigo ViviFrom: James Ausmus <[email protected]>
Add known EHL PCI IDs.
v2 (Rodrigo): Removed x86 early quirk. To be sent in a separated
patch cc'ing the appropriated list and maintainers for proper ack.
v3: (Rodrigo): - Removed .num_pipes = 3 that is coming since GEN&_FEATURES.
- Added ppgtt type and size after rework from Bob and Chris
v4: (Rodrigo): - remove ppgtt type added on v3. Jose pointed it is not
needed.
--- drivers/gpu/drm/i915/i915_pci.c | 9 +++++++++ include/drm/i915_pciids.h | 7 +++++++ 2 files changed, 16 insertions(+)
drivers/gpu/drm/i915/i915_pci.c +9 -0
@@ -730,6 +730,14 @@ static const struct intel_device_info intel_icelake_11_info = { BIT(RCS0) | BIT(BCS0) | BIT(VECS0) | BIT(VCS0) | BIT(VCS2), }; +static const struct intel_device_info intel_elkhartlake_info = { +GEN11_FEATURES , +PLATFORM (INTEL_ICELAKE ), + .is_alpha_support =1 , + .engine_mask =BIT (RCS0 ) |BIT (BCS0 ) |BIT (VCS0 ), + .ppgtt_size =36 , +}; +#undef GEN#undef PLATFORM
@@ -799,6 +807,7 @@ static const struct pci_device_id pciidlist[] = {INTEL_CML_GT2_IDS (&intel_coffeelake_gt2_info),INTEL_CNL_IDS (&intel_cannonlake_info),INTEL_ICL_11_IDS (&intel_icelake_11_info), +INTEL_EHL_IDS (&intel_elkhartlake_info), {0, 0, 0} };MODULE_DEVICE_TABLE (pci, pciidlist);
include/drm/i915_pciids.h +7 -0
@@ -498,4 +498,11 @@INTEL_VGA_DEVICE (0x8A70 , info), \INTEL_VGA_DEVICE (0x8A53 , info) +/* EHL */ +#define INTEL_EHL_IDS (info) \ + INTEL_VGA_DEVICE(0x4500, info), \ + INTEL_VGA_DEVICE(0x4571, info), \ + INTEL_VGA_DEVICE(0x4551, info), \ + INTEL_VGA_DEVICE(0x4541, info) +#endif /* _I915_PCIIDS_H */
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with drm/i915/ehl: Add EHL platform info and PCI IDs (rev2)
In reply to Rodrigo Vivi== Series Details ==
== Series Details ==
Series: series starting with drm/i915/ehl: Add EHL platform info and PCI IDs (rev2)
URL : https://patchwork.freedesktop.org/series/58386/
State : failure
== Summary ==
Applying: drm/i915/ehl: Add EHL platform info and PCI IDs
Applying: drm/i915/ehl: Add ElkhartLake platform
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/i915_pci.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch' to see the failed patch Patch failed at 0002 drm/i915/ehl: Add ElkhartLake platform
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx