[lkml]   [2002]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Does pci_alloc_consisent really need to zero memory?
       From: "Adam J. Richter" <>
    Date: 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).

    pci_alloc_consistent is so rare, I doubt it matters performance

    I'd rather see a patch to DMA-mapping.txt that specifies the memory
    returned is zeroed out, as this is what every implementation appears
    to do.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:26    [W:0.023 / U:5.636 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site