lkml.org 
[lkml]   [2002]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: is pci_alloc_consistent() really consistent on a pentium?
Thanks much for the response.

Can you point me at any sources/references that can
enlighten me on how this works? I did find some
additional information in the IA32 s/w dev guide
(particularly, vol 3-10.3.2) which reiterated your
response, but it seemed to give short shrift to the
mechanism behind it (it suggested that the magic was
in the snooping by the memory controller and cpu).

--- "David S. Miller" <davem@redhat.com> wrote:
> From: William Chow <lilbilchow@yahoo.com>
> Date: Thu, 30 May 2002 13:44:06 -0700 (PDT)
>
> If IA32 builds use the i386 version of
> pci_alloc_consistent(), how is the memory
> provided by
> this function really write-thru (on a pentium)
> since
> it appears to only set up the default mapping
> (PCD/PWT==0)? In contrast, pgprot_noncached() and
> pci_mmap_page_range() explicitly set these bits
> on a
> pentium (i.e. when boot_cpu_data.x86 > 3). Or am
> I
> missing something?
>
> pci_mmap_page_range maps I/O memory, like frame
> buffers and
> device registers.
>
> pci_alloc_consistent promises only that CPU writes
> will be coherent
> with PCI device DMA activity. For Pentium this
> holds true with all
> normal ram, because once the cpu does the store
> coherent transactions
> on the system bus (from, for example, the PCI
> device) will take a hit
> on the L2 cache line of the cpu and thus the cpu
> will provide the most
> up to date copy of the data.


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.065 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site