Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3776791ybh; Tue, 17 Mar 2020 06:27:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtfpu3/bDbFriQ7qCtkVVrVodoAB4lnmmRSb77Gd0lsbViqdrtD4w/4TGbE//hx4dcxcPwe X-Received: by 2002:aca:ebc5:: with SMTP id j188mr3561195oih.65.1584451636246; Tue, 17 Mar 2020 06:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584451636; cv=none; d=google.com; s=arc-20160816; b=c6Ey0muMIXt2XjQ6ZL7rEHeCclGvZkUiEaLwn2vARfq0A9R/wBLEnMuBMyG2w+vijr h3MRC2FlQyy+fdMrmw3ehNGPBBAQU5rqVbE9iTvVhvGPWKf8V4hz5RxqvWizrczYGsuB xeYEUl1c/10AhjnPI4+XBhS3fDzdelLoNfeadUMuVdbj0fOvBHHH1ZlKMLQ2Yy5pm/jt 1VMdyBTtTeI/XNEaWgZOT1OztRCbom7Pt8UWpQT5tWLm2WgOpZUuIuwh/H0UY9mTdnN5 9jDNNTysuw6JKzDOHq6AY1CY26q5Q1Xuyb++vNSw649cYtE0j5WHtvzCQHEXiv/nAzrg Vygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:ironport-sdr :ironport-sdr; bh=e00U0nX1RBdmwpYmcZz7XmoECD7sO0jYtBzEKBcygXs=; b=ctoCW0dXDf6GlLIwgj/Q/T960Z6pKMUcwC12Ww4wiDnl7f91hbVF+x1uywWex6HvA0 YbtCHd9bhkgn+xJr6LLsYxpN/S2cgnlU9SlxngT3Pa12A/c2eRGl0mu+FVLPpJVJqzbp T9yNS8Nlck+vjwtlB+CoaxsXowkc7pyxzVBb4Hf62GohTgIrWtGGOdLL+Of5E21vorhw LnenwlhwwCSJ+WXrliesnnuRXo9niRFlnxE54IndJSB+adVxNW43dJ24O8746bzYSIYK D8fm7BRZcl+n45RSOXcyFMuyAKJzRDv7j1rt9dk8Tr9tbyxSuaf58idtRlPF1Cx0SgZP sifA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d22si1540614oti.316.2020.03.17.06.27.02; Tue, 17 Mar 2020 06:27:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726836AbgCQNZs (ORCPT + 99 others); Tue, 17 Mar 2020 09:25:48 -0400 Received: from mga12.intel.com ([192.55.52.136]:19749 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbgCQNZr (ORCPT ); Tue, 17 Mar 2020 09:25:47 -0400 IronPort-SDR: ue1rbw7J6dlN0MKVJ8tC/i7b9daFjn9iMkxUOg/PBvySRYZYs7IrAThp9/R8i/19DX+M7ohNkM r9n1XTudgvow== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2020 06:25:46 -0700 IronPort-SDR: L28m/kiwhYUy/mfnSa8h9loV0UoWrxrfnkyDYHyqd3wPWXkLjk7UEfYgIBStmQe/HZfHyQJlK7 T0gq/Gov4yQQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,564,1574150400"; d="scan'208";a="244476497" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.87]) ([10.237.72.87]) by orsmga003.jf.intel.com with ESMTP; 17 Mar 2020 06:25:44 -0700 Subject: Re: [PATCH v2 0/3] Introduce the request_atomic() for the host To: Baolin Wang , ulf.hansson@linaro.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, arnd@arndb.de, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <7866e519-80ad-8678-6708-7726a53ea4f5@intel.com> Date: Tue, 17 Mar 2020 15:25:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/03/20 12:14 pm, Baolin Wang wrote: > This patch set introduces a new request_atomic() interface for the > MMC host controller, which is used to submit a request to host in > the atomic context, such as in the irq hard handler, to reduce the > request latency. > > Any comments are welcome. Thanks. > > Note: Adrian pointed out that it is not good if moving the polling of > inhibit bits in sdhci_send_command() into the interrupt context, but > now I have not found a better way to address Adrian's concern. Moveover > this is an unusual abnormal case and the original code has the same > problem, so I plan to create another patch set to talk about and fix > this issue. I tend to think the API requires the possibility for host controllers to return "busy", so that should be sorted out first. > > Changes from v1: > - Re-split the changes to make them more clear suggested by Ulf. > - Factor out the auto CMD23 checking into a separate function. > > Baolin Wang (3): > mmc: host: Introduce the request_atomic() for the host > mmc: host: sdhci: Implement the request_atomic() API > mmc: host: sdhci-sprd: Implement the request_atomic() API > > drivers/mmc/host/mmc_hsq.c | 5 ++++- > drivers/mmc/host/sdhci-sprd.c | 23 ++++++++++++++++++++--- > drivers/mmc/host/sdhci.c | 27 +++++++++++++++++++-------- > drivers/mmc/host/sdhci.h | 1 + > include/linux/mmc/host.h | 3 +++ > 5 files changed, 47 insertions(+), 12 deletions(-) >