Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp134647rdb; Thu, 21 Dec 2023 05:10:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyPQdF2Z2AW7+ckREz47dU/C+I/P/RgcElI77VMmfe86Y00kgpwhpYYX9poD+DxG2EZRpa X-Received: by 2002:a05:6a00:1d26:b0:6ce:4780:8ea4 with SMTP id a38-20020a056a001d2600b006ce47808ea4mr25100328pfx.49.1703164206303; Thu, 21 Dec 2023 05:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703164206; cv=none; d=google.com; s=arc-20160816; b=VHSCehGCUvInl/3chbzVD8f3HwyXa8ffJlDqWIbvLlDLUwlZGii4z+3iR6uslPXY1m elHhCJ/Ni6MQ8miJ1RrFmmL/0hmQtmIBZWfiXfJRK+oM4yZE9nmLW0vapVHtWbMMIY/O YNEPSmEbT8Ql1FLJF4VHiphwiR0oYUxBRmwKsOobGnAM4V1hVhzYxNi+GA/xhGh7sMzq 4ul5F2A9wAjLVarwTBjQky+BXNVtMkjDKlTaN6by0V8mxFgTp2ugMqv++rW2T5pT1GfU BAWIZZroet5sslOo/uM/MN9GQyMXlxskEhbVLpo7sLDKuj0UZGkZ8ik6M/yWAPFOXle7 I70g== 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=Fs/e9MeZesfWpR0gJSq5W4MUhBlmQTRQN91KHpHRCXc=; fh=4I0dMl0MSiTtqZUe9Rep0fGkLz4BHi6dVTl+RcN8zM0=; b=Ms55UqVLxpMO58JfHsiavixK3yO2gpAvqoh9L6chgr4/rK25/RJ4wJyDtdR5Fx35xK VihTF/JE+AGr+Gw7sr7ecQjHwutzUuqs2d849JBne8lEF6ceMkwn1VJKPI4HVZ9wRrXq KsX2OOeiFM5uV6DFoGn7h6xPVKPiZkb3C+SXvsLf89k19O5zSEILBkeUSXLNvz9HqNQX Q71gn6Vjz2f96E5PVjEr/cRrnhMZ84fZ5a7YNNSXaH7ATR6bfaolBitGTdvJHOYznyDq 1qSMN9y2pZhW+4kBx64LCoo9Fyf+KhmrtKdv7NC41jTipIqJR2AqPjI/4C+FP6Qoo8JZ abYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YRxZzmPb; spf=pass (google.com: domain of linux-kernel+bounces-8422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fb18-20020a056a002d9200b006ce6c8a7b63si1570147pfb.114.2023.12.21.05.10.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YRxZzmPb; spf=pass (google.com: domain of linux-kernel+bounces-8422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8422-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 23911B222D6 for ; Thu, 21 Dec 2023 13:04:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D496B7318B; Thu, 21 Dec 2023 13:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YRxZzmPb" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (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 CF09E73177 for ; Thu, 21 Dec 2023 13:04:47 +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-il1-f174.google.com with SMTP id e9e14a558f8ab-35f519f3ea9so3388595ab.3 for ; Thu, 21 Dec 2023 05:04:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703163887; x=1703768687; 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=Fs/e9MeZesfWpR0gJSq5W4MUhBlmQTRQN91KHpHRCXc=; b=YRxZzmPbX3MoQv1tzLDq2yeekIvP/jzpSOT3NzQIH2ttKWlk1+wimM7uf3ej9giYlt uKAVxZYdgwMx7MrUiyoPcGX143hYZU2HLaCFP1JZ9cm0lWv2HoUWQV3qsqXUk2ERk3Tm ri+6TN+vq1lBZR0lZuYZUG+YkHnFj7cXnLbItDHE8MwtIHIm/xvdXO1Uhp2tAkckQPcX W3nrwW2esxMxBPwjcCC8Y/OwFZQTaXcUTPkvoiUWODXEOfBxR8z4dv87MvMfvfoUO0KA HFBJB8Ugj3Vw0XKqXvXMltYQbOgLmD1iyQyu7bfl7qk5izeoGFolQpaGmidahNhto7jg qfqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703163887; x=1703768687; 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=Fs/e9MeZesfWpR0gJSq5W4MUhBlmQTRQN91KHpHRCXc=; b=gZHIMJyjdCir1mySymJvoV6Q6phbDgRZVZfFngsBoS6h898CFFPATMvSZhNx0DuBI2 RAvBgndzx3K3WtPdSxUBqoJ/OTtyzpAvm5q/VEp2lp8nFWuADS8x0eiX+5r57sz3kTnE IP/GfERSWrBUbDqLxoxEaG6FQ+u3DZ8IpODi9sBAVMPkZFwVUqyr3O+DOmxBeNISdJMt kaNGvwQeJNeaFIhZgvv2abJg4GtHny6n5/RDJiuJEn6GUnY1pLN+ao7VbiBNogT8kcbF UEjPjDhb3FcIAGoxPwn3yUEwltmtBO3x/jJpdl2WWzENhZr8Y03tmTqR/n9LVudDV5+b YRtA== X-Gm-Message-State: AOJu0Yyc2UMUROLyz/Ohmb2lCgxxpkrO6enmW/NJVIye2WQs6eqcmFEj PzWyxMdr8XZGw2P2PYUS0XtSZHlphknOm+i8ZwvudQ== X-Received: by 2002:a05:6e02:3d05:b0:35f:ab11:1289 with SMTP id db5-20020a056e023d0500b0035fab111289mr6672760ilb.114.1703163886562; Thu, 21 Dec 2023 05:04:46 -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> In-Reply-To: <8d206362-7d80-46dc-8474-871fc53abc20@linaro.org> From: Dmitry Baryshkov Date: Thu, 21 Dec 2023 15:04:35 +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: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() ;-) -- With best wishes Dmitry