Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1122399rwn; Thu, 15 Sep 2022 10:46:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6TNU/LFRJk1Y96o95Jnk+k8lc6SLjVHrCf4QEzYTD8RtJvf1vXE7n2h0zBD/HNU2H/NDyb X-Received: by 2002:a17:907:86ab:b0:77f:f628:3ed7 with SMTP id qa43-20020a17090786ab00b0077ff6283ed7mr727291ejc.71.1663263965740; Thu, 15 Sep 2022 10:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663263965; cv=none; d=google.com; s=arc-20160816; b=IMktIAolD3ZOqKYYqycpWhjhclQByKgqOHCJPi0yYljZtTGxWapcANG2AemOprNFDu bD3yWb32/C/P9mo3s4ES5C4htDQzxY7YpCSD99xy4Y9aHdFkWznxKPbUlEI1sT2SYFbN NBwXvu3MOjywIxOmbKjOGcyp1/1RiaEpqsYwPWk4C6gHEx+s/qPo9CBf4mmd4JiGgm0O TTX/KuyCiBtnPejLVNYesRLZT2tBBSMwB0+IFxCtU4SmBwtmN5iLv14ATD+l/WgKj8NK +bda4vAZC2Q+QejrmSxtAzHKvCAqmm+Vuxm4Zn/fQoKHjqFA4/11il9rzGI8lpX3XLUq crLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ihRDwkA3/+uCxAKrHSmLGee9NmkEXol5SUJ6O91CNsQ=; b=PgkXDfIzdc2j8sAGbI4dizYdHBqbWq1ipf7Uf8aGJBLBAIYRo7QyXghPvcjamJcWFn 6eENsdUO5lz+1Bo2sturw5o7/x3d9drk+Rx3yagT4jJC6ahd0eykeU/dEhQg6wCF3g+J xWMy0Gmjkt0qgDKC6hZqjLPTT7LhYBu0Kmz8njmj6o6o9VFBV+6uLSDVieIxuOlEeXu4 aVDPYpA6oYOuCOjPF/1leGGtupLHSnD2UUHbz2fgahf0Z4gkkVUhNv5QJtHFlCYuWzkM cQzHHkoGcPo7QafdB+UzunTHjSExEs7ZvcHnW8NlexjiR+per91PbiKpVOtKFqeIiT1D 5dnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ImI6oxn0; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb30-20020a170907961e00b007765c1da9cbsi19450726ejc.719.2022.09.15.10.45.22; Thu, 15 Sep 2022 10:46:05 -0700 (PDT) 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=@chromium.org header.s=google header.b=ImI6oxn0; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbiIOQnl (ORCPT + 99 others); Thu, 15 Sep 2022 12:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiIOQnk (ORCPT ); Thu, 15 Sep 2022 12:43:40 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EFAB4F3B4 for ; Thu, 15 Sep 2022 09:43:38 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id g8so12728950iob.0 for ; Thu, 15 Sep 2022 09:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=ihRDwkA3/+uCxAKrHSmLGee9NmkEXol5SUJ6O91CNsQ=; b=ImI6oxn09GT5UW+MnR4ggV+ED5gD+svfD2kQMzQ4voej/W+eUfC3HFi6VBZwQXwecu voIEManlVi43NC/9tYTL0uTdZ1wEgFcoBx4a8ub3zfgvGaS5xc83X/EvtA6XpvC4raQg Z60mLYu8ZV4ww10k+iDFlynWBwENFebBhSxfM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=ihRDwkA3/+uCxAKrHSmLGee9NmkEXol5SUJ6O91CNsQ=; b=kZ0k7MJKGrpVd8/DK9Vo9zFszBPGwtUZMno0YEKExiMuZ8MPNxTsmjQIba8v10RVAe FCX0L7endva2kGpPreCu9rsyxC2iyvjMYvg37iAZujsS81DbxsMzhwR8rHjlqTcdB8sY 5jlQyboVJZpY5j3GuizGM+gHAkWFo1XaUxUENn7xJcxdDm6rWRibO7sjpfBcKPv6VXe6 DOCpTi+HKxz8KvYNpZvbXwkEIaeQBQ0kzATGcfz+H3Tk1wJ3Kf3XGtpMWwi+roxuRdTI Jlft5GwQMfli4c9Gskw3vou8LiA5ZsqvfhXYAWT8zBVVxDUwePrBRd66b3EJg4v95cqu Z2xQ== X-Gm-Message-State: ACrzQf2IxfPmz+G9Kcpujx0BOvddiavmWdRjDqzOLzx/QyiF7FxjfW+1 LhQIcnsye2YlQE3a4wUaA5TmgA== X-Received: by 2002:a05:6638:19cf:b0:358:3dd3:2162 with SMTP id bi15-20020a05663819cf00b003583dd32162mr441054jab.185.1663260218045; Thu, 15 Sep 2022 09:43:38 -0700 (PDT) Received: from localhost (30.23.70.34.bc.googleusercontent.com. [34.70.23.30]) by smtp.gmail.com with UTF8SMTPSA id cb6-20020a0566381b0600b00349cee4ef4asm1327397jab.62.2022.09.15.09.43.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Sep 2022 09:43:37 -0700 (PDT) Date: Thu, 15 Sep 2022 16:43:36 +0000 From: Matthias Kaehlcke To: Rajendra Nayak Cc: Johan Hovold , andersson@kernel.org, agross@kernel.org, konrad.dybcio@somainline.org, mturquette@baylibre.com, sboyd@kernel.org, johan+linaro@kernel.org, quic_kriskura@quicinc.com, dianders@chromium.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] clk: qcom: gcc-sc7280: Update the .pwrsts for usb gdsc Message-ID: References: <20220901101756.28164-1-quic_rjendra@quicinc.com> <20220901101756.28164-3-quic_rjendra@quicinc.com> <4490d181-7bf2-791c-1778-1102e9adbc25@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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, Sep 15, 2022 at 06:59:36PM +0530, Rajendra Nayak wrote: > > On 9/15/2022 12:55 PM, Rajendra Nayak wrote: > > > > > > On 9/15/2022 2:53 AM, Matthias Kaehlcke wrote: > > > On Wed, Sep 14, 2022 at 09:12:36AM +0200, Johan Hovold wrote: > > > > On Thu, Sep 01, 2022 at 09:04:55AM -0700, Matthias Kaehlcke wrote: > > > > > On Thu, Sep 01, 2022 at 03:47:56PM +0530, Rajendra Nayak wrote: > > > > > > USB on sc7280 cannot support wakeups from low power states > > > > > > if the GDSC is turned OFF. Update the .pwrsts for usb GDSC so it > > > > > > only transitions to RET in low power. > > > > > > > > > > > > Signed-off-by: Rajendra Nayak > > > > > > > > > > Reviewed-by: Matthias Kaehlcke > > > > > Tested-by: Matthias Kaehlcke > > > > > > > > Did you confirm that you actually hit the retention state? > > > > > > No, how would I do that? > > > > > > > IIUC, this series is equivalent to using ALWAYS_ON unless CX is actually > > > > powered off during suspend. > > > > > > The count in /sys/kernel/debug/qcom_stats/cxsd increses with each suspend, > > > however it also does that with the GDSC configured as ALWAYS_ON and with > > > Rajendra's "arm64: dts: qcom: sc7280: Add required-opps for USB" [1], so > > > > hmm, that's really not expected. With my above patch and with the GDSC as > > ALWAYS_ON there is a cx vote in suspend preventing cxsd so the counter > > should not go up. > > Perhaps you are missing '1b771839: clk: qcom: gdsc: enable optional power domain support' > in your tree? Indeed, that patch was missing in our tree, thanks for the pointer! With it the CXSD count does not increase when the GDSC is configured as ALWAYS_ON.