From patchwork Thu Feb 15 15:02: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: 128473 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1848407ljc; Thu, 15 Feb 2018 07:06:58 -0800 (PST) X-Google-Smtp-Source: AH8x226nObOizD1ySnr8FEKRi2vLk4YMMMlj/el5b/ZxeHt/Cv+wrK9wB93Da9LA39aDC7Zztrif X-Received: by 10.107.134.95 with SMTP id i92mr3851759iod.210.1518707218198; Thu, 15 Feb 2018 07:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518707218; cv=none; d=google.com; s=arc-20160816; b=VduhuYMr8zz1sMow9Jp8wF3cnouwdY4WGhsHOyWHaIu0U9g5mHCteUkSPVxVJjJv8I hhLCVdnBwnj+duy9pXSAsN9SX/N38y2uvI3Xz9azUegRJpZCSsN3uAVlw8T1QxqLKVkv OoBIx3RfW12mPDRmLy12TX6qEHbrvjUUoks07FYTTmA0BEdVwT2ilEpoxY7t74k4X51e TVuqUZOHrTDTrPG+uw918z5s5pjqKT24Fc7ab0DB3g0MQYlkbnpzPiBrVAtFukP1/afC kMNFfPQINMfI2RHK3v5jH/VGA6uNBSiIlHIv3TgMMmrACOFU1UtVgcleNEpYqMcXX97x O5rQ== 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=WQ4h6VxUZbxDmnbl+LNpz19fsQgpEiJgGS1fJEa25QU=; b=uLiMzUtsT8ijGqk3xBTlpeP+5gBcVJ3ZAm9B7cfQoZL4+pwWNAQsmAoqm5o0tOvjav DmmdCLSZsQE9TLlKTRKtwt1SA1I+DpHf/+mdvZfNrppnNIAahraMPEejh2eQOJg9Qjkm Ameg5uxm86o4hYaNjwXLI39mLNfm23xmKQvt/Oy/gtxI6Gi5lVW2ljgSOinQMHwiD3Wc dgK1iNjt0W1EhKI9mMmP7vO9VHquTAE6L9Fo5pU9MQPHktQv0U9C4PbbGYiEKzYTULh1 JsJ6SlUdvMPVxHdQXPkcn5yHATMqvNdDlPxsVEFeqNoKoALpd7b3w1a4A85MHveA0dhm VjBg== 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 l6si4616409iog.344.2018.02.15.07.06.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 07:06:58 -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 1emL5n-0003E9-GJ; Thu, 15 Feb 2018 15:04:59 +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 1emL5m-0003BT-1K for xen-devel@lists.xen.org; Thu, 15 Feb 2018 15:04:58 +0000 X-Inumbo-ID: 884a5aef-1261-11e8-b9b1-635ca7ef6cff Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 884a5aef-1261-11e8-b9b1-635ca7ef6cff; Thu, 15 Feb 2018 15:04:34 +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 A79F315AD; Thu, 15 Feb 2018 07:03:16 -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 9883C3F41F; Thu, 15 Feb 2018 07:03:15 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 15 Feb 2018 15:02:44 +0000 Message-Id: <20180215150248.28922-14-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180215150248.28922-1-julien.grall@arm.com> References: <20180215150248.28922-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v3 13/17] 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 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 bc7b2260e8..7a8cf54e6d 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; }