Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5247236ybe; Tue, 10 Sep 2019 00:18:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD7/ctFRULBNXKxga+evkaW5L/pEaOsJFKUIin2HVV5znmj0ozWKenT2tx6yAG5Ot+Jz6d X-Received: by 2002:a17:906:614f:: with SMTP id p15mr23630261ejl.295.1568099922896; Tue, 10 Sep 2019 00:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568099922; cv=none; d=google.com; s=arc-20160816; b=NY2xyAogSaA1fyWoGMzSvidB9XdnWu9ZxCZ00jToqchI7VG1tmmm+bN/C1KukKy7Cf +jF+I2lbDHKlr5dfQiRlhkDSmmH4HHfce8rc7cIwSJ6k/oZ+WeujoStSEFJJckeA+2hk sQSMqk2u5Ztw+gFIuusxCIrXry10X7RLCIVzsknde8MWCxZn4TaKmQJ7xKPdN46llpLH fSObo6TDy5d9j0ZHDDNdJtyNG9TEjbBb73Z70qJeQjHUcjvEH+++Bmv6qhqeaWEufeRR FTxxWjW5+uj2H6KpB60V8IpVPUoUvypCclYdEczATp4WEC8+W4mBffAzXoquplbpvOC2 F2TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cptlCQ347g/R/oxFT9VOf0f0wPB+y+T4B6Ay9zWG1MM=; b=O5DEgad6bnRIGc73gFsnGu4e3mj5y8gxI0oyiVErvCf8nJXZVjEk1IcgCjOXV2z5tb 5ij4MPlrwFC3imSU2N9uew0T+kV0Tl6V6NjyQ1ALV1qB1RvSADDdhqTDRYkDT/mc7vjW stz9iOozLa1h+YHeVmEvQUSaGK/d2KZ7Bp50aK7lXwuU6BRztMdjESuLW9mgYMH4avXn LwLYAcDhT8abOC0VbD/xtQ/VzG0ROSjmo1xsErW6o9o+a5dkNzPDbApuLDzUZN7Fdc37 z0MYs9IltzG2PNcMMpnj38B8ePZO1HqvW28mJuUr+akRKFL96f2YO9M1lo50gedXqIol k0fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MblQ3f6q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ga19si9351750ejb.193.2019.09.10.00.18.18; Tue, 10 Sep 2019 00:18:42 -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; dkim=pass header.i=@linaro.org header.s=google header.b=MblQ3f6q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404850AbfIIMQ6 (ORCPT + 99 others); Mon, 9 Sep 2019 08:16:58 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46828 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404838AbfIIMQ6 (ORCPT ); Mon, 9 Sep 2019 08:16:58 -0400 Received: by mail-lj1-f195.google.com with SMTP id e17so12441778ljf.13 for ; Mon, 09 Sep 2019 05:16:56 -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=cptlCQ347g/R/oxFT9VOf0f0wPB+y+T4B6Ay9zWG1MM=; b=MblQ3f6qW8Sm1i8qW5NiNRMcPRzExDnVXKJHg5yOSUTVndoGnT1tby42vpbVpfyE7G AQVWXL9lD++XGK8XR177xahdz2UHQDZofcLU/PUv3KhoVX+FuVrjchvCfR5RtY42uULZ 5LY0Hcx1yA0GCi2UxUZY1bRnkswW0rvRCClufMtWBl0o+iHVlJOhr5XJB8pVZTHYx40a wLbUHwey6zm7dpGAF+5SRgS7NOvff4uY1Hu0d1fDHfLYJ6pvF4jERFChMR2orzktwJUY xHlBQGYUZ1ZkQFgZSjkVYeKk9GAENJMZFcfE/SzFyZQPyTUbvu/JQgVJDlpJLJMLsBmF 0CUA== 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=cptlCQ347g/R/oxFT9VOf0f0wPB+y+T4B6Ay9zWG1MM=; b=bhT20Ad7K9jDl0bXLo63aLKvT8Bhqk3MxJ4YAraQfjIJf2QBlH37TEYRC+qo75KRHV B0yRFdZPp4aomgdaZFxyF/S2KG+vtmX+6qmAhVvZTLDW+0VoGc+yH6zxYCDpMuyBf/eR V10wiFMY0/jQQzYeCzv4zll6iJ4mxYDBIyVHzCTHoBcMvOCVgpifHftH4rTpX4W72x5A MtPXYjW1TcgxWxbWt2xSI75bgKdKbvV/998eG52O7Eq8/VEypgpadJV9ylV6lPqYvwrC dEMWtSfRnfSkjvPGLkfNIJBePfRL9x3rDvMIsqLcAgouyP+vC0XWK7ArdFsjy6Gr9eSJ 9mZg== X-Gm-Message-State: APjAAAWGTyOEGjodhxdGiWqMJC5KDpEKbsAVj17iupsc4DogREwaymTW J7hplKsKcaolpK74E1eBUAK8GEFjxdjMfsvRV4+0Qg== X-Received: by 2002:a2e:8091:: with SMTP id i17mr9692244ljg.13.1568031415705; Mon, 09 Sep 2019 05:16:55 -0700 (PDT) MIME-Version: 1.0 References: <14599f7165f23db2bf7b71a2596e808e2bc2056c.1567740135.git.baolin.wang@linaro.org> <3bcd69fd-2f8e-9b87-7292-4b0b1aa5be78@intel.com> In-Reply-To: <3bcd69fd-2f8e-9b87-7292-4b0b1aa5be78@intel.com> From: Baolin Wang Date: Mon, 9 Sep 2019 20:16:43 +0800 Message-ID: Subject: Re: [PATCH 2/4] mmc: Add virtual command queue support To: Adrian Hunter Cc: Ulf Hansson , riteshh@codeaurora.org, asutoshd@codeaurora.org, Orson Zhai , Chunyan Zhang , Arnd Bergmann , Linus Walleij , Vincent Guittot , linux-mmc , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adrian, On Mon, 9 Sep 2019 at 20:02, Adrian Hunter wrote: > > On 6/09/19 6:52 AM, Baolin Wang wrote: > > Now the MMC read/write stack will always wait for previous request is > > completed by mmc_blk_rw_wait(), before sending a new request to hardware, > > or queue a work to complete request, that will bring context switching > > overhead, especially for high I/O per second rates, to affect the IO > > performance. > > > > Thus this patch introduces virtual command queue interface, which is > > similar with the hardware command queue engine's idea, that can remove > > the context switching. > > CQHCI is a hardware interface for eMMC's that support command queuing. What > you are doing is a software issue queue, unrelated to CQHCI. I think you Yes. > should avoid all reference to CQHCI i.e. call it something else. Since its process is similar with CQHCI and re-use the CQHCI's interfaces, I called it virtual command queue. I am not sure what else name is better, any thoughts? VCQHCI? Thanks. -- Baolin Wang Best Regards