Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3455308pxf; Mon, 15 Mar 2021 09:54:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJXMY3fGe9hSIsSdhzu+T3dwqWjfvwLNkXP+46sdtrYzw5CGJCUoL/kvkgDcckkxTpn/eN X-Received: by 2002:a17:906:2dda:: with SMTP id h26mr24431821eji.163.1615827281487; Mon, 15 Mar 2021 09:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615827281; cv=none; d=google.com; s=arc-20160816; b=PUk0SeFrs9bSx+kPMAVyLsFdrLLwTA+bc/zQtf8WXeDK31AEKyMnovndwbj3v+jgOP tgjT/HH+r5nHBErcQMzPdR7PV39ivN3am6/M7QNH1fhSc9q4HWImfWofNvU8b0EeOMCk n7pKXJBvL6d8IuqptKk1R5evoXh0gwxuHyHCK+A1e1hSMscC4rdD/Vm9cGicRmFYHIvH COpHWDhnl48/3K11vQQBvC6QcRQ2akTPG3du+SmaKqdYGNartTNV6kKIg11YBz2n9SXa nIrdX6PcbKh+nJn+8qAer2RwI1af9zqNmeSy5c43hy+PGq9Vnr8I30f3BqqhaKQCOmZU u4VA== 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=I0fio/Xr/Ly6DyTgEWQynoHoUq6FwgIyQD271+C3RNY=; b=Q8BfdtBUNsZa0H2E41I6aAuNoXgac08YEsv5C0VmuT8cpqyDB+xXh22vWE+2BmlIa7 WFbcZOMtoI0XmuH6Kd+V3FBR5pQ13wvcGTvzo7ZnPSY4Jv4OaQM4+9r+ANWU2kN/pf1g TxAqzoc5z7O4C0dCsmHlXpO3hYWA4CZXo79pa3slDA++8j3uxOFSOez+axoFG36rWjdW k21x+nr37QWOWha8V/GrVnYDhHo5Wqb0h2fmDRaxO4yomtKGcQky+qCiATDFjfxYn2N4 Sj1GsL1WSaSpRzqO8VFgfit2d4f5tRo5Bq6mlQdURqG0pYFlLoH9iT/fvgLY8YHUKrVK kM9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=UQ19CCeh; 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 g8si11203996ejx.558.2021.03.15.09.54.18; Mon, 15 Mar 2021 09:54:41 -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=@atishpatra.org header.s=google header.b=UQ19CCeh; 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 S232156AbhCOQwv (ORCPT + 99 others); Mon, 15 Mar 2021 12:52:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232437AbhCOQw3 (ORCPT ); Mon, 15 Mar 2021 12:52:29 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68700C06174A for ; Mon, 15 Mar 2021 09:52:28 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id k2so10019704ili.4 for ; Mon, 15 Mar 2021 09:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I0fio/Xr/Ly6DyTgEWQynoHoUq6FwgIyQD271+C3RNY=; b=UQ19CCehLZ660g3s3UPDiQx535TvUiWgMD5fu/qA3K/dzYjT77TFq13R9EOTAezL9q ISwnWhv8I/A1AYTKjs3nImttMkCOF8Wrocgf318Wu0nARlPajUeNMhagGDQeKJ/Qfcy8 8qhveUh5V9mYbrLh6juQLBttB7iYNlU6XKfrM= 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=I0fio/Xr/Ly6DyTgEWQynoHoUq6FwgIyQD271+C3RNY=; b=pQXPIkFr9LIPDrPkr0zfHro3vSR95gLqZr6s8IUNZefHuGuGSl9Z0rtVE2MY84G55R GLdfxhrkNmcBVn6P1qlkZCq/qdBRfYYxmmRIFFTtSexEuGbyAWF9Ukglp4jL/Mb8rFg9 WeXYaN8XRdR45UVUxx6DAr+iNhCLgJrJuwY2i/wD9eXT2tb85SjglRrxHYlIFy5BLIzx SMkdz1WoT5FPcSRyO26R3/guH3XMt9mPLh6eCzdRIyg8igSmcIZtx0AQcQk9E0+V8ppn +3rw7kABTr3sdcKT3p7Sc2+636gvS6DvD9HdyHtN3de1tcim3yJQj+hGXBISwNnN7KX1 tkow== X-Gm-Message-State: AOAM531llmmQ5eZBafK/t8S5/IZAvFXUgiT6B9dC/zQdPuMXJOG5BR7B 5J7mnsq4NRuJjVBHox/ms6abf8JEfUJnsFjIUFiy X-Received: by 2002:a05:6e02:1524:: with SMTP id i4mr395752ilu.147.1615827147940; Mon, 15 Mar 2021 09:52:27 -0700 (PDT) MIME-Version: 1.0 References: <20210315110500.802897-1-anup.patel@wdc.com> <20210315110500.802897-2-anup.patel@wdc.com> In-Reply-To: <20210315110500.802897-2-anup.patel@wdc.com> From: Atish Patra Date: Mon, 15 Mar 2021 09:52:17 -0700 Message-ID: Subject: Re: [PATCH v6 1/2] RISC-V: Don't print SBI version for all detected extensions To: Anup Patel Cc: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Albert Ou , Atish Patra , Alistair Francis , Anup Patel , 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 Mon, Mar 15, 2021 at 4:07 AM 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; > } > -- > 2.25.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Reviewed-by: Atish Patra -- Regards, Atish