Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp481274rwe; Wed, 19 Apr 2023 01:25:40 -0700 (PDT) X-Google-Smtp-Source: AKy350Y6adFizA7zdI6OEG//DalR/aVW/3T1uK1xrym2WD7FsGH47gZA7V0LiYMrlteUcngttJ1p X-Received: by 2002:a9d:5913:0:b0:6a4:4252:47aa with SMTP id t19-20020a9d5913000000b006a4425247aamr2318437oth.21.1681892740087; Wed, 19 Apr 2023 01:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681892740; cv=none; d=google.com; s=arc-20160816; b=aeX7mpbqEYIsVyQ6AjXrEkhBk7kWDnJGLzL2HuNeOdx481k++FCzkvOpzt8bsQULpK 4cevLnFTfS0WW6QVsPW4xo7TxYqgsiuzufj/1C894PWVxPIBVdcKg2n9NhNslHBPmk22 cfjKvd+PnhsH1es427Jd1KqQdkYLF8grl47Is8/s5V+SbsWqS8NjUH5FViHwpSAbrsL/ qPQVYt+pL6f2UFwn/CIjTNPMkddFhSsPsbhSa7AC/Vui9b3TzddUKGrBnKJWUzB+6oQ9 TJ3iaGCUj1/yJ4wqs+WjyoMpE2uaa5BlxSQ7PCXVGDbPL4APRQ11+Zkx/jvd8RMrgjya C/FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AXquwKy5LjLh7tSnRzd0VsL8D1TiNE1DyoFpIoSW6NA=; b=uoWZ+J5HViFLIaUvM6I+NSHfaKjj9Ewz3FLSQglrqWsCtLnwwca4qFrNJ2lVzKzJcA u32tJ/KlBbomr6cFOI2M30Cp4JFXp329vM7r1h4I8Ny6KXRZT+IQogsjC1POkWvsteWk yLkA+AzSduqzCMi03K45An4+dHLchbyfoS5RtlIuE7vDeG8ccXg+mhr2LPaaFtooTkJU xUPclyqj6VtRRWYLCZo+reDGJR4kUt0J0PQpwsp+fED5XcNgCekrWmp49OnxR7l922y7 HUmpikPPTvoEfGcvhHjvEINXdA7PZidtBfGPxY/5EmoR5gBnpmqwdXkPiT717jDZpSBg dphQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SeXRFi7E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 52-20020a9d0837000000b006a5f18afab7si4881116oty.140.2023.04.19.01.25.27; Wed, 19 Apr 2023 01:25:40 -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=@kernel.org header.s=k20201202 header.b=SeXRFi7E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231186AbjDSIIV (ORCPT + 99 others); Wed, 19 Apr 2023 04:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbjDSIIT (ORCPT ); Wed, 19 Apr 2023 04:08:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA79C3A82; Wed, 19 Apr 2023 01:08:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 96CF963C47; Wed, 19 Apr 2023 08:07:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02B63C433A4; Wed, 19 Apr 2023 08:07:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681891664; bh=AXquwKy5LjLh7tSnRzd0VsL8D1TiNE1DyoFpIoSW6NA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SeXRFi7Ed8cuF/n3wtNQRShpWdJqtGRYHLK+7r63bTHUt97aJ7VTI0tWv+eJTpfR/ hfAxGSUkKgQtr2wugf6N5JAmgtbGhp3jTSQtTFoOm8ARe0fUrb1IC0ViTquGOJZyxU 2a+eZQnK6BHf0QK4dQyjua/dtsLDRBh4iW6i+/HWOS1o3kXif0k1cwooORbWxk3tjd E4ORTMyE1PW23VOnGrt8Gl3nCj/2tmBB2008n9U+7Wg1BLr5mg52GD9q/2wyN4aW5a r+j0OgBvQk23jI6yRuUPownWI7ug+xrZD5gWxZqUMk1izEKlpSxCdGNqb4vSTCyhtq YQv1ao+ttHRFw== Received: by mail-qv1-f47.google.com with SMTP id me15so11530785qvb.4; Wed, 19 Apr 2023 01:07:43 -0700 (PDT) X-Gm-Message-State: AAQBX9dwyXD2NHiFmuiCtTUaNREnfAMNyUoQT50y9kqmN9Ld/cCzAFUC I8cPtS6VcyRVFSnewo1kdpzkL6xgOT79k41/Tvc= X-Received: by 2002:a05:6214:d0d:b0:5b4:89b4:1af8 with SMTP id 13-20020a0562140d0d00b005b489b41af8mr26907505qvh.16.1681891663014; Wed, 19 Apr 2023 01:07:43 -0700 (PDT) MIME-Version: 1.0 References: <20230303133647.845095-1-sunilvl@ventanamicro.com> <16007014-c5f2-4b07-baec-e19952236aa5@spud> In-Reply-To: From: Ley Foon Tan Date: Wed, 19 Apr 2023 16:07:30 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 00/20] Add basic ACPI support for RISC-V To: Atish Kumar Patra Cc: Sunil V L , Conor Dooley , linux-riscv , linux-acpi@vger.kernel.org, Linux Kernel Mailing List , linux-doc@vger.kernel.org, Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Jonathan Corbet , Anup Patel , Andrew Jones , Conor Dooley , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 Thu, Apr 6, 2023 at 10:45=E2=80=AFAM Atish Kumar Patra wrote: > > > > > > > Hi Sunil > > > > > > One question regarding PMU in ACPI flow. > > > > > > We use DT to decode the supported HPM counters/events for the > > > different platforms now. > > > How do we enable PMU (drivers/perf/riscv_pmu_sbi.c) when using ACPI m= ethod? > > > Note, this might be in separate patch series. > > > > > Hi Lay Foon, > > > > This driver uses SBI calls and hence should work in case of ACPI also. > > > > There is one minor change required in this driver for overflow > > interrupt. I have a patch for that in future series. > > Just to add further clarification: OpenSBI will continue to use the > device tree so that > the firmware will have access to all the PMU details. > Sorry for the late reply, missed out on this email in my kernel.org mailbox= . Do you mean OpenSBI still using the device tree, but EDK II and Linux using the ACPI table? Normally Linux shouldn't mix between ACPI and device tree. Regards Ley Foon