Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2738640pxk; Tue, 15 Sep 2020 00:31:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcbA7dsoTGdBf+HVU9ONhPjExco85tKJG/OJ6/CyXERF2iRthK781tfUWIz9t3EJOtbA4F X-Received: by 2002:a17:906:8245:: with SMTP id f5mr17780880ejx.264.1600155098078; Tue, 15 Sep 2020 00:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600155098; cv=none; d=google.com; s=arc-20160816; b=helWE6Uksp5j5VGpNpAV134aKTWdDNW+B+rcxHdKSYULSL1CWUuNArBTD9XKKMxFle ix62OqNdiUeGIczj+A8DCrlV/FpVq5K/FNgMuUa/N5PlMLY5hdMroaJyS039LJqZTG7W Z2mF0KKLeWj/+URKW3n7jGiXdck9rPIjjI7iePFdOJim189qAwR/cwsXKhNNLOqiNZxd oG9MR2N3rqM5Q0ss7CHKQuCt2sq74leRXk3S4Huzxt0kdID3qi57mQ5TqLGAsU021YI5 Ytu/wG8fnG1oWga63+uecqUZDf4jjGBWm3Gj3YGC+Jv9imSknftJ2RZYZcG6ZjhDbj/u MvEQ== 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=h9sQQzx9HIHqC/nRkCM3I+PxoenAg9ujW/8S7axP2Z8=; b=qRitoyIvi/HhBa3EslKQHLibRZyKTlVLLkNHdPmjfHaSHr9zIyzNhq1Zk/Qwi3mLf3 6a318efoZptmwcd42qkDZnsf6xm2yLOOeNC69yvX3wUdtWfy7tDFCyCxonW4wpnn7DIx D86c6i57g0iAoO532XHhD511f2g/saX/xBJtqInv7EJPPXKqGnI2TjW8Ad2EWf8Ulbre 1w81+czDP4Hd302Nz3bH7zdsVhRT8wHFPewvkeU1m/m3nU8B8uwtEm+SNF0Tl1+/bVaW sraxu9Vk8C41TiYPr6xZUt1P/UpZO/EC283WIMU734MseWlxmdHTpnOwRmmiyLgWkx+d el/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=L5gmuzxe; 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 a15si9317539eju.615.2020.09.15.00.31.15; Tue, 15 Sep 2020 00:31:38 -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=L5gmuzxe; 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 S1726171AbgIOHad (ORCPT + 99 others); Tue, 15 Sep 2020 03:30:33 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:20237 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbgIOHab (ORCPT ); Tue, 15 Sep 2020 03:30:31 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600155030; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=h9sQQzx9HIHqC/nRkCM3I+PxoenAg9ujW/8S7axP2Z8=; b=L5gmuzxe0Ceu+tw9DvArRSfWxvIjJNG6+qr4Uvy/66m8FahdXiGy2shRbA7LAS3sBKnL22XX qN8rJXzUXA1J49e4BhUJkQ+kb81exTMggku9Y55YlncPyI/TR4CJueEwqqfMLBoKlmdOOOzq f1z47R/Y+3EEP2HjWzsORY0Ltlg= 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-n02.prod.us-east-1.postgun.com with SMTP id 5f606d8832925f96e13dc129 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 15 Sep 2020 07:30:16 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 48994C433F1; Tue, 15 Sep 2020 07:30:15 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.101] (unknown [47.8.144.128]) (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 757BEC433CA; Tue, 15 Sep 2020 07:30:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 757BEC433CA 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=fail smtp.mailfrom=akashast@codeaurora.org Subject: Re: [PATCH 1/3] spi: spi-geni-qcom: Use the FIFO even more To: Douglas Anderson , Mark Brown Cc: swboyd@chromium.org, Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org References: <20200912140730.1.Ie67fa32009b94702d56232c064f1d89065ee8836@changeid> From: Akash Asthana Message-ID: <8aa6759a-3db9-97b6-7cad-6bd5d6a1c469@codeaurora.org> Date: Tue, 15 Sep 2020 13:00:00 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200912140730.1.Ie67fa32009b94702d56232c064f1d89065ee8836@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 9/13/2020 2:37 AM, Douglas Anderson wrote: > In commit 902481a78ee4 ("spi: spi-geni-qcom: Actually use our FIFO") I > explained that the maximum size we could program the FIFO was > "mas->tx_fifo_depth - 3" but that I chose "mas->tx_fifo_depth()" > because I was worried about decreased bandwidth. > > Since that time: > * All the interconnect patches have landed, making things run at the > proper speed. > * I've done more measurements. > > This lets me confirm that there's really no downside of using the FIFO > more. Specifically I did "flashrom -p ec -r /tmp/foo.bin" on a > Chromebook and averaged over several runs. > > Before: It took 6.66 seconds and 59669 interrupts fired. > After: It took 6.66 seconds and 47992 interrupts fired. Reviewed-by: Akash Asthana > Signed-off-by: Douglas Anderson > --- > > -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project