Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1089455pxb; Sun, 22 Aug 2021 05:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPV3qcOGJ/NoETxF0L5Y0kvCihX5rlnySPHlUidMMPWdZ529anfb942MgUc60LJdong0gE X-Received: by 2002:a92:bf02:: with SMTP id z2mr20451070ilh.213.1629636093695; Sun, 22 Aug 2021 05:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629636093; cv=none; d=google.com; s=arc-20160816; b=kUxRHJwwzNo5NzQXLLz1n+GkpYj76WjJQ9hStKbKo7AaeNKuVK+BBVvxB8mxJvqDbf XcG5v25kOq6urHfCaldvlKmbGN0sTir/RfHaKJJM4tUvyPOpwx6XNldePxq7+ozKBJYl S+oYViFdEmBAS3MDtGvSGb/gUJZvf5fPhFFFQiZHv+jjjHd7Olf2fmkBKQ0u/gSu256j HCYI6wZSx4v7LJL3GcbZRaEC0z7xnqEGRI38LC0McE5a9Ifv4/81flrpUGAa1kwdvx8o j7PLV7lmuQpiA2SC774rjsVEdCQuGn5Ucn5bKcbFeRexxax9f0LXJnSR7fLELMWjt/ef A07g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9hAZvVxC+5hr/zV0P3H+RhHGV0rCo1KsCvnopC5/row=; b=eq542O6nFUFfhC2Te4aMLpyXG/81T8+2uFaP3mhTo0Q6YGjNlGCGYQjjptyrXiGDV4 L/v7pNwWMh4p0P7Cf0aZYb0oE8MTDPt5yi3EIA+m9zIIXWFEmbb0/Ti7mayAuItSs3Le fTnZ9Cdq/Ql2nThPnu7/J23uZsvOuCQ3sVYYp4p72EXaCL93aTL52ovi6AvWoIltEgdx PKDbfaDpdo434XDOrWVb9BKkvjvtGxmVi2BCZiHK98anR/X7hfpDykeOKF3feTma5fA+ 6M4qFLFPD9x2kOTvpVmlJN8DqulHrDsgiBnMbLlfkeR7sZVAC8D4R5MySmBIYtWPFDSN tBzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OeND9lDc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si13920335jav.71.2021.08.22.05.41.22; Sun, 22 Aug 2021 05:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OeND9lDc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231723AbhHVMj3 (ORCPT + 99 others); Sun, 22 Aug 2021 08:39:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:34910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbhHVMj2 (ORCPT ); Sun, 22 Aug 2021 08:39:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A5A746128A; Sun, 22 Aug 2021 12:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629635927; bh=muvvoBs3oUAwLkFvn/dXSRDVyPPnG/XlYO7Kc0FDXI8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OeND9lDcBkhjmaB/0jcrN29hGzyDqadcJYo5fYIyc8WoLfMY5k1SIROBaJB1US56E GWfQWCYB7Oyt1spE288LCfi9RqBusL0PGXJqpezCmNIXm7X3xLTwH0zDtIt7gsWNJf lUM11tmv4m/ah0q4XWJBL4Q1812vLx2OkaaCumbA7MQ9hISqgC1JAq2aZTYBcVTX/n tte5AIIXg9hU1ETbEc0wnYVrbizOam14+KG8o/T1Zt38nQ4OFFUWRsmpZgGTJVHsvw Dzbd4jPD9bW5fwp57JWr8cHB+4hK7HAskiUFuFIvqeVMS5jDcBUW+ptqW2QaENVHEa b2RpTlh/mAkww== Date: Sun, 22 Aug 2021 14:38:43 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Rob Herring , Lorenzo Pieralisi , Bjorn Helgaas , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/3] dt-bindings: Add 'slot-power-limit' PCIe port property Message-ID: <20210822143843.4f4985a4@thinkpad> In-Reply-To: <20210820160023.3243-2-pali@kernel.org> References: <20210820160023.3243-1-pali@kernel.org> <20210820160023.3243-2-pali@kernel.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Aug 2021 18:00:21 +0200 Pali Roh=C3=A1r wrote: > This property specifies slot power limit in mW unit. It is form-factor and > board specific value and must be initialized by hardware. >=20 > Some PCIe controllers delegates this work to software to allow hardware > flexibility and therefore this property basically specifies what should > host bridge programs into PCIe Slot Capabilities registers. >=20 > Property needs to be specified in mW unit, and not in special format > defined by Slot Capabilities (which encodes scaling factor or different > unit). Host drivers should convert value from mW unit to their format. >=20 > Signed-off-by: Pali Roh=C3=A1r > --- > Documentation/devicetree/bindings/pci/pci.txt | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentatio= n/devicetree/bindings/pci/pci.txt > index 6a8f2874a24d..e67d5db21514 100644 > --- a/Documentation/devicetree/bindings/pci/pci.txt > +++ b/Documentation/devicetree/bindings/pci/pci.txt > @@ -32,6 +32,12 @@ driver implementation may support the following proper= ties: > root port to downstream device and host bridge drivers can do program= ming > which depends on CLKREQ signal existence. For example, programming ro= ot port > not to advertise ASPM L1 Sub-States support if there is no CLKREQ sig= nal. > +- slot-power-limit: > + If present this property specifies slot power limit in mW unit. Host = drivers > + can parse this slot power limit and use it for programming Root Port = or host > + bridge, or for composing and sending PCIe Set_Slot_Power_Limit message > + through the Root Port or host bridge when transitioning PCIe link fro= m a > + non-DL_Up Status to a DL_Up Status. > =20 > PCI-PCI Bridge properties > ------------------------- SFP uses something similar for maximum power, but since the units are in milliwatt, the name of the property is maximum-power-milliwatt, to avoid problems. I think it should be done here as well, i.e. slot-maximum-power-milliwatt or maybe even maximum-power-milliwatt. Marek