platform/x86:intel/pmc: Disable ACPI PM Timer disabling on Sky and Kabe Lake
Subsystems (3)
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
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.
--- drivers/platform/x86/intel/pmc/spt.c | 2 -- 1 file changed, 2 deletions(-)
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, };
Signature · 1 line
2.46.2
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_offsetandacpi_pm_tmr_disable_bitsettings fromspt_reg_mapto 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")Reported-by Paul Menzel <[email protected]>Reported-by Todd Brandt <[email protected]>Cc Marek Maslanka <[email protected]>Signed-off-by Hans de Goede <[email protected]>--- drivers/platform/x86/intel/pmc/spt.c | 2 -- 1 file changed, 2 deletions(-)drivers/platform/x86/intel/pmc/spt.c +0
-0
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
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_offsetandacpi_pm_tmr_disable_bitsettings fromspt_reg_mapto 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")Reported-by Paul Menzel <[email protected]>Reported-by Todd Brandt <[email protected]>Cc Marek Maslanka <[email protected]>Signed-off-by Hans de Goede <[email protected]>--- drivers/platform/x86/intel/pmc/spt.c | 2 -- 1 file changed, 2 deletions(-)drivers/platform/x86/intel/pmc/spt.c +0
-3@@ -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
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_offsetandacpi_pm_tmr_disable_bitsettings fromspt_reg_mapto 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")Reported-by Paul Menzel <[email protected]>Reported-by Todd Brandt <[email protected]>Cc Marek Maslanka <[email protected]>Signed-off-by Hans de Goede <[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@@ -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, };