Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp159970rbb; Fri, 23 Feb 2024 16:02:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPsXDOi/cZJwRkReCogQAIyRNXI0O1FZhR4ZlcWXzDyc6sAlm0R/u3d1xDGy5I37ue284rHfGcLFcsEzYUMMtyJhD5+/rCNKZ8ZUDehA== X-Google-Smtp-Source: AGHT+IFuqNhyJAIy+IqtJZMRD8/wLq6rsZ4DtJ9H8diKZ07sPTG0lfdF61Q1+HaizeBZWWX1MqRM X-Received: by 2002:a05:6214:c88:b0:68f:6279:eb04 with SMTP id r8-20020a0562140c8800b0068f6279eb04mr1945682qvr.24.1708732940892; Fri, 23 Feb 2024 16:02:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708732940; cv=pass; d=google.com; s=arc-20160816; b=IADDZMgwt7W2/AMVloMF+n0EYrC1VxpcG/YGFWr0L6Z1YSOcJveyCgK31HpDA8qoRP C72fprY/7Ybi1AOfXJc0WtJ4aMqpkT7FZS4eZJteJh6ZVGLCIjxTI9m1rBr5SJIQ13CX pyjZsCndgvRywH3sscfVh0dRWmuyYAoKd4jgZXCxeCq6Q8JdLw8BgUWQlyTK35Fic1MU /KaqN//4otS80BVPeRdDFMMrW07nRcRxey/VfTHccQ3D13W3CeGMg99B61UEePVnBS80 qMVqD17d0jVHNoIDfJfa7jx+KIXr6M1hrG4somIX2yDhga4IJBfzEGdvF6Sf3Rs8JwfZ yDAQ== 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:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=vhD3DAWbNML3SlHPwjoNnwcDxDI9+wbM/QZnrMUkqLY=; fh=VMrwAUsyEmGkhMVZRc+ywOI9s8/JvCQCf9QdXeeYdjg=; b=a9vR3SS2F1xEHgD+QjodANnnobJGhHhJwrBzF6EjT4cQR/T0p3VBYiLktVXvlKlS+m YnWMHcerbx7Ol7+WiBEFu8MphtT5IuwVU4lLht8odNoj6IccBnA/GZNceeDBdpa8twrM czLiwocuEo2jwA+GZh5v9mYyLaY3xxQo0Gx5rLGPlP17uRvHFLZQYUYD7G1FrE1kANbs nNqEH6PhAYwbyNrkGnqFZIG82SIH9yIuO4o+Vz5w4uNoaHFg49+PCzA6ph+ECphoM07H Tab5mdTrSYhUctP6QxHoUk0ciFRrKp4404cnxkmbUnWPpp+U9eA6cdUJMSC/Hz+iH5kB hPcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vOlUYHHT; 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-kernel+bounces-79332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79332-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 eo1-20020ad45941000000b0068f9fa81215si33111qvb.240.2024.02.23.16.02.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 16:02:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79332-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=vOlUYHHT; 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-kernel+bounces-79332-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79332-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 781EC1C22235 for ; Sat, 24 Feb 2024 00:02:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 882868F7D; Sat, 24 Feb 2024 00:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vOlUYHHT" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 DC8A5138A for ; Sat, 24 Feb 2024 00:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708732930; cv=none; b=lpudAQ47/rX/WNntfPl6KJ5d4jhOClBvnGkcYRiWXqxj64ec/Zp1PatTeE50BLAl/qGG2Fnfzt8huA7owuwvHmQkz8VFbSwAmqbTy2SqdXoY5r+eOtM/xu8qtqq3JZkYCmnCeG9DaFqmRZDs+6zYzLbF/c02lgv/IfDOq+24QV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708732930; c=relaxed/simple; bh=UbVxq4wTDHlpK8UWuiEzg3/9BzAum9YoZK0MzyDnies=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=s6TLS5lZiGPKxWaXc606D1ID5no228CdYSf+3uvSxzusQ17YDhic3JbkvOQDM6jtMbgEdNV1JQD50Ys83k4uC/WdwADhoHgdIE7X7WZsEI1YaSzm4a1df8UtcX/l7p44F7y9gAJbNrAhEIokS7SzHVegtMQ9neUMeiVjbRhPf6k= 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=vOlUYHHT; arc=none smtp.client-ip=209.85.167.41 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-f41.google.com with SMTP id 2adb3069b0e04-512c2e8c6cfso1677865e87.1 for ; Fri, 23 Feb 2024 16:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708732926; x=1709337726; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vhD3DAWbNML3SlHPwjoNnwcDxDI9+wbM/QZnrMUkqLY=; b=vOlUYHHTqPwK5KiY7ZkcKCx1y0LiAA1nbk3AureYlkhU7V9P8DJ++8I5QenxAv9ljE cu7KxTJaweLjuKvUvGvdp4Y51djzkOOqRAmxgM0zXZgHR/jdA17kSiQQ0xPz7+JW8MdF xB0VQLaSvCUNyS+z1NLAJ0nrJtmAArcif2D/lNYWc9A3AbX5i9dR7ZN6shL3ylWfl7YG RsCx+UN44ry9jasSLwvop93Y0Ggkt1aMaKxqwWlO6RS4jQxHRzXDDz/ACxJwrUEkZNlT AWxvRk6yoiiMh8tw9FM5HfelVCqntT2vCwL08e1Ib4+90W7GFihQ0+ezsG6Lg1C8xJQH vvKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708732926; x=1709337726; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vhD3DAWbNML3SlHPwjoNnwcDxDI9+wbM/QZnrMUkqLY=; b=TN9zADoL2oV+O6ro3drStJchMT9NNOyYQWTAORRWJIFBt3jqK4YsIx8jAF34jK5zD0 ZgUFb2gG2IoPOBFbbjMn6lQisMu0S2xozCpEL7HKy8/YnT+vOhMa0b4avW9hE2AEUYUq tFQ5lxwQ232cOUb9ZZ3WvSs15/+4ztD6l9Tnlak5CmUXqEm5CzolOUFQKjJBXiCfWyFi rSLlcmBL44pCLJFA4SA9t71JXB0oohdf9/UmH9C3wYdy+7TeoOSGEONoE+33TFjLBt29 IjiFY1zJPi+aXpiaDpaqIk4fT+cHEOHiktEouEomRGkP6YLUtwSFiP4kgoTFO8fpaRyq eeyw== X-Forwarded-Encrypted: i=1; AJvYcCVInK3lTFbMJX1zZUjuBIhmLAYTSBUQoRsZNZUBL6e8FatnZESDInSBdgoupjhujvGgvDWl1C5vkXw9jtPT6QwT3LFZ0brU+tG1Jr9V X-Gm-Message-State: AOJu0Yzh20qjloqbTjmoQ7lhVxt4PtdPbJHjyCmsj0rumg50+56LIu99 oQEYvtC+AW5bo7z4xc5wNFxkht6PSizNmjO/1KWRba9GGL0zFYLeQzzZtD2BDlc= X-Received: by 2002:a05:6512:242:b0:512:b935:c542 with SMTP id b2-20020a056512024200b00512b935c542mr774317lfo.59.1708732925952; Fri, 23 Feb 2024 16:02:05 -0800 (PST) Received: from [192.168.179.2] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id r7-20020a170906350700b00a3ecfef7f1esm61330eja.189.2024.02.23.16.02.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Feb 2024 16:02:05 -0800 (PST) Message-ID: <53f486d1-94c7-4dd9-89fc-d80a92301700@linaro.org> Date: Sat, 24 Feb 2024 01:02:03 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 3/7] PCI: qcom: Add ICC bandwidth vote for CPU to PCIe path Content-Language: en-US To: Krishna chaitanya chundru , Bjorn Andersson , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Rob Herring , Johan Hovold , Brian Masney , Georgi Djakov Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vireshk@kernel.org, quic_vbadigan@quicinc.com, quic_skananth@quicinc.com, quic_nitegupt@quicinc.com, quic_parass@quicinc.com, Bryan O'Donoghue References: <20240223-opp_support-v7-0-10b4363d7e71@quicinc.com> <20240223-opp_support-v7-3-10b4363d7e71@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUd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6UPQAkZ4oj++iIGrJkt5 Lkn2XgB+IW8ESflz6nDY3b5KQRF8Z6XLP0+IEdLOOARkOW7yEgorBgEEAZdVAQUBAQdAwmUx xrbSCx2ksDxz7rFFGX1KmTkdRtcgC6F3NfuNYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240223-opp_support-v7-3-10b4363d7e71@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 23.02.2024 15:48, Krishna chaitanya chundru wrote: > To access PCIe registers, PCIe BAR space, config space the CPU-PCIe > ICC(interconnect consumers) path should be voted otherwise it may > lead to NoC(Network on chip) timeout. We are surviving because of > other driver vote for this path. > As there is less access on this path compared to PCIe to mem path > add minimum vote i.e 1KBps bandwidth always. > > In suspend remove the disable this path after register space access > is done. > > Reviewed-by: Bryan O'Donoghue > Signed-off-by: Krishna chaitanya chundru > --- [...] > > + /* Remove cpu path vote after all the register access is done */ > + ret = icc_disable(pcie->icc_cpu); > + if (ret) { > + dev_err(dev, "failed to disable icc path of cpu-pcie: %d\n", ret); > + if (pcie->suspended) { > + qcom_pcie_host_init(&pcie->pci->pp); > + pcie->suspended = false; > + } > + qcom_pcie_icc_opp_update(pcie); This doesn't compile (you rename it in patch 6, this is patch 3) Konrad