Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp144175lqp; Sun, 9 Jun 2024 21:46:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYbC2E/METqsnluG4Dq/q65LSCYLuPjU00yuBpClBdeT7amgX4rAyRKMXoaaqBIaCUidgCCIg3LiRWhnrW4fXPOSY/ciC4K1SVUOduJg== X-Google-Smtp-Source: AGHT+IH45TRW97Wdf1B+1rgMnY1PqehoCjrlJVOZecHY1JGPCStY4OOyNkeSyQm5VuJvTGu3njtP X-Received: by 2002:a05:6a20:1048:b0:1b2:5baa:7acb with SMTP id adf61e73a8af0-1b2f9699cd9mr8786377637.1.1717994787845; Sun, 09 Jun 2024 21:46:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717994787; cv=pass; d=google.com; s=arc-20160816; b=vUr1JXaCrlMwYUpHvhZ4CIwdg7E94D1/KhgAizbLFC+e8MMGYOw7Eq656WBtxPxBH7 pPOSRLa4VLZC6B62FLXf2Ug7awPY4IGYOIpn662UEDF23KyXKE90ExpvSNLIWI3Ieca3 aYXUTBtgT8aX/FGJDyfJOodObSM6avuvxciUTVX/WveVIAs52bD/0y5Mq9yYtUaOsS/p vI/1aiPfdvKF/EJxbqcvlAjkxHkrO8XxYV0wF6ebIHn1I9/FTV/MeLs9Zmcj8i562/vU sXK+VJk421QJE0XUHU2/k2ABtdKe00Z4vwcPvHIkWBUMzkIGGOHbVKFrJhj+YXX/NMUg kP3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Xb9tww82u8GPwb/D9ZGp2c9YRfA1MZ53TtnEydxWwQE=; fh=quQLa8MqJQyAReY+xnmra7zDSDrm2bxrZid50WCju54=; b=j+AflUO2MVLJ63xjhmKWlhMZpkUxBP3BmXNcMocVPTz7xReWdsj4LehndBugNMd/od HoBe6S1jSdgSKfXqQ5+6r/quISpe3H+1LOtdh4ul/gMpY9zgAi0VPA8hv5UBmaGeHu7/ wpo9f2Bj58+2AgXsXCE8PgKF7RBk8btQDmtOc7Ak1beGmnc7MmZ+sP0XcS++k9jjhevj wex63/tfvGBaeD42zG/5i2LSIx2cyoq9q0xVT/WRsj77acyBYNB0AQTbUJdKykmoYGE0 WYWqs16OxVqSRaicx+GQTGM5yKZggfEMAoy/eIxmaJD16/2Rn0Pf4G3Ea+tMSweR24dO s2dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mPWIPv5M; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-207628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207628-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d10024d2si3185033a91.89.2024.06.09.21.46.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 21:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=mPWIPv5M; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-207628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207628-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AD5A9281F66 for ; Mon, 10 Jun 2024 04:46:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B1721C6AF; Mon, 10 Jun 2024 04:45:44 +0000 (UTC) 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="mPWIPv5M" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 1A68817BAA for ; Mon, 10 Jun 2024 04:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717994743; cv=none; b=NXihnOSzpyeXjzYCB2CoYIU7psxv9bIqYl/7Bx5ctMcx0+zbKIMQ1RGVJJ1y14G57KYkxNMS+yXvtHY3mTpIi/VNBXt0To0ROFy6fEBflCevaRtE58tdAD8Mz6j6cIYKZs6VCT8UIQanbk3PyHMLwkOcn1kOS63zeqOND9iClPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717994743; c=relaxed/simple; bh=eg5f+2eUdPorsjTg1AXnvbZp1Gz8QKwXU/sn4bArQ/o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mFyg15RioV0drJKzFhnk3j1bDP295kVgvYi0V7GaBU+JN5ji6eFstL9jpzfvVk82sL6tuzneJATS5i5qVw1EtfDEkv9RWS895ww4E1RuJ80bZ3DbBFXY8ZTJUFfNkqDkuxvnxcM9B4O6c48Ec36Lb4XDoo+nuDSMrsdlmuDEtR4= 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=mPWIPv5M; arc=none smtp.client-ip=209.85.210.180 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 Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-7043102dcc1so990935b3a.2 for ; Sun, 09 Jun 2024 21:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717994741; x=1718599541; 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=Xb9tww82u8GPwb/D9ZGp2c9YRfA1MZ53TtnEydxWwQE=; b=mPWIPv5MH8Ifz8Z8RiCAcsrujOg/6fzKNI/Af82cqBDnni5WNc06z1CVaTbTClKZjg G74uPW40vl4ZANDEibynMdnNg2PCCR2NlSSbT/LG2bsEyDesZwOaorsaf8bUON5dlXOQ 7nkEKkEopqXyM5FtUGHqfW/9cT0g/vUBMuOqWXYitAetPbo0y13MHP3i3HkkxPbtFVaZ 9ZMu/genyOkAq8lPe3g+wfMTs/MT2fpWIiZMyyUDKO2ASBLz9m/IkNRFv6J3Wfb6yGEE eOjOPFnN8mWQm/3BqxQ1JZQ4Yv9Qp9YVDo44sX4ARR3/clWosq7lXYoxjXt6dK8ntVs3 6NnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717994741; x=1718599541; 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=Xb9tww82u8GPwb/D9ZGp2c9YRfA1MZ53TtnEydxWwQE=; b=cFO3MIfuvvowtjU+96bVdFhMVQjcxChNQD/qCrdVtr/o6zwB0wJqjjPMrxiE2hkymx 3h5GueEA8k++CRYxeeHJrY/0iaKdqXDNG1JuPqKiWRqWKt8b4BQ/5iEdBwvrv+AGJx+S YlwWyzQoAKXw0tr/CNRgaK3wBFbj/4bh1iFc+HvyUbFL17/ClFvfg8gAPV+ra1jIP6kl fVp3sgX276nhlgzXEgSp1VFL8zl8U3kK4jOvTmY+DrVWZAAwC46xLAYDwwYCn1cb940d m4Te2MWZNtnkMVf80vSzhcTJr+OOlmY3FmdJCM/+/vkbyM5ui3IDBaRBviRN0wgHRGI6 Mgpw== X-Forwarded-Encrypted: i=1; AJvYcCVUOCh9y+Z0vbOqjeKxCjAZZuRG7GjjZgD4DnBykUrn7F8+fIxyHTbEzCBr1EvnadxVyP4xVIROq/yV75y/mJuKhTz8LZRWXEfDl+AQ X-Gm-Message-State: AOJu0YyGlsShRXSd/akNe4ELD4JCR45lVD1TWLGjiZFg4EPxtDpEBdfF CeVue99qhpM2rRQg1HqFjLH6PtJlv0D7G4NPY3bAi0RmH1YKVcL7GB5Rh2IrBKg= X-Received: by 2002:a05:6a20:3d81:b0:1b7:77ef:b125 with SMTP id adf61e73a8af0-1b777efc43amr2187647637.21.1717994741443; Sun, 09 Jun 2024 21:45:41 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd76ce8asm73124095ad.77.2024.06.09.21.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 21:45:40 -0700 (PDT) From: Charlie Jenkins Date: Sun, 09 Jun 2024 21:45:08 -0700 Subject: [PATCH 03/13] riscv: dts: allwinner: Add xtheadvector to the D1/D1s devicetree 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: 7bit Message-Id: <20240609-xtheadvector-v1-3-3fe591d7f109@rivosinc.com> References: <20240609-xtheadvector-v1-0-3fe591d7f109@rivosinc.com> In-Reply-To: <20240609-xtheadvector-v1-0-3fe591d7f109@rivosinc.com> To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Jonathan Corbet , Shuah Khan , Guo Ren , Evan Green , Andy Chiu Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Charlie Jenkins X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717994732; l=904; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=eg5f+2eUdPorsjTg1AXnvbZp1Gz8QKwXU/sn4bArQ/o=; b=qMU9GEMHv/svOPJ5zghxy0bhqG/AbgzxOZ0AfXJrmBOvTNW3UuMX841ytI7NfGDiJh0BQgx9K BRhD0FN3VpWCnzzynK4/FI3j/f0VwYqtduoZBXh2eanJAoZrFHFaZvg X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= The D1/D1s SoCs support xtheadvector so it can be included in the devicetree. Also include vlenb for the cpu. Signed-off-by: Charlie Jenkins --- arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi index 64c3c2e6cbe0..50c9f4ec8a7f 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi @@ -27,7 +27,8 @@ cpu0: cpu@0 { riscv,isa = "rv64imafdc"; riscv,isa-base = "rv64i"; riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr", - "zifencei", "zihpm"; + "zifencei", "zihpm", "xtheadvector"; + riscv,vlenb = <128>; #cooling-cells = <2>; cpu0_intc: interrupt-controller { -- 2.44.0