From patchwork Mon Mar 23 11:05:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 453371 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 28FB314010F for ; Mon, 23 Mar 2015 22:14:36 +1100 (AEDT) Received: from localhost ([::1]:55020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya0JW-0005M8-BC for incoming@patchwork.ozlabs.org; Mon, 23 Mar 2015 07:14:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya0Aj-0007QG-A4 for qemu-devel@nongnu.org; Mon, 23 Mar 2015 07:05:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya0Ae-000767-8G for qemu-devel@nongnu.org; Mon, 23 Mar 2015 07:05:29 -0400 Received: from mail-bn1on0086.outbound.protection.outlook.com ([157.56.110.86]:42640 helo=na01-bn1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya0Ad-000760-TB for qemu-devel@nongnu.org; Mon, 23 Mar 2015 07:05:23 -0400 Received: from BN1BFFO11FD038.protection.gbl (10.58.144.32) by BN1BFFO11HUB019.protection.gbl (10.58.144.166) with Microsoft SMTP Server (TLS) id 15.1.125.13; Mon, 23 Mar 2015 11:05:22 +0000 Received: from xsj-tvapsmtpgw01 (149.199.60.96) by BN1BFFO11FD038.mail.protection.outlook.com (10.58.144.101) with Microsoft SMTP Server (TLS) id 15.1.125.13 via Frontend Transport; Mon, 23 Mar 2015 11:05:21 +0000 Received: from 172-16-1-203.xilinx.com ([172.16.1.203]:45625 helo=xsj-tvapsmtp02.xilinx.com) by xsj-tvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1Ya06M-0006EH-Va; Mon, 23 Mar 2015 04:00:59 -0700 Received: from [127.0.0.1] (port=43200 helo=tsj-smtp-dlp1.xlnx.xilinx.com) by xsj-tvapsmtp02.xilinx.com with esmtp (Exim 4.63) (envelope-from ) id 1Ya0Aa-0006dK-Ft; Mon, 23 Mar 2015 04:05:20 -0700 Received: from xsj-tvapsmtp02 (xsj-tvapsmtp02.xilinx.com [172.16.1.203]) by tsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id t2NB1S1J014920; Mon, 23 Mar 2015 04:01:28 -0700 Received: from [172.19.74.49] (port=60788 helo=xsjsorenbubuntu.xilinx.com) by xsj-tvapsmtp02 with esmtp (Exim 4.63) (envelope-from ) id 1Ya0AZ-0006dA-Ef; Mon, 23 Mar 2015 04:05:19 -0700 From: Peter Crosthwaite To: Date: Mon, 23 Mar 2015 04:05:19 -0700 Message-ID: X-Mailer: git-send-email 2.3.1.2.g90df61e.dirty In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-7.5.0.1018-21418.005 X-TM-AS-Result: No--3.534-7.0-31-10 X-imss-scan-details: No--3.534-7.0-31-10 X-TMASE-MatchedRID: Z4bnI9qGcPwrIbYOlrrv2mNW0DAjL5p+2MmowBCx0sFsXGlmkQWwsPlY oV6p/cSxhVmF9kz2wxLhgM7lrVqO2GK6SHtwuj6rSHCU59h5KrF9LQinZ4QefPcjNeVeWlqY+gt Hj7OwNO0JC+VZi2gQEceJ5TGAD6bdZSySgX5lwicjLzypXS5cocQDQvaGK9MrphrTn+p5P1tcLb i76RjOEBSYwAGx+/K0Tegtdk2sTJcfANI+zhCtqfIMFg0InOPqz5gAnmajvOU4qCidlj1MUy0uA BDi47cA X-EOPAttributedMessage: 0 Received-SPF: Fail (protection.outlook.com: domain of xilinx.com does not designate 149.199.60.96 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.96; helo=xsj-tvapsmtpgw01; Authentication-Results: spf=fail (sender IP is 149.199.60.96) smtp.mailfrom=peter.crosthwaite@xilinx.com; gmail.com; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:149.199.60.96; CTRY:US; IPV:NLI; EFV:NLI; BMV:1; SFV:NSPM; SFS:(10009020)(6009001)(339900001)(189002)(199003)(77156002)(62966003)(92566002)(19580395003)(2950100001)(77096005)(6806004)(46102003)(19580405001)(50226001)(48376002)(85426001)(50986999)(76176999)(87936001)(105606002)(106466001)(86362001)(118296001)(33646002)(2351001)(110136001)(229853001)(64026002)(47776003)(50466002)(71366001)(36756003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1BFFO11HUB019; H:xsj-tvapsmtpgw01; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1BFFO11HUB019; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5002010); SRVR:BN1BFFO11HUB019; BCL:0; PCL:0; RULEID:; SRVR:BN1BFFO11HUB019; X-Forefront-PRVS: 05245CA661 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2015 11:05:21.4931 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.96]; Helo=[xsj-tvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1BFFO11HUB019 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 157.56.110.86 Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, zach.pfeffer@xilinx.com, ozaki.ryota@gmail.com, Alistair Francis , michals@xilinx.com Subject: [Qemu-devel] [PATCH target-arm v4 16/16] arm: xlnx-zynqmp: Add PSCI setup 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Use SMC PSCI, with the standard policy of secondaries starting in power-off. Reviewed-by: Alistair Francis Signed-off-by: Peter Crosthwaite --- changed since v1: Add &error_abort to property setter calls hw/arm/xlnx-zynqmp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index e015025..0265fba 100644 --- a/hw/arm/xlnx-zynqmp.c +++ b/hw/arm/xlnx-zynqmp.c @@ -97,6 +97,14 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) for (i = 0; i < XLNX_ZYNQMP_NUM_CPUS; i++) { qemu_irq irq; + object_property_set_int(OBJECT(&s->cpu[i]), QEMU_PSCI_CONDUIT_SMC, + "psci-conduit", &error_abort); + if (i > 0) { + /* Secondary CPUs start in PSCI powered-down state */ + object_property_set_bool(OBJECT(&s->cpu[i]), true, + "start-powered-off", &error_abort); + } + object_property_set_bool(OBJECT(&s->cpu[i]), true, "realized", &err); ERR_PROP_CHECK_RETURN(err, errp);