Does pci_alloc_consisent really need to zero memory?

Adam J. Richter (adam@yggdrasil.com)
Thu, 30 May 2002 02:11:12 -0700


Is it really necessary for pci_alloc_consistent() to
fill the memory that it returns with all zeroes? I don't
see anything in Documentation/DMA-mapping.txt that specifies
it. I have been on the lookout for drivers that rely on it
for the past couple of months, and I haven't seen any. It's
only one line of code in arch/i386/kernel/pci-dma.c, but it
is potentially a lot of cycles, even if only zeroes the
space you requested (rather than the full pages that it
actually allocates).

If nobody objects in the next half day or so (or asks
me to follow some other course of action), I'll submit a patch for
2.5 for all architectures.

Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
-
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/