From patchwork Tue Jun 5 15:22:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 137770 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1099162lji; Tue, 5 Jun 2018 08:26:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLq/2kxglHxiNMUs5BFNq2ADj6akKYVRaJRlrx/9dmy2/YYrQ6oUj1yiIuckea6iCohyviP X-Received: by 2002:a6b:f817:: with SMTP id o23-v6mr3829810ioh.106.1528212377084; Tue, 05 Jun 2018 08:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528212377; cv=none; d=google.com; s=arc-20160816; b=RSqow9DcwmJxnxndflFWlzPdf/+4FmszcLgk6c6h7DWDh4By4DOn61JgzUG05AFsjE yxoaD8Lcg+DKcMEjexKZL3lq/RqFUPOPIpQnhGlYW8jrwoUHwwrXtSIIDitApV3tThFU gqVNS83DsStjmqWSz7hIC9XDFi0RBuDXiGER0cOlq7MIPfP6DKvVUxGDoLegeWOU9tH6 uqTHuONYKz5UFXjJXmvhEjZlz/Qo3oKtn6p4KK7Qj1RmLwwTFQx3KDDGaK7ZrXgG04bE SaqGfbYsj+cr8w7Q/gin94MPsSkuildeHCC1Fwb0VJaA8oug1JCpfWsAYW97/U0JVWF2 8swQ== 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=dD8k4mlRTHfPg6VrmhYjAV2Mt7KLIxghS+Gh3zRqBQjfVTvIp9SdU/AeX5Wrtdc/yw 4q6dWfWtTVtDTxqDXq3A5vjGylU8TxZe/0I89zwfU2xYbGgvniH/qGgymGAmmO7X+QQL KuBK1YwukIXHk42U/Y2HekFjsxtEybJj5GPWe5QDPPwYbHqlq7ObQUf7nlqA2zcKi56e MZrwSxNOqReDBvFnNGBsKFBdeO4b92+BybFHFR8nP3CrCXJFjY8xF8vQUxUs1weIN0IY I2ZKbwnauwHNCxxBBMGOU3nJPiu+JJyOng3U7gKkja8p8PvWUx430D33np8qRdKkguUj yewg== 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 144-v6si11674871ioc.264.2018.06.05.08.26.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 08:26:17 -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 1fQDnv-0005BA-72; Tue, 05 Jun 2018 15:23:23 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fQDnu-0005An-HI for xen-devel@lists.xenproject.org; Tue, 05 Jun 2018 15:23:22 +0000 X-Inumbo-ID: 119e3623-68d4-11e8-9728-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 119e3623-68d4-11e8-9728-bc764e045a96; Tue, 05 Jun 2018 17:21:07 +0200 (CEST) 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 94AFB15AD; Tue, 5 Jun 2018 08:23:21 -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 AA3673F557; Tue, 5 Jun 2018 08:23:20 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 5 Jun 2018 16:22:53 +0100 Message-Id: <20180605152303.14450-4-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180605152303.14450-1-julien.grall@arm.com> References: <20180605152303.14450-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH v1 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();