Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1738893imu; Thu, 24 Jan 2019 00:42:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN5N8g/DLODNTu+JaEU6CeIS/Uk18CLlJHTwnxYdov5i7AViLqQTkfb4nEEp9jl3rHhGDqDH X-Received: by 2002:a62:528e:: with SMTP id g136mr5819228pfb.111.1548319371505; Thu, 24 Jan 2019 00:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548319371; cv=none; d=google.com; s=arc-20160816; b=JGVRlDeJM8Wdz+ZeVh7+EOjpNJup7wVAi1ZNLrN4O/oRoJbhGAgMRmKSOkElXcZbxN CUxocGBzbRx4+uLnCkOvTzZzFefl/rp8TbIPkIj4xju6OuG4GacTxs1XRg2cr6hkM6vh /JGmXwGLCTZ/qqP7Wl51BGRhWVEIGUYn9xt3itkzRpHfj9nytnLDdPvz9ToxsFeaQmG+ MKca1fkkVHeX2Lsgw8ceA9ODgy2J0lz8+N+mkLmPXUjl/CITkDD/OVWr5t5hb+htN1R1 O1nsV5ovb5mfe2GMyxgt27mz11RWtPq5/FWoJfu0ypuhKGUKAUAchQc9WZHLc0fQBKbT 1BFA== 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=zYJ+kGc1aVgaQ3BBjR9eOuHJCtFpZERbbp1RCoE3vB8=; b=qIy7RYA/anKOHucVMA4T7BNIakJ7Rb6nUv00GdS1LkE0ecrY5vD1vpz256NyvMts4z ajRZr0j1BD2BA1KJf1ILU7J/z5kTWtHU84wpyb4Mdkdoe87e8X8jsRnV53GVcq+ixHn7 ToaOhwSZTxwuZxXjnYZq3juOTi4A2ZNprNMvm5u745yv+KEncIPNonSTk9T9dxmMG7JH hUXpJAhrZmrsxkDzsp0Lqgweb4Mh/doFIxDAeLwNNfZ9mRekc2cYi5HRWi+xB3cKsXI4 Cf3zDdxDv1hA848iSjs5IJ1bA9vqWyf5V7diw8BV4qU/WhTC0OXDSpHFcQ+SYruM9PsA YJmQ== 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 k26si8705517pgb.72.2019.01.24.00.42.36; Thu, 24 Jan 2019 00:42:51 -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 S1727069AbfAXImY (ORCPT + 99 others); Thu, 24 Jan 2019 03:42:24 -0500 Received: from verein.lst.de ([213.95.11.211]:47436 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbfAXImX (ORCPT ); Thu, 24 Jan 2019 03:42:23 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 059B468DD3; Thu, 24 Jan 2019 09:42:22 +0100 (CET) Date: Thu, 24 Jan 2019 09:42:21 +0100 From: Christoph Hellwig To: Joerg Roedel Cc: Christoph Hellwig , "Michael S . Tsirkin" , 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: <20190124084221.GB19441@lst.de> References: <20190123163049.24863-1-joro@8bytes.org> <20190123163049.24863-6-joro@8bytes.org> <20190123213139.GD9032@lst.de> <20190124084011.GJ32526@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190124084011.GJ32526@8bytes.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 Thu, Jan 24, 2019 at 09:40:11AM +0100, Joerg Roedel wrote: > > I wonder if we should just move the dma max segment size check > > into blk_queue_max_segment_size so that all block drivers benefit > > from it. Even if not I think at least the SCSI midlayer should > > be updated to support it. > > In that case the limit would also apply to virtio-blk even if it doesn't > use the DMA-API. If that is acceptable we can move the check to > blk_queue_max_segment_size(). Yes. But more importantly it would fix the limit for all other block drivers that set large segment sizes when running over swiotlb.