Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1027862lqo; Thu, 9 May 2024 02:34:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOP9cmT8XLgGf0xajr5mddIq4Grvv19Hr1w/IszK0uAB4dJaDoby1hH6uiWTr8kEcV0bMoKCyDaYp5mzYWtDScC48PEurICCemQHp3Xg== X-Google-Smtp-Source: AGHT+IGa5GwV31UFsDRCZ3gcGaRuZT1DIpir4qkndkfIcFckB6y+rDhe9z/VHSdOSzYx6I3Hf81Y X-Received: by 2002:a17:906:3b56:b0:a55:b67c:bd04 with SMTP id a640c23a62f3a-a5a1155b531mr175045866b.4.1715247248544; Thu, 09 May 2024 02:34:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715247248; cv=pass; d=google.com; s=arc-20160816; b=sX0vKr/SwqHekuog9sMN1Zat0yiQX/2imhDQGCZb7t+ojAswC5vqUWiczvoqzi9/rG 0osHBIoKujtvCbuTg1K1aZK/xqA/BCtCuYeXJeZmMapGYjWkt5wiIHJliEEBCKnozXd/ 1LKmLAZIqi/u44SwLellNQ0kS3hAz3YM9AtczvubDmJEeoDAf0AkT0DxSpSX/hBSiVPd OllNIXfbYoCdofIvLR6SOqMgmCLdWWMuU+gdvvSJelwdHROvpPx89amDWBe8yIMAa8Bk 5SHVnEfgXvVgMJFATZQ8OBJ73E9DKAtb80/cwogLNhG3tlmRfLv7p6yO6WoMgG2cKHHY GH7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:subject:cc:to:from :message-id:dkim-signature; bh=uHRrkhKKY/U0upUZfJkXb4BY8bCTGf1SFZ8EyfT1G3g=; fh=L/W7iWGVQltmY6ZEttHlLTekk5qr4qS/3lbrJXqMccA=; b=KzvmETzsWAo3Jla3S3utu9EXXJ0TtBSNPVS29hCms3sBEQX2AsS8lJ+ltWyEcVoL0H rn1A4QVMC7ibJxjgbG74jWmTF0nRZ9HvVzZvylmJa38YWQ5W4+Tg0ta3GBK/1aHV3iny clU0bthgDIGUqGu3UhZzbUJPxrh2x6e3Zkt6OeTPOoRM1saa8E/Orn8EIqxgd4yWOvQv H6PGTYAs83Iuna1O+9N7PNYMZ4iCo3HtDMANcU+bkX06Aurvn/Elu8pfG8yGDbMFBN88 5c6h42XIUF+aL0ue6/euwbQGu7zDNghABytBZzyZ7S6hVEe4hYbGPSli2JkS7mLw2TXR ZK+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b="reG0mO/y"; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-174353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174353-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17945d00si63794466b.1.2024.05.09.02.34.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 02:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b="reG0mO/y"; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-174353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174353-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 474E91F23584 for ; Thu, 9 May 2024 09:34:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB3A714A62E; Thu, 9 May 2024 09:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="reG0mO/y" Received: from out162-62-57-49.mail.qq.com (out162-62-57-49.mail.qq.com [162.62.57.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A06BC14A4DF; Thu, 9 May 2024 09:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.57.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715247243; cv=none; b=IoFTKVeQFkZTPVBjpIqFmUVEie6Fm2QwzYHcbMY2taAKHWlt9yypdeb/7k1of2oZEHlqCxZgJhHqfflLlhgNR+M03c5mfNuC26jLgxvsUAQcPP+QFnzf4NZcjXZEcgI16+6CehGTYjhWPi9zJ6aGg46fGDcA4E2ZIbZup7KyCvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715247243; c=relaxed/simple; bh=MtCUZOEf09vm2s3UfRmmEbhe99AQfnhKa18eN3mnrso=; h=Message-ID:From:To:Cc:Subject:Date:MIME-Version; b=nzfu62I+wxVyDe9fUayoBcsWaS0p7wlEZWdSlxLaiyIVfz61CUQZPGwv3UTnX/PLFuLDpGpzb8rBhQM03bO6sRsU6C7kCZLS7CBL633Ik2I4XnW8pty9AAEC9N3k7Lc2USxBXOhRy1jiMm54Mmwm9Hk577ZT0GwatpasTXW17pU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name; spf=none smtp.mailfrom=cyyself.name; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=reG0mO/y; arc=none smtp.client-ip=162.62.57.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=cyyself.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1715247227; bh=uHRrkhKKY/U0upUZfJkXb4BY8bCTGf1SFZ8EyfT1G3g=; h=From:To:Cc:Subject:Date; b=reG0mO/yMD0Allajl/2aMO1ahdJMd1FG86iTLZ031D7u5g0tYM1mYE3kORENzH04s GQ9UC1LP2QjvCQCjOcF/3MrO5DJk6oNrTrboudF6/TXbLNoe+iijW7tiuiGnvAeRzw zVyBPSiMtLFK0Vh+p7YsW2wjyYMX9DX/LXbR0ZiU= Received: from cyy-pc.lan ([240e:379:225f:c000:ddd2:5a64:482:d6f2]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 86B97886; Thu, 09 May 2024 17:33:43 +0800 X-QQ-mid: xmsmtpt1715247223taum3m4ji Message-ID: X-QQ-XMAILINFO: NkHKfw09D6j8uL2HVuJBhrc2zAVCXYqfSMQbCILL5ryFnjPQlfSSZSmyhy0OIS 51hz1Aj5/VjBhn/J3uDwgpLwGwdPxe6mo0HKpyqEVWoVZD1ju4+BSdIZLKYcr1FqxTGvLrKobGz6 9MRknHCRtI6YvQTjMv3elKw/uuseaZvLe+uwd92wJ+4Y/ZrEBJg6rV4kXrp+581iAqZbVyxiE19W WuqjyKz1jdnZWTG747f/PaHiKP+38krSpqFhgycfkgnsx77GiKoMDxQfI8x8Y8ynZhDQV//Qz+DH xja4FqphOyVQUcnHNPIf4uVLUaA47Lp18wJpQqGO8sLWnqs8+8gnoYXvOFgHXuzv4rwFCCOPU02C dgxsiD+mjvY16vcI6QgHkd2+clL+jKlA4liQst7W0+bF7OEvuvmpIksFU703rPDhAQY0lByg1bVG ooud3Hq4c4KlTsDwIhRKRnbenhW0cfSmOya03euiBpH9xJuJ4WdlsSaQygHYiD76It9XTfoFRpZw tUTkXSz3rxx4e4pl3SIQROzzZZ0qkcnl4G+Vg1/C3QaTcdEp0eo2xcwrcW6CrY/Sk168Y/YAwTqt zzQEhV8Z+EqwzKDRo9/tpCfx9ry+bkjCr6VEiK1dlBNkwwmk14el1KiG9m/vN6p79Bvc040hha0O 3p7hySI/w3VOuB9/Xqemjuf+YtRjntvFCkMmknFI9LTnryALuCB/mlExTlcVbY0e2DD4POPIn8Fd qQPXkgf7XZtsX8q5+kRyWUA5tYZqz7ekw+SJo+QHKvLNhRL6nn4JorQDFnNzolMgQTUkLlS4Xjhp p7zpW/I7ccH83nQ+Euqv2R3XFEXfHzlFhinZw1Uo78unA2WVwgDed+rOCOkipJwUMTRwI5zgvIdv b6FoBWxUi16ON2TOOzjICCTvV0QGfeNVVNxKW7D/7HrCnH2TB5xwJHLBl5QXxUC0rglWkdMCB7Gc zOluQZfO+YuXCG5LlxNL0YfrT1qh/lAlRQpTHEKQCxYrqqYQ98BTPdz9W/qVQBsPHEDBEWuro= X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Palmer Dabbelt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen Subject: [PATCH] riscv: dts: fix isa string for Canaan Kendryte K230 Date: Thu, 9 May 2024 17:33:11 +0800 X-OQ-MSGID: <20240509093311.1943337-1-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The original is a string in dts that has no "zfh" or "zvfh" extension, but the K230 chip has them, so I am adding them to the dts. This patch also reordered the Z* extension in the isa string and used canonical order for the category as the first key and then alphabet order as the second key to meet RISC-V ISA Extension Naming Conventions. Signed-off-by: Yangyu Chen --- prerequisite-patchset: https://lore.kernel.org/linux-riscv/tencent_22BA0425B4DF1CA1713B62E4423C1BFBF809@qq.com/ --- arch/riscv/boot/dts/canaan/k230.dtsi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/canaan/k230.dtsi b/arch/riscv/boot/dts/canaan/k230.dtsi index 95c1a3d8fb11..104e08ef5869 100644 --- a/arch/riscv/boot/dts/canaan/k230.dtsi +++ b/arch/riscv/boot/dts/canaan/k230.dtsi @@ -24,11 +24,12 @@ cpu@0 { compatible = "thead,c908", "riscv"; device_type = "cpu"; reg = <0>; - riscv,isa = "rv64imafdcv_zba_zbb_zbc_zbs_zicbom_zicbop_zicboz_svpbmt"; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zfh_zba_zbb_zbc_zbs_zvfh_svpbmt"; riscv,isa-base = "rv64i"; - riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zba", "zbb", - "zbc", "zbs", "zicbom", "zicbop", "zicboz", - "zicntr", "zicsr", "zifencei", "zihpm", "svpbmt"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicsr", "zifencei", + "zihpm", "zfh", "zba", "zbb", "zbc", "zbs", "zvfh", + "svpbmt"; riscv,cbom-block-size = <64>; riscv,cbop-block-size = <64>; riscv,cboz-block-size = <64>; -- 2.43.0