From patchwork Tue Jan 28 04:59:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atish Kumar Patra X-Patchwork-Id: 13952030 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 EC608C02190 for ; Tue, 28 Jan 2025 05:13:26 +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=vy4UTHvV8IvUZ1cs1LNCkK2Kb//7QuE+TSnEhb3TcEM=; b=BC+IK8yBw59+5R IR5EpC/Yb5KsEw0fYxtm/KKN97wnzIU/ATaYzYdQwdPdzMJW4pGP1nYFzZX7XV41DAbUyX1JkvRiG 0ZHy7+Nk0TO1Mwbf6ElF0SK6FYZ8wiZUAvtddCSwyzQfW7u3dAfBe8pC7/UlXAHlgGTFKvIRprga2 EAE7HBLFnuGibr8KKpEZNPYaRDJ5gv9nI8JG++eDVD2sTD/03LVfagx9quZs48PS22Dw6CWCTiFg4 aNP/t4PVSQz7vHYheH2YcM7dpDvILV+9hfJO/DftfREpBn/vjpzR7B8DIInwdZyzUtzg9YHJOKXc/ HyWO64qOkZHA7HMs4A3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tcduc-00000004809-3dJ7; Tue, 28 Jan 2025 05:13:22 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tcdhm-000000044Xu-1V2s for linux-riscv@lists.infradead.org; Tue, 28 Jan 2025 05:00:07 +0000 Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-2ef714374c0so8024694a91.0 for ; Mon, 27 Jan 2025 21:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1738040405; x=1738645205; 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=8nwB5ijQXYUTHkLWAXohil6yVgl/NyKIaGqyFvphby4=; b=vcIuZBy8zDTAtQ/fDnv4gkLnTLIaf7QS8Qu0m1JQcn64TMvCRcxB4IyBN8duevhAD9 nBHds543sJHMxz7Ju7q8ihgsyFdFvL/zP5SqvmQkY5IGoonXfcvV8f0LYFlymKHbWO3N vtH+XUxNs9ydsMVNiI6HaTYS/7SUw5P0Ajn2GgFCr0kYDrKeIzFdhR4Budx0zrRIfwBX 63mwGLANqQ08ERVjmfuByDq1wov/zqrfXh9ID647dQPjuW9NTih/ea1Fk3xDg9N+bv9q FnhKLqv2xI4c/BPgKp7Q9bz1Ul6Kid9TpwBazbmCLKamy3Nj2ym+IMD3rkkV7S1qwnZP KNhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738040405; x=1738645205; 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=8nwB5ijQXYUTHkLWAXohil6yVgl/NyKIaGqyFvphby4=; b=JlHhhQOIbVmtlaB6abJ+gcH9kgtiaC7hOsTy0XOBqUMlw3MGgbhBYFOt4BFpFMUAFd 8r9I+Td88iFpjGrSZ/VaTsRJyvt+7thQKuAwSAyrsE1qgkGwpuAVrrPV1Zrh20DOSzOJ r2d0AKcAwXGX9iaIVvc9zeaZ6RU2/kU1X9n2EPfpP2vmu60Ia9QAhbHZK0n+ZLCESyCQ lyIjklZDcx8prErRl6sJNlr0G00bVYIlKfzSNlW8kboUHeW4rh9maTwZgHW8QsM9sNh2 P5SaWTT7ugQHOUACvwxfUWU1CXSZRuJRKawCOhvfr4U4N892HKCcKacNGDlmECn4yo6b SICg== X-Gm-Message-State: AOJu0YzMnVglP9S/pOe5nXdJVhbwffqe4Z9H3b5HcM7xW7NHXYS4pfrX HPAZ/rlLaAECQ5eiagAQvTVY0mPGFucAP7WZYLl8swReQKdo2rBHkV4xWaoVDrM= X-Gm-Gg: ASbGncv7D5bwdm0sAuRsoD+sHp5ULQx9IhHkX5GVPtkauxCvv34RYlNp4lL6b3hDr/0 tqAkWGDwN20UqVIFLUnHsIRA2sJv9qI1Ak+OZkTQiueq4YgZmeuo0u05CnNyHcWpX8/z0c8UUoO VJkuszbzhxTQXCO4qsbaCXtHn65nHq+fDitBq2asBkhrqTO80MU0BTlHRDFWrd+qTxl0Nl2ka/2 DizhsHPlznKpklCY5S984LZYDu8H94G3o1jQcNNR7z4eHzyqeaKfsfXReYr/zWgE4vcYYHySFT8 g5Yuci6zyqy1Pe8Ymj2c5QX5qRGU X-Google-Smtp-Source: AGHT+IFrXpURXC6IeRPpOGWg3/tFzqB6mJrEgvaEoQuFlLXK7BO3fm1YNKQtwAqXg3g7vbpjjvAXGA== X-Received: by 2002:a17:90b:54c6:b0:2ef:949c:6f6b with SMTP id 98e67ed59e1d1-2f82c0d31e5mr3090153a91.13.1738040405414; Mon, 27 Jan 2025 21:00:05 -0800 (PST) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f7ffa5a7f7sm8212776a91.11.2025.01.27.21.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2025 21:00:05 -0800 (PST) From: Atish Patra Date: Mon, 27 Jan 2025 20:59:51 -0800 Subject: [PATCH v3 10/21] dt-bindings: riscv: add Smcntrpmf ISA extension description MIME-Version: 1.0 Message-Id: <20250127-counter_delegation-v3-10-64894d7e16d5@rivosinc.com> References: <20250127-counter_delegation-v3-0-64894d7e16d5@rivosinc.com> In-Reply-To: <20250127-counter_delegation-v3-0-64894d7e16d5@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, 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-20250127_210006_440044_0975445F X-CRM114-Status: GOOD ( 10.58 ) 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 1706a77729db..0afe47259c55 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -136,6 +136,14 @@ properties: 20240213 version of the privileged ISA specification. This extension depends 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 as + ratified in the 20240326 version of the privileged ISA specification. + 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