Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754615Ab0ATWXX (ORCPT ); Wed, 20 Jan 2010 17:23:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751257Ab0ATWXW (ORCPT ); Wed, 20 Jan 2010 17:23:22 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:50472 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751229Ab0ATWXW (ORCPT ); Wed, 20 Jan 2010 17:23:22 -0500 Date: Wed, 20 Jan 2010 22:24:14 +0000 From: Alan Cox To: Jarek Poplawski Cc: David Miller , Stephen Hemminger , Michael Breuer , akpm@linux-foundation.org, flyboy@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Michael Chan , Don Fry , Francois Romieu , Matt Carlson Subject: Re: [PATCH] sky2: Fix WARNING: at lib/dma-debug.c:902 check_sync Message-ID: <20100120222414.57909d14@lxorguk.ukuu.org.uk> In-Reply-To: <20100120094103.GA6225@ff.dom.local> References: <20100120094103.GA6225@ff.dom.local> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1048 Lines: 24 > > Seems like an underlying bug in the DMA api. Maybe it just can't > > handle operations on partial mapping. > > > > Other drivers with same problem: > > bnx2, cassini, pcnet32, r8169, rrunner, skge, sungem, tg3, > > It seems using the same length (even without pci_unmap_len()) is > crucial here, but I hope maintainers (added to CC) will take care. The API needs fixing - if you've got a large mapping and you want to sync part of it then we need to support that. Now it might well be that the implementation on some braindead platform has to sync the entire thing, and some implementations entire pages or cache lines. You can't fix this in the drivers, they requested a service and they don't have enough information nor is it their job to know about all the platform specific rules. 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/