Skip to content

Commit 479174d

Browse files
committed
Merge tag 'platform-drivers-x86-v6.1-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver fix from Hans de Goede: "A single fix for 6.1 for suspend/resume issues on some AMD systems" * tag 'platform-drivers-x86-v6.1-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: platform/x86/amd: pmc: Add a workaround for an s0i3 issue on Cezanne
2 parents b5b52de + e467848 commit 479174d

File tree

1 file changed

+6
-0
lines changed
  • drivers/platform/x86/amd

1 file changed

+6
-0
lines changed

drivers/platform/x86/amd/pmc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,14 @@ static void amd_pmc_s2idle_prepare(void)
739739
static void amd_pmc_s2idle_check(void)
740740
{
741741
struct amd_pmc_dev *pdev = &pmc;
742+
struct smu_metrics table;
742743
int rc;
743744

745+
/* CZN: Ensure that future s0i3 entry attempts at least 10ms passed */
746+
if (pdev->cpu_id == AMD_CPU_ID_CZN && !get_metrics_table(pdev, &table) &&
747+
table.s0i3_last_entry_status)
748+
usleep_range(10000, 20000);
749+
744750
/* Dump the IdleMask before we add to the STB */
745751
amd_pmc_idlemask_read(pdev, pdev->dev, NULL);
746752

0 commit comments

Comments
 (0)