Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp139190rdb; Thu, 21 Dec 2023 05:17:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0gWNTnr9G4livoPdTBQ9hifn2lxXjQnEEF8YmwK1NTx+riAqDa2Z9ssdY1G18mJLsd+VG X-Received: by 2002:a17:906:3f47:b0:a23:56a6:97b6 with SMTP id f7-20020a1709063f4700b00a2356a697b6mr3596261ejj.66.1703164641073; Thu, 21 Dec 2023 05:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703164641; cv=none; d=google.com; s=arc-20160816; b=lZMdPlns5W1CdHzZSffIrnulG8ztODLT1D3KRCXCOon6r2hXUglnyNe9UtKVP8dIpM LGljXnGj3RcsYvxokxbAVXG87hCDk2sjNGG4Ns2EFFp08uJ5lFhN34xnr3nBE3UH1Seg 49X/rPS5HwoLAUcwxGwoiTnSVOLMHddxvjVgOD35gzqXzJEG7nFdYVnN8VhTPD4Rd3ze 4pXWYDlkb72/cpJkFNG0GPXblOuqmImvZnyMQzEnkmJcxVYx1bJ6NEDCMJ82wY8KTQTB QgrOGHJZgmyjOXCQQJFe9t7GCeLjsNcEwO9lYDK7WNxHDyY9ymFwiJalEn27XJz0F+IY ycGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=7EsZHydyX/G1UAFKvlY5coPjnLhbrVHw3RZygCuhY4w=; fh=yp8RhBrH0BlcpZzxLcrC3CvqD78IDt5WkHH1qKDONnM=; b=O2yLU+W6rHNb1O7Bp8gDG2aFlqD9cNdhUTCGu/3RBefnRKbQprYk8XhqMI5Qrmzpnb VkTPAti5XHPd7W5UgfZSUe4hk66ZBT8hYWL+4EGqQVnXFp3ejm6A8rnVWxfE9S1xJn/T 11MRZeKPd8hyG+5bdahSzvNTr3j+LWi8anng54mrktxvPbTcnjKXvh7OF6AveQPz0r4K BO5QipyxOEYDI6ZSCAowngXs0ZEL4V2xsi1BiYKcRuFJYhtAP0zov/O7bISp8Iw8yOYb EMIhkeamzCjiVOkewqDlVB1dyOezGuflNlRNWfqs32sMddbKtYsuMEdwyOTkwQOeu1Nj 3ucw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="w3cV7m/W"; spf=pass (google.com: domain of linux-kernel+bounces-8437-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q23-20020a17090622d700b00a26aa2def95si368906eja.116.2023.12.21.05.17.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:17:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8437-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="w3cV7m/W"; spf=pass (google.com: domain of linux-kernel+bounces-8437-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8437-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A8AE51F229FC for ; Thu, 21 Dec 2023 13:17:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC53B745C9; Thu, 21 Dec 2023 13:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="w3cV7m/W" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 930ED73182 for ; Thu, 21 Dec 2023 13:17:08 +0000 (UTC) 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-f54.google.com with SMTP id 2adb3069b0e04-50e3901c2e2so1001042e87.0 for ; Thu, 21 Dec 2023 05:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703164627; x=1703769427; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=7EsZHydyX/G1UAFKvlY5coPjnLhbrVHw3RZygCuhY4w=; b=w3cV7m/W9XpDm3Uv3Hy0VSN5m+wtlTmwjRibtbZkWQmJ72ohhddNcgycim2B1hvzSN 2lehhLXkPxpT98wVZFVxP+aAhsrWtqINlWCBMAIUjH+1CuyfMI4eilsYucgHGckGAPCZ xEFAHDEzlNfhNpjyQKGGiyS9F8Xa3m1BqN25k7efxLA8X8LI7Df73KlkkNY6jcqzYgET 2xxV++6F8y6OucwqXiSwdSVyh4bEp66VYcmwnog2qFUY9OrPlFbOD8y83An0b2Uz2qE9 N9TLUZ1B3rug8ZORIox0x8ricQziplW3RXce1j977onqayb6QtI478uv4wQOswloqOWG DXDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703164627; x=1703769427; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7EsZHydyX/G1UAFKvlY5coPjnLhbrVHw3RZygCuhY4w=; b=hI6C5/xQGHOHHnp+YgGWLeEKErFaPmd2McLdGr3nVMU7hQW6IUHstMrMYfchob47b3 vKtwsv5WuqXjRRY4ighF+PTJ1FZhaK+IY+RbctMNNUO5O0kl1WDtEQiM6yHkHpol7ANc MgN2FtogvfOb0dXEdHYNX6ut6QT0wTYGl8X+Pz1x7yyWVFbMT4GSYFZFMiNt5taJnVbu JTXhksgOMJ7BFkk2QPJgbVNlvD2FiXNYV+hPqTXr+eDDiDRvUHC6RPrZl+V0nuDXdzIp qVQIKCGb8Ybv209E3FIV1yE1D1IvPACE6VPqewzNBsQ8/Yf2HuxMD1FYotMsBkPePJ3H 4OMg== X-Gm-Message-State: AOJu0YxvDZwijkCob9KXPC5Qq9Lh2CZ7cr7Vsh15jyMzcxUhlKLrpXkR 0YDfDRZhZKfYruIRfOEPWhQL9NRSLSOQpk9y1ok= X-Received: by 2002:a05:6512:6c1:b0:50e:168f:38eb with SMTP id u1-20020a05651206c100b0050e168f38ebmr7408830lff.109.1703164626653; Thu, 21 Dec 2023 05:17:06 -0800 (PST) Received: from [192.168.199.125] (178235179206.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.206]) by smtp.gmail.com with ESMTPSA id fi1-20020a1709073ac100b00a26a96163d9sm475943ejc.43.2023.12.21.05.17.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 05:17:06 -0800 (PST) Message-ID: <9f227687-5760-4169-a86d-008f393de949@linaro.org> Date: Thu, 21 Dec 2023 14:17:04 +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 2/8] clk: qcom: gdsc: Enable supply reglator in GPU GX handler Content-Language: en-US From: Konrad Dybcio To: Dmitry Baryshkov Cc: Bjorn Andersson , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Ulf Hansson , Johan Hovold , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20231220-sa8295p-gpu-v1-0-d8cdf2257f97@quicinc.com> <20231220-sa8295p-gpu-v1-2-d8cdf2257f97@quicinc.com> <8d206362-7d80-46dc-8474-871fc53abc20@linaro.org> <35845077-7839-41bf-9eca-82f8b0be29ec@linaro.org> Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UE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NYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd 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: <35845077-7839-41bf-9eca-82f8b0be29ec@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21.12.2023 14:16, Konrad Dybcio wrote: > On 21.12.2023 14:04, Dmitry Baryshkov wrote: >> On Thu, 21 Dec 2023 at 15:01, Konrad Dybcio wrote: >>> >>> On 21.12.2023 04:50, Bjorn Andersson wrote: >>>> The GX GDSC is modelled to aid the GMU in powering down the GPU in the >>>> event that the GPU crashes, so that it can be restarted again. But in >>>> the event that the power-domain is supplied through a dedicated >>>> regulator (in contrast to being a subdomin of another power-domain), >>>> something needs to turn that regulator on, both to make sure things are >>>> powered and to match the operation in gdsc_disable(). >>>> >>>> Signed-off-by: Bjorn Andersson >>>> --- >>>> drivers/clk/qcom/gdsc.c | 8 +++++++- >>>> 1 file changed, 7 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c >>>> index 5358e28122ab..d1139c895503 100644 >>>> --- a/drivers/clk/qcom/gdsc.c >>>> +++ b/drivers/clk/qcom/gdsc.c >>>> @@ -557,7 +557,13 @@ void gdsc_unregister(struct gdsc_desc *desc) >>>> */ >>>> int gdsc_gx_do_nothing_enable(struct generic_pm_domain *domain) >>> I suppose the name is confusing now.. >>> >>> But at the same time I can't come up with anything that's less than >>> like 6 words.. >> >> gdsc_gx_enable() ;-) > except not really only gx and not really enable :( > > gdsc_shared_enable would probably be closer to our current > nomenclature.. but then VOTABLE also taps into the concept of "shared" :/ Konrad