Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp173561ybt; Thu, 9 Jul 2020 18:59:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKT856KS1cwHzPiSrWNKv+MvzObN7BiIv2e1GG3qiiFuIUdz0LjYgZrxlKSOajvoxl4Q6j X-Received: by 2002:aa7:c50e:: with SMTP id o14mr75777946edq.168.1594346359232; Thu, 09 Jul 2020 18:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594346359; cv=none; d=google.com; s=arc-20160816; b=fNeJ/fjDPWMNiFe9xUL3foj+UyKCotb1d/t8X8VU5irC45zsOqPcyvXKxrfu1ChJw8 B446cvyJMlCNeadG7HIPSDecmzwh6WLR2SyTP1QgI0673towizHDcxeQNizNhTl0g2uG qUNjPZ0ZxYlwHdmUjBMgcEhAyzv7j8O9QUh+Qm+tchOyf9grrtk7Zqmq/KHw8dJcg9yr fFZ/cIvdYS++Cg4BvAi9JfeMEm5no7QVVdE+/HbLuzbD0RobzkuVdSLvoUweyqdegT4O DNntRVPi2OHAqmVw7D4GKHSl/5i1mtiENdbDNnAk26QKmsYRiAGfyDdyaWKwBITluJc0 AzIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=gcqQzQVXCs7enCe/CsT0vSZrIaJ9bCn32XECqcM0XFI=; b=gfnwdLsxkIgDbEngxvDRKhFAqklrCLK2APJelUwmVqGSuXKOKFDJz5u31OZ+LUKaX7 z6w5N1pRgNtwi8xzov2UWBY33sOzX97bL4vqlAo0ZgQfwzum7NPRzzUesQLmgh40CCZc HbIOpcZ/4Vuymem8V22lFVUUmpD7dZrd17HqX6lzwIhwIyZSPn/fQJkZeFI6coC80WmI euHMS+yBnAioUw5SwWvUPjjgBj/M6zccbkgkuygdhae8UEDfkJVSqrHAznWwywG+tM7h nzKSYu5fiR0nRejHaKBHZDIq60iynNat6SgSY+oK4YKzL/JRuhjXHgU4kPVRrU/w3i8y 9nuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GL2LzLdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp4si3813132ejc.258.2020.07.09.18.58.56; Thu, 09 Jul 2020 18:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GL2LzLdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727902AbgGJB57 (ORCPT + 99 others); Thu, 9 Jul 2020 21:57:59 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:37361 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727820AbgGJB55 (ORCPT ); Thu, 9 Jul 2020 21:57:57 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1594346277; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=gcqQzQVXCs7enCe/CsT0vSZrIaJ9bCn32XECqcM0XFI=; b=GL2LzLdru0cEnslPLV//8xM9ShgQWIiL+kfNL2oVfVZvphtFhgd78rzMqFUigUHkdk0LRNI8 MRePDXFExPFVortS/gNwlBhEm/ru5cHzQELBdfe3Ls8UWqUMvfNDNez5sP5pWqDZ3rRY0ww5 PYWEZgapfH/mTBwGBTxmi12X0TI= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 5f07caf4945d3440eef8d0ab (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 10 Jul 2020 01:57:08 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7E1FFC433C8; Fri, 10 Jul 2020 01:57:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mdtipton-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mdtipton) by smtp.codeaurora.org (Postfix) with ESMTPSA id C0592C433CA; Fri, 10 Jul 2020 01:57:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C0592C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mdtipton@codeaurora.org From: Mike Tipton To: georgi.djakov@linaro.org Cc: bjorn.andersson@linaro.org, agross@kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Tipton Subject: [PATCH v2 4/6] interconnect: qcom: Only wait for completion in AMC/WAKE by default Date: Thu, 9 Jul 2020 18:56:50 -0700 Message-Id: <20200710015652.19206-5-mdtipton@codeaurora.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200710015652.19206-1-mdtipton@codeaurora.org> References: <20200710015652.19206-1-mdtipton@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the default TCS wait behavior to only wait for completion in AMC and WAKE. Waiting isn't necessary in the SLEEP TCS, since votes are only being removed in this case. Resources can be safely disabled asynchronously in parallel with the rest of the power collapse sequence. This reduces the sleep entry latency. Signed-off-by: Mike Tipton --- drivers/interconnect/qcom/bcm-voter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/interconnect/qcom/bcm-voter.c b/drivers/interconnect/qcom/bcm-voter.c index 4bba3b42b648..d95725b9208c 100644 --- a/drivers/interconnect/qcom/bcm-voter.c +++ b/drivers/interconnect/qcom/bcm-voter.c @@ -341,7 +341,7 @@ static int qcom_icc_bcm_voter_probe(struct platform_device *pdev) voter->np = np; if (of_property_read_u32(np, "qcom,tcs-wait", &voter->tcs_wait)) - voter->tcs_wait = QCOM_ICC_TAG_ALWAYS; + voter->tcs_wait = QCOM_ICC_TAG_ACTIVE_ONLY; mutex_init(&voter->lock); INIT_LIST_HEAD(&voter->commit_list); -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project