From patchwork Wed Jun 24 15:34:44 2015 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: 50289 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 14039228FC for ; Wed, 24 Jun 2015 15:35:24 +0000 (UTC) Received: by lagh6 with SMTP id h6sf12081458lag.0 for ; Wed, 24 Jun 2015 08:35:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:content-type:content-transfer-encoding:cc:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=rtur4tAS6XNVoDLrq93Sq/jdjIaY61mMEI7a82onqDo=; b=MPpPdzYqIAklt8CYHH912XwrjJ6v2HaEPEfdwW80xXH7lASuHAh6IkogZ1hYgjUWYS EGiuBSN61dfH24uSEtZ3rlaECcIKSJAI+3xUWHGBKlAxOnCLNaaPPguoMZ1LkdGO7u0g zjuCj3/fPAvjiu9VjqZgriyTP5NsgI9aoE2Mwio3215LbR885PRF+7Suh8w2xjdGU/jH N01CT+utF9sKttayoMeaz/GccTozWMJwufenlWEKCgfsMZlQ28F5LBSVxGi2IpCedfJV aTbsDviQActRbpJOzDvVRL6nBkigbRa2XaC3VKSey5m8mfVUmwcyr+HJQurmqs3HZc6n qPRw== X-Gm-Message-State: ALoCoQlep/6nfWBjvB7vIiwmXNLMrIyIiW9GT/qsmz/rGMOKl3FoR8h1OuAEsVSxYrKZuw1+rfH4 X-Received: by 10.194.81.136 with SMTP id a8mr6071635wjy.2.1435160122831; Wed, 24 Jun 2015 08:35:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.227 with SMTP id lf3ls220024lab.93.gmail; Wed, 24 Jun 2015 08:35:22 -0700 (PDT) X-Received: by 10.152.121.42 with SMTP id lh10mr24910729lab.0.1435160122670; Wed, 24 Jun 2015 08:35:22 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id pw2si22316815lbb.33.2015.06.24.08.35.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jun 2015 08:35:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbpo10 with SMTP id po10so28748737lbb.3 for ; Wed, 24 Jun 2015 08:35:22 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr39773311lbc.41.1435160122437; Wed, 24 Jun 2015 08:35:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp3871134lbb; Wed, 24 Jun 2015 08:35:21 -0700 (PDT) X-Received: by 10.140.132.17 with SMTP id 17mr55898048qhe.36.1435160121202; Wed, 24 Jun 2015 08:35:21 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id df7si23682795qcb.8.2015.06.24.08.35.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 24 Jun 2015 08:35:21 -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; Received: from localhost ([::1]:51332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7mhs-0007e9-9o for patch@linaro.org; Wed, 24 Jun 2015 11:35:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7mh2-0006ml-MN for qemu-devel@nongnu.org; Wed, 24 Jun 2015 11:34:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7mgy-0000N5-Nl for qemu-devel@nongnu.org; Wed, 24 Jun 2015 11:34:28 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:49736 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7mgy-0000Mr-IN for qemu-devel@nongnu.org; Wed, 24 Jun 2015 11:34:24 -0400 Received: from localhost ([127.0.0.1] helo=zen.linaroharston) by socrates.bennee.com with esmtp (Exim 4.84) (envelope-from ) id 1Z7mj4-0004Jf-Sh; Wed, 24 Jun 2015 17:36:35 +0200 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: mttcg@listserver.greensocs.com, mark.burton@greensocs.com, fred.konrad@greensocs.com Date: Wed, 24 Jun 2015 16:34:44 +0100 Message-Id: <1435160084-938-1-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.4.3 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: alex.bennee@linaro.org X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 88.198.71.155 Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Alexander Spyridakis Subject: [Qemu-devel] [RFC PATCH] target-arm/psci.c: wake up sleeping CPUs (MTTCG) 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 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.bennee@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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 --- TODO - exactly how does the vexpress wake up it's sleeping CPUs? --- target-arm/psci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/psci.c b/target-arm/psci.c index d8fafab..661ff28 100644 --- a/target-arm/psci.c +++ b/target-arm/psci.c @@ -196,6 +196,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: