Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2575399rdb; Mon, 5 Feb 2024 10:35:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9d294xFT2f2G7tlSd4KIm5McNohTtZM7cWV2lJZFitAMeZnFZDPij443dBm49BV3q/wDD X-Received: by 2002:a50:ec84:0:b0:55e:ec49:7aac with SMTP id e4-20020a50ec84000000b0055eec497aacmr78998edr.40.1707158111228; Mon, 05 Feb 2024 10:35:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707158111; cv=pass; d=google.com; s=arc-20160816; b=UAfqFJJY9U/PLbvXEvNUrtwBjZeYyYga0I78VderE4Ya+3U0O1ZUAs5GtvtqzT+GcA YMYwU7U2wa1Q6pSvWqMsCaHX5UuMb35KE3fiOntTXsolAU0oUgDbDPNou35vz5gGzv6V LVbnlXzmkYgd9/8+ezv6Sjlpo3VQySW+16Bip2SrUl2vgL6KDRCFRha+N3X6iKgtzCM1 efLvGPmJf50mkivjxLIyfddSM3OOaIbgWUXD+teJg3UG1NsXo7cPfdXXZyow07RGdQqW VmTfkaQrzJ/M5UoiF9Sk8GXPToCmMipI91Oos4pusrw0BkbuInatURsELeLrzCjPd+QT kCAQ== 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=d+lccAMV/dFg0v4hsz/DKF7khOiFxxZLVIJp+xGuVbE=; fh=wYzCkkrXaucwCVBxkDWF6bZQK28AiM2LM1NehQ+qgDM=; b=phdQ8Has6J8HUKujHhUK54jTmTyBYj/0T2WiqEcjRFYGl2sxo5PfEIS27iGo17G0Yp 6ndnreUmEac5EDDvTZyCIyMBiVSa4qhznxKAp0S/BudwZ04l5UpTT0XWsxDjdz/+qaHw SU/eHQLJ4iTvzYGXxoSiTtDUAIGi/xHER8ucx+RGD6vEEIhOhyVjrjf5HyhhSRDJCJr+ 1nx1KY+1LEJrdNN9ezSMtoxMl/DmyzV3zCLzFIRdEOzVrMcZXTZ+gWDmXhgM8oN/Z8aO z0PS5F/kfS8d5K8ZvvoY7cnYQVfhrZLu9eJOFkd/lZadWHhlmA1H3/XEAqvLF3uLpUs4 Uznw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g8GiVAHt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVfIsohDXS+YTzsHwA4N/29sXJSU5wXcwW2GHynvCdqmW8pmjBRFnDGckEiXfYxXOqfsNhV1deLs6fBVPeeigQya12YmGObwTloMvJsXQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z7-20020a05640235c700b0055f1223a0f9si171527edc.40.2024.02.05.10.35.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:35:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g8GiVAHt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53234-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 F15D21F25DF2 for ; Mon, 5 Feb 2024 18:35:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 253BE48791; Mon, 5 Feb 2024 18:30:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g8GiVAHt" 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 205551E88B; Mon, 5 Feb 2024 18:30:51 +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=1707157852; cv=none; b=gLaNfbbPMXNUsLB2oIL0mBdKhHgqAE4aoUvVzLTbo+ZaWhsy0uABVuQqHBwnAkNILWtALWpGB0GvDKOuRwx5jvpDXIDiPg1l8vJ7HiMEfkm9U17P+gKj1iLNhNY2kdlv6f29Gu/2SIBsLK15zq+0tfZRxEG73Nfhp+oTnF2SJ58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707157852; c=relaxed/simple; bh=tQLjJ7izoNh38t86eYr7yDXLCYcWj85o+UbAqKSJqPA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mNovr4oKzJu6rsXa8MyiX/uXzIIOjgBsMmtMrj+33se5G1fgixknRzjkqvdZf5gGqWs88iLyVlYp20fMtmOe+vEBaiItiMFgCfhVw+1nGTpe0F6oal0Kq3xXIJp2YOSvHenIVC58GDtA6SG1+6VJSNkTzr8qsvzMyOH4ZmHGX/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g8GiVAHt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24D41C433C7; Mon, 5 Feb 2024 18:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707157851; bh=tQLjJ7izoNh38t86eYr7yDXLCYcWj85o+UbAqKSJqPA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g8GiVAHtPR0y9nSHr7sXVb5tJVZCrlCzwyoyGORiC03yywrb5TQ57IoBiCBfvdelY i7gU1NNv2XHN/i1rAS8tUG0ZWJw0AB2Osf0CuWMScDUZChM5vrJ9JeT7FHtQhX1ruI 5smnEkDAjCkaIU3yO1ARCl54UZci07ZBoo+5+BRG97Ux6zbxUN//Oycn2JAH9kgTH/ Hmo7ZRtLhK194ATstLvnA23V30su11nNSiRmgwV1pk/UUYFo36MDhKwGAoj9FUP3gd kCzMCZV9U/tthvV2gli8XL3R8ZQ7Gk83MJY9pyZxSetHNVbNRDShYX+zQDV59HsICU FPnKh3ryQRAYA== Date: Mon, 5 Feb 2024 18:30:48 +0000 From: Rob Herring To: Serge Semin Cc: Frank Li , Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 5/6] dt-bindings: PCI: dwc: Add 'msg' register region Message-ID: <20240205183048.GA3818249-robh@kernel.org> References: <20240202-pme_msg-v3-0-ff2af57a02ad@nxp.com> <20240202-pme_msg-v3-5-ff2af57a02ad@nxp.com> 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: On Sat, Feb 03, 2024 at 01:44:31AM +0300, Serge Semin wrote: > On Fri, Feb 02, 2024 at 10:11:27AM -0500, Frank Li wrote: > > Add an outbound iATU-capable memory-region which will be used to send PCIe > > message (such as PME_Turn_Off) to peripheral. So all platforms can use > > common method to send out PME_Turn_Off message by using one outbound iATU. > > > > Signed-off-by: Frank Li > > --- > > Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml > > index 022055edbf9e6..25a5420a9ce1e 100644 > > --- a/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml > > +++ b/Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml > > @@ -101,6 +101,10 @@ properties: > > > Outbound iATU-capable memory-region which will be used to access > > the peripheral PCIe devices configuration space. > > const: config > > + - description: > > + Outbound iATU-capable memory-region which will be used to send > > + PCIe message (such as PME_Turn_Off) to peripheral. > > + const: msg > > Note there is a good chance Rob won't like this change. AFAIR he > already expressed a concern regarding having the "config" reg-name > describing a memory space within the outbound iATU memory which is > normally defined by the "ranges" property. Adding a new reg-entry with > similar semantics I guess won't receive warm welcome. I do think it is a bit questionable. Ideally, the driver could just configure this on its own. However, since we don't describe all of the CPU address space (that's input to the iATU) already, that's not going to be possible. I suppose we could fix that, but then config space would have to be handled differently too. Rob