Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3150276rdg; Tue, 17 Oct 2023 06:16:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGF3mMpc6PO59F+7JyZ9e8vMSw9OCURyDMkyZfizhoEOg7cYb0EXVgIDuW5KVbJ+tH0QvIJ X-Received: by 2002:a05:6358:c3a9:b0:139:c82c:46dd with SMTP id fl41-20020a056358c3a900b00139c82c46ddmr1988422rwb.10.1697548589227; Tue, 17 Oct 2023 06:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697548589; cv=none; d=google.com; s=arc-20160816; b=nqfLNcUnbbVhF2ik6Q8j0nDZPTZXuvs0hpVCsaXeDdjkdjm0HOfNQm/UL3ijXxyQT7 jAcFmEYw+mcT9q/DxBJ6YidEyBY8uE3mB2f1sly7TsMlCCoHRX5M9JUzCM6ZlDTzwn/K M31UNu4YRSsLdysv35B1AB2p8wRMGQIF+LRW7cPP3mO7+m3jII9fu3SLX7XDN7vMzFIc gHe97zNx4Cg+hmQxgIbBQ4S33BdNml9+34XlJ5yr7yax3h8UCjbrvNYU6wT1Wt6Wkc6X ckvQ451HmaF8BtHmEB10mHTTET+55mFpqaHnc0itYYXac5qJfBPxJqCw6AejnFJpFzRq hvOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XveLx1BmE1GvU06WU0o1GpTCvis6fOoE2R2208YLJcc=; fh=lvGFqwUxN+Dx1jonz8cRGrvjuKDcjMXylffmtrJGOYA=; b=dwwU+bIRoEC2y4kUJBtzEkAsb1yO6/5UAwg5n8acPB1QXa6rYoGzEqH8P2rQ4d71bf T/PLmdWbLDQn0lU8aUD+lfakjwpcs6GyzAiAwlrPY+7Pfhn859nhI+cN5YxZ7KhVgZ5X rKeoXS7rgoHDdBi5MIoutb3/7NWEV2YPr//tFSDJ/YU0cczSFBar23iWGJSams/LQtr5 vMHPHZ7DVdnE9gX4lR6VAeIh3ZMWB6YUCuS2sHE5E1G86NFwRh8wo/DkCJEUjJaxk/0f +sikYpkrX2yzyXHdsrjKdm6lmeW1EAaH49a0aLGS3HI54iqFhge40eGSoAnMPQ9TalPX 7zJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=EviRm+5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w189-20020a6382c6000000b005ad1edab539si1695718pgd.319.2023.10.17.06.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:16:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=EviRm+5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6D45C80B2891; Tue, 17 Oct 2023 06:16:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343872AbjJQNQQ (ORCPT + 99 others); Tue, 17 Oct 2023 09:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343856AbjJQNPn (ORCPT ); Tue, 17 Oct 2023 09:15:43 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7E3F7 for ; Tue, 17 Oct 2023 06:15:39 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2c504a51a18so12430551fa.1 for ; Tue, 17 Oct 2023 06:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697548538; x=1698153338; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XveLx1BmE1GvU06WU0o1GpTCvis6fOoE2R2208YLJcc=; b=EviRm+5Q+1FbwvWL5F6/kvhGQNmfrI1A/MaocosEettqksG4vfmDk77kLysmPeX8f/ fLfIqg1mIpt09P1nZJfAgcz7g4SEAet/0YHZ8/niL/RAPhbrOLW87X88Hwd/o6Q5o2vT uEM/IfPe3yXvCPt/zXsSf+l0uIpAoXd1IMYvB5V3xpEVvXfvYJyIs3wuCyArriPnZi7M uj1N5SWEgPNeINCU/5efh6a7/LwI31f7nKClMR7Rnq61+jRHRJCDXkLniC+F5AFZUh+0 gZX/ZylPy1ouWUMKfK/rvuWWZS9WUt4HZgVD/wQFXjvb5ScBU0topvc5O8g2JUlyYGY7 RmLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697548538; x=1698153338; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XveLx1BmE1GvU06WU0o1GpTCvis6fOoE2R2208YLJcc=; b=NReyPxL9l7/6qLPTjwdBevf3P8pOJrYiCttnulzk1V2P3cxlb9SYQGsXPSERRCPyGM WuCj+tqQBxyP9XNvdHHyfYH/M3RXsqwAzOEl8lbPm0lZRZlCEVF4CSAXeaJl6oI0AwqJ +tf4r8EY9RJyN+4jQRDmLPf7w5r0YB5Y1HugRlJx0FzQtF+vJ/5pZFiomcCSwDjDt5gf JWeY4dVuSjPJD7/JbuuhG4/rMFOufG86CwN5B7OHfFOk0u7rObupzj2z6WRjsLusfBgs oq5iZM4kZ/G/CIAfAabPJLJr8n9px+UDXMJF6G4WK8KDAZ9tkP4MP3CUA2+ruoT8MZ0N IsKg== X-Gm-Message-State: AOJu0YygMVSWe3Gs12No4BcmUB6o1U4/JXi5688wC2l/GOWqfYcBvhKT VzXZKQ59TYT6xgpf+OLf8XhMKA== X-Received: by 2002:a2e:9b49:0:b0:2c0:1959:fe59 with SMTP id o9-20020a2e9b49000000b002c01959fe59mr1644747ljj.3.1697548537405; Tue, 17 Oct 2023 06:15:37 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:96:820c:ecf7:a817]) by smtp.gmail.com with ESMTPSA id fj7-20020a05600c0c8700b0040772138bb7sm9873393wmb.2.2023.10.17.06.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 06:15:37 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Albert Ou , Jonathan Corbet , Andrew Jones , Evan Green , Conor Dooley , Samuel Ortiz Subject: [PATCH v2 11/19] riscv: add ISA extension parsing for Zihintntl Date: Tue, 17 Oct 2023 15:14:48 +0200 Message-ID: <20231017131456.2053396-12-cleger@rivosinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231017131456.2053396-1-cleger@rivosinc.com> References: <20231017131456.2053396-1-cleger@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 06:16:25 -0700 (PDT) Add parsing for Zihintntl ISA extension[1] that was ratified in commit 0dc91f5 ("Zihintntl is ratified") of riscv-isa-manual[2]. Link: https://drive.google.com/file/d/13_wsN8YmRfH8YWysFyTX-DjTkCnBd9hj/view [1] Link: https://github.com/riscv/riscv-isa-manual/commit/0dc91f505e6d [2] Signed-off-by: Clément Léger --- arch/riscv/include/asm/hwcap.h | 1 + arch/riscv/kernel/cpufeature.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index bead05cb0df2..a9aea62b6c6f 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -81,6 +81,7 @@ #define RISCV_ISA_EXT_ZVKT 63 #define RISCV_ISA_EXT_ZFH 64 #define RISCV_ISA_EXT_ZFHMIN 65 +#define RISCV_ISA_EXT_ZIHINTNTL 66 #define RISCV_ISA_EXT_MAX 128 diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 68914b5e2df9..0a74b2cdcacf 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -242,6 +242,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = { __RISCV_ISA_EXT_DATA(zicntr, RISCV_ISA_EXT_ZICNTR), __RISCV_ISA_EXT_DATA(zicsr, RISCV_ISA_EXT_ZICSR), __RISCV_ISA_EXT_DATA(zifencei, RISCV_ISA_EXT_ZIFENCEI), + __RISCV_ISA_EXT_DATA(zihintntl, RISCV_ISA_EXT_ZIHINTNTL), __RISCV_ISA_EXT_DATA(zihintpause, RISCV_ISA_EXT_ZIHINTPAUSE), __RISCV_ISA_EXT_DATA(zihpm, RISCV_ISA_EXT_ZIHPM), __RISCV_ISA_EXT_DATA(zfh, RISCV_ISA_EXT_ZFH), -- 2.42.0