Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp565272rdb; Thu, 8 Feb 2024 14:12:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGb1teyEAD09MYgBjYQBNscYvDmEdS7cq6RLFBIsS/4UQ7l0nwKL8vwDmsyMPXYcgxOxG5b X-Received: by 2002:a05:620a:1245:b0:785:9301:b6cf with SMTP id a5-20020a05620a124500b007859301b6cfmr965741qkl.42.1707430339274; Thu, 08 Feb 2024 14:12:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707430339; cv=pass; d=google.com; s=arc-20160816; b=DW+JeXfVMSvns/BDtfl+a3QWSsbrYCdNdS10Sa267LaLLFNdo2JFd+JbPnwBi1LeDH o4J/Eh9pknTMWZLQAKVNx6K0y7cZDBmuyUTH1p1cMq1Ec58WvrYmx4pmg4tGxrDAGtgR wEzxm8Eo3L5F7IjDyCnujqXr8A6Thj+jyPSC5RwAoLIdpJUpPTcHlO+A/BV+dKZ2l7DV yYLEebaxwkS/p0qg7rI/j7D4BWzHyzvjRlroFsBM21zC8pEt9p7pw+EjvtylwiJXSmJY pq3NeVEGHaS9Rn+C6ykt+t2wmiqL1bfhA6FZkhWrMXIGmmrEGaGBm3QQZGxf2d60jF7d NP1w== 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=ozS1J33UH7+bMfgp2W/Tn0D+EMvzWBM9SzGs4Qq4iTk=; fh=diICwcZ+IU5TmbsT1i3smnvtJnjRVD/iRZPxW7ps5l8=; b=iDy7G483sJ9tgp2jGVxSDAMhax6dQpHdHMlfvSbmCxPAsC0AwjJxudP8lBX/YrLg+p KCbM5pKwx0O+EUD003xCamD7sZ8CnW7iN9zo93Lo9g897HNMwVHeMdT7Y0F5IPuNz4PL 1rTwHx5aFU5aANxUy9H6b+xc+HIvdW6ixzUmj0yp59+ZNIloPglVm+ogwOr8fqLZ3Gx+ ZRMD0Hu1RqHuS2HzFCI4z6P9Xj0/eW+4IBCk0ZHYprwwHOZYM/PscXGT/LrYe4CGFlUD NkcFhIBO4mMP5nron3OtjCwTeSzEoidH4heqL3VtCkJRPWlH8yX9jegB41xeJVoyT4jj xaKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ezKlEX8z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58766-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVys7mfRHvakEkkz3ThN9xHuopPtmQlAnzbT2O6T+GUhEWOGNkt3vowYJIu7kAuUE58nPdq4wej96fwFTY8jTTibsKBmqhBYXER9RHeow== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l15-20020a05620a0c0f00b007858b831cd1si547182qki.176.2024.02.08.14.12.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:12:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ezKlEX8z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58766-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58766-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 058011C22127 for ; Thu, 8 Feb 2024 22:12:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A5FA5026D; Thu, 8 Feb 2024 22:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ezKlEX8z" 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 8843F51018; Thu, 8 Feb 2024 22:11:25 +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=1707430286; cv=none; b=Emkemasj4Kn9B0hsBTBmdVAI4xJKjLewIw4pLIn9Rj8NjAft3Ov4exq55Cl9dO749fk/GSmLAkm1EwRXA5jONPcxnKldOLs2gRcO5mfj/CEx7Gg50bM0CSf4KeWXPu2xpI6QRw3sGeWYy/1rZk3pyURy1jeGyO7oxc5XDRqoKpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707430286; c=relaxed/simple; bh=sUvaMWVgfLPM3IN3kP/Sfp4tQsrwPgz8kE7lgIpeMlQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Uctg8Ba5+Ya0ApxmoLyh3l5uFxC3YkUF1sIY34fgxmXIrT9m4MdffCRsMPfPYwQKgnlLBeEoqNJVye3o8EpODxQYrmXPt+urZV9vrmOAMEfY+kzUuh0ot/6o2V0pC7fbmZ6FIdI6CLxIzrRxlbNcCxjtSOVjnXwzu3lVjUqWWgU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ezKlEX8z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A895C433C7; Thu, 8 Feb 2024 22:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707430285; bh=sUvaMWVgfLPM3IN3kP/Sfp4tQsrwPgz8kE7lgIpeMlQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ezKlEX8zXSUDJqybqX+QHV4c2jcM/bJJNBIrg2J/YRLTPCdoyujq3V6ofrwZmRhuv 34m6lynRMNqP2vmpOMzgXyEdF+AnVKnDg0oY0qC/ZAfLJSTFz/Utl2UO7kfo6Fp1YL R/sDB/yKvsIZ9jOOsUc/s3euwlWCfQkwZF1sHVx0L+kUlwBkhtmgGgyWIsI3u5phT5 ZWwe6ZXuCcvxrvu+idHaE6wRo/wx7RxYuOv+3pfyIuhfsNNLIEuAg6y9bz3c5oI/z3 vRFoFGIyk6XpHps2Zm5SyO4AKiwfsYiyppsx0jkEqXnydb2o69eDvmMOnFGetMRmj+ uqDOCCYq+iskQ== Date: Thu, 8 Feb 2024 22:11:20 +0000 From: Conor Dooley To: Frank Li Cc: Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "open list:PCI SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , imx@lists.linux.dev Subject: Re: [PATCH 1/1] dt-bindings: pci: layerscape-pci: Convert to yaml file Message-ID: <20240208-nanometer-coke-07811889bafc@spud> References: <20240207062403.304367-1-Frank.Li@nxp.com> <20240207-yoga-mobility-90a728f6342c@spud> <20240208-jarring-frolic-8d4c9b409127@spud> <20240208-revoke-doorman-5ba34f39c743@spud> <20240208-outing-nature-74b6fab0cdea@spud> 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="1wFBWAeU2OQ4hQEl" Content-Disposition: inline In-Reply-To: --1wFBWAeU2OQ4hQEl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 08, 2024 at 04:34:19PM -0500, Frank Li wrote: > On Thu, Feb 08, 2024 at 09:20:08PM +0000, Conor Dooley wrote: > > On Thu, Feb 08, 2024 at 03:20:50PM -0500, Frank Li wrote: > >=20 > > > > > > > > > + reg: > > > > > > > > > + maxItems: 2 > > > > > > > > > + > > > > > > > > > + reg-names: > > > > > > > > > + items: > > > > > > > > > + - const: regs > > > > > > > > > + - const: addr_space > > > > > > > >=20 > > > > > > > > The example uses "regs" and "config". Where did addr_space = come from? > > > > > > >=20 > > > > > > > Example just show pcie-host part. Not show pcie-ep part. > > > > > > > pcie-ep part need 'addr_space'. > > > > > >=20 > > > > > > Okay. Again, please mention where this is coming from. > > > > >=20 > > > > > Ideally it comes from snsp,dwc-pcie-ep.yaml. but it is use 'dbi' = instead > > > > > of 'regs'. It needs extra effort to make driver code algin common > > > > > snps,dwc-pcie-ep.yaml, and update exist all dts files. > > > > >=20 > > > > > I think it will be deleted soon.=20 > > > >=20 > > > > What I am looking for here is you to explain in the commit message = that > > > > the endpoint driver in linux and the dts have always used "addr_spa= ce". > > > > Checking that there's not a u-boot or *bsd that uses "config" would= also > > > > be very helpful. > > >=20 > > > I confused. Actually this two part PCIE-RC and PCIE-EP. > > > PCIE-RC using 'config' > > > PCIE-EP using 'addr_spcae' > >=20 > > Yeah, I get this. The text binding makes it seem like "config" should be > > used for both RC and EP, so I am just asking you to check that there are > > no drivers in other kernels or bootloaders that use "config" for EP > > mode. >=20 > There are not 'config' concept for EP mode. Only RC mode have 'config' > space concept to get PCIe device's config space. EP mode only have > "add_space" for outbound windows. If other place using "config" for EP, it > is totally wrong, they should fix it. It might be a totally wrong concept, but it is what the binding said, so they are within their rights to use that name. >=20 > >=20 > > > I check old txt file, which have not mention it. I can remove it. > >=20 > > if you drop "addr_space", you'll need to update the endpoint driver so > > that it supports both "addr_space" and "config". If there are no > > endpoint drivers using "config" in other operating systems, and all the > > dts files use "addr_space", documenting "reg" and "addr_space" for > > endpoint mode seems fair to me. >=20 > It is up to how to create patches. "addr_space" needs. If you want me to > create one version, which 100% match original txt. I can do that. Then > create increment patch to fix the problem. >=20 > If want to create a basic work version like this, which included some min= us > fixes. =20 >=20 > The both method is fine for me. Second method just need more efforts. I don't have a problem with you making it "addr_space" as long as you check to make sure that there are no users of "config" outside the kernel and you mention in the commit message that this is a difference =66rom the text binding (and why). Thanks, Conor. --1wFBWAeU2OQ4hQEl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcVRiAAKCRB4tDGHoIJi 0jBnAQCTnRYkic8ytH+lBjI2iV6es96Hip0STSW/bDe2HdeSmAEA9DDxK8QheU2Q BzbwvLnS5EhLH7ofoK7nlfCGHTwkHw4= =lYmd -----END PGP SIGNATURE----- --1wFBWAeU2OQ4hQEl--