Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1272019pxb; Thu, 24 Mar 2022 16:35:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6CbW/WbhVJ96ox882LKQ9FiY+v/qBgx5v3+eRayyhJbu3APTLS6PklMLKgdBwLbCc9EaB X-Received: by 2002:a17:90b:3ec9:b0:1c7:74f6:ae6e with SMTP id rm9-20020a17090b3ec900b001c774f6ae6emr16935427pjb.212.1648164938931; Thu, 24 Mar 2022 16:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648164938; cv=none; d=google.com; s=arc-20160816; b=LbrnSHIn6UKqsh12VvW02SVbe4y+jCrCkJNR2IFDtGp9TGVRREGhZ3KPL08kJ51ZtX ARZ5z4WJOgM5hTdtF0fWOXgeMeax2wX9VNgcnlKGDnVYJ7yTWyhDGMRFzKq35yajqVRf Vp87lSjR4qVaxjpoY11qzIDiECYUbeYXgM+FRM3kWdgetAGAf4mt/IxZhP6o2xnTHD6/ RU8UhQ2SFkqDZ23w4IicOepwLnGNNoZ0/8UfjViJ5943nQydtZ7Yozw0W+W09QFT7C5k XbWmRKB1/6Xbv8duMwc7enahkbZv+f6SGeO/0D4Hrz3Y8VvwypfGncEAd8cs6JrfkGfF aAEA== 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=UPHKSpU1uD0rrViGw+MJCaYsmsBqORLnJdi+EK4GXp4=; b=cE9ngLAVP4td5OAxppBDLd4eHWEWGtvZxKQmRn41+v2tMOP5dr0Th33ouNOjHoLyXA vEVFYAhETzx7gJkO798One66pCPC9lnuk9oEezXtWxIxBBT6yMy50A3syWSAMLUCVSNs s66Hd1gLu74tRLGLMZsnPLNPG3IyaOCdlYG6Tz+dJSrG8EP5u1MulcvkFngRMTwjVW1n hTXo8mjgZpnOhiCbIsHp8xRsU8TRm4H/8XMlJIks3itdEXOVH+4uD/gaHFAFfZr7yqqX /nKfGJ2QTgN8Ct9t8I7JAvh14z+cuqEU37CtcVDtdTTtjCg4RcolOpKtrylyCU6XaLGE 3/Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=4erF0JJb; 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 o11-20020a65614b000000b00382b764886bsi686014pgv.121.2022.03.24.16.35.25; Thu, 24 Mar 2022 16:35:38 -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=4erF0JJb; 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 S1346683AbiCXF2L (ORCPT + 99 others); Thu, 24 Mar 2022 01:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiCXF2J (ORCPT ); Thu, 24 Mar 2022 01:28:09 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45662939BA for ; Wed, 23 Mar 2022 22:26:36 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id m30so5023567wrb.1 for ; Wed, 23 Mar 2022 22:26:36 -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=UPHKSpU1uD0rrViGw+MJCaYsmsBqORLnJdi+EK4GXp4=; b=4erF0JJbyt2usIgCKQ+imVSaTwbCFuBUBSGC3nf3baGYXKVVnqcBre/vafj4XWaU/G XnT5YQsjvDnYmtg0ZOjzSlQV/ibKnYYjeu5Rah+WHNBj8QOT6ejLJ9ldrp3YsgU52hOl vT2/5QBVuiYhOK05YbvSgODYIO/mPAOvWwNVinxg11KAJSqJ+xfrKlFCjLT7hEfG7f3E 9diC7FDnPlwJW8PMl9tHm5RX41GmhV8r0OFzLlNnksrcoz5tL/3kwlbuMWgCmmdGACWA rmL98RDvkILYLzFhUFiZz6QdnTddy/EM1BluEwHFcFeODsfvxsFhXQyKj5VeFbm29xz/ NZ1A== 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=UPHKSpU1uD0rrViGw+MJCaYsmsBqORLnJdi+EK4GXp4=; b=SFlsqsVvyYjEdRTKT2LZa9sKJUsm+wIAxXETIQvPFzNjHYtNhBDYEE/Y3/5fdB0SLw EGC2UGyBOPXQoE4oyekBz6mhNdGEhARuqSWAh8a9HIVtfaBOp1RzRscqV+nrs+cCMpdZ j4Uvq6eICvewba97IRbz3YAC8sqzY+XeE2HfA9chILsTRfElBcJCDbMS4gkgez6op2gv HrNdvLRoi7BGXkrcb3eWOe3oyhQSzAWj7UfF+OcX7RpMxFPG3q7MFkGVdgzYaDX1JU2Z qXDtNMdzXOAuKE3+6sJ3LsRbn6S9Ml3kYz5+Ytk3xM/rgL40p6DZlPj3CgPqjtedKCnr BbzQ== X-Gm-Message-State: AOAM533ZlepfI62i+a2VuEPbHshs8yeQx/5uL6J/TSQjxFAz0y+uqF6M QDEwtgIk6VfiSLmCR+7261tGKQWL/YhiqT3ZHKwtag== X-Received: by 2002:a5d:6ac9:0:b0:203:de0b:295f with SMTP id u9-20020a5d6ac9000000b00203de0b295fmr3003827wrw.86.1648099594672; Wed, 23 Mar 2022 22:26:34 -0700 (PDT) MIME-Version: 1.0 References: <20220323090025.546808-1-apatel@ventanamicro.com> In-Reply-To: From: Anup Patel Date: Thu, 24 Mar 2022 10:56:21 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: Enable perf events by default To: Atish Patra Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Alistair Francis , linux-riscv , "linux-kernel@vger.kernel.org List" 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, T_SCC_BODY_TEXT_LINE 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 Wed, Mar 23, 2022 at 10:04 PM Atish Patra wrote: > > On Wed, Mar 23, 2022 at 2:00 AM Anup Patel wrote: > > > > Let us enable perf events by default in RV32 and RV64 defconfigs > > so that we can use RISC-V PMU drivers on various RISC-V platforms. > > > > Signed-off-by: Anup Patel > > --- > > arch/riscv/configs/defconfig | 1 + > > arch/riscv/configs/rv32_defconfig | 1 + > > 2 files changed, 2 insertions(+) > > > > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig > > index f120fcc43d0a..57aaedc7cf74 100644 > > --- a/arch/riscv/configs/defconfig > > +++ b/arch/riscv/configs/defconfig > > @@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y > > CONFIG_BLK_DEV_INITRD=y > > CONFIG_EXPERT=y > > # CONFIG_SYSFS_SYSCALL is not set > > +CONFIG_PERF_EVENTS=y > > CONFIG_SOC_MICROCHIP_POLARFIRE=y > > CONFIG_SOC_SIFIVE=y > > CONFIG_SOC_VIRT=y > > diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig > > index 8b56a7f1eb06..21d422e740d5 100644 > > --- a/arch/riscv/configs/rv32_defconfig > > +++ b/arch/riscv/configs/rv32_defconfig > > @@ -15,6 +15,7 @@ CONFIG_CHECKPOINT_RESTORE=y > > CONFIG_BLK_DEV_INITRD=y > > CONFIG_EXPERT=y > > # CONFIG_SYSFS_SYSCALL is not set > > +CONFIG_PERF_EVENTS=y > > CONFIG_SOC_SIFIVE=y > > CONFIG_SOC_VIRT=y > > CONFIG_ARCH_RV32I=y > > -- > > 2.25.1 > > > > I think it is better to enable perf events by adding CONFIG_PROFILING > to the defconfig similar to other ISAs. Sure, I will update this patch like you suggested. Regards, Anup > > -- > Regards, > Atish