Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5498819pxv; Wed, 7 Jul 2021 05:20:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8mTwBMDPIETdsUgrf7y7np91GKIV4b3Vf1MyPGs54eVfwSm6Zl3HrNMNl/ccB6sPRj+ri X-Received: by 2002:aa7:c782:: with SMTP id n2mr29738636eds.77.1625660401838; Wed, 07 Jul 2021 05:20:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625660401; cv=none; d=google.com; s=arc-20160816; b=rpHHqkjeKzZVxs2l86RSYKr5hT2BK2F8vqbI4KnWwwmu4hXt6kGpX1xMRWVnl6vmWL wRMNG4kRrfSCJb1Aq+M4UNddqHG2dLAMzZvUSCLg/vUfSfdkSPgclCfUtDd1kNpZpqW/ CpU0hY78CutBnOTEtYPdUKQmxaombljxzbT7Q4WO6lxzpdwMqXTHqcagtd5zj5TkhNP0 c0tAx51LEcrbjEKH1RqJSoGPHsHAMVPFwUsUpkRw/ZQwCZJjHyaOZZHcQhJFtXq5MhyO Vnsq1SmSBtABAHNhG636FI9Zwzd//0T7+GofcciUAdFhVQUOaaQ7raWOMmQ5EEu/fKN2 DnRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RcULV9nFUzJ6VE4UOSE6+AO7aub6Ej+zIlilMsA1Uis=; b=R6hASB3pI2yP49xgn/yG6ZPBlAjC3IaiU0CPHUIkmnMASfORnNiU2cCPQGJYQUSCPT vr09PSM+HhFkyHaiFuIObeLjoAbMQstw7PD/5o+nA9Oz6/gg+0FVXRxOb4KHLScPELKk 3BJOBR5ZitGCdOBc2Vu/0WYH1tPNCh5naypYopERZ4jxHSxMI1qCghVYbmWeiR0vymLQ 2X7MRNSeGVT1lRGFLtEBviz2lKABhM/7/7uK9OmI9bFtfvkRe9xETAuRYHC2hqO9DJqc vSJK5Bg9PC+l76iC/OPd3mCKoZYSkTgLeTLNVLOEr/FC2p8kjJJOzpQmMv5QBN+gLljK NQPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jhUlZlyO; 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 ig2si17695000ejc.399.2021.07.07.05.19.38; Wed, 07 Jul 2021 05:20:01 -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=pass header.i=@linaro.org header.s=google header.b=jhUlZlyO; 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 S231467AbhGGMTH (ORCPT + 99 others); Wed, 7 Jul 2021 08:19:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231358AbhGGMTG (ORCPT ); Wed, 7 Jul 2021 08:19:06 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10AC9C06175F for ; Wed, 7 Jul 2021 05:16:25 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id r24so1452498vsg.4 for ; Wed, 07 Jul 2021 05:16:25 -0700 (PDT) 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; bh=RcULV9nFUzJ6VE4UOSE6+AO7aub6Ej+zIlilMsA1Uis=; b=jhUlZlyOD7w3n/+E4dx3TqrzUR0gh7Gi2lLi1ZJgCOFLelfm06OZnPqnyXdpEU9NuD RyR7xOjqgd+Xm6tGjgNZkEBR4pWBL1M509HC8XlSvOGwsF9iV2tm1v1ZFA6MnElGb3Yg nbM3fNb6DCzJ4rmfNdCvUH8fv1tywDE3liKeSCuBrvsXf0B3QrNK5gqaOISZjvIc4Ibq feJn4sTSLmasqt3VrAExj+c0evPocqAiY0VS/sUQgspvkatuWSPqhcF1h0OETSz7ZlUN VCGLiyEthb4+ZL3oGmV2RCTiEFuKuzN/g/VYphdZCQmdWfSvyn5X2vVc1W3yktKL89Ee l46w== 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; bh=RcULV9nFUzJ6VE4UOSE6+AO7aub6Ej+zIlilMsA1Uis=; b=VGURCTj0e+vIfXuJMoHphhVlTk81zd+Rx/5TRdLFymxU8eRIlvqqVpaRQFBHJWZiI0 VOMYVnAO9hN9Shh9MFT5bCufrICekqcp2iMZzPAcFupPsx3ZKCec39R8cQd6Ox57eMCy Fp3fy6ReV54bibbkiZNbjyfYeTePRdmHvaWdxZoG/MZyUe6yvqezvYe8zfH6t3kZjyLI N+KIuagY0CFBkusOrAf+mOpzWDwB4lKb1xP9LCvfDcvwq/XEIBIz89XAu8jhViHRkI+x 0jWozFK7e8tN/ZGSqTBpTX4Pp8E/f0ferYDBUCHmoy6/K6h7pEpEYUGtRA+JXSFG9DU7 19FA== X-Gm-Message-State: AOAM530nqjkgZxl/sXPT4cds9qxfRW7LV0HKrX2fpZCSE7Q8AtDa7MLY 7HuAZ6MjUizuoiqruqwW3UojYu3PmC6XZs/XBAkE8A== X-Received: by 2002:a67:8783:: with SMTP id j125mr20525975vsd.42.1625660184210; Wed, 07 Jul 2021 05:16:24 -0700 (PDT) MIME-Version: 1.0 References: <20210705090050.15077-1-reniuschengl@gmail.com> In-Reply-To: From: Ulf Hansson Date: Wed, 7 Jul 2021 14:15:47 +0200 Message-ID: Subject: Re: [PATCH] [v2] mmc: sdhci-pci-gli: Improve Random 4K Read Performance of GL9763E To: Renius Chen Cc: Adrian Hunter , linux-mmc , Linux Kernel Mailing List , Ben Chuang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [...] > > 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. Kind regards Uffe