Skip to contentSkip to conversation

platform/x86: intel_pmc_core: Show Latency Tolerance info

PATCH Superseded Rajneesh Bhardwaj 2 participants 5 messages Nov 2, 2018 – Nov 5, 2018 x86 platform drivers

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 platform/x86: intel_pmc_core: Show Latency Tolerance info

This adds support to show the Latency Tolerance Reporting for the IPs on the PCH as reported by the PMC. The format shown here is raw LTR data payload that can further be decoded as per the PCI specification.

This also fixes some minor alignment issues in the header file by removing spaces and converting to tabs at some places.

[andy: fixed output to avoid LTR duplication and put space after colon]

---
Changes in v3:
* Removed IP index printing.

 drivers/platform/x86/intel_pmc_core.c | 72 +++++++++++++++++++++++++++
 drivers/platform/x86/intel_pmc_core.h | 56 ++++++++++++++++++---
 2 files changed, 121 insertions(+), 7 deletions(-)
drivers/platform/x86/intel_pmc_core.c +72 -0
index 2d272a3e0176..69270888558b 100644
@@ -110,10 +110,37 @@ static const struct pmc_bit_map spt_pfear_map[] = {
 	{},
 };
 
+static const struct pmc_bit_map spt_ltr_show_map[] = {
+	{"SOUTHPORT_A",		SPT_PMC_LTR_SPA},
+	{"SOUTHPORT_B",		SPT_PMC_LTR_SPB},
+	{"SATA",		SPT_PMC_LTR_SATA},
+	{"GIGABIT_ETHERNET",	SPT_PMC_LTR_GBE},
+	{"XHCI",		SPT_PMC_LTR_XHCI},
+	/* IP 5 is reserved */
+	{"ME",			SPT_PMC_LTR_ME},
+	/* EVA is Enterprise Value Add, doesn't really exist on PCH */
+	{"EVA",			SPT_PMC_LTR_EVA},
+	{"SOUTHPORT_C",		SPT_PMC_LTR_SPC},
+	{"HD_AUDIO",		SPT_PMC_LTR_AZ},
+	/* IP 10 is reserved */
+	{"LPSS",		SPT_PMC_LTR_LPSS},
+	{"SOUTHPORT_D",		SPT_PMC_LTR_SPD},
+	{"SOUTHPORT_E",		SPT_PMC_LTR_SPE},
+	{"CAMERA",		SPT_PMC_LTR_CAM},
+	{"ESPI",		SPT_PMC_LTR_ESPI},
+	{"SCC",			SPT_PMC_LTR_SCC},
+	{"ISH",			SPT_PMC_LTR_ISH},
+	/* Below two cannot be used for LTR_IGNORE */
+	{"CURRENT_PLATFORM",	SPT_PMC_LTR_CUR_PLT},
+	{"AGGREGATED_SYSTEM",	SPT_PMC_LTR_CUR_ASLT},
+	{}
+};
+
 static const struct pmc_reg_map spt_reg_map = {
 	.pfear_sts = spt_pfear_map,
 	.mphy_sts = spt_mphy_map,
 	.pll_sts = spt_pll_map,
+	.ltr_show_sts = spt_ltr_show_map,
 	.slp_s0_offset = SPT_PMC_SLP_S0_RES_COUNTER_OFFSET,
 	.ltr_ignore_offset = SPT_PMC_LTR_IGNORE_OFFSET,
 	.regmap_length = SPT_PMC_MMIO_REG_LEN,
@@ -252,10 +279,39 @@ static const struct pmc_bit_map *cnp_slps0_dbg_maps[] = {
 	NULL,
 };
 
+static const struct pmc_bit_map cnp_ltr_show_map[] = {
+	{"SOUTHPORT_A",		CNP_PMC_LTR_SPA},
+	{"SOUTHPORT_B",		CNP_PMC_LTR_SPB},
+	{"SATA",		CNP_PMC_LTR_SATA},
+	{"GIGABIT_ETHERNET",	CNP_PMC_LTR_GBE},
+	{"XHCI",		CNP_PMC_LTR_XHCI},
+	/* IP 5 is reserved */
+	{"ME",			CNP_PMC_LTR_ME},
+	/* EVA is Enterprise Value Add, doesn't really exist on PCH */
+	{"EVA",			CNP_PMC_LTR_EVA},
+	{"SOUTHPORT_C",		CNP_PMC_LTR_SPC},
+	{"HD_AUDIO",		CNP_PMC_LTR_AZ},
+	{"CNV",			CNP_PMC_LTR_CNV},
+	{"LPSS",		CNP_PMC_LTR_LPSS},
+	{"SOUTHPORT_D",		CNP_PMC_LTR_SPD},
+	{"SOUTHPORT_E",		CNP_PMC_LTR_SPE},
+	{"CAMERA",		CNP_PMC_LTR_CAM},
+	{"ESPI",		CNP_PMC_LTR_ESPI},
+	{"SCC",			CNP_PMC_LTR_SCC},
+	{"ISH",			CNP_PMC_LTR_ISH},
+	{"UFSX2",		CNP_PMC_LTR_UFSX2},
+	{"EMMC",		CNP_PMC_LTR_EMMC},
+	/* Below two cannot be used for LTR_IGNORE */
+	{"CURRENT_PLATFORM",	CNP_PMC_LTR_CUR_PLT},
+	{"AGGREGATED_SYSTEM",	CNP_PMC_LTR_CUR_ASLT},
+	{}
+};
+
 static const struct pmc_reg_map cnp_reg_map = {
 	.pfear_sts = cnp_pfear_map,
 	.slp_s0_offset = CNP_PMC_SLP_S0_RES_COUNTER_OFFSET,
 	.slps0_dbg_maps = cnp_slps0_dbg_maps,
+	.ltr_show_sts = cnp_ltr_show_map,
 	.slps0_dbg_offset = CNP_PMC_SLPS0_DBG_OFFSET,
 	.ltr_ignore_offset = CNP_PMC_LTR_IGNORE_OFFSET,
 	.regmap_length = CNP_PMC_MMIO_REG_LEN,
@@ -592,6 +648,20 @@ static int pmc_core_slps0_dbg_show(struct seq_file *s, void *unused)
 }
 DEFINE_SHOW_ATTRIBUTE(pmc_core_slps0_dbg);
 
+static int pmc_core_ltr_show(struct seq_file *s, void *unused)
+{
+	struct pmc_dev *pmcdev = s->private;
+	const struct pmc_bit_map *map = pmcdev->map->ltr_show_sts;
+	int index;
+
+	for (index = 0; map[index].name ; index++) {
+		seq_printf(s, "%-32s\tRAW LTR: 0x%x\n", map[index].name,
+			   pmc_core_reg_read(pmcdev, map[index].bit_mask));
+	}
+	return 0;
+}
+DEFINE_SHOW_ATTRIBUTE(pmc_core_ltr);
+
 static void pmc_core_dbgfs_unregister(struct pmc_dev *pmcdev)
 {
 	debugfs_remove_recursive(pmcdev->dbgfs_dir);
@@ -616,6 +686,8 @@ static int pmc_core_dbgfs_register(struct pmc_dev *pmcdev)
 	debugfs_create_file("ltr_ignore", 0644, dir, pmcdev,
 			    &pmc_core_ltr_ignore_ops);
 
+	debugfs_create_file("ltr_show", 0644, dir, pmcdev, &pmc_core_ltr_fops);
+
 	if (pmcdev->map->pll_sts)
 		debugfs_create_file("pll_status", 0444, dir, pmcdev,
 				    &pmc_core_pll_ops);
drivers/platform/x86/intel_pmc_core.h +49 -7

84 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 2/3 platform/x86: intel_pmc_core: Fix LTR IGNORE Max offset

Cannonlake PCH allows us to ignore LTR from more IPs than Sunrisepoint PCH so make the LTR ignore platform specific.

---
 drivers/platform/x86/intel_pmc_core.c | 4 +++-
 drivers/platform/x86/intel_pmc_core.h | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/platform/x86/intel_pmc_core.c +3 -1
index 69270888558b..11e8ecde95f0 100644
@@ -148,6 +148,7 @@ static const struct pmc_reg_map spt_reg_map = {
 	.ppfear_buckets = SPT_PPFEAR_NUM_ENTRIES,
 	.pm_cfg_offset = SPT_PMC_PM_CFG_OFFSET,
 	.pm_read_disable_bit = SPT_PMC_READ_DISABLE_BIT,
+	.ltr_ignore_max = SPT_NUM_IP_IGN_ALLOWED,
 };
 
 /* Cannonlake: PGD PFET Enable Ack Status Register(s) bitmap */
@@ -319,6 +320,7 @@ static const struct pmc_reg_map cnp_reg_map = {
 	.ppfear_buckets = CNP_PPFEAR_NUM_ENTRIES,
 	.pm_cfg_offset = CNP_PMC_PM_CFG_OFFSET,
 	.pm_read_disable_bit = CNP_PMC_READ_DISABLE_BIT,
+	.ltr_ignore_max = CNP_NUM_IP_IGN_ALLOWED,
 };
 
 static inline u8 pmc_core_reg_read_byte(struct pmc_dev *pmcdev, int offset)
@@ -565,7 +567,7 @@ static ssize_t pmc_core_ltr_ignore_write(struct file *file, const char __user
 		goto out_unlock;
 	}
 
-	if (val > NUM_IP_IGN_ALLOWED) {
+	if (val > map->ltr_ignore_max) {
 		err = -EINVAL;
 		goto out_unlock;
 	}
drivers/platform/x86/intel_pmc_core.h +3 -1
index 7a00436e337d..7f8181057ec8 100644
@@ -44,7 +44,7 @@
 #define SPT_PMC_READ_DISABLE_BIT		0x16
 #define SPT_PMC_MSG_FULL_STS_BIT		0x18
 #define NUM_RETRIES				100
-#define NUM_IP_IGN_ALLOWED			17
+#define SPT_NUM_IP_IGN_ALLOWED			17
 
 #define SPT_PMC_LTR_CUR_PLT			0x350
 #define SPT_PMC_LTR_CUR_ASLT			0x354
@@ -154,6 +154,7 @@ enum ppfear_regs {
 #define CNP_PPFEAR_NUM_ENTRIES			8
 #define CNP_PMC_READ_DISABLE_BIT		22
 #define CNP_PMC_LATCH_SLPS0_EVENTS		BIT(31)
+#define CNP_NUM_IP_IGN_ALLOWED			19
 #define CNP_PMC_LTR_CUR_PLT			0x1B50
 #define CNP_PMC_LTR_CUR_ASLT			0x1B54
 #define CNP_PMC_LTR_SPA				0x1B60
@@ -216,6 +217,7 @@ struct pmc_reg_map {
 	const u32 pm_cfg_offset;
 	const int pm_read_disable_bit;
 	const u32 slps0_dbg_offset;
+	const u32 ltr_ignore_max;
 };
 
 /**
Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH v3 2/3] platform/x86: intel_pmc_core: Fix LTR IGNORE Max offset

Quoted 4 lines · Rajneesh Bhardwaj

Cannonlake PCH allows us to ignore LTR from more IPs than Sunrisepoint PCH so make the LTR ignore platform specific.

This one fine, thanks!

Quoted 67 lines
---
 drivers/platform/x86/intel_pmc_core.c | 4 +++-
 drivers/platform/x86/intel_pmc_core.h | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/platform/x86/intel_pmc_core.c +3 -1
index 69270888558b..11e8ecde95f0 100644
@@ -148,6 +148,7 @@ static const struct pmc_reg_map spt_reg_map = {
        .ppfear_buckets = SPT_PPFEAR_NUM_ENTRIES,
        .pm_cfg_offset = SPT_PMC_PM_CFG_OFFSET,
        .pm_read_disable_bit = SPT_PMC_READ_DISABLE_BIT,
+       .ltr_ignore_max = SPT_NUM_IP_IGN_ALLOWED,
 };
 
 /* Cannonlake: PGD PFET Enable Ack Status Register(s) bitmap */
@@ -319,6 +320,7 @@ static const struct pmc_reg_map cnp_reg_map = {
        .ppfear_buckets = CNP_PPFEAR_NUM_ENTRIES,
        .pm_cfg_offset = CNP_PMC_PM_CFG_OFFSET,
        .pm_read_disable_bit = CNP_PMC_READ_DISABLE_BIT,
+       .ltr_ignore_max = CNP_NUM_IP_IGN_ALLOWED,
 };
 
 static inline u8 pmc_core_reg_read_byte(struct pmc_dev *pmcdev, int offset)
@@ -565,7 +567,7 @@ static ssize_t pmc_core_ltr_ignore_write(struct file *file, const char __user
                goto out_unlock;
        }
 
-       if (val > NUM_IP_IGN_ALLOWED) {
+       if (val > map->ltr_ignore_max) {
                err = -EINVAL;
                goto out_unlock;
        }
drivers/platform/x86/intel_pmc_core.h +3 -2
index 7a00436e337d..7f8181057ec8 100644
@@ -44,7 +44,7 @@
 #define SPT_PMC_READ_DISABLE_BIT               0x16
 #define SPT_PMC_MSG_FULL_STS_BIT               0x18
 #define NUM_RETRIES                            100
-#define NUM_IP_IGN_ALLOWED                     17
+#define SPT_NUM_IP_IGN_ALLOWED                 17
 
 #define SPT_PMC_LTR_CUR_PLT                    0x350
 #define SPT_PMC_LTR_CUR_ASLT                   0x354
@@ -154,6 +154,7 @@ enum ppfear_regs {
 #define CNP_PPFEAR_NUM_ENTRIES                 8
 #define CNP_PMC_READ_DISABLE_BIT               22
 #define CNP_PMC_LATCH_SLPS0_EVENTS             BIT(31)
+#define CNP_NUM_IP_IGN_ALLOWED                 19
 #define CNP_PMC_LTR_CUR_PLT                    0x1B50
 #define CNP_PMC_LTR_CUR_ASLT                   0x1B54
 #define CNP_PMC_LTR_SPA                                0x1B60
@@ -216,6 +217,7 @@ struct pmc_reg_map {
        const u32 pm_cfg_offset;
        const int pm_read_disable_bit;
        const u32 slps0_dbg_offset;
+       const u32 ltr_ignore_max;
 };
 
 /**
--

2.17.1

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw
In reply to Rajneesh Bhardwaj
Quoted 7 lines · Rajneesh Bhardwaj

This adds support to show the Latency Tolerance Reporting for the IPs on the PCH as reported by the PMC. The format shown here is raw LTR data payload that can further be decoded as per the PCI specification.

This also fixes some minor alignment issues in the header file by removing spaces and converting to tabs at some places.

Thanks for the update, my comments below.

Quoted 4 lines
[andy: fixed output to avoid LTR duplication and put space after colon]

You incorporated changes I proposed — good!
But please, don't do my job with signing stuff, etc. Just mention what you did in the changelog.

drivers/platform/x86/intel_pmc_core.c static const struct pmc_bit_map spt_pfear_map[] = { · line 119

Quoted 8 lines
drivers/platform/x86/intel_pmc_core.c +7 -0
+static const struct pmc_bit_map spt_ltr_show_map[] = {
+       {"SOUTHPORT_A",         SPT_PMC_LTR_SPA},
+       {"SOUTHPORT_B",         SPT_PMC_LTR_SPB},
+       {"SATA",                SPT_PMC_LTR_SATA},
+       {"GIGABIT_ETHERNET",    SPT_PMC_LTR_GBE},
+       {"XHCI",                SPT_PMC_LTR_XHCI},
 
+       /* IP 5 is reserved */

Since we dropped explicit numbering, this line and similar sounds redundant.

Quoted 17 lines
drivers/platform/x86/intel_pmc_core.c +17 -0
+       {"ME",                  SPT_PMC_LTR_ME},
+       /* EVA is Enterprise Value Add, doesn't really exist on PCH */
+       {"EVA",                 SPT_PMC_LTR_EVA},
+       {"SOUTHPORT_C",         SPT_PMC_LTR_SPC},
+       {"HD_AUDIO",            SPT_PMC_LTR_AZ},
+       /* IP 10 is reserved */
+       {"LPSS",                SPT_PMC_LTR_LPSS},
+       {"SOUTHPORT_D",         SPT_PMC_LTR_SPD},
+       {"SOUTHPORT_E",         SPT_PMC_LTR_SPE},
+       {"CAMERA",              SPT_PMC_LTR_CAM},
+       {"ESPI",                SPT_PMC_LTR_ESPI},
+       {"SCC",                 SPT_PMC_LTR_SCC},
+       {"ISH",                 SPT_PMC_LTR_ISH},
+       /* Below two cannot be used for LTR_IGNORE */
+       {"CURRENT_PLATFORM",    SPT_PMC_LTR_CUR_PLT},
+       {"AGGREGATED_SYSTEM",   SPT_PMC_LTR_CUR_ASLT},
+       {}

drivers/platform/x86/intel_pmc_core.c static const struct pmc_bit_map spt_pfear_map[] = {

Quoted 10 lines
drivers/platform/x86/intel_pmc_core.c +4 -3
+};
 
 /* Cannonlake Power Management Controller register offsets */
-#define CNP_PMC_SLP_S0_RES_COUNTER_OFFSET      0x193C
-#define CNP_PMC_LTR_IGNORE_OFFSET              0x1B0C
-#define CNP_PMC_PM_CFG_OFFSET                  0x1818
+#define CNP_PMC_SLP_S0_RES_COUNTER_OFFSET      0x193C
+#define CNP_PMC_LTR_IGNORE_OFFSET              0x1B0C
+#define CNP_PMC_PM_CFG_OFFSET                  0x1818
 #define CNP_PMC_SLPS0_DBG_OFFSET               0x10B4

Can we preserve ordering?

drivers/platform/x86/intel_pmc_core.h enum ppfear_regs { · line 151

Quoted 3 lines

/* Cannonlake: PGD PFET Enable Ack Status Register(s) start */

drivers/platform/x86/intel_pmc_core.h +1 -1
-#define CNP_PMC_HOST_PPFEAR0A                  0x1D90
+#define CNP_PMC_HOST_PPFEAR0A                  0x1D90

What's wrong with this line? Why is it changed?

drivers/platform/x86/intel_pmc_core.h enum ppfear_regs { · line 155

Quoted 7 lines
drivers/platform/x86/intel_pmc_core.h +3 -3
-#define CNP_PMC_MMIO_REG_LEN                   0x2000
-#define CNP_PPFEAR_NUM_ENTRIES                 8
-#define CNP_PMC_READ_DISABLE_BIT               22
+#define CNP_PMC_MMIO_REG_LEN                   0x2000
+#define CNP_PPFEAR_NUM_ENTRIES                 8
+#define CNP_PMC_READ_DISABLE_BIT               22

What happened to these lines?

Quoted 1 line

#define CNP_PMC_LATCH_SLPS0_EVENTS BIT(31)

Perhaps
+ blank line
here

Quoted 21 lines
drivers/platform/x86/intel_pmc_core.h +21 -0
+#define CNP_PMC_LTR_CUR_PLT                    0x1B50
+#define CNP_PMC_LTR_CUR_ASLT                   0x1B54
+#define CNP_PMC_LTR_SPA                                0x1B60
+#define CNP_PMC_LTR_SPB                                0x1B64
+#define CNP_PMC_LTR_SATA                       0x1B68
+#define CNP_PMC_LTR_GBE                                0x1B6C
+#define CNP_PMC_LTR_XHCI                       0x1B70
+#define CNP_PMC_LTR_ME                         0x1B78
+#define CNP_PMC_LTR_EVA                                0x1B7C
+#define CNP_PMC_LTR_SPC                                0x1B80
+#define CNP_PMC_LTR_AZ                         0x1B84
+#define CNP_PMC_LTR_LPSS                       0x1B8C
+#define CNP_PMC_LTR_CAM                                0x1B90
+#define CNP_PMC_LTR_SPD                                0x1B94
+#define CNP_PMC_LTR_SPE                                0x1B98
+#define CNP_PMC_LTR_ESPI                       0x1B9C
+#define CNP_PMC_LTR_SCC                                0x1BA0
+#define CNP_PMC_LTR_ISH                                0x1BA4
+#define CNP_PMC_LTR_CNV                                0x1BF0
+#define CNP_PMC_LTR_EMMC                       0x1BF4
+#define CNP_PMC_LTR_UFSX2                      0x1BF8
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw

Thanks again for your time. My response inline.

Quoted 8 lines · Andy Shevchenko
Quoted 6 lines · Rajneesh Bhardwaj

This adds support to show the Latency Tolerance Reporting for the IPs on the PCH as reported by the PMC. The format shown here is raw LTR data payload that can further be decoded as per the PCI specification.

This also fixes some minor alignment issues in the header file by removing spaces and converting to tabs at some places.

Quoted 8 lines

Thanks for the update, my comments below.

Quoted 3 lines
[andy: fixed output to avoid LTR duplication and put space after colon]

You incorporated changes I proposed — good!
But please, don't do my job with signing stuff, etc. Just mention what you did in the changelog.

Okay.  I downloaded the patch applied on review-andy branch and worked on it. Those two lines came along with the downloaded patch but i understood your concern now.

Quoted 10 lines

drivers/platform/x86/intel_pmc_core.c static const struct pmc_bit_map spt_pfear_map[] = { · line 119

Quoted 9 lines
drivers/platform/x86/intel_pmc_core.c +7 -0
+static const struct pmc_bit_map spt_ltr_show_map[] = {
+       {"SOUTHPORT_A",         SPT_PMC_LTR_SPA},
+       {"SOUTHPORT_B",         SPT_PMC_LTR_SPB},
+       {"SATA",                SPT_PMC_LTR_SATA},
+       {"GIGABIT_ETHERNET",    SPT_PMC_LTR_GBE},
+       {"XHCI",                SPT_PMC_LTR_XHCI},
+       /* IP 5 is reserved */

Since we dropped explicit numbering, this line and similar sounds redundant.

Fine.

Quoted 20 lines
Quoted 20 lines
drivers/platform/x86/intel_pmc_core.c +18 -0
+       {"ME",                  SPT_PMC_LTR_ME},
+       /* EVA is Enterprise Value Add, doesn't really exist on PCH */
+       {"EVA",                 SPT_PMC_LTR_EVA},
+       {"SOUTHPORT_C",         SPT_PMC_LTR_SPC},
+       {"HD_AUDIO",            SPT_PMC_LTR_AZ},
+       /* IP 10 is reserved */
+       {"LPSS",                SPT_PMC_LTR_LPSS},
+       {"SOUTHPORT_D",         SPT_PMC_LTR_SPD},
+       {"SOUTHPORT_E",         SPT_PMC_LTR_SPE},
+       {"CAMERA",              SPT_PMC_LTR_CAM},
+       {"ESPI",                SPT_PMC_LTR_ESPI},
+       {"SCC",                 SPT_PMC_LTR_SCC},
+       {"ISH",                 SPT_PMC_LTR_ISH},
+       /* Below two cannot be used for LTR_IGNORE */
+       {"CURRENT_PLATFORM",    SPT_PMC_LTR_CUR_PLT},
+       {"AGGREGATED_SYSTEM",   SPT_PMC_LTR_CUR_ASLT},
+       {}
+};
  /* Cannonlake Power Management Controller register offsets */
Quoted 8 lines

drivers/platform/x86/intel_pmc_core.h enum ppfear_regs { · line 149

Quoted 7 lines
drivers/platform/x86/intel_pmc_core.h +3 -3
-#define CNP_PMC_SLP_S0_RES_COUNTER_OFFSET      0x193C
-#define CNP_PMC_LTR_IGNORE_OFFSET              0x1B0C
-#define CNP_PMC_PM_CFG_OFFSET                  0x1818
+#define CNP_PMC_SLP_S0_RES_COUNTER_OFFSET      0x193C
+#define CNP_PMC_LTR_IGNORE_OFFSET              0x1B0C
+#define CNP_PMC_PM_CFG_OFFSET                  0x1818
  #define CNP_PMC_SLPS0_DBG_OFFSET               0x10B4

Can we preserve ordering?

Doesn't harm, will reorder based on offsets increasing order.

Quoted 5 lines

drivers/platform/x86/intel_pmc_core.h enum ppfear_regs { · line 151

Quoted 4 lines

/* Cannonlake: PGD PFET Enable Ack Status Register(s) start */

drivers/platform/x86/intel_pmc_core.h +1 -1
-#define CNP_PMC_HOST_PPFEAR0A                  0x1D90
+#define CNP_PMC_HOST_PPFEAR0A                  0x1D90

What's wrong with this line? Why is it changed?

This and below are edited to convert spaces to tabs. This is captured in commit message too.

Quoted 8 lines

drivers/platform/x86/intel_pmc_core.h enum ppfear_regs { · line 155

Quoted 7 lines
drivers/platform/x86/intel_pmc_core.h +3 -3
-#define CNP_PMC_MMIO_REG_LEN                   0x2000
-#define CNP_PPFEAR_NUM_ENTRIES                 8
-#define CNP_PMC_READ_DISABLE_BIT               22
+#define CNP_PMC_MMIO_REG_LEN                   0x2000
+#define CNP_PPFEAR_NUM_ENTRIES                 8
+#define CNP_PMC_READ_DISABLE_BIT               22

What happened to these lines?

same as above.

Quoted 5 lines
Quoted 2 lines
  #define CNP_PMC_LATCH_SLPS0_EVENTS             BIT(31)

Perhaps
+ blank line
here

This is from a previous commit but i think its better to move it up the block and insert one blank line after. If we insert one blank line after its current position, it looks odd and cuts the logical block unnecessarily.

Quoted 22 lines
Quoted 22 lines
drivers/platform/x86/intel_pmc_core.h +21 -0
+#define CNP_PMC_LTR_CUR_PLT                    0x1B50
+#define CNP_PMC_LTR_CUR_ASLT                   0x1B54
+#define CNP_PMC_LTR_SPA                                0x1B60
+#define CNP_PMC_LTR_SPB                                0x1B64
+#define CNP_PMC_LTR_SATA                       0x1B68
+#define CNP_PMC_LTR_GBE                                0x1B6C
+#define CNP_PMC_LTR_XHCI                       0x1B70
+#define CNP_PMC_LTR_ME                         0x1B78
+#define CNP_PMC_LTR_EVA                                0x1B7C
+#define CNP_PMC_LTR_SPC                                0x1B80
+#define CNP_PMC_LTR_AZ                         0x1B84
+#define CNP_PMC_LTR_LPSS                       0x1B8C
+#define CNP_PMC_LTR_CAM                                0x1B90
+#define CNP_PMC_LTR_SPD                                0x1B94
+#define CNP_PMC_LTR_SPE                                0x1B98
+#define CNP_PMC_LTR_ESPI                       0x1B9C
+#define CNP_PMC_LTR_SCC                                0x1BA0
+#define CNP_PMC_LTR_ISH                                0x1BA4
+#define CNP_PMC_LTR_CNV                                0x1BF0
+#define CNP_PMC_LTR_EMMC                       0x1BF4
+#define CNP_PMC_LTR_UFSX2                      0x1BF8