From: "David S. Miller" <davem@redhat.com>
To: emmanuel_michon@realmagic.fr
Cc: adam@yggdrasil.com, linux-kernel@vger.kernel.org
Subject: Re: Does pci_alloc_consisent really need to zero memory?
Date: Thu, 30 May 2002 03:54:07 -0700 (PDT) [thread overview]
Message-ID: <20020530.035407.49404208.davem@redhat.com> (raw)
In-Reply-To: <7w4rgpc2vd.fsf@avalon.france.sdesigns.com>
From: Emmanuel Michon <emmanuel_michon@realmagic.fr>
Date: 30 May 2002 13:05:26 +0200
"David S. Miller" <davem@redhat.com> writes:
> 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.
What was the idea when writing the code that zeroes memory? It seems
so useless.
Because 9 out of 10 drivers where I had to change virt_to_bus
into the portable pci_alloc_consistent were using get_free_pages()
which zeros things out for you.
I do actually remember that many of those instances in fact did
depend on the memory being zero'd for them, they weren't using the
"zero the pages too" variant instead of __get_free_pages()
gratuitously.
next prev parent reply other threads:[~2002-05-30 11:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-30 9:11 Does pci_alloc_consisent really need to zero memory? Adam J. Richter
2002-05-30 9:49 ` David S. Miller
2002-05-30 11:05 ` Emmanuel Michon
2002-05-30 10:54 ` David S. Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-05-30 11:41 Adam J. Richter
2002-05-30 11:30 ` David S. Miller
2002-06-03 16:45 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020530.035407.49404208.davem@redhat.com \
--to=davem@redhat.com \
--cc=adam@yggdrasil.com \
--cc=emmanuel_michon@realmagic.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox