Skip to contentSkip to conversation

platform/x86: ISST: Restore SST-PP control to all domains

PATCH In review Srinivas Pandruvada 2 participants 2 messages May 28 – Jun 10

Subsystems (3)
lore
Share & tools
lore

Srinivas Pandruvada

author maintainer
#0 lore raw

PATCH 1/1 platform/x86: ISST: Restore SST-PP control to all domains

From: Srinivas Pandruvada <[email protected]>

The SST-PP control offset is only restored to power domain 0 after resume. During suspend, control values are read and stored for all power domains.

Use pd_info->sst_base instead of power_domain_info->sst_base, which only points to power domain 0 base address.

Fixes dc7901b5a156 ("platform/x86: ISST: Store and restore all domains data")
---
 drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +1 -1
index b804cb753f94..24334ae70d82 100644
@@ -1804,7 +1804,7 @@ void tpmi_sst_dev_resume(struct auxiliary_device *auxdev)
 		if (!(pd_info->sst_header.cap_mask & SST_PP_CAP_PP_ENABLE))
 			continue;
 
-		writeq(pd_info->saved_pp_control, power_domain_info->sst_base +
+		writeq(pd_info->saved_pp_control, pd_info->sst_base +
 		       pd_info->sst_header.pp_offset + SST_PP_CONTROL_OFFSET);
 	}
 }
Signature · 1 line
2.54.0
maintainer
#1 lore raw
Quoted 8 lines · Srinivas Pandruvada

The SST-PP control offset is only restored to power domain 0 after resume. During suspend, control values are read and stored for all power domains.

Use pd_info->sst_base instead of power_domain_info->sst_base, which only points to power domain 0 base address.

[...]

Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: ISST: Restore SST-PP control to all domains

      commit: 2565a28cdcdcb035e151d285efcba26bccb3726e

--
i.