Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1077824rwb; Wed, 7 Dec 2022 08:21:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hsasgr1vyLDunS6tPEbJ009icc42tndubw/WYyECTCKv0N8ANEjUzJPe2SF/Ti/o5yOZs X-Received: by 2002:a17:90a:a789:b0:219:ea9b:f99a with SMTP id f9-20020a17090aa78900b00219ea9bf99amr12495502pjq.146.1670430090253; Wed, 07 Dec 2022 08:21:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670430090; cv=none; d=google.com; s=arc-20160816; b=nAGdwp3SXLFpDoBH4keWrsjR9Ssdc2nYOGVhw6ZBde48hW1pwA4q4fWw/Kt3lHVKVC xk5nJyuKpxPCLAVeJLU1e+ufeSyuwuW8oPgHwnY9DeJtgPjrymblfFislbR1+J4kG9Rh jjQZq2aiPPNSuMfkSjpnt66+d1RjpV2i9FM1yJmGnkHvHf0tUn7DeKIs/Q3YoT3Vh3sR 1FENsxfMWxfBbxDDH1ci1twN3Gyj1A7GUFRPN6cUKZL6xU9DjTGRbHD+yzc8eY74c3DF Tajs083nvAOdULq3xYxueY1ZD51Z2BqwP3rz0N7E8ETgtR+l/jBvCuqkEGukMUMyH1JP kBKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=d1kIptz7lKS34gKJ86GNyP5WqgoufGO1GV/3C71h5+Y=; b=aKOEAaQjqoQeAtbhtnYZDc1i9Lynr+9CFnukSa0jIdbKbjfM2xbQX/Ji6t1X87hfg1 AwzwePCND8gMiq/3HQI+iXW4tTgeEgJsINzwMze6fgAhPxIG0Psrc67Jege7VKdOplrF IPTIMwN2vRwqzUlHIiTkOW1Oe2XHJyC2lKBxO4Db9ywfP+GpfjKs68XHfKAJFcvHGqpJ /vsH3fmuuy72eKbaWHCUx/ZIdnbRaX1SrveYJj1dtSmp1xEnzahSiR+mwQ0/ulx1Ewv4 BsxYmNqK34YnnSANWoDTe7Zfq2ii9rBUZUwzl7sWsJBAYHSNqhwkeJs1s8n85GaFWVAy uZyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zv+M3sdO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a056a000c8700b0056c12518664si11637227pfv.128.2022.12.07.08.21.19; Wed, 07 Dec 2022 08:21:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zv+M3sdO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbiLGQBb (ORCPT + 77 others); Wed, 7 Dec 2022 11:01:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbiLGQB3 (ORCPT ); Wed, 7 Dec 2022 11:01:29 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21E623E0BE for ; Wed, 7 Dec 2022 08:01:28 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id r18so16729715pgr.12 for ; Wed, 07 Dec 2022 08:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=d1kIptz7lKS34gKJ86GNyP5WqgoufGO1GV/3C71h5+Y=; b=Zv+M3sdOTc2OaYw1U1lD9VTedffjOCXGlzUX5YnRjqpDj/9mhaAVkhtuzC+ogifVNu p1S/8EKd2QORb28ZpoA3LQnVibjwCkCNAAb9dr9XCl2C4l+Lt3Z6K4ir7sm+3mW4x/85 6pBJiFAc5UE0fruWDoMsAuJxxN5FRe4wKarL0lpXgBiZNMb0+WQ3q6mYx9fH+BVE9sXN gbcBsoVcq0qongaEmXQHvGOHZ7fI+IIGnay3mc2RIntIRbvuzxhNHt+9sR/XJZeaoNbC fkZqCAqy2kkWqJJLUpz0hIpe2AeBemrvPLy50G6cklmneX0nbRZt8TDVpi+8T7V/GUDd oNxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=d1kIptz7lKS34gKJ86GNyP5WqgoufGO1GV/3C71h5+Y=; b=VafLhWN0fa/X/sA/ST/0mXgDJtgGdzldyvB65Jc1Df4MzdFuAZU25g3cxLnt+/TfNx W0HCztjMQqtn4UIAVC6TA+TLQSfVqaoLDaw3LgSJNmsZMQNaP0Z8KvuBADo3hk2E5jQT Z0YTIE6BODQKd3zIOuZuaZA40RnV+NDRoYuBTaXGKYSxvzn/QJwK6xiJlxXUtVtjOSeB WFq1GA7Q4g0HsoYY9cr2eiW6sfFeda59QfffZTc1n7ch3dOzHS30g3F/JXPLQV7+JcDk pyEjERCr1NrwO12V4EJQpxVc8YILmmK+iSEZ12V26vv2PMBkO2MCQ+yODDyDPvlqaqe6 YONg== X-Gm-Message-State: ANoB5plK6nyqeU3CJ5bTmcuWyxnJw0wXHSFunJVhSoiVTHK4F+fkwVDE JjOj7r3gAdB4AXKswZ+ZKwkx1v/cbOCOp2VAUGkUrg== X-Received: by 2002:aa7:951d:0:b0:577:3e5e:7a4 with SMTP id b29-20020aa7951d000000b005773e5e07a4mr8456102pfp.57.1670428887514; Wed, 07 Dec 2022 08:01:27 -0800 (PST) MIME-Version: 1.0 References: <1664960824-20951-1-git-send-email-quic_akhilpo@quicinc.com> <20221201225705.46r2m35ketvzipox@builder.lan> In-Reply-To: <20221201225705.46r2m35ketvzipox@builder.lan> From: Ulf Hansson Date: Wed, 7 Dec 2022 17:00:51 +0100 Message-ID: Subject: Re: [PATCH v7 0/6] clk/qcom: Support gdsc collapse polling using 'reset' interface To: Bjorn Andersson , Akhil P Oommen Cc: freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Stephen Boyd , Dmitry Baryshkov , Philipp Zabel , Douglas Anderson , krzysztof.kozlowski@linaro.org, Abhinav Kumar , Andy Gross , Daniel Vetter , David Airlie , Konrad Dybcio , Krzysztof Kozlowski , Michael Turquette , Rob Herring , Sean Paul , Stephen Boyd , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Dec 2022 at 23:57, Bjorn Andersson wrote: > > On Wed, Oct 05, 2022 at 02:36:58PM +0530, Akhil P Oommen wrote: > > > > @Ulf, Akhil has a power-domain for a piece of hardware which may be > voted active by multiple different subsystems (co-processors/execution > contexts) in the system. > > As such, during the powering down sequence we don't wait for the > power-domain to turn off. But in the event of an error, the recovery > mechanism relies on waiting for the hardware to settle in a powered off > state. > > The proposal here is to use the reset framework to wait for this state > to be reached, before continuing with the recovery mechanism in the > client driver. I tried to review the series (see my other replies), but I am not sure I fully understand the consumer part. More exactly, when and who is going to pull the reset and at what point? > > Given our other discussions on quirky behavior, do you have any > input/suggestions on this? > > > Some clients like adreno gpu driver would like to ensure that its gdsc > > is collapsed at hardware during a gpu reset sequence. This is because it > > has a votable gdsc which could be ON due to a vote from another subsystem > > like tz, hyp etc or due to an internal hardware signal. To allow > > this, gpucc driver can expose an interface to the client driver using > > reset framework. Using this the client driver can trigger a polling within > > the gdsc driver. > > @Akhil, this description is fairly generic. As we've reached the state > where the hardware has settled and we return to the client, what > prevents it from being powered up again? > > Or is it simply a question of it hitting the powered-off state, not > necessarily staying there? Okay, so it's indeed the GPU driver that is going to assert/de-assert the reset at some point. Right? That seems like a reasonable approach to me, even if it's a bit unclear under what conditions that could happen. [...] Kind regards Uffe