From patchwork Tue Apr 5 15:32:19 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: 65105 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp537875lbc; Tue, 5 Apr 2016 08:37:52 -0700 (PDT) X-Received: by 10.55.72.196 with SMTP id v187mr41063875qka.97.1459870672408; Tue, 05 Apr 2016 08:37:52 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id d2si26692778qkb.17.2016.04.05.08.37.52 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Apr 2016 08:37:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anT39-0006or-Um for patch@linaro.org; Tue, 05 Apr 2016 11:37:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anSy9-0006lo-2L for qemu-devel@nongnu.org; Tue, 05 Apr 2016 11:32:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anSy8-0007Em-0p for qemu-devel@nongnu.org; Tue, 05 Apr 2016 11:32:41 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:38178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anSy7-0007EQ-Qs for qemu-devel@nongnu.org; Tue, 05 Apr 2016 11:32:39 -0400 Received: by mail-wm0-x234.google.com with SMTP id u206so9437413wme.1 for ; Tue, 05 Apr 2016 08:32:39 -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=Nm/zsMFRVAeshEaDTKIBhZeR96gzACzMbRacdG5x/jc=; b=PnDJIlcxTkP/4TOFmn8oFvAqus8HkdjKnNFbFlhU979HbfoJkkjcY6x8Zwrigwmyub HXHmZWmatwlUT4K2XB4Of4Dt7mSssZq/PikVZO8a24ifUN0tasMZW+QOzczaSHQrud14 2q4M34UTQi84xFqUMwOMHbDH+TlQswU1hoTHc= 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=Nm/zsMFRVAeshEaDTKIBhZeR96gzACzMbRacdG5x/jc=; b=N0ccc0KrOjcA3FhB48gg4+HmtcwwxTs+gumQMrek+GWrUbswUpEPq4PuEtGokgAWpR Yhy8yqgMAD/sKAPOgL41vOJPB2e5JiriUxOWN33naDTPBr/FcRypN5a6pEcJX7WF10ms QQDo5k5phha41fV+gk7+Qqb6g7yVdbbaDmPExCGMcktO8ZeuQHspWX0ACJIoDt8RikuR TsfNNPXaAdxrHCYmi30MxI75leMW7TlE7yHvZrQPcjyHun58waf5iOWTdmbfFejbG06F Gik23JgBiOuEaJqP9lzHP+Wo81E+jsl8KY8uxSWFXZNWyenfl4/8lED5aAkGCa16Ziae GHmQ== X-Gm-Message-State: AD7BkJJjc5Y5MxwhjovR2SmSHi6l+rDWGDR1MiQkaE8U4HKFxH7n8uWxHXQUGXatj0KBOH7A X-Received: by 10.194.236.170 with SMTP id uv10mr25954555wjc.32.1459870359184; Tue, 05 Apr 2016 08:32:39 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id e190sm20162141wma.15.2016.04.05.08.32.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Apr 2016 08:32:36 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 5398A3E0587; Tue, 5 Apr 2016 16:32:33 +0100 (BST) 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: Tue, 5 Apr 2016 16:32:19 +0100 Message-Id: <1459870344-16773-7-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459870344-16773-1-git-send-email-alex.bennee@linaro.org> References: <1459870344-16773-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::234 Cc: peter.maydell@linaro.org, claudio.fontana@huawei.com, jan.kiszka@siemens.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, "open list:ARM" , Alexander Spyridakis , pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , rth@twiddle.net Subject: [Qemu-devel] [RFC v2 06/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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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(+) -- 2.7.4 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: