From patchwork Fri Apr 12 04:11:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charlie Jenkins X-Patchwork-Id: 13626792 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C35E9C4345F for ; Fri, 12 Apr 2024 04:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MkBTAbBzreuhKkIeqa95M6C4WG7wgxtWUz8+ekAlFYk=; b=TDTLy6UPE0mLHV X//oyVYHUvQA9i/bUh4PPPVcSurGvTyCtnnUfBK4RUSz9e2dkxIV7PBrm6KheUjYrHjdBNjQpfbzl ehGzR9cpyNJdmpx4eeCgT3/x4MnzswG+RPa0+mmk1OVkpN9N5d5RQHfHrxMl5lYu7b6k2QXxKze3k nTYfhJnye/OI2Dscn6nbb4pGNhnHsc/zCxXa482rxmy47bRUOuO8RwYaRIH7+T5yoClCtWe9hEa1o 7NCGfEN2QuAgHJ/J9YR9UZTS8hJ89PgZ797U500y0cFADGVDTj80YJb8jM5TOn7FV0bCcqtWUUMf8 P8jnH4xe6UviROxRtNRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv8GW-0000000FALd-3x4w; Fri, 12 Apr 2024 04:11:52 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rv8GH-0000000FA74-38MC for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2024 04:11:40 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6ed01c63657so505588b3a.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=lists.infradead.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=AllVP73kBwWwYzp1qegCHTVGRhgRoYn/UkCNA4i0ftQHvkGZVhsgYoDgEIkfZpRwCV Sm/L/J5xJI+Hp+dz0XOoh7GcZwbum5weVAJgV5D1ufjCOHu1ma/6r0WSVV6JxRFP9Z9u znYYyJJeXcvviuQux0umhtFIDqIGUajgrDHoyl0wfX34NbwEb0kgasYuAw0iciK4ghoQ a4U8cAuFvB8xRkcIFq/P4YoVwbGmFSt4VLedqYZKutkDzhwEpdwdEPYdwqtNGzLiEnrS P+lx259nxVxqA9j10S4A+9l56T33gyACO70YAbAsMKeBojalksZtkZCfOWwbxX8Pt2oP u+KQ== 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=tQZyW7n9xRkjPlDyu+V7cf6kBiPwU1k9B61f5QB+qkbvlghx9JTfCq8zYLiNOKDZxy dUXswCHvVt7F4TyoKiTVChOfjx4s/tDKJT/QYWCiWdik6YnVIvQ3mi4YnZUl5P2nDluz zdoDDBY8R7x/O6D9WydPh+wZM0m8e42H60AYf97kkxbPae+Imm8eVM+eaPft1jw32Htx n0R0/7TgGbyevqS2PpDQWeuPdvk6hThm4AOw1HmCo2u7OpiiGuevRTFxZf0XU4elvtef uCZP8M8gSMikzZ9rgkiMN2wnUcif8lAhxj9xKrMZ63rvvPmjKok5ACn6HKW8mV26cDuG 90Yg== X-Forwarded-Encrypted: i=1; AJvYcCXuqToGaCa+OFcgG6EIu9Y9BN546hTWxC3uczp16Bu+9mDj4L+L2aELRhLqrPsuQQWg/Cu9uc4qzkl8OyEyHWAJi4jq87kVgNNgI/iekAbQcD9yFAM= X-Gm-Message-State: AOJu0YwJXpL04HAw6qqL6AxUZu2c0/RtjzVnY1lmHRF4mBXctvrfYoQS TA7XAs3SQS8JizUVXUym3Ax95R4o9pyCiZIajGT1HpkpDa91ncWcCoMVN9QcAgI= X-Google-Smtp-Source: AGHT+IGEzhFDfz+tEhZaJYNr7eckM5oEi1A9mXDPnazuRSbWbM8XnHfKloHOzQmsXo7SSe+IWRZJtA== 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 MIME-Version: 1.0 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?b?Q2zDqW1lbnQgTMOpZ2Vy?= , 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_211137_828644_45DED112 X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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