From patchwork Tue Feb 7 16:53:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mayuresh Chitale X-Patchwork-Id: 1739071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ntiVg2Gf; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=OQYF8fxk; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PB8NW05SFz23j7 for ; Wed, 8 Feb 2023 03:54:03 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qyG8nqzp4OtBnQbK3uME/I2jMKd2y7lStfPpCpNr7WU=; b=ntiVg2Gfs5kyxV A1AKctXyqWtpjHDAr+t/NALJD0aUO+uZ08/Tz0jw+xbXpwuD6xMxe3+eJDpf8aDPcIIzxk6Mngdwc KWsVPEKuEKiF5iyYorYVbf0JPymx7Xy7AWSa6fKTENFcFFZlf3t+6jm1mdJl66ORICbkDPWU7M3jV sf8GvclxHzfCXYuTKlz+kuG2W+0MVdjaMmq18yTpS1v/4F4YmRvSr4vejp6WEOiT0Wt8NkpY7F4Zx 9FCJiQzCda/ilwLnkHodD7/58ZDaU4S6tf4bQJcABC6MAqOx0ICP74i69lumN02I2EDyhBflpECfX xHNH5CVAi/Rm78EFpvOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPRE1-00CrNt-0F; Tue, 07 Feb 2023 16:53:45 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pPRDw-00CrMO-E3 for opensbi@lists.infradead.org; Tue, 07 Feb 2023 16:53:41 +0000 Received: by mail-pj1-x1032.google.com with SMTP id j1so9754364pjd.0 for ; Tue, 07 Feb 2023 08:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/y+c5ZRb7P8UcCOjoD9XOf+FVoCD7bDUCqKYjGL0e6s=; b=OQYF8fxkUn3/0IG23vieGSawR4dn4EZcuo4aV7JTOTLXKmskbz47o/vGG090HFR0sH adqiE+nqurRI0mvh6NZbPqjUBQQHkcPJg0DsOkZ7jDySIC1kQE55yW4tTuKHyde5Lw38 AwFTTJdxzUtlVFqo1CgIj1q7ufPHWPoByunKEGB0mn9bL8O2kjL4i9HIsFECaKHA0W/+ gYxEotyZ7yqJGjJo2vFlEkL9qPgqwBaN8+v8Xj/UJ9hx4k2Nl/j4s2joXz1A//0zM5Ju bo4T8OK643aO6GiTNYuIO/e8zGAbvmA/uksWJN5wqe2Rai48/2aTb1pnAH/5qxmuP0yy MbPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/y+c5ZRb7P8UcCOjoD9XOf+FVoCD7bDUCqKYjGL0e6s=; b=y7L2aPD4elYymPMnON4Pp90ptB9OUCFr1DLEZQRJN2Ruv7CLtPKmtuvcPtWdZhKNTz QWC9Gw1/71w8qTK3AYk8IVIZsKIQpcJdoMcjF1QC56kmMuaMNJyrbnzy8OIh0xOP2F+r EgC1WJrpr3zwz72vHtGpolnysuJVZbOhF0tU9OPmHSMemFz57NFQRkHCC2BO1gobWRYr yS5uwtufi7TLXu8MRILDz34enL0rFGoc9WFs/kM4nMutZqXs61mYAvg3Et+MAxb7Ru/m O6OxkTwMsiuzbhfPMuirbNY8p/7zc0bRR/zcsPf7ZCafPZqjYnpUtGaHxNCYfOB3i7tW NdlQ== X-Gm-Message-State: AO0yUKW57bkZJm90cDgAQJ5A1gcktYopEXa1UzaOmY50GnDjW5ceeDAn x6a1MZVoiwmA9muPnC4/WKCHRik9b9osl3AE95o= X-Google-Smtp-Source: AK7set8BoGapovod4CgrB/b9C9E9bUKXeWMeAv1hzXybDO107FgOGFYBzQALWUdu80jEPrqXKRiEuQ== X-Received: by 2002:a17:902:d044:b0:199:109e:81d with SMTP id l4-20020a170902d04400b00199109e081dmr2834751pll.23.1675788816070; Tue, 07 Feb 2023 08:53:36 -0800 (PST) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id d7-20020a170902b70700b001869b988d93sm9145486pls.187.2023.02.07.08.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 08:53:35 -0800 (PST) From: Mayuresh Chitale To: opensbi@lists.infradead.org Cc: Mayuresh Chitale Subject: [PATCH 0/3] SBI PMU firmware counters and events improvement Date: Tue, 7 Feb 2023 22:23:23 +0530 Message-Id: <20230207165326.3205728-1-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230207_085340_510105_87B6C9AA X-CRM114-Status: UNSURE ( 5.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This patchset implements the improvements described in the following proposal from Anup Patel: https://lists.riscv.org/g/tech-prs/message/102 Mayuresh Chitale (3): lib: sbi_pmu: add callback for counter width lib: sbi_pmu: Implement sbi_pmu_counter_fw_read_hi lib: sbi_pmu: Reserve space for implementation specific firmware events Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1032 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patchset implements the improvements described in the following proposal from Anup Patel: https://lists.riscv.org/g/tech-prs/message/102 Mayuresh Chitale (3): lib: sbi_pmu: add callback for counter width lib: sbi_pmu: Implement sbi_pmu_counter_fw_read_hi lib: sbi_pmu: Reserve space for implementation specific firmware events include/sbi/sbi_ecall_interface.h | 7 ++++++- include/sbi/sbi_pmu.h | 5 +++++ lib/sbi/sbi_ecall_pmu.c | 8 ++++++++ lib/sbi/sbi_pmu.c | 6 ++++++ 4 files changed, 25 insertions(+), 1 deletion(-)