Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp151310pxf; Wed, 17 Mar 2021 01:33:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxogP/hUnKwHGBPgYk+7FZKivZQ/OSx8//zx4mer7roJ+ZljxEgyto5t9CkxUzGlH9rMJRv X-Received: by 2002:a05:6402:142:: with SMTP id s2mr40482170edu.2.1615970010533; Wed, 17 Mar 2021 01:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615970010; cv=none; d=google.com; s=arc-20160816; b=fRbuxLovBR47WLowAl5skXchCg0b/mdLaTpjFQYCGC/r+xr4GdcpZkwY8ugc6+SpKl jMUueb8333Ln5wxtcLup8ZyN60w7gIgU0SOCeTKGJcNDiKY0dRtUeRLhdtKaEjSk75s+ YGUGUdSGCAzLv9g3W53nWjXZH0kIPtEPmsVjMssSg0+C583Y20Sh/VY3MWZgVF/QXSOg L11rZQ2w/xDZRLgmrdRMUwEv6qpSatS9c/vm5rPnREYnhLQ//rb2j+XRzWQVG3foRk8E 7mNe6lJa+mInCXKusVkwBxnp0i87mu89DDU5J4LNmtfaDyFuHpKPU+GuOPQVlLO2mZUI Vdcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4vjiwbzbA8IYE1XV320ax9Kro96quaaA91f7yjl2jDg=; b=Dr55HGK9VcubhwSxyfGIsnORUwOCl/HVqPwl5bXru+lZZeOZspNfhtzRB/bA7lVaNM DrdZcWMszSkxPsSq3vzzFv1kbyuRJ0TG2c1WMGnAXDWP1qlDGHkKuoHithVOxRo2Z1Yh OdzYKHiNbhnjmqVDqGp4zt0E5Mez3/SznPDA2Lm3PG2G3rlkZDAz6l7lxDbmN9NEfMMP Lyj8tQPTN2epeZhWUbqNJDg5Bw7ywzaXFj+lat6Zkfxb8uIVWrqcOX/4eo6ASeCkHjwj Ngh/HqeQGa59JvsSRM7ZQrjfom+sk4GOl20ufUD29Ix8QZzAo565hhlql/K5nlbQDnlf ngcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=w0OYVWsf; 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 u10si16176968edj.431.2021.03.17.01.33.08; Wed, 17 Mar 2021 01:33:30 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=w0OYVWsf; 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 S229698AbhCQIbv (ORCPT + 99 others); Wed, 17 Mar 2021 04:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbhCQIbV (ORCPT ); Wed, 17 Mar 2021 04:31:21 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F287C06174A for ; Wed, 17 Mar 2021 01:31:21 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so784206wmj.1 for ; Wed, 17 Mar 2021 01:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4vjiwbzbA8IYE1XV320ax9Kro96quaaA91f7yjl2jDg=; b=w0OYVWsfUOclHsEp9Zg5Mb7BBfeg554unIreZ2+JU7Dw9Iazmmquuvl8/08zIYY8p7 vjzYTh9Mb1X9ups5tq7/8pX/8FfQ6jelvZAVXkYJKi6+0swjA1NXuajz5TJ9zSIfKArO MaDDQSzdeo8xp86IPUwhrnmb3EKCuwRiskp6UJQDUcWo/WvK8jsE8COIFPKrTAgh2pkF hOshDXkPJkcwnhKWVsXm6BTO56Xz+XU9XfLOWuisWdK2+BkHa2hq5Cgbpc4NKNyWfl0y rIfGZELZhcbZ/LNM7A6v/8tbM296weOpDYSdaenULKGIVKsFJd5AYnKRRvEPuWPZOwGl p+rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4vjiwbzbA8IYE1XV320ax9Kro96quaaA91f7yjl2jDg=; b=Vaq7VAstNtlkfdjUwuhnGuNqzKptceqgSy19wZbUyMzFDm5dt4mOP0wHR/kHpC2oTK xEVtEO4RgWWYyGx8tBLAwrAdrAEHKiWZ84nVV+/l3lInwaOQgTt+SEntP1bJlIpvkUP4 RqfglEXJooaRWCf10VNncD86TcTUVHjh4BEgZAfyX6v1df7gW/GVRZD7b6ddppwcX/jf aP6IdPVyI44cG4XxMwM6mcSrEZ9ntph2Fk0c/4iVxTWBt1MzvLg1ppHouQxHCQcmmgEh /8O3KKSzhYS0l0K2ouYPdTOYllehSBUEM0PmwJulnFJvikrNF2F6/0qa91BF7JEZzY37 Q1sA== X-Gm-Message-State: AOAM5326nZIopxTLXmtMQo4cujOD6m8nhxq6VV84epICJIXVmafVBt23 9wrSj/BARhwsxgPCJm9hsT0Z9bcpQSER7RiBfdBzvg== X-Received: by 2002:a1c:bd55:: with SMTP id n82mr2488447wmf.3.1615969879781; Wed, 17 Mar 2021 01:31:19 -0700 (PDT) MIME-Version: 1.0 References: <20210315110500.802897-2-anup.patel@wdc.com> In-Reply-To: From: Anup Patel Date: Wed, 17 Mar 2021 14:01:06 +0530 Message-ID: Subject: Re: [PATCH v6 1/2] RISC-V: Don't print SBI version for all detected extensions To: Palmer Dabbelt Cc: Anup Patel , Paul Walmsley , Albert Ou , Atish Patra , Alistair Francis , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 10:38 AM Palmer Dabbelt wrote: > > 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. Thanks Palmer.