Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1176832pxv; Fri, 16 Jul 2021 03:28:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweW0cgQcK1YneGObdSK5QwKD6Yx8aZ5Wf/gB9p87BjN5Y8aM62UO2SKlMHmWUlxHZjCJCv X-Received: by 2002:aa7:cb84:: with SMTP id r4mr13458663edt.205.1626431332601; Fri, 16 Jul 2021 03:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626431332; cv=none; d=google.com; s=arc-20160816; b=QeLnwE2Q1n5opGd2RtxBh8M0+skeGy48CCTcrrmm25C5igoHYqimVntYbLo9MZeeks mveqBk7+1RwxR8UZjKj1DAkkuHjcTuX9O8sd6UvtDaf2EP0m3KVwvbUM95jd21GfDUaB HA7dO0EKK3zPKlkH54rBrx7X/ufXYfC5Cwx0u3D7OlB5xT+JJLjiBEUGhCKjtoJ1A5Us ROcTU4bNRAGCxbwJzUNtkDwpl60pS6KArH8LJRhq1ohTVcbRu4FdoB+HAPg7YReXMEGB H+/E6uxF4mdgODc83jQKDejr0qeX80MUUf89MAU/Wat7DqTWMId+VPPbSS1tBa9lK8Yj ZUiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=CHkB+s3wryz0/bP6vY03D8qky88thoSSmzTemCvka1E=; b=mRNZXa8ZgW7Y+ylulNSC2XXYe9GAEOYOOU1EWBPcHYiI/xPUqKXfB7WgXutDzVKIBl lYJys7rnYA/pouOv6fbID9vwvhLRJYpFqG65gelxcV+M8HalwviFpO+oAtcOkyKOHq9v duTMX8QKuuRQSQWPVToXoIopAknwzIIMWmnM6+Nlr2Xz9wdqreKoIQeqzY0uJbzirZ85 N4z38W+6nvgwPstzcHrxfyGtdSvNyTrK8Hk7+MFdZ3Dam+nXUC3OS/iF/lukeSCMeW2A k4LXidgLXVsA3QtDmLC6iYdnM4LC3SRrzMbjOk3k+wu/NNRnoeTl95ad5LRrG0s6S64Z R4kQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si11409511ejq.155.2021.07.16.03.28.29; Fri, 16 Jul 2021 03:28:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238468AbhGPKaY (ORCPT + 99 others); Fri, 16 Jul 2021 06:30:24 -0400 Received: from mga06.intel.com ([134.134.136.31]:52739 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbhGPKaY (ORCPT ); Fri, 16 Jul 2021 06:30:24 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10046"; a="271824770" X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="271824770" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2021 03:27:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="656364900" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.79]) ([10.237.72.79]) by fmsmga005.fm.intel.com with ESMTP; 16 Jul 2021 03:27:26 -0700 Subject: Re: [PATCH] [v2] mmc: sdhci-pci-gli: Improve Random 4K Read Performance of GL9763E To: Renius Chen , Ulf Hansson Cc: linux-mmc , Linux Kernel Mailing List , Ben Chuang References: <20210705090050.15077-1-reniuschengl@gmail.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <02c26834-f16e-e1c7-9ea9-36414d1c4403@intel.com> Date: Fri, 16 Jul 2021 13:27:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/07/21 5:15 am, Renius Chen wrote: > Hi Adrain, > > What do you think of this patch? > Or do you have any ideas or suggestions about the modification for > Ulf's comments? Perhaps try to define your power management requirements in terms of latencies instead of request size, and then take the issue to the power management mailing list and power management maintainers for suggestions. You will probably need to point out why runtime PM doesn't met your requirements. > > Thank you. > > > Best regards, > > Renius > > Renius Chen 於 2021年7月7日 週三 下午9:49寫道: >> >> Ulf Hansson 於 2021年7月7日 週三 下午8:16寫道: >>> >>> [...] >>> >>>> >>>> Thanks, I understand what you mean. >>>> >>>> I simply searched for the keyword "MMC_READ_MULTIPLE_BLOCK" in the >>>> drivers/mmc/host folder, and found that in some SD/MMC host controller >>>> driver codes such as alcor.c, cavium.c, ...etc, there are also >>>> behaviors for monitoring the request in their driver. What's the >>>> difference between theirs and ours? >>> >>> Those checks are there to allow the HWs to be supported properly. >>> >>>> >>>> And if the code that monitors the requstes does not belong the driver, >>>> where should I implement the code and how to add some functions only >>>> for GL9763e in that place, in your opinion? >>> >>> Honestly, I am not sure what suits your use case best. >>> >>> So far we have used runtime PM with a default auto suspend timeout, in >>> combination with dev PM Qos. In other words, run as fast as possible >>> to complete the requests in the queue then go back to idle and enter a >>> low power state. Clearly, that seems not to be sufficient for your use >>> case, sorry. >>> >> Yes, the runtime PM, auto suspend, and PM Qos are all about the >> suspend/resume behaviors of the system or related to power states such >> as D0/D3 of the device. But these are totally different from the ASPM >> L0s/L1 for link states. Entering/exiting the ASPM is pure hardware >> behavior on the link layer and is not handled by any codes in >> drivers/mmc/core or drivers/mmc/host. We'd like to try to modify the >> patch by your opinions, but we are also confused about what or where >> suits our use case best. So we wonder how to start the modification >> and may need some suggestions to deal with the work, sorry. >> >> Thank you. >> >> >> Best regards, >> >> Renius >> >> >>> Kind regards >>> Uffe