From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id AC6E7B7B65 for ; Fri, 11 Sep 2009 15:40:37 +1000 (EST) Subject: RE: AW: PowerPC PCI DMA issues (prefetch/coherency?) From: Benjamin Herrenschmidt To: Pravin Bathija In-Reply-To: <9D1E2BDCB5C57B46B56E6D80843439EB0580C926@SDCEXCHANGE01.ad.amcc.com> References: <1251926572.10090.17.camel@Adam> <200909110712.11858.sr@denx.de> <1252646270.8566.64.camel@pasglop> <200909110725.36208.sr@denx.de> <9D1E2BDCB5C57B46B56E6D80843439EB0580C926@SDCEXCHANGE01.ad.amcc.com> Content-Type: text/plain Date: Fri, 11 Sep 2009 15:40:21 +1000 Message-Id: <1252647621.8566.67.camel@pasglop> Mime-Version: 1.0 Cc: Andrea Zypchen , lebon@lebon.org.ua, Prodyut Hazarika , tburns@datacast.com, Stefan Roese , linuxppc-dev@lists.ozlabs.org, azilkie@datacast.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2009-09-10 at 22:35 -0700, Pravin Bathija wrote: > Thanks Stefan. The whole intention of the patch/hack (or whatever one > might call it :) ) was to avoid rogue drivers from setting > pci_cache_line_size to non-zero value even though the underlying > hardware doesn't support MRM calls. Nonetheless this approach works > only if the drivers use the kernel API for PCI config space access > provided by the powerpc platform driver. > Do you know many drivers that do config space accesses without using the config space accessors ? Such drivers should be banned to oblivion. Cheers, Ben.