Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp212167pxb; Thu, 14 Jan 2021 04:07:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLphUzie0iUFuL9GoV81ZB2Z5q/wMx7dhnMrxCE2ujRvaznZBXqryc1IZq7RIunsvZIeRI X-Received: by 2002:a50:cdc8:: with SMTP id h8mr5607630edj.293.1610626076319; Thu, 14 Jan 2021 04:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610626076; cv=none; d=google.com; s=arc-20160816; b=U/MkI6MqEpFhJ7iKvc3QMmLJmlJfBPDoINy2ZjSXEwutbHX6mJk1j7NOEJ8sH0jn98 S3uLAAaXj31LGWstVS1hpQse4C1IGstDbWMA3FrfpwVszFVt4Wb/pucxA6/FW4LXfoLN S0ha9tk5427qBRvPyE7DI9EhFjK7rgGfiH60nJllndTyI4xbbZ90UwmRusalHvl8mhDJ PmBOZikDd20G2PHc274oWWUvwqpP4CZPAn5Ek9EBaQWGhontBNdeBuh4bbAjUUq8lg+Y QRWSzoVSps1c5O9aM6j91My/l11WbL7rxpj1ihCewlTRkvw1cLEFBL0cKlm8QtV3/q7i CH3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4x4x0Nj/wFI+6ARDdl2ZQ+A+ovOi+cuPXqwiIPE/44Y=; b=jdNrN6bKmm4okNeKV2D+lP3XS+TTKD9Fvx2PqE9Wi1yn4gqldhu86DSLc9YmeHdylw S4A0Y5XpUx1JbXeEIpHD+DdEUuPrpC8HBDC9IQ99QkWOkdAT5Ch8l5wJhjFL7g4/10iX Ez21/noueTvekgjVGm6nInz7pZXDEV4dRhKNWbE02lIS85iCchbPYRft5jKzBy+qt3HX 5MIvCfFMHsp+nfWCJMBoa8UopTgzUg/wr0HP3pbHoQCag0O28n896t2OSuDSj4WWnkPL J4ZhsedOSme4BbcLEpVu6FDW8Wqre2X9amlg5gmRHvvLCqi8IsGmcoj7YEfrc93d4mSt DV1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R4mJdpV5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si2436973edr.372.2021.01.14.04.07.30; Thu, 14 Jan 2021 04:07:56 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=R4mJdpV5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728306AbhANMFh (ORCPT + 99 others); Thu, 14 Jan 2021 07:05:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727210AbhANMFg (ORCPT ); Thu, 14 Jan 2021 07:05:36 -0500 Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E04CC061574 for ; Thu, 14 Jan 2021 04:04:56 -0800 (PST) Received: by mail-vs1-xe34.google.com with SMTP id x4so2933364vsp.7 for ; Thu, 14 Jan 2021 04:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4x4x0Nj/wFI+6ARDdl2ZQ+A+ovOi+cuPXqwiIPE/44Y=; b=R4mJdpV5kJb1NFzjfvZQaR6tfJvyA1KrRUPNmt2lFi1jCHsBMRrdXU8rPgBu0hMEG7 yHC3zbGL6UAOt3zP+MrKxxQa+5lLLM079aTkfGMXVmK7O7A65aSHmjJSehodbi08XXrg ZravXhe6OfF0a8brBmI/yajLml5Gdet5gJOIWbjAXFDbbPlJZKG+UUBvisjxhojteDdS 9YJ3RWNw6OoFDd5lKS/VBmrpTTJa8xeqFgC8kel0XdOMwLyQSJGE3Q/mJ8JV8LlukjMR AUbatloFhZF2Lne6BgkbrEnjTMTupQtCHhDwYt7+KRwDdqsNIy6Fy9W+vP1MEGIP5rdw VuaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4x4x0Nj/wFI+6ARDdl2ZQ+A+ovOi+cuPXqwiIPE/44Y=; b=CfgEPiSh9SObeoqyS8EG68Lt5uZPDPqKW/PBSnh0yUeIKHLNpr2Q3myGxXZOfz9BlP HTvX6stqFg57W7COZYiceImMndXpelnKfKHbDcmQLatU5NA/6IVpOfCZUIRm4q2MI+6S 0YlhfabFC6wbE7A0ZiRD16vucaXDOihvQZmxqT23lKKouDqa7hjrj10JaCn/R4q8Jvhu q4J9geAsxNs0m/+RlDy3sgXDEF+AMRepjEOY79A0eZtdOpmfXErnSIOc9NaYF6i4hnMy s3KUwgu6+yNJ81CBKtKRLRTOz9xa0VOPyXnmcoV67Wf5PxrH0ZnHLbdKK0OOq4xbz7rp O9jA== X-Gm-Message-State: AOAM532Ac3+3fzOOnsvxUseJYjStEJQ0qSJKG2EoZEVE11o+YKkndJh1 sq0yxOY01/tjhj9KdvgVmIlFFfWAFizDFlURIPL6Hg== X-Received: by 2002:a05:6102:2127:: with SMTP id f7mr6025568vsg.48.1610625895461; Thu, 14 Jan 2021 04:04:55 -0800 (PST) MIME-Version: 1.0 References: <20210106092740.5808-1-reniuschengl@gmail.com> In-Reply-To: From: Ulf Hansson Date: Thu, 14 Jan 2021 13:04:19 +0100 Message-ID: Subject: Re: [PATCH] mmc: sdhci-pci-gli: Enlarge ASPM L1 entry delay of GL9763E To: =?UTF-8?B?6Zmz5bu65a6P?= Cc: Adrian Hunter , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Ben Chuang , greg.tu@genesyslogic.com.tw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Jan 2021 at 07:25, =E9=99=B3=E5=BB=BA=E5=AE=8F wrote: > > > Ulf Hansson =E6=96=BC 2021=E5=B9=B41=E6=9C=881= 3=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=886:53=E5=AF=AB=E9=81=93=EF= =BC=9A > > > > On Wed, 6 Jan 2021 at 10:27, Renius Chen wrote= : > > > > > > The R/W performance of GL9763E is low with some platforms, which > > > support ASPM mechanism, due to entering L1 state very frequently > > > in R/W process. Enlarge its ASPM L1 entry delay to improve the > > > R/W performance of GL9763E. > > > > What do you mean by frequently? In between a burst of request or > > during a burst of request? > > GL9763E enters ASPM L1 state after a very short idle in default, even > during a burst of request. Okay, then it certainly makes sense to extend the idle period. Would you mind extending the commit message with some of this information, as I think it's useful. > > > I am thinking that this could have an effect on energy instead, but I > > guess it's not always straightforward to decide what's most important. > > > > Anyway, what does it mean when you change to use 0x3FF? Are you > > increasing the idle period? Then for how long? > > Yes, we considered that having high performance is more important than > saving power during a burst of request. > So we increased the idle period for 260us, by setting 0x3FF to the > ASPM L1 entry delay bits of our vendor-specific register. > Anyway, GL9763E can still enter ASPM L1 state by a longer idle. Most mmc controllers that uses runtime PM autosuspend for the same reasons, uses and idle period time of ~50us. 260us is in the same ballpark, so I am fine with that, if that works for you. However, can you please add a comment in the code (and preferably also to the commit message) that 0x3FF means using a 260us idle period? [...] Kind regards Uffe