From patchwork Mon Nov 25 12:02:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 21735 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1997923FCB for ; Mon, 25 Nov 2013 12:03:18 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id tp5sf14080346ieb.1 for ; Mon, 25 Nov 2013 04:03:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=BX8sRIg+fYx7MawPZGI4YfohIembONRsGoeikHdr39Q=; b=E2nQIvjB7144X7bZVykL0bxVHdDCrdroTyAB078y8suok/jiZyQGcUmYjob8gSEbEG Rgx+h+HRq6CaN8rRjmB5JJdZhMl4wsf/CPg/VxoJtwNMNPM3zVB0hID/SGqIfOiuPg0T e6LhXCtjIL8PyV+cmBNJStyd8cd166xTVoN4jWCsggbKfbqWJuv1qj1+g7oVXLUPAzcR PYTzApkxJ/NpL4J+XO7r6oitZ/JJ5gRZrS9AIi5TwK/vlm57fQaiXY372DRz3pCrp05d PiYqf0mQONGqE4v5om93r+gbE3otsnSH8DdmvVvbOadort18uzLLTNqRTK47JDkh9MPQ L6Fg== X-Gm-Message-State: ALoCoQmq57ndWE4ZpJjqt9bOD/Qf/G+/p57VpN4Vl15X8X5pAU8Kcw1lKLB5G79BFQ4feU39xSwd X-Received: by 10.50.122.100 with SMTP id lr4mr7561395igb.0.1385380997722; Mon, 25 Nov 2013 04:03:17 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.72 with SMTP id w8ls1883730qej.59.gmail; Mon, 25 Nov 2013 04:03:17 -0800 (PST) X-Received: by 10.58.67.9 with SMTP id j9mr25936937vet.3.1385380997618; Mon, 25 Nov 2013 04:03:17 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id mh9si17742380vec.140.2013.11.25.04.03.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 04:03:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id c14so2797297vea.14 for ; Mon, 25 Nov 2013 04:03:17 -0800 (PST) X-Received: by 10.52.34.110 with SMTP id y14mr708012vdi.31.1385380997523; Mon, 25 Nov 2013 04:03:17 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp128122vcz; Mon, 25 Nov 2013 04:03:17 -0800 (PST) X-Received: by 10.50.29.43 with SMTP id g11mr12560406igh.25.1385380996849; Mon, 25 Nov 2013 04:03:16 -0800 (PST) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by mx.google.com with ESMTPS id oo7si18372556igb.54.2013.11.25.04.03.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 04:03:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.223.181 is neither permitted nor denied by best guess record for domain of andre.przywara@linaro.org) client-ip=209.85.223.181; Received: by mail-ie0-f181.google.com with SMTP id e14so6807977iej.12 for ; Mon, 25 Nov 2013 04:03:16 -0800 (PST) X-Received: by 10.43.161.2 with SMTP id me2mr16433711icc.20.1385380996606; Mon, 25 Nov 2013 04:03:16 -0800 (PST) Received: from slackpad.drs.calxeda.com (f053083004.adsl.alicedsl.de. [78.53.83.4]) by mx.google.com with ESMTPSA id p14sm25270238igr.7.2013.11.25.04.03.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Nov 2013 04:03:16 -0800 (PST) From: Andre Przywara To: Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com Cc: julien.grall@linaro.org, xen-devel@lists.xen.org, patches@linaro.org, Andre Przywara Subject: [PATCH 3/4] arm: dont give up on EAGAIN if PSCI is defined Date: Mon, 25 Nov 2013 13:02:43 +0100 Message-Id: <1385380964-22230-4-git-send-email-andre.przywara@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1385380964-22230-1-git-send-email-andre.przywara@linaro.org> References: <1385380964-22230-1-git-send-email-andre.przywara@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: andre.przywara@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Currently the platforms define an empty, zero-returning cpu_up function to state that they don't need any special treatment beside the GIC SEV kick to come up. Allow platforms which only provide PSCI to not define a platform specific cpu_up() function at all. For this we need to handle the EAGAIN error code that the platform returns in this case and ignore that if a PSCI node was found in the DTB. Signed-off-by: Andre Przywara --- xen/arch/arm/smpboot.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c index 44326d8..14774c5 100644 --- a/xen/arch/arm/smpboot.c +++ b/xen/arch/arm/smpboot.c @@ -412,8 +412,11 @@ int __cpu_up(unsigned int cpu) if ( rc < 0 ) { - printk("Failed to bring up CPU%d\n", cpu); - return rc; + if ( rc != -EAGAIN || psci_host_cpu_on_nr == 0 ) + { + printk("Failed to bring up CPU%d\n", cpu); + return rc; + } } if ( psci_host_cpu_on_nr != 0 )