From patchwork Fri Mar 18 16:18:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 8621641 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B120C9F6E1 for ; Fri, 18 Mar 2016 16:19:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06B232037F for ; Fri, 18 Mar 2016 16:19:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 47F7220204 for ; Fri, 18 Mar 2016 16:19:17 +0000 (UTC) Received: from localhost ([::1]:44771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agx7M-0000RZ-HT for patchwork-qemu-devel@patchwork.kernel.org; Fri, 18 Mar 2016 12:19:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agx79-0000R7-IV for qemu-devel@nongnu.org; Fri, 18 Mar 2016 12:19:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agx78-0002wb-JA for qemu-devel@nongnu.org; Fri, 18 Mar 2016 12:19:03 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:34223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agx78-0002wI-Ck for qemu-devel@nongnu.org; Fri, 18 Mar 2016 12:19:02 -0400 Received: by mail-wm0-x236.google.com with SMTP id p65so75845600wmp.1 for ; Fri, 18 Mar 2016 09:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JX1MdVf7mMYJJoTWfji+gJ0bPzrkIWDbHVKTXuWIpHo=; b=kHuS+/P/n6Ll0jfci760Pd9zJaB0bQOJTN8YI89xENkZM/mXhzVVlEEyE2A2eMkOo7 fthc3UZY1kLROAlPF4K7cK18uTRlEUrOdu5zuw/uPDm+qJTrxsyFcZ9LATLlUMHxWRYJ A0kfjL0zfXWEG2I9WRlv9xorQngVYW1C6gjDw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JX1MdVf7mMYJJoTWfji+gJ0bPzrkIWDbHVKTXuWIpHo=; b=ErhycpAiyHXbjpgLnA9UqV4wUflzyhmYbypp1u5jO8tMMZ0fazyK1Frke69upS+R0g tKWvMOeX3KPa1TA4MEUSuCgM6PnL38kQO/e2tjJ0bb95OyxONQGHkHhBaHm0VSjM6L2Y a30nnv1mGjVWZ1VGLEu3aOE3jE3uAZsebsGDIt4SZM45q+pDwtDetV0PcFDZR+RmtRac qcuDdDLL4CHljGnW6d8SQo3nnf/do/x3BNdEBZjsj6lOSe5Kk2CQXwZtN3MOAIWe9te3 pEYekFWy8hPGE1fNr/3+8NpgPg/RFd6DUfRwlAK/DMwcNt80WKm8FPy4pJavkyRPh/tg xGbw== X-Gm-Message-State: AD7BkJI7F75BGYrICAtFlo5vLAy/lv237kjJuX77vSKSzY01NzIwJ8FriPTo0zLq7cU6JWHj X-Received: by 10.28.223.70 with SMTP id w67mr216460wmg.92.1458317941624; Fri, 18 Mar 2016 09:19:01 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id hh8sm12802167wjc.42.2016.03.18.09.18.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Mar 2016 09:19:00 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 131663E0520; Fri, 18 Mar 2016 16:18:56 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: mttcg@listserver.greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, serge.fdrv@gmail.com, cota@braap.org Date: Fri, 18 Mar 2016 16:18:46 +0000 Message-Id: <1458317932-1875-6-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1458317932-1875-1-git-send-email-alex.bennee@linaro.org> References: <1458317932-1875-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::236 Cc: Peter Maydell , Alexander Spyridakis , mark.burton@greensocs.com, qemu-devel@nongnu.org, "open list:ARM" , pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [Qemu-devel] [RFC v1 05/11] target-arm/psci.c: wake up sleeping CPUs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 CC: Alexander Spyridakis Message-Id: <1439220437-23957-20-git-send-email-fred.konrad@greensocs.com> Signed-off-by: Alex Bennée Signed-off-by: Paolo Bonzini --- target-arm/psci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/psci.c b/target-arm/psci.c index c55487f..8e937d8 100644 --- a/target-arm/psci.c +++ b/target-arm/psci.c @@ -212,6 +212,8 @@ void arm_handle_psci_call(ARMCPU *cpu) } target_cpu_class->set_pc(target_cpu_state, entry); + qemu_cpu_kick(target_cpu_state); + ret = 0; break; case QEMU_PSCI_0_1_FN_CPU_OFF: