Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp138865rdb; Thu, 21 Dec 2023 05:16:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwv6DJwnMlGs3/AtQsoyvWOfOyITdk33LKuEPOOcbHbsiEiq1ZO3CY/YeyuC/9vDc7Jq6O X-Received: by 2002:a17:906:abc3:b0:a26:854b:7df6 with SMTP id kq3-20020a170906abc300b00a26854b7df6mr2251952ejb.97.1703164606109; Thu, 21 Dec 2023 05:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703164606; cv=none; d=google.com; s=arc-20160816; b=zXH7NioH5oN0AwekKqSE2s94/f+rTBO5Ax2yGWLY+e78wQ5i6/lzyU0+8IHfxEpN4m +tiMpOs358YJo6pjF+XETC5ILTvjDNS2zrltYexRmsbEtWjhLcfdeo8NnUtf+RZxEB03 PURkQKMNkc8K788VIsGEKUxS+pGPjLkUTvaUX7Twbgx8EMGUybewbDD/TCbPFiklkfiE boNhr6dIZruNs5bfiZ+acpDh922YNfbHO09vjzvJHM/qKy7HWVU1ZeFADebcQriP+3Sd 8T+hHHslX/30SZOggOUOU00uwuzvFOwm27CBHNw6Zb9KVaz8SPs16nMyNLx5oGyz8ejZ u8Cw== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=kdHoE++RuHpjQ0PWVNnuYDkUboit31reXoHLQDgiAbQ=; fh=yp8RhBrH0BlcpZzxLcrC3CvqD78IDt5WkHH1qKDONnM=; b=tnpQtKfEcxcSB3+u2/ysYNd+/sBlDSAka5uC/SQ06/3kLa5fui2LEVduzNuHZelbnC PFymjMtoI1un2h45GB3bbdJEd8/Ioey28hoC81mhFyvl0FAAVdZpnZO+HmltC045eIRw wBXls6AzC8tNjFf9yiogQQ2VKJke8NNFnW0pWB/D0hgyjpvDea8Hn5gB8fOuUAo/0xun qxGuNipN0+HhT3LgqvDprZ3SaGsQiaf3iysgd/n1x0w55w8bhWMxBDXlHhXXqCh5EukX axPL2Cxu/vMwJ3PRJL2unWXc0e+lGfZhwUqS9SIpYwkJVZCNY3WkjYZP2amGqlMpWswq JT6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R5+YfsVS; spf=pass (google.com: domain of linux-kernel+bounces-8436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8436-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 q5-20020a170906144500b00a23645fc93asi849432ejc.886.2023.12.21.05.16.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8436-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=R5+YfsVS; spf=pass (google.com: domain of linux-kernel+bounces-8436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8436-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 AE3701F21898 for ; Thu, 21 Dec 2023 13:16:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38DB0745CD; Thu, 21 Dec 2023 13:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R5+YfsVS" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 E199573186 for ; Thu, 21 Dec 2023 13:16:34 +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-ej1-f42.google.com with SMTP id a640c23a62f3a-a268836254aso89538866b.1 for ; Thu, 21 Dec 2023 05:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703164593; x=1703769393; 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=kdHoE++RuHpjQ0PWVNnuYDkUboit31reXoHLQDgiAbQ=; b=R5+YfsVSsNLyNzLbKo1nG1T2CK4jdFanFI8CjZqypmXJUHym18GUcE7MO6DwA/a5BA 0CwVIkNRPa/U9F2wlNURZrmbK4VCvxQMFDr1YzrfrWuVI/xwFnaaiKWbsuBUow6NBUih xOIkRCqtux53a6eB9i4zuLGPDiNlPGOWSdV9Fy/5Y4oI2W9k5GgIh8zu0JQ4RWuHFSTb vS1fWp9yfIYeDNoqMPUxpznhzGGvM/1uPmuwYN4Rhcw0PBLRP9XXKzew0Mkk3UEH43e3 mASjnSy0EXjZNNzzgDE3Ett3ad8mv6jzw4eJX/5OV/+4m5pR84MR+ZjYALeUqbaMqS8s qW2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703164593; x=1703769393; 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=kdHoE++RuHpjQ0PWVNnuYDkUboit31reXoHLQDgiAbQ=; b=Ppx2NoxU5FLJwd6Yey9YeTBBBui0R441q0WC9SlyYJp3ve0G5ZOFn7HhwSPvnCNQLR C4njQBDQZIgc1y926lXnKQfz13qhG9rybA+NcoWtJPt8Wp13wPDRB8oskQiKuHFABy3b qdOkdMud//jmZZjJQ7cun+dxc7AL8M30DaKK0p54Tp6i7hWz68+Duxn1exAL6Zsgj+CJ tHn8eyd13n6asH2gPZLTV7PkIQDA6vISTRUQpxnoWOi0mC/h/xIc12TrcKL4baR3vCIq DGXI7Tfq8i9+eeFiTWHjndYa0xjjjl1Qx8luoI9DIy3XReQ8R72Fb2psV0GCiqUynVT+ 6Eqw== X-Gm-Message-State: AOJu0Yxw4xCrF6AkOonYjSL5F3Az4zgr1rFzpU1WEB8h6FXMZ+u8owkX SncNrGF3TbuiK6xS4dhE91j8ow== X-Received: by 2002:a17:906:4e11:b0:a26:96a6:cb5a with SMTP id z17-20020a1709064e1100b00a2696a6cb5amr1446910eju.115.1703164593219; Thu, 21 Dec 2023 05:16:33 -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.16.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 05:16:32 -0800 (PST) Message-ID: <35845077-7839-41bf-9eca-82f8b0be29ec@linaro.org> Date: Thu, 21 Dec 2023 14:16:30 +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 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> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3q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FAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.. Konrad