Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1989378rdb; Tue, 20 Feb 2024 13:21:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXs9OPTcvfI2/loWiyyIRsc/s0I8hZtk+20Hv4QozmhFPrV7YqIfQR5qsF7RB206MuXhjDnOabzVieWvXEoOofi09Dva/EQtAxIN9nvoA== X-Google-Smtp-Source: AGHT+IEUxtBi+CEZz3L9VHwvRlh6t7RnJbgZVlNM/AqkpoDjuugNZ0KFcVVHNdcx0gf5rRMLFu3u X-Received: by 2002:a05:622a:3cb:b0:42d:bf4f:8453 with SMTP id k11-20020a05622a03cb00b0042dbf4f8453mr22211758qtx.58.1708464078220; Tue, 20 Feb 2024 13:21:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708464078; cv=pass; d=google.com; s=arc-20160816; b=h9x3d9l3bS+j3CMvmpC8/lCNvmy/zpkq55zJv3iIfsiy/jzxsAaK4Pz+pZOf+oJwOo 3F+fCd+KJwppcc1asLBju1q9mh6rLOsI12DDzG/hwY7vhsMriGWES5Y5zuCngWb4T9oj C9fWNw1Gi5u+dKK87uCTvqs9NrJUEbLwy868GsBAoYMS+tb94P/8bvPIui8VAwqbRB2v 94Bz2O+CpLiV99cmc5EVLJS2PiVG6Erha1uC6XOp1IXHNR2Fg7/kgla9sNuljvvs8vOj 7exRtTAgZP+IMd5UE0fTMHTDK+Xji+fHXRORlIqJtor4IJUOq3VSI2wyXIsW+4w2JiNf goqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=aewqZFQqAR8f8P67ZzKs5ZfSe1DqicHVEuGcz5XnehA=; fh=rBFHW64+b70RP77URDXxop10qNMfrHC+75Z6SACNnWM=; b=RgFAgE8Fbfp83yXSZw3d7dSaiFk/+XBW4jpCDmpqnCGA/gApSluwcNsSsvX3jtoyfi uAGTc0Eh1siRI2IXJQj9vZW1v5yTAoJVZZfTqM9ailRy8YHW+Pbu3XCmXgvQL0D+I57M SWlbztDSGeF7OBo8ERCIzAuHt7A8cc3WrqBAUwvGCb+oGoJtSeBW0xOAZ8K18ofTI3/S gKoBTsUenrFvcTWWOp5YLSandm1EM4RZD2eIIAnmFBGY3GD35CHjuEAmjR4aIdJP57Fv VocArZXi+N5Usz9NEPgMWrMiUZqxMfw0Rn8tKtM+ia047gzEHiH8fj1JoInl+nu3BF6R Pqaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kJ6oHUQB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-3824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3824-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w2-20020a05622a134200b0042e2c5abb1asi1889184qtk.527.2024.02.20.13.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 13:21:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3824-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=@linaro.org header.s=google header.b=kJ6oHUQB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-3824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3824-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 E86601C223D1 for ; Tue, 20 Feb 2024 21:21:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 502C4152DE0; Tue, 20 Feb 2024 21:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kJ6oHUQB" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B203151CD8 for ; Tue, 20 Feb 2024 21:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708464073; cv=none; b=SybJdQAIx+K/iqwhQFfgIliK4+ZNTrNHfDOvX4pf2Ynt8piGwQPdIeAGKcpQYK0tiJeJugGMxQO5+Xsunr/3kz+4wLH0yRH2BmFx5aZ+rQskhDcC0AZPI4/mrkLY5r5K6fm9JrDgPmEQyC0i9P9IQi/L2U6Q998bYuhqJTHlNIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708464073; c=relaxed/simple; bh=QIb79S8dEXh8LFbr/l1y4IqwiNhKYcYdvIOdGbZPR10=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=opaRIZuipo7cLgld8PB2Zjgyqyn/09uVdD1WxswUaaN0QJrBpKnXzu/Fp2Iq3/01aqpNrJ0qGBoA8o2khNbQQQKJeIV0bYBXz1zq4NIfbGVFLzLItmNs5/bwpM4qDUg2lccmvVvDzIGxJe/oRnOopk8Zcqx3jVftfwFqoVTs2lg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kJ6oHUQB; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-512bb2ed1f7so3094446e87.3 for ; Tue, 20 Feb 2024 13:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708464069; x=1709068869; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=aewqZFQqAR8f8P67ZzKs5ZfSe1DqicHVEuGcz5XnehA=; b=kJ6oHUQBobYzdU7nmQFkM3o1PTzoD/1gWwOCvaCiuaShekcaWW64iGJ+G9nrY2rEXR ty/VqImKjaPAXIHGh2hBywNFMUNF37eHSug1XHzVLgjEuUPekwwFHi70nlxVG97wMkg/ bq2pXuDPqDRpW+M4DRfa28qEVuwOVDtOvfgzl9ZKQAyxbnHpK0dxu2/pXFU1zwhFfArn IV/xkFys5PLZw2jigIjJCYO/DoTEXCkVImGCVNfGn7SAims0skOmVCLUvgVcn3LRdSxf kg/K6oybXpR6nWqv1J9MO5bZGveHi56Hr9fJ+/e0AVRuBXvjK+ot0MI1492XMKc69zwQ kEuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708464069; x=1709068869; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aewqZFQqAR8f8P67ZzKs5ZfSe1DqicHVEuGcz5XnehA=; b=L6ERkFBqduha1wnPtcKib5lZPVMQdI08jl2TYdtkHCRziFRwUfvklSn9i5K9sq2eBB lvHGDACXxhncYNIBO/GyxjN7CRoQpUbcqHiPPoGGyYiTg8/N47j3CkkS0Hvn+YYMWSP2 OtHEe3dfF6e9wnOPF70rl62UvR1s7HiahQnd4VwGJp8cNCgrDK7DYVHH9aDt9dnS6cLt hEBsU4WXqvSbbNEypR+MdDi9bLX8J2dxnfy3D/K2CgdVe9lkRfI4uV7/EPaABeDlsvWP NgqFHfrD81Z7+Y+ETsDBfXQ4EHwK6Gt7ZHWWepZ79/MgJ0KGngOVfkqYRZZxFzHAakdl APfA== X-Forwarded-Encrypted: i=1; AJvYcCW8wLJFIW8RFG/tUB0VIEB9Mzk2cGMLLIPfK++9yquMq8gYIHQb0KAQa3oynSdcJmGP6KpjDFP1qA4zs6r083HGqsY9/9iTBI95YRkgSn0= X-Gm-Message-State: AOJu0Yz2Dvwun+evvwvnUb71/hs7K8tdGGpxaK2JjheNEtLF+haDN6fY 4/NRc/s4c/Fq1x+4ytl1SKf3kWMcmQ17mCxAIwwGu05F/dkfM1NLqO2+dm9iCKE= X-Received: by 2002:a05:6512:48b:b0:512:b85e:9831 with SMTP id v11-20020a056512048b00b00512b85e9831mr3472902lfq.36.1708464069273; Tue, 20 Feb 2024 13:21:09 -0800 (PST) Received: from [192.168.192.135] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id q23-20020ac24a77000000b00512b25729bdsm972840lfp.31.2024.02.20.13.21.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 13:21:08 -0800 (PST) Message-ID: <17bbd9ae-0282-430e-947b-e6fb08c53af7@linaro.org> Date: Tue, 20 Feb 2024 22:21:04 +0100 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 14/18] PCI/pwrctl: add a power control driver for WCN7850 To: Mark Brown , Bartosz Golaszewski Cc: Marcel Holtmann , Luiz Augusto von Dentz , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Bjorn Andersson , Liam Girdwood , Catalin Marinas , Will Deacon , Bjorn Helgaas , Saravana Kannan , Geert Uytterhoeven , Arnd Bergmann , Neil Armstrong , Marek Szyprowski , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman , Abel Vesa , Manivannan Sadhasivam , Lukas Wunner , Dmitry Baryshkov , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski References: <20240216203215.40870-1-brgl@bgdev.pl> <20240216203215.40870-15-brgl@bgdev.pl> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5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= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 20.02.2024 13:47, Mark Brown wrote: > On Tue, Feb 20, 2024 at 12:22:42PM +0100, Bartosz Golaszewski wrote: >> On Mon, Feb 19, 2024 at 6:50 PM Mark Brown wrote: >>> On Fri, Feb 16, 2024 at 09:32:11PM +0100, Bartosz Golaszewski wrote: > >>>> +static struct pci_pwrctl_wcn7850_vreg pci_pwrctl_wcn7850_vregs[] = { >>>> + { >>>> + .name = "vdd", >>>> + .load_uA = 16000, >>>> + }, > >>> I know a bunch of the QC stuff includes these load numbers but are they >>> actually doing anything constructive? It keeps coming up that they're >>> causing a bunch of work and it's not clear that they have any great >>> effect on modern systems. > >> Yes, we have what is called a high-power mode and a low-power mode in >> regulators and these values are used to determine which one to use. > > Are you *sure* this actually happens (and that the regulators don't > figure it out by themselves), especially given that the consumers are > just specifying the load once rather than varying it dynamically at > runtime which is supposed to be the use case for this API? This API is > intended to be used dynamically, if the regulator always needs to be in > a particular mode just configure that statically. *AFAIU* The regulators aggregate the requested current (there may be multiple consumers) and then it's decided if it's high enough to jump into HPM. Konrad