From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Eric Anholt <eric@anholt.net>
Cc: "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>
Subject: Re: Questions about libdrm_intel and way to share physical memory between CPU and GPU
Date: Sat, 4 Jun 2011 11:00:59 +0100 [thread overview]
Message-ID: <20110604110059.0b7155fa@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <8762ome0g6.fsf@eliezer.anholt.net>
> I'd much rather be able to just hand that memory off to the kernel to
> use along with everything else and have there be nothing magic about it.
> But as I recall, the mtrr mappings of that memory was often goofy, so it
> may take some work to clean it up.
That also depends where it is located - you'd need to add memory hot
plug, and in the general case (as opposed to the Intel i9xx case) that
memory may not be main memory anyway.
We can't go giving memory that is actually part of some other system
complex on some of the non Intel devices to the CPU for example. So yes
its a hack that works in limited cases for Intel to give the memory to
the system but you need 3 level page tables, memory hot plug and PAT
enabled to pull that off.
Either way the two appear to be different things, and both have their
uses.
Alan
prev parent reply other threads:[~2011-06-04 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-27 21:37 Questions about libdrm_intel and way to share physical memory between CPU and GPU Segovia, Benjamin
2011-05-28 8:54 ` Chris Wilson
2011-05-31 23:14 ` Segovia, Benjamin
2011-06-02 18:42 ` Alan Cox
2011-06-04 3:32 ` Eric Anholt
2011-06-04 10:00 ` Alan Cox [this message]
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=20110604110059.0b7155fa@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=dri-devel@lists.freedesktop.org \
--cc=eric@anholt.net \
/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