From: "Dave Airlie" <airlied@gmail.com>
To: "David Miller" <davem@davemloft.net>
Cc: 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:15:48 +1000 [thread overview]
Message-ID: <21d7e9970704012215n67487549vbc7592a4f181e288@mail.gmail.com> (raw)
In-Reply-To: <20070401.220841.89389711.davem@davemloft.net>
> It might explain why my machine hung when I tried to use
> radeon with DRM on my sparc64 workstation :-) I have
> investigating that on my todo list.
True, maybe the intersection is me + hw like that + radeon :-)
> I don't know what to recommend to you, getting 8MB of linear memory
> really just isn't practical.
This is the thing it doesn't need to be linear, I have a GART onboard
the radeon that I can fill in, I just need internally in the kernel to
access it linearly and in userspace to map it linearly, but it doesn't
need to be physcially linear, vmalloc_32 + map_single should in theory
be possible if.. see below...
>
> Perhaps we'll have to create something ugly like vmalloc_nobounce().
>
> Remind me again why you're ending up with swiotlb'd pages?
> vmalloc_32() uses GFP_KERNEL which should use entirely lowmem and thus
> RAM below 4GB and not anything which should need bounce buffering.
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..
> Are you expecting to be able to virtually remap these pages in
> PCI space as one huge 8MB chunk too and that's how swiotlb gets
> involved? That won't work, sorry...
Well I feed the bus address for each page into a GART table in the GPU
and it does the linear stuff internally in the GPU memory
controller...
I suppose I want __GFP_I_D_RATHER_DIE_THAN_BOUNCE.
Dave.
next prev parent reply other threads:[~2007-04-02 5:15 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 [this message]
2007-04-02 5:24 ` David Miller
2007-04-02 6:27 ` Andi Kleen
2007-04-02 5:38 ` Dave Airlie
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=21d7e9970704012215n67487549vbc7592a4f181e288@mail.gmail.com \
--to=airlied@gmail.com \
--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®