From patchwork Tue May 22 17:42:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 136586 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1929420lji; Tue, 22 May 2018 10:45:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpgXQstj6rwZSHkkEMBLy6PISO2eyvqwvZUGAoFjF2v/ed+UOyV5ywllp05axFiUqbP/Wrm X-Received: by 2002:a24:6bcb:: with SMTP id v194-v6mr2346701itc.66.1527011140469; Tue, 22 May 2018 10:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527011140; cv=none; d=google.com; s=arc-20160816; b=1JB1knIkwifaXAPb5fkKjKkQpX/mW7rKX04KfAMpN8U2+29eHn66a//jITPH/bfdsf nsr9u6/lKLrW36iyleDRZMSOeucxDMHeuZI0duJn1hfuwAHedBOrJNi0tW/ZyiLiv207 v/hJk8TaD31srqgRmyaGcBg2/m704dX96UCcs9n3YCFonZxQ7LLZpwiFiONVgmi2INHy 4lDTznMYFr77SlONiUYXMx3AJ2FGEmuhWyrS6+NslGEov9MXugDWKc0jv5iHUT5SbP6R OzOnUBB2Q59JX3G+BLVMQ9EFQQzJB8RjnBXSXe8dhIWFZyiwoeX5P2RzDr2gcZSfxM24 SyjA== 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=5NeMWloKx5jQMcxYTmXFfF7DL+n8eoqenW9I1NCMgnY=; b=KJqGmAYrJlVe6TJu+dT+hicwrw0BVQHRUy9f3CtrW5X+8gRfiOaI4JIM3K46awmzsm 7XHVjg1XzBpji0M+j7qy/xE+9dWMiob+vy06bwmFxSVSQYHfQjnV/JbgYvWrUDlciLlk Q1xtq1+4lM/rO28ZPLSNcFTCRpSVGHVqiUW5usuID2kTlPxvdWLRuV4cYWN/eaDVzl5C KwAFEx2/7GS3K00+bcvWmqDIbf7zcgV8qqDldOE0oiU/ZgSWWXTXjGe6fdqsSKaHan4L ymwlQ3MoOc3WfKHgvFjbKkUvGZ6EEsFPY2+nwDX7+iTCf1JARPmIQym0dAmXtWlbeE7q VvMw== 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 m193-v6si340271itb.128.2018.05.22.10.45.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 10:45:40 -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 1fLBJW-0002A6-At; Tue, 22 May 2018 17:43:10 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fLBJU-00029a-Q8 for xen-devel@lists.xenproject.org; Tue, 22 May 2018 17:43:08 +0000 X-Inumbo-ID: 160011b5-5de8-11e8-8249-2fda3a446a53 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 160011b5-5de8-11e8-8249-2fda3a446a53; Tue, 22 May 2018 17:46:41 +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 5764C15AD; Tue, 22 May 2018 10:43:07 -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 6D1023F589; Tue, 22 May 2018 10:43:06 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 22 May 2018 18:42:44 +0100 Message-Id: <20180522174254.27551-4-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180522174254.27551-1-julien.grall@arm.com> References: <20180522174254.27551-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 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 --- 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();