Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763300AbXFATrm (ORCPT ); Fri, 1 Jun 2007 15:47:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762477AbXFATrg (ORCPT ); Fri, 1 Jun 2007 15:47:36 -0400 Received: from one.firstfloor.org ([213.235.205.2]:48854 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762441AbXFATrf (ORCPT ); Fri, 1 Jun 2007 15:47:35 -0400 Date: Fri, 1 Jun 2007 21:47:34 +0200 From: Andi Kleen To: Rik van Riel Cc: Andi Kleen , Christoph Hellwig , linux-kernel , andrew.vasquez@qlogic.com Subject: Re: [PATCH] quiet down swiotlb warnings Message-ID: <20070601194734.GJ7217@one.firstfloor.org> References: <466057B1.9090309@redhat.com> <20070601181225.GA16460@infradead.org> <20070601193703.GI7217@one.firstfloor.org> <466075D1.8080807@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <466075D1.8080807@redhat.com> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1226 Lines: 36 On Fri, Jun 01, 2007 at 03:38:57PM -0400, Rik van Riel wrote: > Andi Kleen wrote: > > >An pci_map_sg failing typically leads to an IO error and we've > >always printk'ed those. Otherwise people will wonder why they > >get EIO. > > In some situations. In this case the qla2xxx driver uses > the pci_map_sg() failure as a throttling mechanism and First WTF does it need swiotlb anyways? QA hardware should be definitely DAC capable, shouldn't it? > printing out all the warnings will actually slow down the > system. Another reason is that there is a lot of code that still doesn't check the return values and when that happens you might get data corruption too. > > Andi, what do you propose as a solution? A different interface; like I wrote in my earlier mail. Another probabibility would be to have a blocking interface to swiotlb that won't fail. That would be the better solution long term, but i was told it is hard to fit into some current driver interfaces. -Andi - 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/