RE: [PATCH v3 7/7] platform/x86: Add Comet Lake (CML) platform support to intel_pmc_core driver

From: Mario.Limonciello
Date: Thu Nov 14 2019 - 13:50:28 EST


> -----Original Message-----
> From: platform-driver-x86-owner@xxxxxxxxxxxxxxx <platform-driver-x86-
> owner@xxxxxxxxxxxxxxx> On Behalf Of Gayatri Kammela
> Sent: Thursday, November 14, 2019 11:01 AM
> To: platform-driver-x86@xxxxxxxxxxxxxxx
> Cc: vishwanath.somayaji@xxxxxxxxx; dvhart@xxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx; charles.d.prestopine@xxxxxxxxx; Gayatri Kammela; Peter
> Zijlstra; Srinivas Pandruvada; Andy Shevchenko; Kan Liang; David E . Box; Rajneesh
> Bhardwaj; Tony Luck
> Subject: [PATCH v3 7/7] platform/x86: Add Comet Lake (CML) platform support to
> intel_pmc_core driver
>
>
> [EXTERNAL EMAIL]
>
> Add Comet Lake to the list of the platforms that intel_pmc_core driver
> supports for pmc_core device.
>
> Just like Ice Lake, Tiger Lake and Elkhart Lake, Comet Lake can also
> reuse all the Cannon Lake PCH IPs. No additional effort is needed to
> enable but to simply reuse them.
>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Cc: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxx>
> Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Cc: Kan Liang <kan.liang@xxxxxxxxx>
> Cc: David E. Box <david.e.box@xxxxxxxxx>
> Cc: Rajneesh Bhardwaj <rajneesh.bhardwaj@xxxxxxxxx>
> Cc: Tony Luck <tony.luck@xxxxxxxxx>
> Signed-off-by: Gayatri Kammela <gayatri.kammela@xxxxxxxxx>
> ---
> drivers/platform/x86/intel_pmc_core.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/platform/x86/intel_pmc_core.c
> b/drivers/platform/x86/intel_pmc_core.c
> index 94081710e0de..a9b33ac4e52d 100644
> --- a/drivers/platform/x86/intel_pmc_core.c
> +++ b/drivers/platform/x86/intel_pmc_core.c
> @@ -165,6 +165,7 @@ static const struct pmc_reg_map spt_reg_map = {
>
> /* Cannon Lake: PGD PFET Enable Ack Status Register(s) bitmap */
> static const struct pmc_bit_map cnp_pfear_map[] = {
> + /* Reserved for Cannon Lake but valid for Comet Lake */
> {"PMC", BIT(0)},
> {"OPI-DMI", BIT(1)},
> {"SPI/eSPI", BIT(2)},
> @@ -879,6 +880,8 @@ static const struct x86_cpu_id intel_pmc_core_ids[] = {
> INTEL_CPU_FAM6(TIGERLAKE_L, tgl_reg_map),
> INTEL_CPU_FAM6(TIGERLAKE, tgl_reg_map),
> INTEL_CPU_FAM6(ATOM_TREMONT, tgl_reg_map),
> + INTEL_CPU_FAM6(COMETLAKE, cnp_reg_map),
> + INTEL_CPU_FAM6(COMETLAKE_L, cnp_reg_map),
> {}
> };
>

Just a nit, that I'm not sure if there is a policy around.
Shouldn't the order of these reflect the actual order they're available to the
marketplace? So CML may want to come earlier in the patch series to reflect
that aspect.