Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1175415imu; Wed, 16 Jan 2019 14:10:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN7TClsOdBfrch0Svv/QhYl/wD2x/JNtidxoI+5B0ARb/B6fQozlhqH95wLUq2V0KG5Yk+ZG X-Received: by 2002:a63:134f:: with SMTP id 15mr10878702pgt.19.1547676603642; Wed, 16 Jan 2019 14:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547676603; cv=none; d=google.com; s=arc-20160816; b=NEw6NCBYj2M+Qz81H16ATcZWQRdfy8VmVBllvrpnURzUkUksZuNvUgFj4oJbe5yM/E dGgc1I+OfAE5VhGte+3kvVSGIK28pl/KfHS8fe+l8BZ/K7dTin//LD7BYGCTTn23JBBR C1x9YGfhn8+eBicgo3FKq6SFGT7y2M/9c/tEMQhK+wwEYsYnTnhcdayUegw/gXKTa2Mw oYaA43M6HofjnLMhmBlRrCl9cqwYdzOQjhyDDPW8nZ/EJdeY/gJcWMvuYbpgAa71PmOC dqCypGc2difx4Lz7DQV6ZWPJZz1U2uEjZGHBNRUu9pQs0mwm5rrW0hGrVHHHlNh3cC9v 7VSQ== 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; bh=OeXSLo9ui7FrcGRJ2DuvONgNX8g8U/wRgwtLSPYMQgY=; b=qp3dyQ7teo4GA9rSPlAedj/sg9zdaUqwfTaoL2D8uYznPD5u/77ochzLDtdGY1naAX he2ZaMdGObqtDkV0UKJVOhE6mrBA+5cfMAVxPwAoxUKskND92yqaZrAGNNhMuNalwXoa RRX9omlCdFtlZDJMgF/6AbN1ahGQ9pxZvmEJNwC0z/0/ggcldHb0WRNoFfjyRXDcKhBt 6WDdxUu6VNNBOgYEuZdETgbelAdne2em9endGGk0UehdEK3VpbRNFdgoAIMOdbZAVfpT RdZz7tGiEUU1jdbAF64q/aUGHmYfd8L/PmaKzNIPP7OrCHzpWjce0DxUpXKsM9eJ50tM eOWQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si7182419pgj.558.2019.01.16.14.09.46; Wed, 16 Jan 2019 14:10:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733209AbfAPNyg (ORCPT + 99 others); Wed, 16 Jan 2019 08:54:36 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34666 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727935AbfAPNyg (ORCPT ); Wed, 16 Jan 2019 08:54:36 -0500 Received: by mail-qk1-f196.google.com with SMTP id q8so3797484qke.1; Wed, 16 Jan 2019 05:54:35 -0800 (PST) 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=OeXSLo9ui7FrcGRJ2DuvONgNX8g8U/wRgwtLSPYMQgY=; b=Aa3Rdo2ODbPOtP7k81DI2p55Fc9r2sDcGrfklOwYmjh8IQEQYMC1kVU7gphj17AHRV fswhASIZu4qCoDsjUgPlTI89Ax/YTVydRoMrx3WrRiOazd0QJUnzoPRYdIopOxup7P9r HMwM7gvRIhEOPRnKjIt7snTYdsdELMBDrIqnabHqazqkpW6NZPsKlkpUIhhj3RC8IMft 6Xq0ScNh8Pi3vIDYhiwPfKKV8o0Th2PyAfc5calcPZaw+5efWjiDtCdXDe0t9E1SJ8Ce GF1AE4aWXCYLIj9x020iIG06jhThB5XprLlA9dGFfmWMhO3hJfXwNGQRMErlDxNQ3QYZ 4qWA== X-Gm-Message-State: AJcUukccdlvQgwmKraL3Wh8cUn/4r5UNb1cnfFmCxHdi/csVZJACeujo mI+mo7mP0lFaQfn5lY7TGjUET25pRryyTB2fnq/UQA== X-Received: by 2002:ae9:d8c2:: with SMTP id u185mr6371320qkf.107.1547646874745; Wed, 16 Jan 2019 05:54:34 -0800 (PST) MIME-Version: 1.0 References: <20190114095804.27978-1-hch@lst.de> In-Reply-To: From: Arnd Bergmann Date: Wed, 16 Jan 2019 14:54:18 +0100 Message-ID: Subject: Re: remove block layer bounce buffering for MMC To: Linus Walleij 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 2:51 PM Linus Walleij wrote: > > 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. Ok, thanks for the clarification. Please ignore my comments then. Arnd