From: Jerome Glisse <j.glisse@gmail.com>
To: dri-devel@lists.freedesktop.org, airlied@gmail.com,
Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: User ptr horror show
Date: Mon, 30 Jun 2014 14:21:28 -0400 [thread overview]
Message-ID: <20140630182126.GA3280@gmail.com> (raw)
So in light of the radeon patch to add user ptr, i took a look at
intel code and it is time to put an end to this non sense. It
violate so many mm assumptions that it just not a doable options.
So Intel code only register a range_start callback that means that
any gup or other i915 activities that happens just after this call
back returns as no idea what so ever of it might get. It might get
the old pages that are about to change or the new pages.
For the use case where the gpu is only reading thing from those
buffer this is fine. But the use case where gpu gonna writte to
them and then user space expect to be able to access what the gpu
wrote through its userspace mapping it will be like any games in
a casino. You will never ever win in the end. You are bound to
loose. Just no way around that.
So let just stop that non sense. Wake up from our dream and move
on.
I am not even talking about how invalidate_page is ignore and how
well this will play with page write back.
Cheers,
Jérôme
The Grand Inquisitor
next reply other threads:[~2014-06-30 18:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 18:21 Jerome Glisse [this message]
2014-06-30 18:47 ` User ptr horror show David Herrmann
2014-06-30 19:04 ` Jerome Glisse
2014-06-30 19:25 ` David Herrmann
2014-06-30 20:13 ` Jerome Glisse
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=20140630182126.GA3280@gmail.com \
--to=j.glisse@gmail.com \
--cc=airlied@gmail.com \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.