Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1008491imu; Wed, 16 Jan 2019 11:06:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6dvR8mArXwCc3Fm7GNagD6CsY8YkuKsqB9JtIs7BlTIfVuy54KMui8D7MwFYzjaVMH+DBn X-Received: by 2002:a63:f109:: with SMTP id f9mr10140312pgi.286.1547665613253; Wed, 16 Jan 2019 11:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547665613; cv=none; d=google.com; s=arc-20160816; b=LZoSyBPt6D+vFiaz5BhpT6UusPYEnk2X+IcRnL42Xx/1iqQUwtCC/5PsHqzijOFRGo XVcRW0PA57N09jp1UaAwFJAa1wTR4cPmdl079lOJR4w5yqNGjQ4Yd18tGEb6lb2i+wcZ CBTdLd0yX60eWoMX7yCv144SD29X2Arqs3nz1PguVtwO1QoSp1d3aQT76GWXmbkXVemC kufoz1bZLT/LvStM1rFJ2HDDYI3+9geSTObsOvxgyzZ6QIwBzGmflmAgwKEw3KxxAfwa QXWIj5zHZiN9qObYigzgyOASOr9kLzh5EjkwnorflMh08UKtGtlLDaIDWuDNCwOYLwgN zNhg== 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=LmsvamTKgo+58LgedZq1GakVrL3Oa2JR2r8mNl8nyVI=; b=pXcLPmmUwaPiSQclcaCYcqxqBcG289axrE/WwDrWikxX82wPrsTxA8TOiTU8CWdvHe dk8a+HOunYlM2/ozQSxtjalH15MgnT+f6EQn42TdqNBxleZ78gqiv11y9rbRkj+pEXy3 D5pl3S4thNVW2O3KFQxY8Ht7ibMm7OTvBVk8XXwoQQ8DzZ6EHW2FWxhmgKOIrK9qp1T/ Mlhiz/MN2MyWOFNtQAJmKXCgCPHGslMwe2NiBSjnWeabgSxFoP1vgux6pA0Lr68GVTt/ P/O3RDKiq4W3QYCJu2LvrifTq9tzZ/k/9D8059vtSio8r9QUaKKl5xqAr/wHVxaRlTjB cYew== 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 s4si6651035plr.306.2019.01.16.11.06.35; Wed, 16 Jan 2019 11:06:53 -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 S1732273AbfAPKZC (ORCPT + 99 others); Wed, 16 Jan 2019 05:25:02 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:46236 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729269AbfAPKZB (ORCPT ); Wed, 16 Jan 2019 05:25:01 -0500 Received: by mail-qt1-f194.google.com with SMTP id y20so6480018qtm.13; Wed, 16 Jan 2019 02:25:00 -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=LmsvamTKgo+58LgedZq1GakVrL3Oa2JR2r8mNl8nyVI=; b=at40uF9gLXB73WLeylDk4mWsjDDoWC4/NInB81kafbFudIfBExFllmxGU76u1t3xP+ HZR176KSEqAPGffLgp26/tI/taeOUEOY150tgjQnY3/KqzCxvlZxqz5WvhNP6T5LvF4M DEk8tnmB4QGeQGx4joSgqXw/AAduKD8gzpFCAJjCCCJ0m9uw2ZYta3zFNjGWJabtOeTH g6+A0jtC/6e9aM++0aK95MdK3C2Uk/wMxwCSeCXAZaKin9GQH0siNPVl2s4Lwx8a9xZD zmOAMFIWf1qKmwOT5Oh3kUjmbpPGJ2Hn7ANGzrvIrewur24h3cjQFgh6qyHeggkfveLs /Ljg== X-Gm-Message-State: AJcUukexUsqLrtTJ9YALKLDVEPcXs9zGzRyqNMSREjV0rAkhmio0mMde jShGj4eoBnToYcRLpW40WfEP/XGtTIFWyJqxrVk= X-Received: by 2002:ac8:1d12:: with SMTP id d18mr6344298qtl.343.1547634300459; Wed, 16 Jan 2019 02:25:00 -0800 (PST) MIME-Version: 1.0 References: <20190114095804.27978-1-hch@lst.de> In-Reply-To: From: Arnd Bergmann Date: Wed, 16 Jan 2019 11:24:43 +0100 Message-ID: Subject: Re: remove block layer bounce buffering for MMC To: Ulf Hansson Cc: Christoph Hellwig , Linus Walleij , 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 Mon, Jan 14, 2019 at 11:27 AM Ulf Hansson wrote: > > +Linus Walleij (recently made a cleanup of the mmc bounce buffering code). > > On Mon, 14 Jan 2019 at 10:58, Christoph Hellwig wrote: > > > > Hi everyone, > > > > this series converts the remaining MMC host drivers to properly kmap the > > scatterlist entries it does PIO operations on, and then goes on to > > remove the usage of block layer bounce buffering (which I plan to remove > > eventually) from the MMC layer. > > > > As a bonus I've converted various drivers to the proper scatterlist > > helpers so that at least in theory they are ready for chained > > scatterlists. > > > > All the changes are compile tested only as I don't have any of the > > hardware, so a careful review would be appreciated. > > Thanks for posting this. I will have a look as soon as I can, but > first needs to catch up with things since the holidays. 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. Arnd