linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* problem with pci_alloc_consistent
@ 2002-09-16 22:38 wahmad
  0 siblings, 0 replies; only message in thread
From: wahmad @ 2002-09-16 22:38 UTC (permalink / raw)
  To: linuxppc-embedded


I am using pci_alloc_consistent() for obtaining contiguous memory that is
cache safe. Here is how I am calling the routine

pci_alloc_consistent(NULL,size,&dummy).
Note I am throwing away the bus address.

The memory that I get does not seem to be cache safe. My device doesn't see
the data  untill I add flush_dcache_range(..). It is very undesirable for me
to add flushes and invalidates. I will appreciate any help in this matter.

I am using kernel version 2.4.20-pre5 for IBM PPC405GP and using version
2.95.3 for gcc on an x86 as a cross compiler.

I also have CONFIG_NOT_COHERENT_CACHE defined.

Thanks

Waqar


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-16 22:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-16 22:38 problem with pci_alloc_consistent wahmad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).