From patchwork Tue Oct 29 23:44:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Gupta X-Patchwork-Id: 13855722 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6B12D74950 for ; Tue, 29 Oct 2024 23:44:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0235A6B009C; Tue, 29 Oct 2024 19:44:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F133D6B009D; Tue, 29 Oct 2024 19:44:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D8C136B009E; Tue, 29 Oct 2024 19:44:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B66D86B009C for ; Tue, 29 Oct 2024 19:44:34 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 5C09112076A for ; Tue, 29 Oct 2024 23:44:34 +0000 (UTC) X-FDA: 82728271080.15.A6C5BCF Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by imf13.hostedemail.com (Postfix) with ESMTP id A1A4C20006 for ; Tue, 29 Oct 2024 23:44:06 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mKAoNavU; spf=pass (imf13.hostedemail.com: domain of debug@rivosinc.com designates 209.85.215.180 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730245312; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=UqlGzJEOA0rIxMbra4aAEQkUCqIib9RSzM8TmOHOkBA=; b=vvVmdHm5yw5PqBAtsjJbsCcfTzpIXnYKLKhVr0CtUWkMFCgC4i6TQ7tlOz7KN7L1P3kDRr 1JZdnDm/1xMonUJtqZ3CcSWNjl+TY/0mrAs7ZfzE6I8tx/eW1jGHpaYn03xrzQoFvH47tE knkmFQSK+zhXcb0Vw0t3PK3EQnr5t1w= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730245312; a=rsa-sha256; cv=none; b=3CDcoDj/QpWqUdvqBR2rE+eDDEnxJJdGWrl6wBZ+EEX1JKGZjAG8wBOCITdmQTXYrlrmu/ aFsTOnb1keoMU82Ak0Od/yWaKzPcggP6XkgDRMCa3i/6Sisof4x0EPuZyBukHTTFHh8Fy2 XfH1zGJ+38SszoUMrrfPduN3KeVNX2A= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mKAoNavU; spf=pass (imf13.hostedemail.com: domain of debug@rivosinc.com designates 209.85.215.180 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-7edb6879196so4004378a12.3 for ; Tue, 29 Oct 2024 16:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1730245471; x=1730850271; darn=kvack.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=UqlGzJEOA0rIxMbra4aAEQkUCqIib9RSzM8TmOHOkBA=; b=mKAoNavU9K0kyNWG+vfsxyZy5jYsFSAxxgOgugTASe7BD55+crKs9x9QIg6X1jfsLV zK7MpA8IeXa5oZX1810gk06Dau9auvTzhwa1e7LXhKxnWEnBwYCZLBJ70ZMtbvh2YrZJ PVErgaWfKK/0ssmKUDFsu6rC7yjra/Zc5UyW8Ld4ZkF/rx17pLm2qyj6BzRn1nA1aaKZ SFJCK12SPFqG7ZkEPh1+RNoCEyT0UF9Irl6ETo3/0p1SUcMcpKPpiLr8mcffluzorSzr lFSLtXeuRuWmVBLg0D+whVLuz/M1zjI2NWHI+AAkINt3Ru5Q38EJTvOPGh3DclV2w8c9 cLJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730245471; x=1730850271; 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=UqlGzJEOA0rIxMbra4aAEQkUCqIib9RSzM8TmOHOkBA=; b=A6PVgq6kY/zdd5A0T/+O8NxEc+IhwVVF7m/4mHogGdFqUf6jcXl73ZsgKCPfFo6kbV dA9bsbB8Auds9nVC0DI87peHvKKXgufFzZ6GAhgMZFgth4+prlzzx451ZgTlXNzofgxl wzVOcjyFekkAZdrtEPFbhq01fj6NOpBXInuDUlkTt+mA+EeFq0eV93j/EJ3gbEhCgrB/ zh2X6WPS711lMFWT8oKrCzRJ9hRYvPc6XD9r3ydhOz/XJhdpjqfNyGZ64tjD4EO+lrge VIRbyb3KTv0tr1EqWJ6gfKpOoM9s2FuKVwcAO1sMy47TvyS5nJxXgnoBIIynIkHjaIhw LX6w== X-Forwarded-Encrypted: i=1; AJvYcCXfu2YTcvkxFyZZhyCA1H4QjY85VOQWaDEq3MkqYLfgRoYU2uWEKJqnom/K4Q1u4dZsaDuZUypcAQ==@kvack.org X-Gm-Message-State: AOJu0Yz40uT+ePpB++vL10XWalgVttuH4rdggZHCuaoJF/uggV2LYLNK 3ptHeiXJdavR1Riw2N8hBJ+874TrdrwyU+C1k2TFoUcXmRFh7RFUyKfHL0PH8D0= X-Google-Smtp-Source: AGHT+IHPZtS5V83Y7JMjzODTd/hxnTyAzMxstiwXVpmrwh9UhJDy1/DHcrx/nIgBTJ/vKGmAOmeiGw== X-Received: by 2002:a05:6a21:4d8b:b0:1d9:b78:2dd3 with SMTP id adf61e73a8af0-1d9a840aaf4mr18555145637.26.1730245471399; Tue, 29 Oct 2024 16:44:31 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057921863sm8157643b3a.33.2024.10.29.16.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 16:44:30 -0700 (PDT) From: Deepak Gupta Date: Tue, 29 Oct 2024 16:44:06 -0700 Subject: [PATCH v7 06/32] dt-bindings: riscv: zicfilp and zicfiss in dt-bindings (extensions.yaml) MIME-Version: 1.0 Message-Id: <20241029-v5_user_cfi_series-v7-6-2727ce9936cb@rivosinc.com> References: <20241029-v5_user_cfi_series-v7-0-2727ce9936cb@rivosinc.com> In-Reply-To: <20241029-v5_user_cfi_series-v7-0-2727ce9936cb@rivosinc.com> To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andrew Morton , "Liam R. Howlett" , Vlastimil Babka , Lorenzo Stoakes , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Christian Brauner , Peter Zijlstra , Oleg Nesterov , Eric Biederman , Kees Cook , Jonathan Corbet , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, alistair.francis@wdc.com, richard.henderson@linaro.org, jim.shu@sifive.com, andybnac@gmail.com, kito.cheng@sifive.com, charlie@rivosinc.com, atishp@rivosinc.com, evan@rivosinc.com, cleger@rivosinc.com, alexghiti@rivosinc.com, samitolvanen@google.com, broonie@kernel.org, rick.p.edgecombe@intel.com, Deepak Gupta X-Mailer: b4 0.14.0 X-Stat-Signature: uaq7kj9ziz157cpug9kmgrbqwfmd7w9i X-Rspamd-Queue-Id: A1A4C20006 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1730245446-296297 X-HE-Meta: U2FsdGVkX195VFjYromlAtDndGNzmezV9XRHgxze5fxoyUpzbFViyu7Fj/msgCGRgzhZiQ9aMjj0Zl46wahullHmAaJxypVNWC0ot61nJcVTZSKZCHWfhqUoz3qCGH4PPpiC7FKJUBRNLY7oZoEGSFyRa+kWKm85+cvIo28ctQSlo32jDPJ3/bj2bK320hXFQMoj0v+ls55X4Bnd1wAjN5jo61vIHtnDb6qvyJYRWJ1dt9929jRmr/De8RlFf3VM6fj7sO13IIjVFiIGrVKV6ffKF3119FJjxerQIRWOSvfedJVbfMbwCkE1BUcd1UgtvgmdhGjJcwQhQn2dBkjuD8Q7f2QcbaTLZf0VaHDa6ttnRc7RViRpR0xs14ZsYB32cnarhwldei5TlN1qTFyyabFSaZ2U2NBer8N3iIAf/6zj0c5D/QYnPrDNaJLMxIa2j7L6uwNi5/6SI+NRmUDl96W7VEF691IPfEjWJpFOr8L8q/pdjZ3hcK1XcHVBuM9EZH78BbHopAmxYwJ0hJ/BK4I+i/afMePmefC+/0+9JIrlrnj6N8UAa/6XxPxp6Z1uGT5R5hih5hnAwAx6j9yda6jTmf2o2KhKlz2Xst4cXEgh5RvMVIasLE0G88VMl4qgjSypzFpxKTI6pzKSA91WGzqP4O/bpZNzTdC5bJjHIEAhILoERM+rhZvjL2Sffph5Yn4Jv+PIK9M7Ql9hUJlnOdw9AzHmqSyol7kVB8D1E9SEtaUyYOveRvU2dsFt1UlYickvM47oetNxl12Dv/oup7PZ9nEbfaHFnV+kJPE3awCt7HBQqwi670ftP4ibGWKZS3QXPY6C9OA7LMG2ZFnmIewBP2h7XqYQicq3BylAOshUwMdBsXjE19GzZlntQf2jIoyXBszWOSLa+8CN3CZxTI2aNbI1PUXrypWnE12RS5MyC0NHpp6njBtowxfKHNS69hWvgP6rXW2YJvX9ue2 sGAo42fy IAberpkQ+G17cyWKk7phB3BTSafeHWOqHqXsZ9fbioUlx43HN4r8sQhnGzVHFi6zgNGSktmjuuBQ1Lc28AU894dNZGxL/rUjtFN+1wWFpuBkjgzFeluiT86QZf9+3mKEFfCceEWKQVJmrzlLIPwhr9nH4ClC/e8X1oZsQNbjquvrW49hllpx57rZBkLG43JYtzXX5pxXL2HSr/XYlmIHVPY/jQO1DYcKHpmXbsQIu3jFxpoikl60PF9KGjKdcRui8RrODQ33fbgLEyzrf/uh5UJj7xVrt10BCt1x/qCfwIVy2gPZLFyjqiZNs6qh4R78alniCEcADasYZt6tNlQQ6U6SdVWDvb6YGiL5s8QEwSsN6FLho6bCcjz3TlfhPDC3SThyr1sNyujiXJnplovUtwj836lgs+cIkMDKjGFE1pLAa1DWLaWfrsQPCyxJVl2k6M7LP/D6nO2lGENNqf1wP4x0mp/CTJoc7jU0kCw+ajug9AsI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Make an entry for cfi extensions in extensions.yaml. Signed-off-by: Deepak Gupta Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/riscv/extensions.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 2cf2026cff57..356c60fd6cc8 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -368,6 +368,20 @@ properties: The standard Zicboz extension for cache-block zeroing as ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv-CMOs. + - const: zicfilp + description: | + The standard Zicfilp extension for enforcing forward edge + control-flow integrity as ratified in commit 3f8e450 ("merge + pull request #227 from ved-rivos/0709") of riscv-cfi + github repo. + + - const: zicfiss + description: | + The standard Zicfiss extension for enforcing backward edge + control-flow integrity as ratified in commit 3f8e450 ("merge + pull request #227 from ved-rivos/0709") of riscv-cfi + github repo. + - const: zicntr description: The standard Zicntr extension for base counters and timers, as