Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp685469imn; Tue, 26 Jul 2022 06:49:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3bYbmxD5enVz4ecnoQTY4kVBIrvZ5c9zw4yeRtJ7l+26hCxjuo3TL/L+a1GdwE8EUPfSY X-Received: by 2002:a05:6402:331d:b0:43b:ee33:8a5e with SMTP id e29-20020a056402331d00b0043bee338a5emr12196608eda.49.1658843353861; Tue, 26 Jul 2022 06:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658843353; cv=none; d=google.com; s=arc-20160816; b=UwRUFk+cb5nOwjktO4LXke9WqH3Q8FDpOpd/F7VmCeDzhkEi8hAuJ9eO0PvwDukOfu asR9DJ+PpUrW87kueSnXH/Eb/CCxXHDD5xf03/ylBrl44+t/4SxmsLiWlTLRYGA24BzW fGWmVgK67GyBcJGe3mISavn92Iqid4rG35e9un5guY+kOCfVo1h6BoMcmyHsOnvMvVB3 +76jgxXKlrKKvf1KU6kSMQLFlC+oAtvpefw2DPSOoa3r6GL6vnb+ClwSjU6hu4vQVcKs w54+S3Bx3rZ8X95YrwkV0TgyD0v9SVeq1qgBn8AQixaNKN8WSPPD/MgUyFo/eqktCu5n wnPw== 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=oQ8s3zPZY+TFJkH6m+UUXWT+JWabae4Qo2BwG+X/dtA=; b=S7NyhePu/aUQmhasNotDMtpcq9XZL+4dryNGE/5B9OTeSC1qFR2t2or/CpD9JYJZ4M cYA3G+nKlRUGqRyfvXzB0Z0X6ML/BYzNsrt/gpL0UkQEP4rGSqSrVeoAxSjguJC0YhOB I6jYrOKau5uK/VUaPXR0RE6GMBPbx6oobm2R44TXuMI+g5Y31B6QPPZVecVgD/zMgVjr k2mKku6UZGEdqkDkDiXDooc7TXAZOP4AyXDqcc0hZ+NwJ42mUrxBqsmjTGyYPMYbrWlx AWgCLDJZxOWipsHhShYnhVoMCbKdgniKyAsbhzwUNPr6vggZcKu5yg+pFyN4A9n1khN0 YDHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=EqK8sgog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e39-20020a056402332700b0043bc8f2015esi14581497eda.603.2022.07.26.06.48.49; Tue, 26 Jul 2022 06:49:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=EqK8sgog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238993AbiGZNoV (ORCPT + 99 others); Tue, 26 Jul 2022 09:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbiGZNoJ (ORCPT ); Tue, 26 Jul 2022 09:44:09 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D42A1F2EA for ; Tue, 26 Jul 2022 06:44:08 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id h8so20206286wrw.1 for ; Tue, 26 Jul 2022 06:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oQ8s3zPZY+TFJkH6m+UUXWT+JWabae4Qo2BwG+X/dtA=; b=EqK8sgogR79mEUl/YeNrDUb+Y+dW6RBsh5xIg9wH0CgvvZYyLVjTlNRJGmwxL4Qt4s oS/ENaOx+3r7jBOIFOAIfdQlx46fKBlSTCLJWU1bDpG4zIJKTORp/+HSufNT/Y/j8VK+ ZH87Q+MvYZljijN8hSiGm1/CrfjsOK/IUfQf2t0+R4y7abiYDBwxd3tU2ZkaOwfV9uPq TrLBsqYaB/L+lwIl9+M5bZhtBbaD9xXN93M5ShyeuaQBlsh/IZsks6QQLQfkmkJIhKYx GXjFNpIbZ3kZO1B33eOJDV6XX543AKvZvW43VUR985vMQ5a2lOrgk0si1ciUtMw1IzQo Tbhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oQ8s3zPZY+TFJkH6m+UUXWT+JWabae4Qo2BwG+X/dtA=; b=YYuoqm3rZVdB2fhHDwFOULHeBbwaOawduDRm8P4C5TybOTBhP3jXdS9a15TzqKCKX6 f1/T2UeYL/yEfR6PKZ9H5g5v27hQXGL2jQzEio3khvsvoexVpsugj5b2U65qhS5ppmCu 1MzI7i77S6I5OR1c+vaHki33RlT/A2tGasy5IEqbjeh5hD3m9kfyEqMLwa0aBjvsePke CEs3pzsq+5XitQlh6ee4zING0pqPak9eNuhiAjFJSmz6GZd/gZeHUK7uSeyRFa/fEBwM BG9icOASGliGr7jjd0H97JDs8dz1jrXSBGDlMSdTv+y12QX6hQV5kbyYrgrn/aHj5E2z uRRg== X-Gm-Message-State: AJIora9nO0JZKypBbNWAXdXF/uUfQrjdZgioLPa8BgD7LwxLOcwIkbhN mDPDda/9bvLPvoxGXOJfl2HGB3RJn33lDXDPD0ChYLkAoCc= X-Received: by 2002:adf:ee4b:0:b0:21e:8e1a:8f3c with SMTP id w11-20020adfee4b000000b0021e8e1a8f3cmr5314211wro.346.1658843046640; Tue, 26 Jul 2022 06:44:06 -0700 (PDT) MIME-Version: 1.0 References: <20220620115549.1529597-1-apatel@ventanamicro.com> <659c6aa4-1100-0945-4965-3e106dfd490f@microchip.com> In-Reply-To: <659c6aa4-1100-0945-4965-3e106dfd490f@microchip.com> From: Anup Patel Date: Tue, 26 Jul 2022 19:13:52 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Add mvendorid, marchid, and mimpid to /proc/cpuinfo output To: Conor.Dooley@microchip.com Cc: palmer@dabbelt.com, apatel@ventanamicro.com, arnd@arndb.de, paul.walmsley@sifive.com, linux-kernel@vger.kernel.org, heinrich.schuchardt@canonical.com, atishp@atishpatra.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 26, 2022 at 7:10 PM wrote: > > Hey Anup, > > On 26/07/2022 12:57, Anup Patel wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > Hi Palmer, > > > > On Mon, Jun 20, 2022 at 5:26 PM Anup Patel wrote: > >> > >> Identifying the underlying RISC-V implementation can be important > >> for some of the user space applications. For example, the perf tool > >> uses arch specific CPU implementation id (i.e. CPUID) to select a > >> JSON file describing custom perf events on a CPU. > >> > >> Currently, there is no way to identify RISC-V implementation so we > >> add mvendorid, marchid, and mimpid to /proc/cpuinfo output. > >> > >> Signed-off-by: Anup Patel > > > > Can this patch be considered for 5.20 ? > > iirc I mentioned the consistency of using defined() for > CONFIG_RISCV_SBI versus IS_ENABLED() elsewhere in arch/riscv/ > but I don't recall a response. Sorry, I missed your comment. I will address and send v2 soon. Regards, Anup > > Thanks, > Conor.