Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp174512lki; Tue, 16 Mar 2021 22:10:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEG9q9OX5RNpb7RBfx6y/6nwFuaQSdrzMgQEIZH4TZoOSaMrd6ALlHmxV1NZ1cv8s27IU6 X-Received: by 2002:a17:906:78d:: with SMTP id l13mr32493463ejc.97.1615957800332; Tue, 16 Mar 2021 22:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615957800; cv=none; d=google.com; s=arc-20160816; b=1Ewgpg2jctdgJMRqp/mHz4B36NdB9bSCEyVpMiINIBT4Rxf8zM4UZ2Ww+TyHnA9RDs X3xD56KeSOJR7UHCBlWgxiV+Jo90m2GcKLk0PvriynTlnSY6Pd+PhcgjUCHufegw9+R+ THGqwxzVqV0P+BFqk9tA3fpdN0M8JFBng+VC6C0tv43Ps4JOXBcAt7nYnvQpxZ7wuQRL luHJOLuUjG3dGs5X54dq4FuB3SSKNDHPT5iK0DwcFy/fU/vX1X9HKoARKosRJ6KVGx1l hz9nGpjpvrDOarbJPCrQ39YoFHFe3hjQiUd/6xR6163n5lCAPCRGDfOTCRwjxGRtN3m1 di1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=0skOxIz4xhfCTZ0VNwqsfY6NBbJN3e7Av5/rXN6cj/0=; b=ZVx7RMJw6OK+Idi7cwvgTP0HQSwRJEpSbvYFXuWvMqIYWMGcJN6ZO2yLZ4qp6zs9U8 OF6AcfgzpY+hKRFjr3MZVZh/9wZoQf7TfXK+YVWFTFhV5zByze/Hzp+cOKYQLoTRGhD1 g8drXFwqdl+5TGCXjgYO/WdrISeLfBpCg1sEzfjQ8EpKRV0y3Ddd4M6JEd1GjxRyKZ7k VhztL3w3k46OdObZlL6JkJq1i7RI7uKk6B098opOdfsCEPnc6jPTrcNS8R0vJtqUAF+0 JrftyWxVKJd6ibUmvl22sHb5G/wUXzG1NToHnksIjqUz1k+ijH8746CovbnxXU/U7sVq Wb7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=dKAlbnzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk18si15754692edb.178.2021.03.16.22.09.38; Tue, 16 Mar 2021 22:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=dKAlbnzT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbhCQFIm (ORCPT + 99 others); Wed, 17 Mar 2021 01:08:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbhCQFIP (ORCPT ); Wed, 17 Mar 2021 01:08:15 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1A9BC06175F for ; Tue, 16 Mar 2021 22:08:14 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id l3so294060pfc.7 for ; Tue, 16 Mar 2021 22:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=0skOxIz4xhfCTZ0VNwqsfY6NBbJN3e7Av5/rXN6cj/0=; b=dKAlbnzTgqbs9DMRjCdE4no8gsnOj57DaFLf50xhlLPr77tjH2ztzS5KJ2R2PKrIV+ 4SRXbqqko/0e/TzfSTXWKpU3PxKB/98Z0/cMhWk3b7gfJpYKNLMie4EYWKQRQxQ/E9re /xhgOy3MgIb9cOBeOwQdnE09OBEeUgzMQLVi6eqj2rkp3D3jELn4HLsEVxugA/Z+B63B AH0nKpVPI0MG2n3qDZEi2jvbEirfsLiLnaRrIxRGfQ2DYUAQajiJiqdwdjQ2IxfA3ZQO t3XoGsKL4UwfeeDicgryOAe/r0iXyH6Hvm/722NVKrHtMJ/+D/QGxBSfq5/Qn+6F7uJ8 CHCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=0skOxIz4xhfCTZ0VNwqsfY6NBbJN3e7Av5/rXN6cj/0=; b=uPhi7k9hUgnRvrjG7AtqhaSup2mhLdRqIpyPG0qwTZ1hG+gJA8xiQ1xLEj+dT2rkym t635jSfkL+Dfd1UaAPndsUb81ooSGHm/JusX13wEqteh+kIZk5JNjrCuNGV9m0cbBaQm QTEJFzF+uE5SHf8jTxrdDqXKPvX9pnPmnVKmAoRLddHQg8ZDibqaadIrUXHQvMp+Dcre JyYeKZY3xDaD9bO47m+qJiZZlHv8HNFWs1iDO632tiCRQKL/Vz7XmA9ebNmVqkabvs9m C1tsFYJ1yEK5UPKV1nKJRx1k4ZBBhI42bFdHrfVl14t2qKnrScqSbnk8vSPbQ0PbmCMM igLQ== X-Gm-Message-State: AOAM531x6eTqin8HfoV2tDWigU7SagXNabGZtaEsGqUZ743itDJS+x/Z MG2yo6KqyZjq+WC1skUHDLe82w== X-Received: by 2002:aa7:8389:0:b029:209:da1c:17b5 with SMTP id u9-20020aa783890000b0290209da1c17b5mr2604704pfm.29.1615957694242; Tue, 16 Mar 2021 22:08:14 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id h7sm18589926pfo.45.2021.03.16.22.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 22:08:13 -0700 (PDT) Date: Tue, 16 Mar 2021 22:08:13 -0700 (PDT) X-Google-Original-Date: Tue, 16 Mar 2021 22:07:36 PDT (-0700) Subject: Re: [PATCH v6 1/2] RISC-V: Don't print SBI version for all detected extensions In-Reply-To: <20210315110500.802897-2-anup.patel@wdc.com> CC: Paul Walmsley , aou@eecs.berkeley.edu, Atish Patra , Alistair Francis , anup@brainfault.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel From: Palmer Dabbelt To: Anup Patel Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Mar 2021 04:04:59 PDT (-0700), Anup Patel wrote: > The sbi_init() already prints SBI version before detecting > various SBI extensions so we don't need to print SBI version > for all detected SBI extensions. > > Signed-off-by: Anup Patel > --- > arch/riscv/kernel/sbi.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/kernel/sbi.c b/arch/riscv/kernel/sbi.c > index f4a7db3d309e..c0dcebdd30ec 100644 > --- a/arch/riscv/kernel/sbi.c > +++ b/arch/riscv/kernel/sbi.c > @@ -577,19 +577,19 @@ void __init sbi_init(void) > sbi_get_firmware_id(), sbi_get_firmware_version()); > if (sbi_probe_extension(SBI_EXT_TIME) > 0) { > __sbi_set_timer = __sbi_set_timer_v02; > - pr_info("SBI v0.2 TIME extension detected\n"); > + pr_info("SBI TIME extension detected\n"); > } else { > __sbi_set_timer = __sbi_set_timer_v01; > } > if (sbi_probe_extension(SBI_EXT_IPI) > 0) { > __sbi_send_ipi = __sbi_send_ipi_v02; > - pr_info("SBI v0.2 IPI extension detected\n"); > + pr_info("SBI IPI extension detected\n"); > } else { > __sbi_send_ipi = __sbi_send_ipi_v01; > } > if (sbi_probe_extension(SBI_EXT_RFENCE) > 0) { > __sbi_rfence = __sbi_rfence_v02; > - pr_info("SBI v0.2 RFENCE extension detected\n"); > + pr_info("SBI RFENCE extension detected\n"); > } else { > __sbi_rfence = __sbi_rfence_v01; > } Thanks. I'm just putting this one on for-next so you don't have to carry around the diff.