Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp465658rwn; Thu, 15 Sep 2022 01:12:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pfRK1HuwWrB9hbbUjrRIZrcOhNONB63S3JXauThQgP9kcpe24urFpu2kMDYlW+0djAji2 X-Received: by 2002:a05:6402:14cb:b0:452:f1b4:7e52 with SMTP id f11-20020a05640214cb00b00452f1b47e52mr3181729edx.177.1663229559422; Thu, 15 Sep 2022 01:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663229559; cv=none; d=google.com; s=arc-20160816; b=gB99GC9w8voqdCdroiUM2UeqljA9oxnPhqkEiltHvVbXDENfCojZ+w/pFtvXCfwNyt 67MsDz2Csfi6/rjzdX7vrY5XlmLCCyGJDS5cH0DNRloXFZQxfNvzpRI4aCiYzZ0jHke7 A9brYTS0xxP86zc2QTa9DWGGqtpvq+WZfgYxrAq9aFztZnfGlxOetaRlewPojDntawWd aK+HBuwn7ByXvfTSCgfw8uNdpe3zixe6tqU9gLwQWvzVzRcPglwizvdPOE8F2mN4IrgE dISM7kzga0qm9HbDqF6oaqh/aI4R7YJFHL6aTmQMbwEMqLEKW/4SjSdxRCBzeiqoJaUC QWhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=goc2CvMB7xVbUlia39i3ox3mDrYzyU+LKXINBSITg+Y=; b=rEMwW1cwuT/odgeoqUNFi/F4pGBzcB+OY10uHzex8TklIOFYoWr0drxCJh7hB80G7j XMtiaeJJPrtO4IszEWda/177aVtiPRVVyVMpY6lpW91yF4uJEAS3yxcB2kZrd9EYSw+W UTECQ7vvoV8PBIrPSjIhLrwncGxWkcY33rdChjdGWcIflkVcs9vwaWoR6qZjOB7Zxx/E oruuTrnNUqcXCsBQ4tKajI6bY4DQL+Pg2rq5ijIIrAAg6QNiUY2Lkuvs8JaC6ZxzOlzM v412TjnKHX6WDbrRdaOEXBOcXKdHeICfKb6mzN7UXth9fCeQEbAI2poHzP9QhmnefwKS 5uGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hkSPf9Y0; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a50aa82000000b0044e85e58093si15565038edc.581.2022.09.15.01.12.14; Thu, 15 Sep 2022 01:12:39 -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=@quicinc.com header.s=qcppdkim1 header.b=hkSPf9Y0; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbiIOH2D (ORCPT + 99 others); Thu, 15 Sep 2022 03:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229975AbiIOH1S (ORCPT ); Thu, 15 Sep 2022 03:27:18 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DBB38FD62; Thu, 15 Sep 2022 00:27:00 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28F7MlpL002809; Thu, 15 Sep 2022 07:26:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=goc2CvMB7xVbUlia39i3ox3mDrYzyU+LKXINBSITg+Y=; b=hkSPf9Y0Xe6680HYOovI2R0fhVBHRZbT8EtAP2mQxqgd1jJHymYOSdld+/Cp6o570dAQ 6wP1gP2XyPJ39yzwIjGhe3B0aggp7HrB1Fh7M6CWw5NZ1m8htFMpHe0khqq5ZWbCJlHq isrdG8YlZPnU1X2RXOUrjN39Xdw4RAstY/P0Tg4P2VjdWmoL2j4n5smOvpgOqaXEplqN 0Qqeo1Yz3aK7o7c/A9rifYjU/ddd4xIrkB49v/DbusKJPOK8AmpKdf+mlA2BNRbVUA0w INTjf5ERu58SxqlEGVDnHmRkHBe170NFyihfEmCHwwtHg359broLaSJDys54vxh3l5sl Gg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jkp8ashyk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 07:26:12 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28F7QCFu023313 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 07:26:12 GMT Received: from [10.216.56.33] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 15 Sep 2022 00:26:07 -0700 Message-ID: <4490d181-7bf2-791c-1778-1102e9adbc25@quicinc.com> Date: Thu, 15 Sep 2022 12:55:58 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 3/3] clk: qcom: gcc-sc7280: Update the .pwrsts for usb gdsc Content-Language: en-US To: Matthias Kaehlcke , Johan Hovold CC: , , , , , , , , , , References: <20220901101756.28164-1-quic_rjendra@quicinc.com> <20220901101756.28164-3-quic_rjendra@quicinc.com> From: Rajendra Nayak In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: nhvtnoVQYw09joTXs-KiNOTCtXuV1eRH X-Proofpoint-ORIG-GUID: nhvtnoVQYw09joTXs-KiNOTCtXuV1eRH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-15_04,2022-09-14_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 mlxlogscore=702 clxscore=1015 phishscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2208220000 definitions=main-2209150039 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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. > I guess that isn't the correct signal. > > https://patchwork.kernel.org/project/linux-arm-msm/patch/20220914053017.23617-1-quic_rjendra@quicinc.com/