From: "Dave Airlie" <airlied@gmail.com>
To: "Andi Kleen" <andi@firstfloor.org>
Cc: "David Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org, dri-devel@lists.sourceforge.net
Subject: Re: drm + 4GB RAM + swiotlb = drm craps out
Date: Mon, 2 Apr 2007 15:38:48 +1000 [thread overview]
Message-ID: <21d7e9970704012238x2c5e6c62hc30933d9575910cf@mail.gmail.com> (raw)
In-Reply-To: <p731wj31ear.fsf@bingen.suse.de>
> >
> > On a 64-bit machine GFP_KERNEL can give me any memory... it all works
> > fine on 32-bit highmem kernel as I don't get highmem... I really need
> > __GFP_DMA32 memory but we don't have a generic allocator that gives
> > this out that I can see..
>
> __get_free_pages(..., __GFP_DMA32) on 64bit or __GFP_KERNEL or i386
> (only gives you ~900MB)
Doesn't __get_free_pages give me physically linear memory, which while
nice it isn't essential for what I need, so if I can't get my full
allocation I could in theory just start to fallback down the orders
and calling it multiple times to actually get the amount of memory I
need, this just seems overly cumbersome when what I really want is
vmalloc_32 to just work correctly on 64-bit systems... (why doesn't
vmalloc_32 pass __GFP_DMA32 to the allocator????)
> Not sure what you mean? __alloc_pages never bounces by itself.
> The nearest you can get is __GFP_DMA/__GFP_DMA32, but these have
> their own 16MB/4GB zones and don't use the swiotlb pools. And of course it
> only gives you plain memory, but doesn't remap or copy anything.
Yes I want __GFP_DMA32 but I'd like it with vmalloc not with
__get_free_pages and I've no great need for physically linear page
allocations and as I'm after quite a large order I can see this
failing ... granted with a 4GB system maybe not that quickly..
Dave.
next prev parent reply other threads:[~2007-04-02 5:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-01 23:44 Dave Airlie
2007-04-02 3:11 ` David Miller
2007-04-02 4:08 ` Dave Airlie
2007-04-02 5:08 ` David Miller
2007-04-02 5:15 ` Dave Airlie
2007-04-02 5:24 ` David Miller
2007-04-02 6:27 ` Andi Kleen
2007-04-02 5:38 ` Dave Airlie [this message]
2007-04-02 6:40 ` Andi Kleen
2007-04-02 6:52 ` Dave Airlie
2007-04-02 6:55 ` Andi Kleen
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=21d7e9970704012238x2c5e6c62hc30933d9575910cf@mail.gmail.com \
--to=airlied@gmail.com \
--cc=andi@firstfloor.org \
--cc=davem@davemloft.net \
--cc=dri-devel@lists.sourceforge.net \
--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
all inboxes | Powered by JetHome®