* DMA bus-master writes & CPU cache question
@ 1999-07-11 23:07 Alan Arolovitch
1999-07-12 11:51 ` Philip Blundell
0 siblings, 1 reply; 2+ messages in thread
From: Alan Arolovitch @ 1999-07-11 23:07 UTC (permalink / raw)
To: linux-kernel; +Cc: Alan Arolovitch
Hi,
we're developing broadband NIC driver and I have the following
question: the hardware performs PCI bus-master DMA writes into
the RAM and the driver is either throgh polling or interrupt
handling routine reads the DMA area.
Should CPU cache affect reading data from the DMA area, i.e.
may some buffering effect or data inconherence appear? If so,
what are the options?
I've seen some mention to allocation of non-cacheable memory
in NDIS documentation, is it something I have to do in Linux
as well?
i'd appreciate responses via email, i don't regularly monitor
the list. and of course i'll summarize to the list..
rgds,
--alan.
--
Alan Arolovitch, CTO Gravity Computing Solutions Ltd.
email: alan@gravity-cs.com + tel.: +972-3-5474450 + fax: +972-3-5474451
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DMA bus-master writes & CPU cache question
1999-07-11 23:07 DMA bus-master writes & CPU cache question Alan Arolovitch
@ 1999-07-12 11:51 ` Philip Blundell
0 siblings, 0 replies; 2+ messages in thread
From: Philip Blundell @ 1999-07-12 11:51 UTC (permalink / raw)
To: Alan Arolovitch; +Cc: linux-kernel
>Should CPU cache affect reading data from the DMA area, i.e.
>may some buffering effect or data inconherence appear? If so,
>what are the options?
This depends on your architecture. Intel platforms are fully DMA coherent;
the chipset snoops on DMA cycles and flushes the cache as required to maintain
a consistent view. On some other machines this is not the case and you must
deal with the caches by hand (see, for example,
include/asm-arm/proc-armv/io.h).
p.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-07-12 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-11 23:07 DMA bus-master writes & CPU cache question Alan Arolovitch
1999-07-12 11:51 ` Philip Blundell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.