From patchwork Tue Jan 14 22:57:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atish Patra X-Patchwork-Id: 13939653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8D6A3C02183 for ; Tue, 14 Jan 2025 23:08:36 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nIAfZsZuVG8T9a1CE3DvH7kWz6RLiI/FrgEIpj7PW7I=; b=JXUgobqfzJF5Kc 8tAn/q4ZkKtf6fpUCGSZOTft+fUntScHlYOIqpF4OMWEfuZicBSOBcX0QLgvqOI4e0c7LCEcEDg2o bBGkawC2Qk8zCrAONmbuf2ccTMwWm2XpexK1cR6bUv6jKzKjVXo9eT5xOtpsMMgJunbYn0Rfz6VK2 xbrT6XRefI3KtxzErHG1rnM8GrN5qiOxZX4zllH2W9RQL4/P6BGLQYa9unzp3FiGXg9E21+JHksvm 44r6TKAPtJJJJssR44nHN9DO7Tr027LY7y4AJ/iXD2g29nQjhYXtljJmvizpR2lxZi3E4C9IosrXh E1BudG1wa3xMq7VsY7bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXq1Q-0000000A3OI-0Xbs; Tue, 14 Jan 2025 23:08:32 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXpro-00000009zxe-05GY for linux-riscv@lists.infradead.org; Tue, 14 Jan 2025 22:58:37 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-21619108a6bso106387765ad.3 for ; Tue, 14 Jan 2025 14:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1736895515; x=1737500315; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=RSUuZKac707LuCWRbpc/uEIITHPwqnfXyOde6qyF0KE=; b=hIibI6Nlr1ur+7L7XHczZGwErHg1nYHltQGM21xf35ebQlwqgMVhyxGo89T5SDyi0O iEcQlU/YanYKjemorRGf0hfwLJOeKY6y90sN9hzVH95too4oklHfby2/g56naOdZ90IN VfY1A3jGUDwecodGu5TThoFZjVvHnOi7je50gzr+48tTvVUlW1r0TTtdHRJG5sPmG4Ee PvfbR4zrMVRh0rcpqJgl5onHZr7x7EFXhptzjdxm9yUHluvNBXY4eBrf/NbvTOTq2z9x aRp9i/9qHg0vh/GbUMbKnvFgP4WhVv+lOhOehaHPQfWDL1YNBLZGSko5QHy3SUyWedAp jcdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736895515; x=1737500315; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RSUuZKac707LuCWRbpc/uEIITHPwqnfXyOde6qyF0KE=; b=W46t1caErt06bUxj2JUvsVyfxrYuWdwIPP5i/TSBantuXp/2AoDotDg7IlIDpUv87c QciwCAFRuSNS7DjJY09QnzsLnc+pvam7a9KTnCiQ7nVtUKxHFxdTtGX/NGHJYJV28q+r XmuxsTS2gGLvA4KzaGrOHFiYl88wy3nZJOMaXElsclZrYV0kdphKRg057W7raS1C8yvB XU8vrHo1E5PpZFMKPJptCMkhB+TLmFak4HIT2Vuoik2NfvQvK54EdDaGFghFQHkPHiod Ir9i8Dl8n1TlxHr/5KIvcWxoeikW6l9Wqwm+Ys+fOyaiyhQjqLo7tLMj8Ty6gpeeqhcw HHXQ== X-Gm-Message-State: AOJu0Yze2Fo7eNr2mQxb5g7r3Gjm4jDCBcT3Xb05R62O+oBlDsnN8PZO 9LmyLOCEvc+SwoDEcbUEolnjFz0WGAlU8Oc+YWu6UpNrcIkZMPihHtdHgk7F674= X-Gm-Gg: ASbGnctBH8/87MTJKQz1p0lfTttMhyQoJa85NMj191TNdy8lzjwYNvmXz2zsryyxXTq GHrqc4qQdriJFf07g2vi5QZMoCQ/aYnu8eaunuEf+lWpe0kT+0Lub/6QozZ0+Xe0+gXnSTiW5mo LFMPTwkeGvQubQE8sZUlBiVd7eCEW5khk8jL4BbTBS1oU8JWAnhx3tUcGE0TwdPIC9eXGjqjbNL DPeMwlMpyLn/qtQrl1PqWWsA8c0qeTg0VoRw7yQYwbnPxJDumiRVqeTOEhM/kbzV0fRpA== X-Google-Smtp-Source: AGHT+IEVXqMvOPJKvg7ygF7bUQZEZYrWqGn1DZ1M4rQTQIthH3shh5ppL8RzzhsKIbon/t/bsr22sw== X-Received: by 2002:a17:903:41c3:b0:216:6590:d472 with SMTP id d9443c01a7336-21a83f4e4f8mr388644205ad.21.1736895515542; Tue, 14 Jan 2025 14:58:35 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21a9f10df7asm71746105ad.47.2025.01.14.14.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 14:58:34 -0800 (PST) From: Atish Patra Date: Tue, 14 Jan 2025 14:57:35 -0800 Subject: [PATCH v2 10/21] dt-bindings: riscv: add Smcntrpmf ISA extension description MIME-Version: 1.0 Message-Id: <20250114-counter_delegation-v2-10-8ba74cdb851b@rivosinc.com> References: <20250114-counter_delegation-v2-0-8ba74cdb851b@rivosinc.com> In-Reply-To: <20250114-counter_delegation-v2-0-8ba74cdb851b@rivosinc.com> To: Paul Walmsley , Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Anup Patel , Atish Patra , Will Deacon , Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , weilin.wang@intel.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Conor Dooley , devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Atish Patra X-Mailer: b4 0.15-dev-13183 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250114_145836_080919_51B37353 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add the description for Smcntrpmf ISA extension Signed-off-by: Atish Patra --- Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index c8685fb1fb42..848354e3048f 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -135,6 +135,13 @@ properties: directlyi accessible in the supervisor mode. This extension depend on Sscsrind, Zihpm, Zicntr extensions. + - const: smcntrpmf + description: | + The standard Smcntrpmf supervisor-level extension for the machine mode + to enable privilege mode filtering for cycle and instret counters. + The Ssccfg extension depends on this as *cfg CSRs are available only + if smcntrpmf is present. + - const: smmpm description: | The standard Smmpm extension for M-mode pointer masking as