Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp911445ybt; Tue, 7 Jul 2020 03:22:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq2GZjnzptvj0srymmBzfcp/GJPe5ti+c0YpC/CDE9Rn5Dk/uClrzRBFdFAhCwDe+WFbuP X-Received: by 2002:a17:906:3787:: with SMTP id n7mr45173664ejc.551.1594117336964; Tue, 07 Jul 2020 03:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594117336; cv=none; d=google.com; s=arc-20160816; b=FIPg6QtJz70v50TiGLQ3xJyh3A+iaCUNwI73FRGrs+ELmh+C/L2yqwcJh9wxyQeFxL Y/U69kRqyByUcfKpI96UlmNPcVfj7TufbD+X/dEhHcaP6bA8rR+ZkRovB56jhmTlsn+N EgYkXj8zXI0XBzpcnRCUzfcqvgtM7eMezZMlRpi0KsYYhCAhJh1UzOIwqljn8kY/cqbp JmDYJVz/sBmS5Wvru/BIys1hm9fPAUUCIAFLq0XSHLQ52TQ3sYHCc40+JVZi0kY+1uc8 IBxI1XAKxWU9on+RG2Icvqb/VSyCq5Z6CFZlX5lQ9LVmjmp58xr1IEq+x3vZ/lIIyk/c mY4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=U16+debOHtwEq7B+uUcy9cvpCddjmZwXlFWTCLzWx88=; b=EzBCMmfqyiHcjUN8uKApjWHnN0MIJV4CYGtWoVgbcJHvWfZapqOPcQyUyvZfSns/cP YR9iiECzMQQ5efGmax/YylpkR0WBt3x5J6KqrMJCwLD17mMbFVB9ZKTRm/7Er1o2um0t 9z0QMGdW/4occmQ8sUj3pZ+0jWWhm132sQd3aRoJpXcL1W0E/UgSVA2i3jNeEu0RgLjj j5dAd5TXWzpl3kt0cu6CUfP9k2VQj5KvzqZHNYUOMRbfAcug9UkeHrA1ZelwJnhkcY5D wAIhEJDL8IJXqdkOKRJ6MxpdP1790ttxbrqNbKcZbvtenzjHPYJRxJK4W1KtGBL7tSqH A1ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=vdnTe3mo; 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 s23si13694501eji.327.2020.07.07.03.21.53; Tue, 07 Jul 2020 03:22:16 -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=vdnTe3mo; 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 S1727875AbgGGKTV (ORCPT + 99 others); Tue, 7 Jul 2020 06:19:21 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:46804 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726681AbgGGKTF (ORCPT ); Tue, 7 Jul 2020 06:19:05 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1594117144; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=U16+debOHtwEq7B+uUcy9cvpCddjmZwXlFWTCLzWx88=; b=vdnTe3moz4HzNN9roX1LHMavuZnaj7LEoAOkkdN5bBgORMtLXsVwZjpnDUZKjxDqVbSM9xi8 RXG7yubizi7DuH7Eu7saKIC8pspD7jadQ1kZ7VIrfTKgu7D9+EdAYZcch9adBUlCp6j5vbeQ 9RI21dPn3JBzHBvdoctqY+lhUqI= 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-n19.prod.us-east-1.postgun.com with SMTP id 5f044c1819b27ae9cecfb285 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 07 Jul 2020 10:19:04 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D1B76C43465; Tue, 7 Jul 2020 10:19:02 +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, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.0.15] (unknown [183.83.138.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akashast) by smtp.codeaurora.org (Postfix) with ESMTPSA id 83F8AC4345B; Tue, 7 Jul 2020 10:18:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 83F8AC4345B 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=akashast@codeaurora.org Subject: Re: [PATCH 2/3] spi: spi-geni-qcom: Set an autosuspend delay of 250 ms To: Douglas Anderson , Mark Brown , Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, mkshah@codeaurora.org, swboyd@chromium.org, georgi.djakov@linaro.org, ctheegal@codeaurora.org, mka@chromium.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org References: <20200702004509.2333554-1-dianders@chromium.org> <20200701174506.2.I9b8f6bb1e7e6d8847e2ed2cf854ec55678db427f@changeid> From: Akash Asthana Message-ID: <1638cb01-d0f3-8e19-dc1f-89667da53cd1@codeaurora.org> Date: Tue, 7 Jul 2020 15:48:54 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200701174506.2.I9b8f6bb1e7e6d8847e2ed2cf854ec55678db427f@changeid> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/2/2020 6:15 AM, Douglas Anderson wrote: > In commit 0e3b8a81f5df ("spi: spi-geni-qcom: Add interconnect > support") the spi_geni_runtime_suspend() and spi_geni_runtime_resume() > became a bit slower. Measuring on my hardware I see numbers in the > hundreds of microseconds now. > > Let's use autosuspend to help avoid some of the overhead. Now if > we're doing a bunch of transfers we won't need to be constantly > chruning. > > The number 250 ms for the autosuspend delay was picked a bit > arbitrarily, so if someone has measurements showing a better value we > could easily change this. Reviewed-by: Akash Asthana -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project