Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1457359lqa; Mon, 29 Apr 2024 08:59:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULpK2JIvl9VA3WBbI2QxCVnr5Moc+G8TEcYBAFlz5Z0KGujwooExjl0WE2JrvmJR0di/awC6iAdd+WvjlQUHTkR5oF2PtyC1zmkRBIgQ== X-Google-Smtp-Source: AGHT+IG5mLqo6tUDq0XzaKQXkxe+fsSXA4b/f/PNWdPmFEjquemM2+FAUQjO8Nz1Di6J6TUOpMwo X-Received: by 2002:a50:d75a:0:b0:56b:cecb:a4c8 with SMTP id i26-20020a50d75a000000b0056bcecba4c8mr10472991edj.39.1714406387499; Mon, 29 Apr 2024 08:59:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714406387; cv=pass; d=google.com; s=arc-20160816; b=R48tMMc1eh22FX0dkNcAzC4cNbJ34jsssepXkXkynlFJP6jtoCpWR7uzcfGOCLKsqx /u4I1Yl2N6N200ZHivDkR/ON3Iy++lWmNmF7oHQpCMuYdGCNsMRTOkFN9fdT7o8CfVF3 3PARF5VEEFv4hun881i2R3qWf6SaRHftWSkz+4J9q3YHGoA18f8t6rbsXevFInNWjp9Z Nwgc3UFAtpWUX8aI/ssNAzoc97U97qaZHEs9MoWfQJsA6um8zcyL0+7MeKEn94Q9Hwk+ ATbQ0bc4n7qYyKS5fFnEEWUWJrxnnyy2QFkLfsFEAUOkxvgt7OpYzyye5IF4LXO2ld5E /7kw== 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=nj1zTDbTQZwUzuGMQFm5SMGdVDyikdcP/0McarFDMkM=; fh=LPgeccYOuBKwW7ZrJuEVn6Q0U5B68FCCYgk2hzGtLoo=; b=vCsQq5e9VDa9yfGCDl9cELH40Fuu3b0KJAIJkunJeeyWxdCoT9b9NaFYqLngyoFZyy mBMVIuSneelLi+yr4RSHCGlaGj5rJQzJjFFZDHSHLhRZoD55GFgcCj6lkarsb8IQ6G+x d2qqujA6y+vmZgJSgvhlEeJxS4h3raTqcgr5Fse4cAaFSWdkt2VDLp9WoE+OO1lJRAyV PLPS13Qh6pXmcrKQYwYNjXQwx43kI4FyYeAdkUVnNy6fP0YOaDDVwz/H+c0QTfka40fK tZY0BndZP83iqQXAUegsIEZGOZ8dFrlSS7YzDLhXWG/XxRw8fyS4gMnXgg6jICbS2lIn 3Sjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uk56Xddm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162636-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q8-20020aa7d448000000b0056e6a049178si4601195edr.268.2024.04.29.08.59.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162636-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=uk56Xddm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-162636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162636-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 3AB171F21FDB for ; Mon, 29 Apr 2024 15:59:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3280E85280; Mon, 29 Apr 2024 15:58:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uk56Xddm" 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 58A88839E2; Mon, 29 Apr 2024 15:58: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=1714406305; cv=none; b=Jjas4ZZIM71RlNtO8BRrdPVz7Xful/SmtPXRLcOBN1jM5jUwQaZg8ioXQv448DzdpSqIZ248BG38B6Jnd5qa2mpUCYX5qz1iOKcHvqmdAiBg6kMxDNRUtT0sj//DSHen+LP1HBeobojDPZ7iqDVMv8088Jbcd1+Q5sZ6wBIbIxs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714406305; c=relaxed/simple; bh=w2p2+FlqKmcMpgXu5J6HinktIQLlBvOsnXvudXyY0ZE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=N/VCsWnl5x+JBf6XKsCyKz1ocjYYyq2E2HJ8sSNSdeEYZ17lTYku5j3p7MNvysiK/PsTdUn9s4przI19SQZBLTkGLsOVXevZaZrD+JyEvq8pnjKPHjrdCYV4QXt3m3v6WnJdlrkVyo/iyvIbq3+HSpKBAnLiLyXGwIOJSJRAKfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uk56Xddm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C8F9C113CD; Mon, 29 Apr 2024 15:58:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714406304; bh=w2p2+FlqKmcMpgXu5J6HinktIQLlBvOsnXvudXyY0ZE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uk56XddmE/1h7ryY/qEwqhBowp4RnkabxXAj5MmwmF5mcI/By8uXeEPPvDKCvsaDc 2mBsI6d8aeBlbBdEpT31q2dis0lvHCs5ph0GI0MrwSmYjk0IUIKKqboxYMxOC6GWhD n7JOzw+GUVK7wpQurkDT6fI1nFrqTHI4HpqOVS5QF0kKqGQz+tLDNvFWe55/GK+UuW 2X0bc1Pm5e7O7b2CulMTA2wy21dqQNQZKT4po9HdPL85zAap0aYMubcrmTySv4sy71 g1oU+pcuzDcK+tfhZroQjgXy2dGexgQ7Cbx9ZYEjoZeXTuIR8+5QNv8Cff9THdR/8E ZzoMv5e+zqgMQ== Date: Tue, 30 Apr 2024 00:58:22 +0900 From: Mark Brown To: Andrew Lunn Cc: Oleksij Rempel , Kory Maincent , Kyle Swenson , Liam Girdwood , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Thomas Petazzoni Subject: Re: PoE complex usage of regulator API Message-ID: References: <20240426124253.56fd0933@kmaincent-XPS-13-7390> <57a79abd-722c-4907-b0e7-2396392ae675@lunn.ch> <20240429145203.219bee06@kmaincent-XPS-13-7390> <5063429d-5dca-4538-b240-50c35cbf5e93@lunn.ch> 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-sha512; protocol="application/pgp-signature"; boundary="bo8r1wdIHpgK6ehz" Content-Disposition: inline In-Reply-To: <5063429d-5dca-4538-b240-50c35cbf5e93@lunn.ch> X-Cookie: lisp, v.: --bo8r1wdIHpgK6ehz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 29, 2024 at 04:57:35PM +0200, Andrew Lunn wrote: > I was not expecting over-provisioning to happen. So prioritisation > does not make much sense. You either have the power budget, or you > don't. The SFP gets to use a higher power class if there is budget, or > it is kept at a lower power class if there is no budget. I _guess_ you > could give it a high power class, let it establish link, monitor its > actual power consumption, and then decide to drop it to a lower class > if the actual consumption indicates it could work at a lower > class. But the danger is, you are going to loose link. I suspect these devices will be like most other modern systems and typically not consume anything like their peak current most of the time, for networking hardware I'd imagine this will only be when the link is saturated and could depend on factors like how long the physical links are. If it's anything like other similar hardware you may also be making power requests with a very low resolution specification of the consumption so have conservative allocation end up rejecting systems that should work. --bo8r1wdIHpgK6ehz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYvw50ACgkQJNaLcl1U h9DjNAf+NMX+1h+nLe7YsdoVEifR8tW/hw3s5gl7CudpxtOjlkqGSUJhP3iVHc9r 7IhxAGGw6ENDf/uChIOGv+sE+Ev8TO96q9Jz6eiUV9SYisWkfU/8csDGrlOjRqVf 6g7f0JY2IsvtMqBgef1ok2ov899wACM3EQS/lCyVjsBNSYzFIB/JwolzH8ynPDz+ 7busVF7vf/+6QU7caq7zMHEeVHB+KZcCgpxlOk+wh7Hlqqfaxeg6qhYDE8mpDG0/ 9PBZz2F+gHSx9+tDCltfB6dzUpbzE8l6K/Rqexgto2mAKy0nF17iSPWCd+++8dOD lfwBp9OMRqV6UMIgxHqArbktai0c9A== =oodJ -----END PGP SIGNATURE----- --bo8r1wdIHpgK6ehz--