diff mbox series

[1/2] POWER9 Cleanups: de-assert SPW

Message ID 20210802143354.971727-1-hegdevasant@linux.vnet.ibm.com
State Accepted
Headers show
Series [1/2] POWER9 Cleanups: de-assert SPW | expand

Commit Message

Vasant Hegde Aug. 2, 2021, 2:33 p.m. UTC
From: "Pratik R. Sampat" <psampat@linux.ibm.com>

De-assert special wakeup bits for the case when SPWU bit is set, however
the core is gated to maintain a coherent state for special wakeup.

Signed-off-by: Pratik R. Sampat <psampat@linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 core/direct-controls.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Vasant Hegde Aug. 5, 2021, 12:23 p.m. UTC | #1
On 8/2/21 8:03 PM, Vasant Hegde wrote:
> From: "Pratik R. Sampat" <psampat@linux.ibm.com>
> 
> De-assert special wakeup bits for the case when SPWU bit is set, however
> the core is gated to maintain a coherent state for special wakeup.

Thanks! Merged series to master as of 5f670896.

-Vasant
diff mbox series

Patch

diff --git a/core/direct-controls.c b/core/direct-controls.c
index 65cf122c1..0274367da 100644
--- a/core/direct-controls.c
+++ b/core/direct-controls.c
@@ -302,6 +302,8 @@  static int p9_core_set_special_wakeup(struct cpu_thread *cpu)
 			 * raise error.
 			 */
 			if (dctl_core_is_gated(cpu)) {
+				/* Deassert spwu for this strange error */
+				xscom_write(chip_id, swake_addr, 0);
 				prlog(PR_ERR, "Failed special wakeup on %u:%u"
 						" as CORE_GATED is set\n",
 						chip_id, core_id);