From patchwork Mon Jul 10 09:35:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 117778 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4907023vqx; Mon, 10 Jul 2023 02:57:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtNAwXbQb/gkDsLFLXkojxzj8/wVsZr/4CKKGmpuVY8cD8pepbvgzk6+xhMoc8HQiYxAtX X-Received: by 2002:a05:6a20:7d84:b0:11d:8a8f:655d with SMTP id v4-20020a056a207d8400b0011d8a8f655dmr17598624pzj.4.1688983041682; Mon, 10 Jul 2023 02:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688983041; cv=none; d=google.com; s=arc-20160816; b=Vnq7VApvELkBpnj4XnZrd/iavSdpwxwCTmrQvD2IG/GcRR4BbNoprI+IE8KCm68b7o CPjgIzTTzk5JskG2XdDbPFsZFu/knPVe3u3T4Ph0sIP7OQtBeXB3TQ6Fj3JE1xySMwPY XBWHlDfa983j1v94/y8IRUF9FBytajd2l16IJ64weRD7Qpa+xZeEbevuRsejX9mjCwy4 2qCOGRo2JLqv5mmIUIzo9tUiHW3TDlPW1+TQ7fE4OwiVUyChhP1EvF5AEz8KtcOwIo6O XYNAjFLZCwUUTexYw3o7N2eHFajpbGtWiPSMg5mntP6ZWDjshtJxyD3nxEK3XFZN7BUU kd5Q== 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=AmiNFdYZFn4mjB/fE7V6VDEdxpSHVJibcGVkPb5f1Og=; fh=+t+G/OXZaGbelVlx/PAQKy/ssq96RZ9Njlv0n65gx60=; b=crIjx4r+yCkDWL1R3srFnXvddVCGY+kRf4PXRRCj9vhKOdkH/KDU/p/Ljv6ykswdVi Ya1I6pgxmDJnv04N1D2pN01kb2f8eNhkfYOFojVGDTyNvxdm+wr0PyYR3Ljo5oDm/0Z3 ovrfGGQFJ3Qe1PYU3DBcU34Xld7J4YxcyKDiW22k5+cDsGU086iBJIRHPQlgzHA+JOsi PWuOfpnbcpw80drVOyEEM9+k/YNRRPWgtreq8YcGO8NMxnLtLeYIKwDsprcdQjzBB0K+ WzhFttAo5dO6hIn3oTevzFKoV07OM7uIccL/p2D8LnKTbvxqSzpwxAXRJ87/ghuZRRP+ 0tOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=MqPsTCJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a170902d18100b001b665d8d63asi7581638plb.356.2023.07.10.02.57.08; Mon, 10 Jul 2023 02:57:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=MqPsTCJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231205AbjGJJkv (ORCPT + 99 others); Mon, 10 Jul 2023 05:40:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232524AbjGJJjb (ORCPT ); Mon, 10 Jul 2023 05:39:31 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 349CF2723; Mon, 10 Jul 2023 02:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1688981841; x=1720517841; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=f+gmfGrxcQqjXfZd/zTckfTRTww6zd62gI4c22r/Xm8=; b=MqPsTCJzw0lIR4N4Ts7Es1ot6chiKOmemTqvIk+M1M/Oz0yB78vfXTzY jJQYpPdIs19BAJR/uXXmFkPotbO4VGtOx8d0c3YfkFySYQn+Ou0qrySEP arQ8e5M6X0M0V10csmAZ6DXRjcxwPh3NKIvI5X4LIorV/sjZW4hBnD1rn skym32QD99Hbkgq75ed4yTovXYS0k4jVgerxnZQ+BceGEcVoKz0N8XckU xeJK9yBVPttY3wax3KMBqcGBQPEXO4qyvoV4+jY1avuIarPmq0Zpnus5n KXFvuozCHtKpBYNjaSANAIhvMbHj9fniApS0fkcflDJytAfkqCpKrdXbw A==; X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="160600105" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 10 Jul 2023 02:36:48 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 10 Jul 2023 02:36:45 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Mon, 10 Jul 2023 02:36:42 -0700 From: Conor Dooley To: CC: , , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , "Jonathan Corbet" , Andrew Jones , "Heiko Stuebner" , Evan Green , Sunil V L , , , , Subject: [PATCH v4 06/11] RISC-V: add missing single letter extension definitions Date: Mon, 10 Jul 2023 10:35:41 +0100 Message-ID: <20230710-chamber-juvenile-6df500da0d7b@wendy> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230710-equipment-stained-dd042d66ba5d@wendy> References: <20230710-equipment-stained-dd042d66ba5d@wendy> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1249; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=f+gmfGrxcQqjXfZd/zTckfTRTww6zd62gI4c22r/Xm8=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDCmrL1yXWFp0ddnsKCMrvpr//ixviqf8vlSnefH74tW5u1Id H7ss7yhlYRDjYJAVU2RJvN3XIrX+j8sO5563MHNYmUCGMHBxCsBEFlUwMixOPpqx1zRp3+sN8957FS jd2fCpal1ee9hpO751M1aW/ZvPyDDTIEKUX2JO9IWF2TMXP623NA6SNArjfqHe7turI7bKmx8A X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771027081968333595 X-GMAIL-MSGID: 1771027081968333595 To facilitate adding single letter extensions to riscv_isa_ext, add definitions for the extensions present in base_riscv_exts that do not already have them. Reviewed-by: Andrew Jones Reviewed-by: Evan Green Signed-off-by: Conor Dooley --- arch/riscv/include/asm/hwcap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h index 2460ac2fc7ed..a20e4ade1b53 100644 --- a/arch/riscv/include/asm/hwcap.h +++ b/arch/riscv/include/asm/hwcap.h @@ -14,12 +14,17 @@ #include #define RISCV_ISA_EXT_a ('a' - 'a') +#define RISCV_ISA_EXT_b ('b' - 'a') #define RISCV_ISA_EXT_c ('c' - 'a') #define RISCV_ISA_EXT_d ('d' - 'a') #define RISCV_ISA_EXT_f ('f' - 'a') #define RISCV_ISA_EXT_h ('h' - 'a') #define RISCV_ISA_EXT_i ('i' - 'a') +#define RISCV_ISA_EXT_j ('j' - 'a') +#define RISCV_ISA_EXT_k ('k' - 'a') #define RISCV_ISA_EXT_m ('m' - 'a') +#define RISCV_ISA_EXT_p ('p' - 'a') +#define RISCV_ISA_EXT_q ('q' - 'a') #define RISCV_ISA_EXT_s ('s' - 'a') #define RISCV_ISA_EXT_u ('u' - 'a') #define RISCV_ISA_EXT_v ('v' - 'a')