Skip to contentSkip to conversation

platform/x86:intel/pmc: Disable ACPI PM Timer disabling on Sky and Kabe Lake

PATCH New Hans de Goede 3 participants 5 messages Oct 3, 2024 – Oct 6, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover platform/x86:intel/pmc: Disable ACPI PM Timer disabling on Sky and Kabe Lake

Hi All,

There is now a second bug report about the suspend/resume issues on Kaby Lake platforms introduced by commit e86c8186d03a ("platform/x86:intel/pmc:
Enable the ACPI PM Timer to be turned off when suspended"):

https://bugzilla.kernel.org/show_bug.cgi?id=219346

This second bug report indicates that this also happens for s2idle and hibernate, for which my original fix does not help. Here is a new attempt at fixing this.

Paul this replaces my previous fix:
https://patchwork.kernel.org/project/platform-driver-x86/patch/[email protected]/

Can you retest this on your Dell XPS 13 9360 and confirm that this new fix also fixes things for you ?

Regards,

Hans

Hans de Goede (1):
platform/x86:intel/pmc: Disable ACPI PM Timer disabling on Sky and
Kabe Lake

 drivers/platform/x86/intel/pmc/spt.c | 2 --
 1 file changed, 2 deletions(-)
Signature · 1 line
2.46.2
#1 lore raw

PATCH 1/1 platform/x86:intel/pmc: Disable ACPI PM Timer disabling on Sky and Kabe Lake

There have been multiple reports that the ACPI PM Timer disabling is causing Sky and Kabe Lake systems to hang on all suspend (s2idle, s3, hibernate) methods.

Remove the acpi_pm_tmr_ctl_offset and acpi_pm_tmr_disable_bit settings from spt_reg_map to disable the ACPI PM Timer disabling on Sky and Kabe Lake to fix the hang on suspend.

Fixes e86c8186d03a ("platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended")
Cc Marek Maslanka <[email protected]>
---
 drivers/platform/x86/intel/pmc/spt.c | 2 --
 1 file changed, 2 deletions(-)
drivers/platform/x86/intel/pmc/spt.c +0 -2
index 2cd2b3c68e46..ab993a69e33e 100644
@@ -130,8 +130,6 @@ 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,
-	.acpi_pm_tmr_ctl_offset = SPT_PMC_ACPI_PM_TMR_CTL_OFFSET,
-	.acpi_pm_tmr_disable_bit = SPT_PMC_BIT_ACPI_PM_TMR_DISABLE,
 	.ltr_ignore_max = SPT_NUM_IP_IGN_ALLOWED,
 	.pm_vric1_offset = SPT_PMC_VRIC1_OFFSET,
 };
Signature · 1 line
2.46.2
Tested-by on v1 1/1
#2 lore raw

Dear Hans,

Thank you for the patch.

Am 03.10.24 um 22:26 schrieb Hans de Goede:

Quoted 2 lines

There have been multiple reports that the ACPI PM Timer disabling is causing Sky and Kabe Lake systems to hang on all suspend (s2idle, s3,

Kab*y* (also in the summary)

Quoted 4 lines

hibernate) methods.

Remove the acpi_pm_tmr_ctl_offset and acpi_pm_tmr_disable_bit settings from spt_reg_map to disable the ACPI PM Timer disabling on Sky and Kabe Lake to

Ditto.

Quoted 18 lines

fix the hang on suspend.

Fixes e86c8186d03a ("platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended")
Cc Marek Maslanka <[email protected]>
---
  drivers/platform/x86/intel/pmc/spt.c | 2 --
  1 file changed, 2 deletions(-)
drivers/platform/x86/intel/pmc/spt.c +0 -0
index 2cd2b3c68e46..ab993a69e33e 100644

drivers/platform/x86/intel/pmc/spt.c const struct pmc_reg_map spt_reg_map = { · line 135

Quoted 8 lines
drivers/platform/x86/intel/pmc/spt.c +0 -2
@@ -130,8 +130,6 @@ 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,
-	.acpi_pm_tmr_ctl_offset = SPT_PMC_ACPI_PM_TMR_CTL_OFFSET,
-	.acpi_pm_tmr_disable_bit = SPT_PMC_BIT_ACPI_PM_TMR_DISABLE,
  	.ltr_ignore_max = SPT_NUM_IP_IGN_ALLOWED,
  	.pm_vric1_offset = SPT_PMC_VRIC1_OFFSET,
  };

Kind regards,

Paul

Acked-by on v1 1/1
#3 lore raw
In reply to Hans de Goede
Quoted 4 lines · Hans de Goede

There have been multiple reports that the ACPI PM Timer disabling is causing Sky and Kabe Lake systems to hang on all suspend (s2idle, s3, hibernate) methods.

It's Kaby Lake as pointed out by Paul.

Other than this

Quoted 32 lines

Remove the acpi_pm_tmr_ctl_offset and acpi_pm_tmr_disable_bit settings from spt_reg_map to disable the ACPI PM Timer disabling on Sky and Kabe Lake to fix the hang on suspend.

Fixes e86c8186d03a ("platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended")
Cc Marek Maslanka <[email protected]>
---
 drivers/platform/x86/intel/pmc/spt.c | 2 --
 1 file changed, 2 deletions(-)
drivers/platform/x86/intel/pmc/spt.c +0 -3
index 2cd2b3c68e46..ab993a69e33e 100644
@@ -130,8 +130,6 @@ 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,
-       .acpi_pm_tmr_ctl_offset = SPT_PMC_ACPI_PM_TMR_CTL_OFFSET,
-       .acpi_pm_tmr_disable_bit = SPT_PMC_BIT_ACPI_PM_TMR_DISABLE,
        .ltr_ignore_max = SPT_NUM_IP_IGN_ALLOWED,
        .pm_vric1_offset = SPT_PMC_VRIC1_OFFSET,
 };
--

2.46.2

#4 lore raw
In reply to Hans de Goede

Hi,

Quoted 8 lines · Hans de Goede

There have been multiple reports that the ACPI PM Timer disabling is causing Sky and Kabe Lake systems to hang on all suspend (s2idle, s3, hibernate) methods.

Remove the acpi_pm_tmr_ctl_offset and acpi_pm_tmr_disable_bit settings from spt_reg_map to disable the ACPI PM Timer disabling on Sky and Kabe Lake to fix the hang on suspend.

Quoted 7 lines
Fixes e86c8186d03a ("platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended")
Cc Marek Maslanka <[email protected]>

I've now applied this patch to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

I will include this patch in my next fixes pull-req to Linus for the current kernel development cycle.

Regards,

Hans

Quoted 17 lines
---
 drivers/platform/x86/intel/pmc/spt.c | 2 --
 1 file changed, 2 deletions(-)
drivers/platform/x86/intel/pmc/spt.c +0 -2
index 2cd2b3c68e46..ab993a69e33e 100644
@@ -130,8 +130,6 @@ 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,
-	.acpi_pm_tmr_ctl_offset = SPT_PMC_ACPI_PM_TMR_CTL_OFFSET,
-	.acpi_pm_tmr_disable_bit = SPT_PMC_BIT_ACPI_PM_TMR_DISABLE,
 	.ltr_ignore_max = SPT_NUM_IP_IGN_ALLOWED,
 	.pm_vric1_offset = SPT_PMC_VRIC1_OFFSET,
 };