Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4498814rwb; Tue, 20 Sep 2022 15:07:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6G1uRBhmo438ECzcQS4IjnDlGcQxbaUA5/J+VB0LYc6DIoFG3NMgYgQaZ0PgTBftUzFY9y X-Received: by 2002:a17:902:be18:b0:178:b9c9:97b8 with SMTP id r24-20020a170902be1800b00178b9c997b8mr5875pls.38.1663711623540; Tue, 20 Sep 2022 15:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663711623; cv=none; d=google.com; s=arc-20160816; b=fbebkhXis69oFeT/kioq6Ftqdq5+D/T8Cg5QXQep01pqAyht2t99W+zWoTfMZhs5jT VT/yHkoaoeDoBZJljj6Wsao6W12R+vw3nt7rNgWkcW0YHWmZmHMNYHRZOBcm0j/zWi8N fvREbEA3zBVTzJUMHHL75m1fiqPzz5jcMWJqAB4kI7kDvZNegQMz+VKbYi5vaSZEHRs8 sSeFgMrbAHdAn8W9F/FUNgKBhgDgoD/B8beWh5bC1j9UzNO64jLUt4Al1GnryZJ7Me72 Fqf0R6Z7S0zTLOSQc6nN/BNfF+djISEX2vGQoHBmZD8or1ckMy0j8qE8SYQnL0xfrxyv tjLQ== 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=VSBeGUDtdisVLROlfXirpoYpORUqwXu1rcQth9DasoM=; b=NPmrfDvXQ0fGmW+9Kp4cCvL4LiB14xDtdzL76WPaO4R4JBX2yGwf4/lcoy510wGk4j bnc6CGKZ7Qxvctjrj6s4USfLdOm+yJRMzRuaidjvznpTYD4kr2Y0lWHuLGHI/UxOMlhx kz/+aTm/npxlOBf7293z/+OA1I9AU5FcbWZSqa7+g0WtH7L8tEue3m3VnLIOheIQWW3S 9x4851/lhJT2S48C7X5gElqTbqb1faEMAZjKVu4AtGFQSTl5DJaifZTS5bsz1Gqy/CgL ngmACf3OFRCrHL4dqEHGd8a5hBWnO2Qhw4BR4IZKZ5Ko+AoBcc06Me+H3JSuPdHSpQB8 apTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=b0u4IuTS; 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 204-20020a6302d5000000b0043a09694978si778217pgc.812.2022.09.20.15.06.51; Tue, 20 Sep 2022 15:07:03 -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=b0u4IuTS; 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 S229512AbiITV6p (ORCPT + 99 others); Tue, 20 Sep 2022 17:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbiITV6e (ORCPT ); Tue, 20 Sep 2022 17:58:34 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 003E66B675; Tue, 20 Sep 2022 14:58:33 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28KL37E9004797; Tue, 20 Sep 2022 21:58:16 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=VSBeGUDtdisVLROlfXirpoYpORUqwXu1rcQth9DasoM=; b=b0u4IuTS1VbYcIqowZKXN7stF45MFMI/Sq6q/dIQZ8Xmri+odkNausNWf9/4zYedB4lU iMZpMBOJGoRMVzYmxrCb/WjWQiR1iTxgEIhCqlHpUvgfmKxSr2CYk1MwP/jSWQUdoWt8 ICLiGNkANemHSlcvsf8c/NX05zbaIXyrvnQWBUFkXFoLVytt0ld/2fsTEjMSStw6TSeA uDYlwIDf9D4sQC3s5byuYtoFMsKw35qXIvwJGK3obdNo+4BbaeGw5RF1Pvmv7MEYWZJt dHNfCPgNZcCyuY2pyL6hzaf0lyIzfEMSS3RoADVLHkuhJaR26VatfDlQ5fdl8aZSlHj4 Hg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jq8fw2b49-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 21:58:15 +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 28KLwE4j015808 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 21:58:14 GMT Received: from [10.110.44.78] (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; Tue, 20 Sep 2022 14:58:11 -0700 Message-ID: <57eedb21-649b-88a2-b757-06bd05e13fd1@quicinc.com> Date: Tue, 20 Sep 2022 14:58:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v7 1/5] PCI: qcom: Add system suspend and resume support Content-Language: en-US To: Krishna chaitanya chundru , CC: , , , , , , , , , , , , , , , , , , , , , , , , , Bjorn Andersson References: <1663669347-29308-1-git-send-email-quic_krichai@quicinc.com> <1663669347-29308-2-git-send-email-quic_krichai@quicinc.com> From: Jeff Johnson In-Reply-To: <1663669347-29308-2-git-send-email-quic_krichai@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: XadFRIHuUjt_yzIMNHXVNLRNaYLYbSCw X-Proofpoint-ORIG-GUID: XadFRIHuUjt_yzIMNHXVNLRNaYLYbSCw 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-20_10,2022-09-20_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1011 adultscore=0 malwarescore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209200133 X-Spam-Status: No, score=-5.0 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 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/20/2022 3:22 AM, Krishna chaitanya chundru wrote: > Add suspend and resume syscore ops. > > Few PCIe endpoints like NVMe and WLANs are always expecting the device > to be in D0 state and the link to be active (or in l1ss) all the time > (including in S3 state). > > In qcom platform PCIe resources( clocks, phy etc..) can released can *be* released... ?? > when the link is in L1ss to reduce the power consumption. So if the link > is in L1ss, release the PCIe resources. And when the system resumes, > enable the PCIe resources if they released in the suspend path. if they *were* released... ?? > > is_suspended flag indicates if the PCIe resources are released or not > in the suspend path. > > Its observed that access to Ep PCIe space to mask MSI/MSIX is happening s/Its/It's/ > at the very late stage of suspend path (access by affinity changes while > making CPUs offline during suspend, this will happen after devices are > suspended (after all phases of suspend ops)). If we turn off clocks in All those parenthesis, thought I was reading Lisp. Can you rewrite in conversational English?