Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1175257imu; Wed, 16 Jan 2019 14:09:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN5JtsOSrutHNvq5/hBQWUlZM0LmWiELJtHiWPvFgFE5FnU859r5BdFJ56S+f53vXSp24ZA5 X-Received: by 2002:a65:6417:: with SMTP id a23mr11001089pgv.236.1547676594769; Wed, 16 Jan 2019 14:09:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547676594; cv=none; d=google.com; s=arc-20160816; b=bctMljWUi8vP1ooghMlPcjsij16qkvuh4cVc+Wwg81R9+BdqkPnJpwiqcXyD2fenJu Vf/GDXE6ZkEYVYN7rINP6sMihzd9XwPo/tnSUI7jxVD2Hyig9fisc41xkbQscafXMArT 6A23Zofjiw0TkDYRIohi9RZBKDkSv8u6yAdXQEIdqrWm7tPq61RjAWeko0JnalZy27xS uRMPYMNY6ZkMPf1uWnUNLab+oHTlHTzvdsohV6r9WzA0U1SZgd30OxEjUZOL1jItdLev HT52Lkpi9nxrH3xJkFjMQUYAo7e1DewR19T3T+2mP+VBMPZ1rpxQF4XTzV3SiG8RFC6D ip4Q== 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=/QAlEPOTpbjNMnenHIMdR9E8UMK5/zSWeglYGtHhaUc=; b=tIuRm6u0rkABjeapvcTMYO7Bm3igGTkSPZJe3M6dKVDm2wRb9zAzaquU200C3R3hOs ygGfubezwqcIUdDjeD5B5wRWIxsH6lcqvsXC6ll7IiKasSUXupB/A6hyK98ezyxOZ5AP YjOaq3YefgE3w9tDS43AKqeyFmDdAkd58AcjMoiAKZFH9vc1QmqsCnISLHpr/LqsLx9j CfFG9Ts8huOhdmUfc+6Huz7IcHiCrcR7L5AfrHXMWkI4cObWXsr6FaJxNBmOYDIM1Cb8 M3kzKfQ9X8QxRPADNY84glFk8q0ejTlCCn9nqdtjgCjf7+YtqM1WGQ3DUlB6LG1H/6Eh zXJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d9bAJymd; 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 m32si7539678pld.86.2019.01.16.14.09.37; Wed, 16 Jan 2019 14:09:54 -0800 (PST) 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=d9bAJymd; 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 S1730840AbfAPNvb (ORCPT + 99 others); Wed, 16 Jan 2019 08:51:31 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42446 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727935AbfAPNvb (ORCPT ); Wed, 16 Jan 2019 08:51:31 -0500 Received: by mail-lf1-f67.google.com with SMTP id l10so4917379lfh.9 for ; Wed, 16 Jan 2019 05:51:29 -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; bh=/QAlEPOTpbjNMnenHIMdR9E8UMK5/zSWeglYGtHhaUc=; b=d9bAJymd/T9HU4uCTwuYz5vsazR9vJ/oN3bUaagTOzYk/QKhokk3tTKmllUGImXUb/ 1davUna9zTX7ceySQ7by7EHvBo+jeWeU6VyDH/lzOPboagV5WM+XNf6y6IbIzl508MRj hI1TmRxOm5uV6uVKKkkcBdtihIMOWLzXoEFME= 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=/QAlEPOTpbjNMnenHIMdR9E8UMK5/zSWeglYGtHhaUc=; b=l+iFOGuYGluN9oBaVunvV3dfNx9FMF/YQtR0h5oR6SJVn36yYR8LUqTFjByZ/yzZ/b irvXrQwRfTNom+hPX3tBz0PxVRm+9/YjSNAOq6TR2AVqtq4/LhtzVa6v/9uJ0/MUjuEE 2l6a90bIMsvi83/UPBtd20DIJ0ib9cYj+xrL/Yx9h7GsD2qm1aYhVFPkKcM6g4l/PzZJ 6siPOBlfLLZLX/AwoEZ01IbKaj/oYb47QQH9yMvkhaB7jY1ZSf27wPI/r8rql212X6in VFZmnr6cHIAtF8ACtgQdSJBAzX3TyA9J51/Ed2B2Xu3Aq/pMHcM6PMRXnF+ekviaDD8I 7R6g== X-Gm-Message-State: AJcUukd5GS6apZ/lmDKLCHM+Z1zlQhB0tCBH6tm/rO0hP9j33NwRXXyT F+SVFz/q6vlTLmxM9K4Ef3o7eDPud3MuuaQ1rpbmwA== X-Received: by 2002:a19:5154:: with SMTP id f81mr7212599lfb.96.1547646688932; Wed, 16 Jan 2019 05:51:28 -0800 (PST) MIME-Version: 1.0 References: <20190114095804.27978-1-hch@lst.de> In-Reply-To: From: Linus Walleij Date: Wed, 16 Jan 2019 14:51:16 +0100 Message-ID: Subject: Re: remove block layer bounce buffering for MMC To: Arnd Bergmann Cc: Ulf Hansson , Christoph Hellwig , Russell King , Nicolas Pitre , Aaro Koskinen , Ben Dooks , "linux-mmc@vger.kernel.org" , Linux ARM , linux-omap , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Linux Kernel Mailing List 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 On Wed, Jan 16, 2019 at 11:25 AM Arnd Bergmann wrote: > On Mon, Jan 14, 2019 at 11:27 AM Ulf Hansson wrote: > > > > +Linus Walleij (recently made a cleanup of the mmc bounce buffering code). Nah it's not THAT bounce buffer. > Linus probably knows more here, but I have a vague recollection of > the MMC bounce buffer code being needed mostly for performance > reasons: when the scatterlist is discontiguous, that can result in > a request being split up into separate MMC commands, which due > to the lack of queued commands combined with the need for > garbage collection on sub-page writes results in a huge slowdown > compared to having larger bounce buffers all the time. > > We had discussed finding a different way to do this (separate > from the bounce buffering), but I don't know if that ever happened, > or if this is even the code that you are changing here. Nope not the same code. The term "bounce buffer" is sadly used as ambigously as __underscores in front of function names. That other "bounce buffer" was first deleted and then reimplemented as a local hack in the SDHCI driver core after it caused performance regressions on the i.MX and some laptops, see commit: commit bd9b902798ab14d19ca116b10bde581ddff8f905 mmc: sdhci: Implement an SDHCI-specific bounce buffer That should be orthogonal to Christoph's changes in this patch series. Yours, Linus Walleij