From patchwork Tue Jun 12 11:36:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 138327 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5234984lji; Tue, 12 Jun 2018 04:39:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIRCCXcX7uCxmj8o8sNvkPSqoemq3QgGFG/VcPSMlA4kvd6Y6+jKNgrm93WSEyWNYOxWGxe X-Received: by 2002:a24:3c42:: with SMTP id m63-v6mr862ita.138.1528803571710; Tue, 12 Jun 2018 04:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528803571; cv=none; d=google.com; s=arc-20160816; b=eXDyfQUI3r95hD5Y+9UyO+cIDFvCYEQRmacsPc3PoFQnmku1zX+RdWBjKzpKhR4AKl GatvGXwQhHLA8OipxboqVBqJwAWf5M78bQViYEpDSoiKiQ68NNsbyQbPWIcqPGqzh4WE 5pXAgY55WMKBZulhRG+hkUnUrgLO3Rf1Mr+9sMBp6uUpofiLTnquemY6QwVkbodGA85A Q/Fhfrn98sE0faaY9NXRSI7pIUZBtagKcabzqhFhaVjPWxUAl48sy7MC/woFLUlkpmyH 1BkRZGZw2iS915tiRpo+geAwbDWY8S5ElQWFGRHFeSuClGaBtqgxo4nRcdfOJ0el0D6V Z5QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=6CGRcLPipuVN7XDfc4tEVZTA97BzOLB+ZTDTSpkJOf8=; b=zcCbV+ro6Iutd+HE7C1u1xzAh4LIh5NsKAzRSGD4+BMnHR8v/vl9WaAj6K5BUyAGsA kyXTXmdX6DVK1sDSrUsgSTHzJTDgMfPobkMh+THDlikGeF/XShG1NpWEcfnc55eirCSN IYEy0C/Bs0SgqduHexQKjRvHdZ5uvrAMuUMaGwz+PMrdco3PJ2ePpV98RJFqKvb32by+ qkp6DQHO2IYHYZuTcvyRu9lQEfYK9t1/XsKW7VvZkQXNHtdGgKs6LxBqoSdyZ4DA3zHb 6fXgppQrKLrimGuWaRoY0bZTe3Rvckp8qRWNNQldzz05KyHhez1sf4e3WmAndSzYP85h TAtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id t126-v6si218157ita.74.2018.06.12.04.39.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jun 2018 04:39:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fShbb-0000os-Ei; Tue, 12 Jun 2018 11:36:55 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fShba-0000ob-SJ for xen-devel@lists.xenproject.org; Tue, 12 Jun 2018 11:36:54 +0000 X-Inumbo-ID: ea50b95c-6e34-11e8-bc1d-65256ead4e3a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id ea50b95c-6e34-11e8-bc1d-65256ead4e3a; Tue, 12 Jun 2018 11:36:58 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 803DF1596; Tue, 12 Jun 2018 04:36:53 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 965243F318; Tue, 12 Jun 2018 04:36:52 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 12 Jun 2018 12:36:33 +0100 Message-Id: <20180612113643.32020-4-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180612113643.32020-1-julien.grall@arm.com> References: <20180612113643.32020-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH v3 03/13] xen/arm: setup: Check errata for boot CPU later on X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Some errata will rely on the SMCCC version which is detected by psci_init(). This is part of XSA-263. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - Add Stefano's reviewed-by --- xen/arch/arm/setup.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 1d6f6bf37e..ac93de4786 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -171,8 +171,6 @@ static void __init processor_id(void) } processor_setup(); - - check_local_cpu_errata(); } void dt_unreserved_regions(paddr_t s, paddr_t e, @@ -779,6 +777,12 @@ void __init start_xen(unsigned long boot_phys_offset, printk(XENLOG_INFO "SMP: Allowing %u CPUs\n", cpus); nr_cpu_ids = cpus; + /* + * Some errata relies on SMCCC version which is detected by psci_init() + * (called from smp_init_cpus()). + */ + check_local_cpu_errata(); + init_xen_time(); gic_init();