From nobody Thu Dec 18 13:45:51 2025 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B83DA229B01 for ; Thu, 27 Mar 2025 19:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743104190; cv=none; b=rkUfU1db3/HTDkeVXsHLTowGbNSGqpJlor8rZQSt8/LLdHwRsaqTYL8Qg1+sB569Cg0lFssRYw2wVrrkwDsMASAShi4lHNYhNPVpe3bP1iw37BV8GQXG+qh4QFEIVOH55rlVw9TaHSlqGFcMOoPvML9g0m/XaUIzdvva/SBAhpk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743104190; c=relaxed/simple; bh=EkNrWyE7gZuhyFfs0t3q1tgbnM9o2fsa3xwOomvHUnc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LCUgnENVHPGnU1ulHjveGIKMAHFbIeFAnd7Gtsjhv5dj0hmSTyUckihkuO54lb0RcKEQndSlzVzUGSLuAApqOb77If918tM6wZckArph/3LeeQCMDpdJg8W5xjreSDYtMGVV/eMu22YlEJ/cTswFEhXxttCmTyvRjMyajrwxqKo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=mc+RteOD; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="mc+RteOD" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2264aefc45dso39486955ad.0 for ; Thu, 27 Mar 2025 12:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1743104188; x=1743708988; darn=vger.kernel.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=s83Mk6RgxI6aiEowidkzKeBlKABMqOiz10QGBc1rI7A=; b=mc+RteODRCSeVrFarz3JsKoIhHa5q1wdakkeM3mJFVy3oA8lvmcyfMRbWnp37Kdn0X 7QChlqsQiT95iZE/DcfgKcyNN0mrTdGjexYGdQD9L+ZrkeeAvnAFNCUY7BhJVva05x9Z ZzzrKdFib7vOyhDiaezS9+5s6gfJJs4tp0Mi0Qc6hX5Z82gy058M9aB07jEgY21F2W6a Sd69gM4Lxm2hfIHmLsl1zP1q/4lcRG66dfoSNm3F6k/f5cJly3YeOG7keSxnB8FS+ghj K4HhA9/TrQjkAUArW6J0T61kRKEob9C78kyR9Qw6GKJvOXCjFgmZS5DeedCwv6A5N8kI u/Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743104188; x=1743708988; 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=s83Mk6RgxI6aiEowidkzKeBlKABMqOiz10QGBc1rI7A=; b=OAZWF0JHWr5F6kjshSZTHlxezQ8Iwonowce9vNvJcv9PajWmNF+v4okEtfsfRvaIWS 3qVqgoI2loMHVVuyYKcVwxXZWBAg+EtOa3F+jH9g2UqICdqMKEnrWNPWuhZ6lNAHUuWE N7Et5q9hc5GHeyla/mHnwmObnLQz/t7ArKP3aWgi03qIZ54kkg+McWTNgylVvzy/zcrz ut8JtDTsBTXyQXbQyLDPzA0AShBB/h/swUoG15JlTD9eviuFelVMXHo73WadaADA3sjB hh4GWn5mkAtEYheSW5VJLQB5B7PsZk27mgn0NOKAwZkqgyE9UzZsqyESm6q3vxqjsrcO 4vVA== X-Forwarded-Encrypted: i=1; AJvYcCXGMTlNjKIWtPuCp8tsHsPbLMgITWZpwqIY40RQaHF+UL8Qhvz+nSvdhKc0Awn9MEdQCfAfcWGYJzkR8e4=@vger.kernel.org X-Gm-Message-State: AOJu0Yy1V7R+/BW+MwOEDUJyywgUrkcO3v4VjwPsPaCgMRIkxk48IdD3 +VDKn6JtLKxi4RsXup5hRXA1zmSv2cM/NrMlsMj4CuaWNMLQoR3jI+OipoD0naE= X-Gm-Gg: ASbGncvhWfW/5gaotRqIRdfe8+DTgXbrhZY1ha30fS0tVmDzvgdXiuFbUyu7YrvUTkH WueB8p76aJtNOZkrudRuc4ltYzfDbuntBO9XtdLuEHL8J14tqUIRZF+gv9RJ2XuXjyJ/RyR55zj OdvnF0zEouxRbGiEtOFswjm2EIPZmtV77lHKhzoAN/ylWdCY1raPZ1nMDl22hFSjyJxMKbkTPoQ oZB4QBNaXREl8OOgxN/KBNAoUFviMltqZdr9WXmnLVjf60vgsF3O3zYPdh3nWHyYE65LC8OKidr V8gMQPpOsU07O7GIm5EpeasqOMJvpitcsrxdC87uJkkP/6nIPBpZ2JKO+A== X-Google-Smtp-Source: AGHT+IHcFi2A17uZl//MFCIpfjuKn+EFOYp/l4E4mHRTjmt5boV1yhfvP5TVOYsG92qRlQyi5Fyr8Q== X-Received: by 2002:a17:902:db0a:b0:220:f59b:6e6 with SMTP id d9443c01a7336-228047fbe38mr65571275ad.8.1743104187938; Thu, 27 Mar 2025 12:36:27 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3039f6b638csm2624220a91.44.2025.03.27.12.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Mar 2025 12:36:27 -0700 (PDT) From: Atish Patra Date: Thu, 27 Mar 2025 12:35:51 -0700 Subject: [PATCH v5 10/21] dt-bindings: riscv: add Counter delegation ISA extensions description Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250327-counter_delegation-v5-10-1ee538468d1b@rivosinc.com> References: <20250327-counter_delegation-v5-0-1ee538468d1b@rivosinc.com> In-Reply-To: <20250327-counter_delegation-v5-0-1ee538468d1b@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-42535 Add description for the Smcdeleg/Ssccfg extension. Signed-off-by: Atish Patra Acked-by: Conor Dooley --- .../devicetree/bindings/riscv/extensions.yaml | 45 ++++++++++++++++++= ++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Docu= mentation/devicetree/bindings/riscv/extensions.yaml index c2025949295f..f34bc66940c0 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -128,6 +128,13 @@ properties: changes to interrupts as frozen at commit ccbddab ("Merge pull request #42 from riscv/jhauser-2023-RC4") of riscv-aia. =20 + - const: smcdeleg + description: | + The standard Smcdeleg supervisor-level extension for the machi= ne mode + to delegate the hpmcounters to supvervisor mode so that they a= re + directlyi accessible in the supervisor mode as ratified in the + 20240213 version of the privileged ISA specification. + - const: smcsrind description: | The standard Smcsrind supervisor-level extension extends the @@ -175,6 +182,14 @@ properties: behavioural changes to interrupts as frozen at commit ccbddab ("Merge pull request #42 from riscv/jhauser-2023-RC4") of risc= v-aia. =20 + - const: ssccfg + description: | + The standard Ssccfg supervisor-level extension for configuring + the delegated hpmcounters to be accessible directly in supervi= sor + mode as ratified in the 20240213 version of the privileged ISA + specification. This extension depends on Sscsrind, Smcdeleg, Z= ihpm, + Zicntr extensions. + - const: sscofpmf description: | The standard Sscofpmf supervisor-level extension for count ove= rflow @@ -695,6 +710,36 @@ properties: then: contains: const: zca + # Smcdeleg depends on Sscsrind, Zihpm, Zicntr + - if: + contains: + const: smcdeleg + then: + allOf: + - contains: + const: sscsrind + - contains: + const: zihpm + - contains: + const: zicntr + # Ssccfg depends on Smcdeleg, Sscsrind, Zihpm, Zicntr, Sscofpmf, Smc= ntrpmf + - if: + contains: + const: ssccfg + then: + allOf: + - contains: + const: smcdeleg + - contains: + const: sscsrind + - contains: + const: sscofpmf + - contains: + const: smcntrpmf + - contains: + const: zihpm + - contains: + const: zicntr =20 allOf: # Zcf extension does not exist on rv64 --=20 2.43.0