From: Steffen Persvold <sp@scali.no>
To: Tommy Reynolds <reynolds@redhat.com>,
linux-kernel@vger.kernel.org, Jens Axboe <axboe@kernel.org>
Subject: Re: Short question about the mmap method
Date: Sat, 05 Jan 2002 04:59:29 +0100 [thread overview]
Message-ID: <3C367A21.77E443F@scali.no> (raw)
In-Reply-To: <3C360FD5.91285F5D@scali.no> <20020104145949.682d51c4.reynolds@redhat.com> <3C3651E4.777EABA@scali.no> <3C366B70.DB1E9F0A@scali.no>
Steffen Persvold wrote:
>
> Another thing, when allocating memory with vmalloc, how can I be sure that the pages I get is
> adressable within 4GB (i.e I wan't to call pci_map_sg on this buffer for my 32bit PCI device without
> having to use bounce buffers ) ? On systems with less that 4GB of physical memory there's no
> problem, but what happens if you have more (lets say an IA64 server with 16GB of RAM) and don't have
> an IOMMU (like alpha and sparc) ?
>
> I noticed a vmalloc_32 in linux/vmalloc.h (the comment says "32bit PA addressable pages - eg for PCI
> 32bit devices"), but is that one platform independent (I see that it is only using GFP_KERNEL, while
> vmalloc is using GFP_KERNEL | __GFP_HIGHMEM) ? This issue goes for __get_free_pages too I guess.
>
Hmm, it helps looking back at old threads (which I actually was involved in).
What ever happened to Jens Axboe's "zone_dma32" patch ? Why wasn't it included in the main 2.4.6
kernel tree (seemed like a good idea to me) ?
Regards,
--
Steffen Persvold | Scalable Linux Systems | Try out the world's best
mailto:sp@scali.no | http://www.scali.com | performing MPI implementation:
Tel: (+47) 2262 8950 | Olaf Helsets vei 6 | - ScaMPI 1.12.2 -
Fax: (+47) 2262 8951 | N0621 Oslo, NORWAY | >300MBytes/s and <4uS latency
next prev parent reply other threads:[~2002-01-05 4:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 20:25 Short question about the mmap method Steffen Persvold
2002-01-04 20:59 ` Tommy Reynolds
2002-01-05 1:07 ` Steffen Persvold
2002-01-05 2:56 ` Steffen Persvold
2002-01-05 3:59 ` Steffen Persvold [this message]
2002-01-05 14:17 ` Roman Zippel
-- strict thread matches above, loose matches on Subject: below --
2002-01-05 17:52 Douglas Gilbert
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=3C367A21.77E443F@scali.no \
--to=sp@scali.no \
--cc=axboe@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=reynolds@redhat.com \
/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