Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp44745lqh; Thu, 30 May 2024 13:28:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0jUi5T/RbR3MXwFxBdzzn+XajqM2eV6HjFHZXOE3OHRJcxBZHXwIpTQDaeEtmLoOwXbm/Lp8V0grLPzAkppIY9NBefbQFeOXjqr4Dww== X-Google-Smtp-Source: AGHT+IEv9o/WPzfhQumMOMDrykGYD9YJTMuWbpX5vbw1a0ygIzNyGtqOWVHZB6LYgRwWwLvTc7Vo X-Received: by 2002:a17:903:22cc:b0:1f0:67ea:cdf8 with SMTP id d9443c01a7336-1f61a1ec6e0mr35756075ad.46.1717100929692; Thu, 30 May 2024 13:28:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717100929; cv=pass; d=google.com; s=arc-20160816; b=T2LzdsK0mv/KsHx0rAJuonQqjZWh/WjO6OI3bnG5aE9kEgXg8IfRGX5v9mFPjzKyZJ JTHkQNyP/++jWSHwRhCAxalWCx3X980fL5TaM3Z3xKGMxiHvfCX/5n1t5XaUhvfxCFcK K2FZHhA9vjU+4znphIHjD6QZapG3sKh1KJ700RQBReOqvI1zVVtDhMfIf0aCFBtFx46z +7qM4gzFcXRpOm3+jMEbfgW/4b8EKlHHp2zV4M0j9hqJwn0HGWErjE7eLqx2AHW1Ifec xMzBZNBtAOWwBjL/dyMdJ0crYm372Zm4MsLOR/Oboyt1QrQ80yuYoxRK5611m3NMtmq2 gZJw== 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:dkim-signature; bh=A9v8zIG2nO6qcSOd8DMaTxsgywGvI2zqZhB8aRF0VXo=; fh=8aYZlA13KShyIHI2ZLZBJOztL7y0gtql9un4RM4kRzg=; b=Sm2vkGUIczu95c3DJxirfgRy7dHatfYMEQ2lDOKR5HXrAawBmHdzhACJlTMm1NyAg8 NnjfLrk81SmZqw8n5lpts2aYKtz3POEzpCiU+B1JLn1omP6+rs3GZTpb2+HwIiTR9EuW q3j3LA9sNSt5rBuYxTnGLYmL8CFaiBLALRUdyapWR2w3kLzrjOr+YMMy0T3BWeF53n2B J0VV8RF7W/X/AZxRB8dLmPC1ng9AlkNcL17F++MOdkZkPipDh4IJiaOdcuE1uDWPAIJv 7YN+IH+WbjCFNaX0I8G3YpxHfDRAaal70/sZUZmmylHjFQU4IamE0MGR/wZMyGM74pOX h1fA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=iISsR6bi; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-195886-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195886-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 d9443c01a7336-1f63241758fsi2561685ad.571.2024.05.30.13.28.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 13:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195886-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=@ravnborg.org header.s=rsa1 header.b=iISsR6bi; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-195886-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195886-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 B69442830C5 for ; Thu, 30 May 2024 20:28:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 700EB143888; Thu, 30 May 2024 20:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="iISsR6bi"; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="npM9s9pq" Received: from mailrelay6-1.pub.mailoutpod3-cph3.one.com (mailrelay6-1.pub.mailoutpod3-cph3.one.com [46.30.211.245]) (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 A5C5146433 for ; Thu, 30 May 2024 20:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.30.211.245 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717100915; cv=none; b=g07EGhgL9wMqojItIElKez/WzKZMy8GCNVcwynGLvNj3j23zi/lgV4cvjJ4ftwCmgVHt80n6TsqoaHv1ZqcPxz3bWnggmHRzqOWILMLh0dulnIUUyAh4qNAzIz1BAzFYdeRzh2rN3R5RE1OLSTkiaK5Aq+etourwROSUeXDvyzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717100915; c=relaxed/simple; bh=J4KBa91vTwvjKyQ32cxhENIxuhAvRMoEF4xMj9S4DD0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TTgucsLQewob+YdjPZzyxMta+H6f1Z2/INPWvc95xWkBO7rLUnpvi2V2lZbwxGIt5pDDuyH13XAJGpwuuv6kDALAS2VG5f2jzTG4YyY9ZJxjljy42g7b9TXVuajWSG0rnafGlMXpwTfrCyYMqK9oHWIQpVzhKiQ+L2SCffcW4nI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org; spf=none smtp.mailfrom=ravnborg.org; dkim=pass (2048-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b=iISsR6bi; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b=npM9s9pq; arc=none smtp.client-ip=46.30.211.245 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ravnborg.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=A9v8zIG2nO6qcSOd8DMaTxsgywGvI2zqZhB8aRF0VXo=; b=iISsR6biyfqy471hHRm4DcrNBvLRjGn6Rrlbq3LLjWeWegmckdRQ7ry1JBB7Vj7a6C608YKq/4gzV GhnTDBMWdJX3H7ZbtPcaCyYrLeKyvl4dj9vcUVowseqybeN4TSAnIKs//2e79NYPYpRroXOO5oRcwC Km9d9jNyeLezx+BYjNQ+OUhWvuG4imtAS7XUnu/P1cAo9lAzSk7R26jbq6aFBW71lXThwYMBA+tnxE FQJH2zDbVfopF8YvDr5wVZWjShv0YNUQK82VrCOtJSKQtHcIAmweEydYnJqZAPnJyekswHejAN5FWd t5Vi+dSBIiahJZHVGGbgur6q+eZnfPg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=A9v8zIG2nO6qcSOd8DMaTxsgywGvI2zqZhB8aRF0VXo=; b=npM9s9pqoihScimHGnN8anoeoASHuow7Z4UzFsgkJiRkYLCiikfF/CQiv3D5PdqbVNi9OYlVZjlHX Kj6jhpyDQ== X-HalOne-ID: 03b25ac3-1ec3-11ef-bda0-83bcbd00a978 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay6.pub.mailoutpod3-cph3.one.com (Halon) with ESMTPSA id 03b25ac3-1ec3-11ef-bda0-83bcbd00a978; Thu, 30 May 2024 20:27:21 +0000 (UTC) Date: Thu, 30 May 2024 22:27:20 +0200 From: Sam Ravnborg To: "Rob Herring (Arm)" Cc: Saravana Kannan , Andreas Larsson , sparclinux@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] of: WARN on using default root node #address-cells/#size-cells Message-ID: <20240530202720.GA1656150@ravnborg.org> References: <20240530185049.2851617-1-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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240530185049.2851617-1-robh@kernel.org> Hi Rob. On Thu, May 30, 2024 at 01:50:48PM -0500, Rob Herring (Arm) wrote: > While OpenFirmware originally allowed default values of #address-cells > and #size-cells, FDT has long required explicit values. It's been a > warning in dtc for the root node since the beginning (2005) and for > any parent node since 2007. Of course, not all FDT uses dtc, but that > should be the majority by far. The various extracted OF devicetrees I > have dating back to the 1990s (various PowerMac, OLPC, PASemi Nemo) > all have explicit root node properties. > > I have no idea what exists for Sparc, so disabling the warning for it. > If any other platforms hit the warning, then the warning can be > disabled for them. > > Signed-off-by: Rob Herring (Arm) > --- > Sparc folks, If anyone can dump DTs from some Sparc systems it would be > helpful. For sparc the format looks much different - see: git://git.kernel.org/pub/scm/linux/kernel/git/davem/prtconfs.git This is dumps from the prtconf tool found in Solaris. Looking at for example t1000 it looks like #size-cells, #address-cells are used properly. Looking at the older ss20 I see no use of these. Looking at sb100 (old sparc64 machine) I see inconsistent use. My best guess is that sparc32 machines see little to no use of them. sparc64 use them, but on older machines the usage is inconsistent. Sam