Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp212542lqn; Thu, 11 Apr 2024 21:11:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN7NM5nt6TMxxjTfbRwVEMHC+YoN79kyDKVih/PlI63K9fkdIlOkDHmbOIWF7JtDF/OPbmgIai2G32a2uLdvuqkxkRUxwqDeOWswOTAA== X-Google-Smtp-Source: AGHT+IFPCAsJ/2BUFBF/t+bcidYsiTOJSp8vCECADeq3nnnrOriutu+n7+lSx87MpQrwyRFRucDu X-Received: by 2002:a81:6d8f:0:b0:618:485f:747f with SMTP id i137-20020a816d8f000000b00618485f747fmr1506674ywc.8.1712895117150; Thu, 11 Apr 2024 21:11:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712895117; cv=pass; d=google.com; s=arc-20160816; b=PPpTg4uFiNeGM6M7b2madHMIKRizOU2DRw53h0dxY/nZwl79k3LTqB9GCegkTlN+uf AlnOg9aLwZPQbRz8aZoj8tbxkMVtRFHvQJNv7gUvdszWk/gvJGHp4rkZT2P8aRYdYXmL T7sP7W4kjTbzbqaWqw62EGVJn8YPYqoB+Slmogv+LS8cNshOkFVRg7Niw5MchLtf719C cO03DxT1EFkx9/gcTqD/+LFqmILc1YrbOjnv4MIYhynbjkvlJblLJCCz7ekXPfRgaOCO McuTVey1mvkbxMK2mym8eh73Jubi6gv1tDesl43mQAHRkaHls8TifgtsU4tbtReKR9ga WjEg== 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=CvKWdpWCLanAFVX5zPtD2b3biice8x1/52aRbRjA/1Y=; fh=3qQWY3oCpbGiNLsWbMOX6hJqC1aVGWbEppd8AATrzQg=; b=nrKlKiZw54DlwStUVb2omfo6RLDor+y9PlqyiAi5zGjfxiEHa3cb4qBuY4r85lj/Vz NXt7hUrjGcx0YaAkGDNPT4mbE4dF+YHQdAaGZ5rEt7wG67SpWZCSFxXtrE1fZPi3NH4R uYWl2LCzP5X+A3urAWQtypynhon3zJ/GEWvUNwgBlhaw9VsNqaKB/nhYoZJcyqdPE8gl CKM37t2NtRgNqysbSGF0eufKU8J7ZrazoEbyvuniVoEmfD1ZEByIvx8VdvWzlWoDlU4u zrMtaRkvwpufAiQ3LzxKwl0Gb8Bq2HPJaMnz5U9pLYot9FZEbfFFbpdRALGKX9FPaPHl 29bA==; 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=bklgnJRD; 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-141890-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141890-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w15-20020ac87e8f000000b004369a70561csi38244qtj.542.2024.04.11.21.11.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:11:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141890-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=bklgnJRD; 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-141890-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141890-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DAF401C20F91 for ; Fri, 12 Apr 2024 04:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C3351BC2A; Fri, 12 Apr 2024 04:11:39 +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="bklgnJRD" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 4D39D182A0 for ; Fri, 12 Apr 2024 04:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895098; cv=none; b=JyoYg8XzChPqzDIf7OH7kHjeHYJ6iGZOmnrJUJk/5k826oXMMcigRSRErhl3t8lKRuuB4Dhj8N5B1g4VnMcooT+2lfp2f4UtdIsf5o6ZQX2Zx+YxWeOknwWWD4Znm6OR50YsghLJHdoJfUbVNZXeQcKGu8+HFbxVzW2RARBCneE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712895098; c=relaxed/simple; bh=aeD7kpIXCYXPUehTkm7IjjI1zeG+m9VrzZ6zXfF/zjg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LhgEZtwgcPXEZas/f/uJaVS8S70XDVrm+rzXQDzmA588f79lxuoZMJoJTTmFKapsQE5IzZw7VsS6omOZtId7Th3wt9qW6drLzqit343D+sYMgZfXxsFk+BNC02msEk2Pl8cZ1IFsO/FIQuVzCRRw22RfMt5HbeSrLYGMvWjEkEk= 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=bklgnJRD; arc=none smtp.client-ip=209.85.210.181 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-f181.google.com with SMTP id d2e1a72fcca58-6ed01c63657so505589b3a.2 for ; Thu, 11 Apr 2024 21:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712895095; x=1713499895; 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=CvKWdpWCLanAFVX5zPtD2b3biice8x1/52aRbRjA/1Y=; b=bklgnJRDvcG3j4QnnlMpqNheKHlTV7L59nfYoryfLAR8vNt1jZXmW8mAPfcTlJIcui kP5vV8YzFDwcD4D3hgwC5Xbjnmag9KLgcNQJniO3eGN5K9Vr5KX5SXQm9jy8hHw2ZHIB bIcpvaWTK7aMKCGg3q2aVYVWAIkYx1vv8nQp+XrkTLyIApyJyPGXbkwDpOccxfEoR5c9 P57jGBjKqRfM61++xUkCv/gZvGEqUNPtc1fsZOs4ya1BYkGE7cR7c2ZLtC4pXjSSLs9n haqbkHWKrBqNI7HWRwrGT+kxlhwuDNlptMq+PCxYPm8ReCnMepkkS4plRDlyh/kveYZm ZQtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712895095; x=1713499895; 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=CvKWdpWCLanAFVX5zPtD2b3biice8x1/52aRbRjA/1Y=; b=VOW1X/HtdmAy6VxcSUT1CtYy9harNSfldKBcjeBwSiwCcI0cEYQxXhcTFY50ln1di9 FdE0lLXr1ksTD9acOLUq1nHDGuT4XWuTcbP5SXyPw/XEUNUdHMoi9XU9E2PUNDiGcqX1 oJmB+wW+Hzx1EQTF1aeAtzxZ49v944jeBzyLLVUFYK+CIECnzeGevd6XQ1B1rKhzG57q EogfjZkVY3LGdDKYQQxwTgL4y0yCoacrqXdv/T3ERYKCbI+zH5OS8EfoF0y3UsssSTcR UHFZTZ2LYoEbA12eXKjNZ5LerZGMjvaEWDe2p7702reJmcWhmirXWUfcOXgZ+eKAa7HR hyVw== X-Forwarded-Encrypted: i=1; AJvYcCXRwqXrMP+9stovZl0LIln7aly/PgBNsa3x6WfW5ovcWRFdZwXUykuNU1HIEpgyAXWHbuP24mz65N+uYwRSkYB4LAUCCHgebC/y01UB X-Gm-Message-State: AOJu0YxPtT4pHBU3ntLLl/Fr4ycDhA76lKUc7E8o0SOcf56mL9g8MVn8 88+SfCwdPJ5fZGjiH379AaIj9cz8lF+8N/3TGHuGgLf+m9FO8UAIozyw5SD+IdE= X-Received: by 2002:a05:6a00:cd3:b0:6ed:2f52:9acd with SMTP id b19-20020a056a000cd300b006ed2f529acdmr2081497pfv.24.1712895095597; Thu, 11 Apr 2024 21:11:35 -0700 (PDT) Received: from charlie.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id ka13-20020a056a00938d00b006e57247f4e5sm1949712pfb.8.2024.04.11.21.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 21:11:34 -0700 (PDT) From: Charlie Jenkins Date: Thu, 11 Apr 2024 21:11:07 -0700 Subject: [PATCH 01/19] dt-bindings: riscv: Add vendorid and archid 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: <20240411-dev-charlie-support_thead_vector_6_9-v1-1-4af9815ec746@rivosinc.com> References: <20240411-dev-charlie-support_thead_vector_6_9-v1-0-4af9815ec746@rivosinc.com> In-Reply-To: <20240411-dev-charlie-support_thead_vector_6_9-v1-0-4af9815ec746@rivosinc.com> To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Evan Green , =?utf-8?q?Cl=C3=A9ment_L=C3=A9ger?= , Jonathan Corbet , Shuah Khan Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , linux-arm-kernel@lists.infradead.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=1712895091; l=1246; i=charlie@rivosinc.com; s=20231120; h=from:subject:message-id; bh=aeD7kpIXCYXPUehTkm7IjjI1zeG+m9VrzZ6zXfF/zjg=; b=gyzpquIQ9EZPFl6tdB4X44dN/ns59zY4ew9u14pmot3GwLVRAjLHanoVkOR4IpnFrYW6m6+IQ FGixAlkBa5oBmgLlwpqraJRGcsWGjHUOq+pqsZuW+UYTSJ6pTTDEzAR X-Developer-Key: i=charlie@rivosinc.com; a=ed25519; pk=t4RSWpMV1q5lf/NWIeR9z58bcje60/dbtxxmoSfBEcs= vendorid and marchid are required during devicetree parsing to determine known hardware capabilities. This parsing happens before the whole system has booted, so only the boot hart is online and able to report the value of its vendorid and archid. Signed-off-by: Charlie Jenkins --- Documentation/devicetree/bindings/riscv/cpus.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml index d87dd50f1a4b..c21d7374636c 100644 --- a/Documentation/devicetree/bindings/riscv/cpus.yaml +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml @@ -94,6 +94,17 @@ properties: description: The blocksize in bytes for the Zicboz cache operations. + riscv,vendorid: + $ref: /schemas/types.yaml#/definitions/uint64 + description: + Same value as the mvendorid CSR. + + riscv,archid: + $ref: /schemas/types.yaml#/definitions/uint64 + description: + Same value as the marchid CSR. + + # RISC-V has multiple properties for cache op block sizes as the sizes # differ between individual CBO extensions cache-op-block-size: false -- 2.44.0