From patchwork Fri Feb 23 18:57:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 129491 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp984816edc; Fri, 23 Feb 2018 10:59:58 -0800 (PST) X-Google-Smtp-Source: AG47ELvzWZ8V1eIZkA68HH4bbnaxNXVRK0nt6w4A7ozVXl4Ods4HLl0ZovY1Qfr3iud8kgvJ5tGg X-Received: by 10.107.16.210 with SMTP id 79mr3064465ioq.290.1519412398539; Fri, 23 Feb 2018 10:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519412398; cv=none; d=google.com; s=arc-20160816; b=D65/AlTl8RTF7WfmEvUZKT6nXvuwdt+0IILXP8K2KWvWKya9Kq8V0TFzlhVsBKMQMW wYHHGAO+U1Ar+59fOB4PxnLw48OJb4UVcAV6kXAh3GyBnFdBPu/I7GCHB1y0u3l4c6oz pc6TIoOZWbOGQWYPzMD0pClI1sVzHO2AneIOJ72VyTgqcMBKZdxsJeAbPsGD+gxhPAN8 gRGsWFAfXBYAeUMm2IhMj5peijI89L/PFs+bzARPDraIzjW5k1XuaKbyDDNAYBcOJr7Z xv67hvYX0Q1wiRsLXxhy3jAel6w+b0H2HKdgKotcJIfbg898apsSaPINcbFQndZ1r6Gs 0ghw== 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=w1IypcsU+UcUamwoixxZirs3b681XsQq9U5zgKIurE9c5wxZSVoS02pT0Zz2YKusqB qpe1Dq++yhp945xVkH2QkWD6CHs812pekkyrpEh6oJgs3veYOnxUrOX02Mn1BmqTQdrI CDwuQUdBDMcKxLPCTNLegsXDquxA/0o3sza7oVK4LIAnhs8lox8V+v6heYd5x5tzRL6d yJFCxTGOwE3gW0NpxYWdgbwpftayB+UrVOgGPfbDDcyxbwMnm5r56IpKww8yvo0cQGWu oV8dF+0HPbXnyQs0bml9zo4yQYT4dXAeeEIvcX2a3EyBARAYeMajc/TfHGZGRD6sBP1T 0lvw== 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 x25si204841ioi.92.2018.02.23.10.59.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 10:59: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 1epIXe-00035i-T9; Fri, 23 Feb 2018 18:57:58 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epIXd-000331-JB for xen-devel@lists.xen.org; Fri, 23 Feb 2018 18:57:57 +0000 X-Inumbo-ID: 57ac857b-18cb-11e8-ba59-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 57ac857b-18cb-11e8-ba59-bc764e045a96; Fri, 23 Feb 2018 19:57:06 +0100 (CET) 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 7C7C415AD; Fri, 23 Feb 2018 10:57:56 -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 6D3423F25C; Fri, 23 Feb 2018 10:57:55 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 23 Feb 2018 18:57:25 +0000 Message-Id: <20180223185729.8780-15-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180223185729.8780-1-julien.grall@arm.com> References: <20180223185729.8780-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v5 14/18] 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; }