Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 5 Jun 2002 17:56:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 5 Jun 2002 17:56:42 -0400 Received: from nat-pool-rdu.redhat.com ([66.187.233.200]:63670 "EHLO devserv.devel.redhat.com") by vger.kernel.org with ESMTP id ; Wed, 5 Jun 2002 17:56:36 -0400 Date: Wed, 5 Jun 2002 17:56:29 -0400 From: Pete Zaitcev Message-Id: <200206052156.g55LuTI15282@devserv.devel.redhat.com> To: William Jhun Cc: linux-kernel@vger.kernel.org Subject: Re: Deprecate pci_dma_sync_{single,sg}()? In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >[...] > In the current linux-mips implementation, this has some subtle problems: > pci_unmap_{single,sg}() is essentially a no-op. Thus, in the above > example, a driver would break (stale cachelines from a previous > pci_dma_sync_*/read would not be invalidated). One might argue that a > cache invalidate should happen in the pci_unmap_single(). But then the > other case (where a driver does a pci_map, DMAs, does a pci_unmap, and > sends it up the stack) would require an additional cache > flush/invalidate that is not needed at all. Frist, fix mips, it is broken. Then patch those simple minded drivers that do map->dma->unmap cycle and suffer performance degradation to use pci_unmap(..., PCI_DMA_NONE). -- Pete - 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/