From patchwork Mon Aug 10 15:27:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frederic Konrad X-Patchwork-Id: 52265 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id D306422919 for ; Mon, 10 Aug 2015 15:35:44 +0000 (UTC) Received: by lbcli1 with SMTP id li1sf6704885lbc.2 for ; Mon, 10 Aug 2015 08:35:43 -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:in-reply-to :references: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=GuObhg0iw1Cj75CrK0r/BnE/y1ZKRNru4+Y8YoNjfvI=; b=g/bnkIf9xVhd8P8Ulchbra3A0aPC2ubZaxbVklJlc00Wl8IOuAuM/PcGR9yvkpgcNk R6jbZ2zO7Ko2d92dq9J/UG3cVbzQN/8TMNUFZe0+R2SY5yNEylJ/V9/yqf3Qnt6TX21W HkVdkFnB87yxFxtwprSpd9HwYhS5S3yW8A1zbU/vuoTdrjPQ+DDLpG0UeLh3DXMpyPrq DO7jzC2BYYaBlQ2Wv+24tyGdjnkKw2Q+mKN0k3LA4vr5Vn3SnDAFUPwsXj1f7CAJTZl0 h7jRfgXWI1E8y26Crx8lsXCNcOhnNOAUV33ywsQT/2A45St2XVNJuw1kXFHR3jP5pi5i 4mJw== X-Gm-Message-State: ALoCoQmshhKDN5S9BDLQAUeVn+LA0fLy/hmLgGRqKK7R1pNqf/ZB1x2KFWS+r4PgKn+EuYY4LC0U X-Received: by 10.112.78.101 with SMTP id a5mr3570067lbx.9.1439220943817; Mon, 10 Aug 2015 08:35:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.36 with SMTP id v4ls62638laj.109.gmail; Mon, 10 Aug 2015 08:35:43 -0700 (PDT) X-Received: by 10.112.145.201 with SMTP id sw9mr20620999lbb.25.1439220943376; Mon, 10 Aug 2015 08:35:43 -0700 (PDT) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com. [2a00:1450:4010:c03::229]) by mx.google.com with ESMTPS id dg12si6888721lac.48.2015.08.10.08.35.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 08:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::229 as permitted sender) client-ip=2a00:1450:4010:c03::229; Received: by lahi9 with SMTP id i9so25364334lah.2 for ; Mon, 10 Aug 2015 08:35:43 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr20861668lal.35.1439220943232; Mon, 10 Aug 2015 08:35:43 -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.7.198 with SMTP id l6csp2001508lba; Mon, 10 Aug 2015 08:35:42 -0700 (PDT) X-Received: by 10.55.33.35 with SMTP id h35mr38763395qkh.75.1439220941939; Mon, 10 Aug 2015 08:35:41 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c93si34151365qgd.5.2015.08.10.08.35.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Aug 2015 08:35:41 -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]:58907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOp6z-0002Nq-0u for patch@linaro.org; Mon, 10 Aug 2015 11:35:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOozu-0007D1-J9 for qemu-devel@nongnu.org; Mon, 10 Aug 2015 11:28:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOozt-0000AZ-8v for qemu-devel@nongnu.org; Mon, 10 Aug 2015 11:28:22 -0400 Received: from greensocs.com ([193.104.36.180]:59414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOozt-0000AJ-3P for qemu-devel@nongnu.org; Mon, 10 Aug 2015 11:28:21 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 7266E18CE36; Mon, 10 Aug 2015 17:28:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at greensocs.com Received: from greensocs.com ([127.0.0.1]) by localhost (gs-01.greensocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10Y0Aioj3fAK; Mon, 10 Aug 2015 17:28:18 +0200 (CEST) Received: from localhost.localdomain (AToulouse-555-1-147-173.w109-223.abo.wanadoo.fr [109.223.34.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: fred.konrad@greensocs.com) by greensocs.com (Postfix) with ESMTPSA id 432C318DEE7; Mon, 10 Aug 2015 17:27:37 +0200 (CEST) From: fred.konrad@greensocs.com To: qemu-devel@nongnu.org, mttcg@listserver.greensocs.com Date: Mon, 10 Aug 2015 17:27:17 +0200 Message-Id: <1439220437-23957-20-git-send-email-fred.konrad@greensocs.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1439220437-23957-1-git-send-email-fred.konrad@greensocs.com> References: <1439220437-23957-1-git-send-email-fred.konrad@greensocs.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 193.104.36.180 Cc: mark.burton@greensocs.com, a.rigo@virtualopensystems.com, guillaume.delbergue@greensocs.com, pbonzini@redhat.com, alex.bennee@linaro.org, fred.konrad@greensocs.com Subject: [Qemu-devel] [RFC PATCH V7 19/19] 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-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::229 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@greensocs.com; dkim=neutral (body hash did not verify) header.i=@greensocs.com; dmarc=fail (p=NONE dis=NONE) header.from=greensocs.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Alex Bennée 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 --- 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: