Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1351866lqs; Sat, 15 Jun 2024 05:29:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmU5oFNBZil3Q8SNPhUJIsv6gnZUW8yctVm2ahknIFk6/fC3wzjwU67FMhl/m+VogDkS4WoQtJF1asredxXBoAqAzq2j1aVt3+2oQ8sA== X-Google-Smtp-Source: AGHT+IHFpxMHoOHodnzoj1BLWe4k3R6mFJoLQbo78qiMR3FvpUArjh6eQr0IUGjKiO6yZPBAFuvo X-Received: by 2002:a17:906:e45:b0:a59:ba2b:590b with SMTP id a640c23a62f3a-a6f60de1cb6mr323398166b.71.1718454550747; Sat, 15 Jun 2024 05:29:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718454550; cv=pass; d=google.com; s=arc-20160816; b=woEnwypGNv3VWq6ToullBsCIVTUV3lPlVJGZJn4K5J9uMV+Ml4JJIMcpJAFHyH/JrS qTIc8EqyRzlWkXZVbdn8mOxpkANLLxtxqUqSnHwN97sQSmwtn+y1j8JyJvlXgCp4sh1a +cmugtxs/LJCZFG26npb0/CXkwdrJ5VCmTEZH5UwB5x1M/xcW7gJ8H0VKpPFvMEbxLf7 sPLHFIb16Ykf4kt9hlEvf9P6G6bMk0GJrww+tlzltScZuwSOywTeTHT0B8pty4UG/Str 42T/bfVCdwbKldjpoRAHRG7CZxntxkKUS2N0zdAWIaOhHZS5yO5LdZyBks6UnTpJbY2w mXxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EIKecgu3+2M2OCuanQDZX3M81463hVKmGD1aIDvdfBA=; fh=UkveMi4WBz7p+BFyKW7CHwJB1TewQY+EMnjeQPkzNzY=; b=Cjh9Uom6sQN+0C/eXLkC3RHC0v465WaQiEbOqSzf+fvhGrEiPCG1FU5m1g3VA+kmA/ CYHMJBtaNFc1NHbdCRnzF4FJIXbowRTnJp/TaAxCcfK2jRZY3Cnx2MGJmpw14mJmm4vS UkY0bzPqUysd6PFCnoIPTKovWYEJfZkvmrRhJwMwdf22R3Z6hePnsCRhLkXHRkOorhQR fFsuR6fYBjjCbLGH62VSU22Lf7fvybcjFc0Fq+kp8qsJ9TxFvlSTrM2bg87ObEBbws9f J3intg5GDfdmu73zk1U4PNPOT2aENA5m0HTFeJkpFVvaJOIGim0EB3obA4zHXdsQIKjj TXiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ek5WpUKf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 4fb4d7f45d1cf-57cbc9d030esi1984610a12.50.2024.06.15.05.29.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 05:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215882-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=@kernel.org header.s=k20201202 header.b=ek5WpUKf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 78EAF1F21AFC for ; Sat, 15 Jun 2024 12:29:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77D404779F; Sat, 15 Jun 2024 12:29:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ek5WpUKf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 973513F9C5; Sat, 15 Jun 2024 12:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718454541; cv=none; b=OPFDj5d8A5hGcausJOxZ1e/CBerLLJ73b5p+V2A9J6m1UewbVqUud856lKvbJUKF2v+FRxqpB3yfXMux+LWtxz5JGh+ACNN/g5uVDlpHaMqrnaRzmoJ9dDsdb+VWohoBcm7nflhjFjRNiAukRxa44NqPYSjkxqMjeyXSFWf5j3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718454541; c=relaxed/simple; bh=RaTAnhVIlkpDEE+yfgbEyJaQBEXDFiPMDuwsBS+7ucA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nvL/ktiZ6J7eAEgo0hS2HEF5KCVn1FoU7y9vGo7So7QuACnslI5iIdeKELxmlNKWE5Xv80WblrWIayuDK14WEFOnRRxhKCTusl0UhN7B5v2n3WoVAeIqQtvgLREcTGplD/kqqGVxXL6wavu1iXGcDwJWTEMBv8F2kZONzS6RFgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ek5WpUKf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60E58C116B1; Sat, 15 Jun 2024 12:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718454541; bh=RaTAnhVIlkpDEE+yfgbEyJaQBEXDFiPMDuwsBS+7ucA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ek5WpUKfSeg3pJsF/wXAU4BCWs5pdismhzTlqKNvCRWpjTAvrQwBEooY59CQ2/pEQ Fxayyb+r7MheN5iVDYmsDbyPVdE8V3ZleJAs+IoY/YvWUcYfXKbna4fmsFutpXyyNr 1s4tTkNzlBxhRkeXc5SDmwKLuXRMVxBXlLD7z9hMeegxNbgqM3DdzA3QzxWM67roJI ONxuKaNjwB6fxGkYl9j405Yg9xQa9YzkOyOGsf+sOIWFWN4hIOobStNQUxM7YNm1MI LCkKAvzsR1/JElEgGfeUPaubVAGUmyz2SL7rDrESnLepj83YYTp6T+Qrko9ACpjxEX CeWY61oVS0DQg== Date: Sat, 15 Jun 2024 13:28:57 +0100 From: Conor Dooley To: Jiaxun Yang Cc: Rob Herring , Lee Jones , Krzysztof Kozlowski , Conor Dooley , "paulburton@kernel.org" , Thomas Bogendoerfer , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "linux-mips@vger.kernel.org" Subject: Re: [PATCH v2 7/8] du-bindings: mips: cpu: Add img,mips compatible Message-ID: <20240615-reaction-movie-b4c21f2c7d91@spud> References: <20240612-boston-syscon-v2-0-9f8e1a07fa63@flygoat.com> <20240612-boston-syscon-v2-7-9f8e1a07fa63@flygoat.com> <20240612-unstuffed-figure-966c90af52bc@spud> <20240613185902.GB2286020-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wExznsS/WrtDRpyq" Content-Disposition: inline In-Reply-To: --wExznsS/WrtDRpyq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 08:40:18PM +0100, Jiaxun Yang wrote: >=20 >=20 > =E5=9C=A82024=E5=B9=B46=E6=9C=8813=E6=97=A5=E5=85=AD=E6=9C=88 =E4=B8=8B= =E5=8D=887:59=EF=BC=8CRob Herring=E5=86=99=E9=81=93=EF=BC=9A > > On Wed, Jun 12, 2024 at 05:59:24PM +0100, Jiaxun Yang wrote: > >>=20 > >>=20 > >> =E5=9C=A82024=E5=B9=B46=E6=9C=8812=E6=97=A5=E5=85=AD=E6=9C=88 =E4=B8= =8B=E5=8D=885:39=EF=BC=8CConor Dooley=E5=86=99=E9=81=93=EF=BC=9A > >> > On Wed, Jun 12, 2024 at 12:56:26PM +0100, Jiaxun Yang wrote: > >> >> This compatible is used by boston.dts. > >> >>=20 > >> >> Signed-off-by: Jiaxun Yang > >> >> --- > >> >> note: This is a wildcard compatible for all MIPS CPUs, > >> >> I think we should use something like "riscv" for riscv. > >> > > >> > riscv systems, other than simulators etc are not meant to use the > >> > "riscv" compatible. All of the real CPUs use "vendor,cpu", "riscv". > >> > I'd suggest you add specific compatibles for your CPUs. > >>=20 > >> Boston can be combined with many different CPUs, thus we need to have > >> such compatibles. > > > > Then you'll need different DTs. Different h/w, different DT. >=20 > The board have 9 CPU types in total, with hundreds of different possible > CPU topologies. Maintaining separate DT for them seems impossible in kern= el. But you could definitely add 9 different compatibles for each of these different CPUs. > We can potentially patch this in bootloader, but for existing firmware it= 's > being doing like this for years. I can see for RISC-V QEMU generated DTB = is > using a single "riscv" compatible and I do think it's a similar problem. That "riscv" compatible is only supposed to be used for simulators/software models. Real CPUs are not meant to use it. AFAICT, your boston is a real platform, even if the CPUs are implemented on an FPGA they should still have one. If you take the OpenC906 RISC-V CPU and put it on an FPGA, you're still meant to put "thead,c906" in your DT. > I think it's better to document it and warn people only to use it in limi= ted > circumstances, instead of keeping such usage in grey area. >=20 > > > > No way we're taking a generic compatible like this. --wExznsS/WrtDRpyq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZm2JCQAKCRB4tDGHoIJi 0hrQAP9ZMKRb6PuwLNF9W3vEyByWW+d2FcQgNqw90Ghc+9dtJwD+MA3ymrvj4+Wg SXzI1xoFEHhYv42MKWI3kBIM5JWPVgk= =PbcG -----END PGP SIGNATURE----- --wExznsS/WrtDRpyq--