From patchwork Fri Feb 23 16:47:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 129464 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp814101lja; Fri, 23 Feb 2018 08:50:18 -0800 (PST) X-Google-Smtp-Source: AH8x2241e1Kg3q2bJwt46AZDS3rhFMLmLorzJckQeyDWorqHkad82G1ZYqrC7OgpnGoIC1xUSYXZ X-Received: by 10.36.163.193 with SMTP id p184mr3278773ite.9.1519404618852; Fri, 23 Feb 2018 08:50:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519404618; cv=none; d=google.com; s=arc-20160816; b=BW7L2XpdzK4xqhopsQiWAQbNqwlXM4HGS5bqM4mO5RSqLgYGgFa1z6qyUNMpOSRJhb 8GR/mH7VnPvRl1WWJMutanTzWLH1niMlga2A+UlETGv7N075ERKWIcHlfjmisnNSTLDx JN//x+lHiEoz+6v3kMfF7QJsA3i2JPwMuhwih5ayF5LUhRbHGduch/jP2tw0HA37VIA+ 32T1fNM5CTVwlrrnvQ7Ia4oQzIQ0FWWMBkER3CuPrtMmgzlrB6bfbHWkeM8Mw14+qtXI 4zyT0yO7ndqzX+5rnyp8RH83JlA9dSyTQntzQtx5gVm6eUGH+ls5jKPcNc+40YYw9dEj sLcA== 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 :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=vEVHcj/oKj8VbuLNbfFv5dyowfno4E85f/7gWlSdo0w=; b=liZtiCMxAQ9CNu0+XhSA5itjvJDMBUbWVc+j1q3dzqNUdrhxgGT4dPAu5Z6s2vK4A1 6WBe2dHl6S7C2Dgi/Oe/TsPnZem7cyxeE4XKKt+ftwWO5xZtxSlX4FCs8UJJxU6iYHyt fb9xNoIjxnT7H9y51UQaKaKJoNGYlvXVgFzqYswGy501y3aM6xwXpaTpiRJkYDaQCIzR 1Modral+CCCdzAlK0VHxnZW9qSJIIvMiYV1zDweHJHEt7tIZaq9EsqneiAKiTgAoc6JZ r6HgrQJkESY8H2WoQ7n6M2itBZidwk+Pjsp3kCXo2XweEhsJG+m/Q5zUa4J2p0c4A0Fy Nrgw== 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 t125si1415221itd.172.2018.02.23.08.50.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 08:50:18 -0800 (PST) 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.84_2) (envelope-from ) id 1epGWQ-0003mW-5K; Fri, 23 Feb 2018 16:48:34 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epGWO-0003fn-Rn for xen-devel@lists.xen.org; Fri, 23 Feb 2018 16:48:32 +0000 X-Inumbo-ID: 9b9f1aca-18b9-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 9b9f1aca-18b9-11e8-b9b1-635ca7ef6cff; Fri, 23 Feb 2018 16:50:09 +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 3BBAF15AD; Fri, 23 Feb 2018 08:48:26 -0800 (PST) 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 2C5CF3F25C; Fri, 23 Feb 2018 08:48:25 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 23 Feb 2018 16:47:49 +0000 Message-Id: <20180223164753.27311-16-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180223164753.27311-1-julien.grall@arm.com> References: <20180223164753.27311-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v4 15/19] xen/arm: psci: Consolidate PSCI version print X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Xen is printing the same way the PSCI version for 0.1, 0.2 and later. The only different is the former is hardcoded. Furthermore PSCI is now used for other things than SMP bring up. So only print the PSCI version in psci_init. Signed-off-by: Julien Grall Reviewed-by: Volodymyr Babchuk Acked-by: Stefano Stabellini --- Changes in v4: - Add Stefano's acked-by Changes in v3: - Add Volodymyr's reviewed-by Changes in v2: - Patch added --- xen/arch/arm/psci.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c index 909d1c176f..6e6980bfe2 100644 --- a/xen/arch/arm/psci.c +++ b/xen/arch/arm/psci.c @@ -136,8 +136,6 @@ int __init psci_init_0_1(void) psci_ver = PSCI_VERSION(0, 1); - printk(XENLOG_INFO "Using PSCI-0.1 for SMP bringup\n"); - return 0; } @@ -183,9 +181,6 @@ int __init psci_init_0_2(void) psci_cpu_on_nr = PSCI_0_2_FN_NATIVE(CPU_ON); - printk(XENLOG_INFO "Using PSCI-%u.%u for SMP bringup\n", - PSCI_VERSION_MAJOR(psci_ver), PSCI_VERSION_MINOR(psci_ver)); - return 0; } @@ -205,6 +200,9 @@ int __init psci_init(void) psci_init_smccc(); + printk(XENLOG_INFO "Using PSCI v%u.%u\n", + PSCI_VERSION_MAJOR(psci_ver), PSCI_VERSION_MINOR(psci_ver)); + return 0; }