Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4361398imu; Mon, 28 Jan 2019 23:40:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN6FLkIT9/1L9p8iqxi5ojKeQSOcd07u5si4eLxsmzMvO+EEO6FDwFQTYzOw6RB/Bvsw6Vsy X-Received: by 2002:a17:902:704b:: with SMTP id h11mr25116898plt.157.1548747634743; Mon, 28 Jan 2019 23:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548747634; cv=none; d=google.com; s=arc-20160816; b=Q7XQgl0EWQh3HDdgOUpOyFpZ+eCt365+L3imRJrDljJaDhb/wPSbr7tsLX0DLmAM6r 7b870ErIecyUSJhvtM+TjOtFfG2xaUSy5aiSJkTSuh59ohuWtZufQLGbbn0WDP74/zhc 5OfuDWdtfJz98v2yA6f+kRm0JKneU63uQDl2oxNvql3NgzfwKcPPqjrFv9hjwpK8enbk pj1HqaRXPfyhYm3aUNaHIIoeKZGSSe74fOXQPNVOhsSl4/bfcvlxKxXfiWW8T2lklJny o6LMVw9BX3Uxlaus6/5SXqzuYSBmTQx/NgT/icocdsBWqLwkmAObtlhrUPcbtAQERM0/ DU6Q== 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=mp4B6ic8BPz83vtVBeG1S9ALykbLtfYFFF28MLXhZe8=; b=tJZldXri6QND/hpw3RTSDSNR1od8J6ZL7U5q24T5ypxNVpLQgGMLO7KmycUOZlQt+b tCXD+eJoMKOsEfosutGA9YjhVBD5qXFK2rLDJBpOmk2sTCHB6u0v+wzJSC30sxnEFlzH Vn26GLUljWaOP3pMNA+TYBPsHkXbOaXp6D1oO/Uf75M5Se0fSVh+SXVzMP8Zc746N/ek RA5ZzWf0vaY0ilGddMF70vyrUBjZ2sDaS6wD2RLX2Yt7+SWisqv+kd7CM3mi6nJxBd+E j7fy099/3W5PbfFw77/uHQEUEGbqF6A+TrYiWdJEkNSV8R6brDoJPbzq+n983tG3Wd9K FvCA== 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 n33si34716819pgl.336.2019.01.28.23.40.18; Mon, 28 Jan 2019 23:40:34 -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 S1727057AbfA2Hil (ORCPT + 99 others); Tue, 29 Jan 2019 02:38:41 -0500 Received: from verein.lst.de ([213.95.11.211]:44604 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfA2Hil (ORCPT ); Tue, 29 Jan 2019 02:38:41 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id BB9FB68CEB; Tue, 29 Jan 2019 08:38:39 +0100 (CET) Date: Tue, 29 Jan 2019 08:38:39 +0100 From: Christoph Hellwig To: "Michael S. Tsirkin" Cc: Christoph Hellwig , Joerg Roedel , Jason Wang , Konrad Rzeszutek Wilk , Jens Axboe , virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, jfehlig@suse.com, jon.grimm@amd.com, brijesh.singh@amd.com, jroedel@suse.de Subject: Re: [PATCH 5/5] virtio-blk: Consider virtio_max_dma_size() for maximum segment size Message-ID: <20190129073839.GB4087@lst.de> References: <20190123163049.24863-1-joro@8bytes.org> <20190123163049.24863-6-joro@8bytes.org> <20190123213139.GD9032@lst.de> <20190124084011.GJ32526@8bytes.org> <20190124084221.GB19441@lst.de> <20190124095150.GL32526@8bytes.org> <20190128080526.GA3874@lst.de> <20190128121407-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128121407-mutt-send-email-mst@kernel.org> 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 28, 2019 at 12:14:33PM -0500, Michael S. Tsirkin wrote: > On Mon, Jan 28, 2019 at 09:05:26AM +0100, Christoph Hellwig wrote: > > On Thu, Jan 24, 2019 at 10:51:51AM +0100, Joerg Roedel wrote: > > > On Thu, Jan 24, 2019 at 09:42:21AM +0100, Christoph Hellwig wrote: > > > > Yes. But more importantly it would fix the limit for all other block > > > > drivers that set large segment sizes when running over swiotlb. > > > > > > True, so it would be something like the diff below? I havn't worked on > > > the block layer, so I don't know if that needs additional checks for > > > ->dev or anything. > > > > Looks sensible. Maybe for now we'll just do the virtio-blk case > > that triggered it, and we'll do something like this patch for the > > next merge window. We'll also need to apply the same magic to the > > DMA boundary. > > So do I get an ack for this patch then? I'll wait for a resend of the series to review the whole thing.