[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH V7 19/19] target-arm/psci.c: wake up sleeping CP
From: |
fred . konrad |
Subject: |
[Qemu-devel] [RFC PATCH V7 19/19] target-arm/psci.c: wake up sleeping CPUs (MTTCG) |
Date: |
Mon, 10 Aug 2015 17:27:17 +0200 |
From: Alex Bennée <address@hidden>
Testing with Alexander's bare metal syncronisation tests fails in MTTCG
leaving one CPU spinning forever waiting for the second CPU to wake up.
We simply need to poke the halt_cond once we have processed the PSCI
power on call.
Tested-by: Alex Bennée <address@hidden>
CC: Alexander Spyridakis <address@hidden>
---
target-arm/psci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target-arm/psci.c b/target-arm/psci.c
index 20e4cb6..83e309c 100644
--- a/target-arm/psci.c
+++ b/target-arm/psci.c
@@ -211,6 +211,8 @@ void arm_handle_psci_call(ARMCPU *cpu)
}
target_cpu_class->set_pc(target_cpu_state, entry);
+ qemu_cond_signal(target_cpu_state->halt_cond);
+
ret = 0;
break;
case QEMU_PSCI_0_1_FN_CPU_OFF:
--
1.9.0
- [Qemu-devel] [RFC PATCH V7 12/19] Use atomic cmpxchg to atomically check the exclusive value in a STREX, (continued)
- [Qemu-devel] [RFC PATCH V7 12/19] Use atomic cmpxchg to atomically check the exclusive value in a STREX, fred . konrad, 2015/08/10
- [Qemu-devel] [RFC PATCH V7 14/19] cpu: introduce tlb_flush*_all., fred . konrad, 2015/08/10
- [Qemu-devel] [RFC PATCH V7 15/19] arm: use tlb_flush*_all, fred . konrad, 2015/08/10
- [Qemu-devel] [RFC PATCH V7 18/19] mttcg: signal the associated cpu anyway., fred . konrad, 2015/08/10
- [Qemu-devel] [RFC PATCH V7 16/19] translate-all: introduces tb_flush_safe., fred . konrad, 2015/08/10
- [Qemu-devel] [RFC PATCH V7 17/19] translate-all: (wip) use tb_flush_safe when we can't alloc more tb., fred . konrad, 2015/08/10
- [Qemu-devel] [RFC PATCH V7 19/19] target-arm/psci.c: wake up sleeping CPUs (MTTCG),
fred . konrad <=
- Re: [Qemu-devel] [RFC PATCH V7 00/19] Multithread TCG., Alex Bennée, 2015/08/10
- Re: [Qemu-devel] [RFC PATCH V7 00/19] Multithread TCG., Benjamin Herrenschmidt, 2015/08/11