Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3783996imu; Mon, 14 Jan 2019 09:00:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6BlYXK/2Em5UW6KqxpyJik0MATFRZzrGbAaI4zPPJDeYurSp3n6+rTqFk8EZ3kFVFydnkV X-Received: by 2002:a62:8dd9:: with SMTP id p86mr25986996pfk.143.1547485217419; Mon, 14 Jan 2019 09:00:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547485217; cv=none; d=google.com; s=arc-20160816; b=nzQ4HZXevvXOnxsI6CJpfAB2oVE64N8iCRyl+eILb9Xby+j1Nvbk2p5uMIofmKqcMm PnOmOAkGTqR4YFCLcdqlQHAiIZ6YgUV/zo9IBf4YNrt/DRo3uQiDWx4rmCZ2oBc9BgVg 3Ne5VbZbmUBE6dWSptw2xSJ3qjioN37YnGfk91xfJgEg4hrvt6nkmcLFrnu5/0eCfdNz hHGiESlzTi/LKUKLk+ODDH043I1z0V/Zk7rpBco9+LFXipm3Jguesx6OZM53LBCsmH3G w5QwSZV4PU4qjSFqMyjt1GzwggzJCiWzEPU8ilUpBgpZIQbkMnjHMNnJcX0d9HZ7kuZl jU/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VeiyiQqbry2LthxBw2R0AzbY3wD/ogQbMBDUYXuBh7o=; b=ZNnPyK5AhXVZDOgUN6ccufikNWvlJLYiL5bUMm5Cc4wLQ9wBTaihEv1WQoapbfXcZ8 mzXiKA6oIvrqDMIvOIPlUKWdWvs2TzLlXTZmPOJnr8+k4p+hlEI2TsMG5GATm4KS1ayH in2Eobwzb1/f5KdL7E9ohWdfYOGe2Bdt5XIqdCHGGn16yKOY+sFXyfXS7JqYg5cB+nWZ DNdEmDbeo3bsZPkG8Z/USE4YaQx5FwfNUbNrmaSzthZA6EkyKihy5FJIZ2fPkC4Fd7O3 DNk+fFKCeG2GQO+Kg1pkYAUx/IPjhB7sl2ae6tTgKSCT/jOB5h1a0gt+Rbi+r/eZb4Dz Yc6Q== 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 v2si659410pgn.451.2019.01.14.09.00.00; Mon, 14 Jan 2019 09:00:17 -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 S1726754AbfANQ56 (ORCPT + 99 others); Mon, 14 Jan 2019 11:57:58 -0500 Received: from verein.lst.de ([213.95.11.211]:47770 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbfANQ55 (ORCPT ); Mon, 14 Jan 2019 11:57:57 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 9077968D93; Mon, 14 Jan 2019 17:57:55 +0100 (CET) Date: Mon, 14 Jan 2019 17:57:55 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Christoph Hellwig , Ulf Hansson , Aaro Koskinen , Nicolas Pitre , linux-mmc@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Ben Dooks , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: remove block layer bounce buffering for MMC Message-ID: <20190114165755.GA7456@lst.de> References: <20190114095804.27978-1-hch@lst.de> <5d09d233-8631-2a35-cbcf-ba87b0314b3a@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d09d233-8631-2a35-cbcf-ba87b0314b3a@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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 04:52:40PM +0000, Robin Murphy wrote: > One general point for the kmap() conversions - it's not obvious (to me at > least) whether or how that would work for a segment where sg->length > > PAGE_SIZE. Or is there some cast-iron guarantee from the MMC mid-layer that > it will never let the block layer generate such things in the first place? None of this will with such segments. But yes, I guess the old case could have worked as long as any physical contigous ranges are also virtually contigous. So we might have to throw in a page size segment boundary here.