From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlLgL-0004BX-Ma for qemu-devel@nongnu.org; Thu, 23 Apr 2015 14:17:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlLgH-0002ie-Ip for qemu-devel@nongnu.org; Thu, 23 Apr 2015 14:17:01 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:33792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlLgH-0002ia-FR for qemu-devel@nongnu.org; Thu, 23 Apr 2015 14:16:57 -0400 Received: by iedfl3 with SMTP id fl3so75467731ied.1 for ; Thu, 23 Apr 2015 11:16:57 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Peter Maydell Date: Thu, 23 Apr 2015 19:16:37 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH target-arm v4 16/16] arm: xlnx-zynqmp: Add PSCI setup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Edgar Iglesias , zach.pfeffer@xilinx.com, Ryota Ozaki , QEMU Developers , Alistair Francis , michals@xilinx.com On 23 March 2015 at 11:05, Peter Crosthwaite wrote: > 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); > + } ...oh, here's the PSCI config. I think you might as well have rolled this into the initial "create the CPUs" patch. -- PMM