Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263169AbUFQU4M (ORCPT ); Thu, 17 Jun 2004 16:56:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263166AbUFQU4L (ORCPT ); Thu, 17 Jun 2004 16:56:11 -0400 Received: from mx1.redhat.com ([66.187.233.31]:31442 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S263147AbUFQUyv (ORCPT ); Thu, 17 Jun 2004 16:54:51 -0400 Date: Thu, 17 Jun 2004 16:54:14 -0400 From: Alan Cox To: Andi Kleen Cc: Anton Blanchard , mark_salyzyn@adaptec.com, Christoph Hellwig , Alan Cox , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: PATCH: Further aacraid work Message-ID: <20040617205414.GE8705@devserv.devel.redhat.com> References: <286GI-5y3-11@gated-at.bofh.it> <286Qp-5EU-19@gated-at.bofh.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1063 Lines: 26 On Thu, Jun 17, 2004 at 09:10:43PM +0200, Andi Kleen wrote: > The AMD64 IOMMU could do it too (and the code to do it exists in > 2.6). But the problem is that the current IO layer doesn't provide a > sufficient fallback path when this fails. You have to promise in > advance that you can merge and then later it's too late to change your > mind without signalling an IO error. I would rather see it below the I/O layer for things like AMD64. The reason I say this is that many drivers would suffer from iommu merging not gain, and others may have limits. Something like new_sglist = sg_squash(old_sglist, [target max segments], [max per seg]) could be used by drivers when appropriate to hand back a better sg list (or if not possible the existing one). That would put control rather closer to the driver. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/