Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp140242rdb; Thu, 21 Dec 2023 05:19:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqYuxXZubExWByHeBx1Wv3mopYBLWnMT+JfXkZXj4ucTiTQTd/39ohpjMKBrHfGHEL80Tt X-Received: by 2002:a17:907:6026:b0:a26:8554:d46c with SMTP id fs38-20020a170907602600b00a268554d46cmr1030555ejc.311.1703164752495; Thu, 21 Dec 2023 05:19:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703164752; cv=none; d=google.com; s=arc-20160816; b=uNmePPzY0yVcf3FVxTDsTbCMOvbxifAT0L0rLdSlRsVdV3Bf+HadSyymdc/9K/Ti8A hVUEVoc6xEsrH7RaSwUx8JsNasf37N/ThMKTUH0EoQSInFTLL3AiWxn85z2OdtLnQw5k 6CiDSNwmGM/D2hI+ivfIOftM5frwPSmVtRKsxVL5Xyl9Hjeyrtm9rg+N2wP5f3rcCdu/ wKKWcI+fC0ybldhOVkmAA7ZcADK+rgIHMrFxpb2VPtOJ1vgTCTNC9kpGS0sY8Ay3gBNd vIjNpIliHDG6I3xf83RChLnRjQp8HtDLt9CzuClvlny34Y9zznUq9J/lqlnqS95HxoxV /2Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=b8ug5EaGKVW0WhoWSS1hJEcFQ3IAHX23XrOOVlYG8qg=; fh=4I0dMl0MSiTtqZUe9Rep0fGkLz4BHi6dVTl+RcN8zM0=; b=TnyI8oQwFOIgQiXIjFQWm+msPsfFs5CsGjBC37wvRhNhsSjFPCuSJPDTn5aPgR4BVD GsndpUo820y5hXJQ4iJOu61N7Uw9delRnf1d7vsNv9U023anK0JUWOj1j6HRD1CFe+yc gmWSKL2wKPI7a84y0lFhUcqzP/KNyRmXniNfrMyVQ6Iho2obwo2sK2JV+CaZLa5j9sUL U2jCxbrwCSuSZ4n0RTGgAS8jVR0ExsVAkiCVm02Wj21snvRq1/hB1PceHwFUBueDADPN 9cxrKG8U3ExTLBnm6trwRqeA4aKSkND0jeP74ECF8okJhCHcu1evbH8N8HPP/zQ5Qs4S R7UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BSZBy9TH; spf=pass (google.com: domain of linux-kernel+bounces-8439-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8439-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 l1-20020a170907914100b00a26aaa4a257si319878ejs.57.2023.12.21.05.19.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:19:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8439-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=BSZBy9TH; spf=pass (google.com: domain of linux-kernel+bounces-8439-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8439-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 3D4821F218AE for ; Thu, 21 Dec 2023 13:19:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6632E745C5; Thu, 21 Dec 2023 13:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BSZBy9TH" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (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 4DC3973480 for ; Thu, 21 Dec 2023 13:19:01 +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-yw1-f178.google.com with SMTP id 00721157ae682-5e266e8d39eso8480177b3.1 for ; Thu, 21 Dec 2023 05:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703164740; x=1703769540; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=b8ug5EaGKVW0WhoWSS1hJEcFQ3IAHX23XrOOVlYG8qg=; b=BSZBy9THCuKLT8vq5r2/WWdjY93OvKcEpLIa8oDGQOdl6SH8iFts7TLvhgYUz6+5oA l0tl9TVdOUI08+3sgmApfHIVBlhvotlUhIgQj0B8l78QxLRU+jtzHl3anLuFi1YzVM7B TezxYtFRVtFqN/nfsElRbCujuZ9EK6iGF7MVim9kCECAQ8w3ATLRkqJSRyZmbPNRZgp/ ykjwIAwEE5ws6imDgmGOj3K9LwUQ1NFJ713SE4n1OU685mUUUG1O4ssMcCL5ML5UYL7X 0Dk5nwa/60/THi2MbvrgKVErJ27TzqcaHHTe1HDzKEb0zgAn6Hu370hbkJWzYYeUknqP ufkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703164740; x=1703769540; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b8ug5EaGKVW0WhoWSS1hJEcFQ3IAHX23XrOOVlYG8qg=; b=YjIiK6sOat98tAcTosOZSCKXX4UkIAy3vZQFxeFSS+pDPFDX7XNYanOoR/UouSU71e TpjGCi0N5ZKChsN7IoZz+gsrB983ldgVH1IQMM+0PQSlyx8OoGB/BPE1nn3y3SsuwR4T OODxllj9Cmi4FVf5gp1uvPN/vgjXgSuLwzx0PL3dyH2oNv6RHbvqAzm+sGkkcmaf5UR9 WXRWjPWo/Nn5N8EGGJVKUHvfuF9tr0IBhlCpaoo93a7VMoT2iZ/sKQUGritRysFeNlQj WqPSS23pIdkQTo/ugD37or6DOjXXok0ha32kCoCazXWMwTKQEWXCVDR3K3Jnh8Oa47Gz siyw== X-Gm-Message-State: AOJu0YxmUvXcoXJsayvAnypAK0G6DzSLDOB+FeWpANOVM2Rut6jACfVy YKlrErF4EnJ/J+Af7ibwPacRLxVuQcAZmG2BmjDAJQ== X-Received: by 2002:a81:9111:0:b0:5d7:5964:9c01 with SMTP id i17-20020a819111000000b005d759649c01mr1122176ywg.26.1703164740359; Thu, 21 Dec 2023 05:19:00 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> In-Reply-To: <35845077-7839-41bf-9eca-82f8b0be29ec@linaro.org> From: Dmitry Baryshkov Date: Thu, 21 Dec 2023 15:18:49 +0200 Message-ID: Subject: Re: [PATCH 2/8] clk: qcom: gdsc: Enable supply reglator in GPU GX handler To: Konrad Dybcio 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 Content-Type: text/plain; charset="UTF-8" On Thu, 21 Dec 2023 at 15: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.. gdsc_dummy_gx_enable*( Or gdsc_dummy_gmu_gx_enable(). Still less than 6 words. I'm trying my best! -- With best wishes Dmitry