From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>,
Linaro Kernel Mailman List <linaro-kernel@lists.linaro.org>,
Arnd Bergmann <arnd@arndb.de>, Laura Abbott <labbott@redhat.com>,
dri-devel <dri-devel@lists.freedesktop.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"Clark, Rob" <robdclark@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
Hans Verkuil <hverkuil@xs4all.nl>,
Mark Brown <broonie@kernel.org>
Subject: Re: [RFC simple allocator v2 1/2] Create Simple Allocator module
Date: Tue, 14 Feb 2017 21:59:55 +0200 [thread overview]
Message-ID: <2684010.GP2h2R50oJ@avalon> (raw)
In-Reply-To: <CAKMK7uEoC6vrx-Yi0K0bFaPRctRNLmjgYrZN4thmX6a3Y0KU3A@mail.gmail.com>
Hi Daniel,
On Tuesday 14 Feb 2017 20:44:44 Daniel Vetter wrote:
> On Tue, Feb 14, 2017 at 8:39 PM, Laurent Pinchart wrote:
> > On Tuesday 14 Feb 2017 20:33:58 Daniel Vetter wrote:
> >> On Mon, Feb 13, 2017 at 3:45 PM, Benjamin Gaignard wrote:
> >>> This is the core of simple allocator module.
> >>> It aim to offert one common ioctl to allocate specific memory.
> >>>
> >>> version 2:
> >>> - rebased on 4.10-rc7
> >>>
> >>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
> >>
> >> Why not ION? It's a bit a broken record question, but if there is a
> >> clear answer it should be in the patch&docs ...
> >
> > There's a bit of love & hate relationship between Linux developers and
> > ION. The API has shortcomings, and attempts to fix the issues went
> > nowhere. As Laura explained, starting from a blank slate (obviously
> > keeping in mind the lessons learnt so far with ION and other similar APIs)
> > and then adding a wrapper to expose ION on Android systems (at least as an
> > interim measure) was thought to be a better option. I still believe it is,
> > but we seem to lack traction. The problem has been around for so long that
> > I feel everybody has lost hope.
> >
> > I don't think this is unsolvable, but we need to regain motivation. In my
> > opinion the first step would be to define the precise extent of the
> > problem we want to solve.
>
> I'm not sure anyone really tried hard enough (in the same way no one
> tried hard enough to destage android syncpts, until last year). And
> anything new should at least very clearly explain why ION (even with
> the various todo items we collected at a few conferences) won't work,
> and how exactly the new allocator is different from ION. I don't think
> we need a full design doc (like you say, buffer allocation is hard,
> we'll get it wrong anyway), but at least a proper comparison with the
> existing thing. Plus explanation why we can't reuse the uabi.
I've explained several of my concerns (including open questions that need
answers) in another reply to this patch, let's discuss them there to avoid
splitting the discussion.
> Because ime when you rewrite something, you generally get one thing
> right (the one thing that pissed you off about the old solution), plus
> lots and lots of things that the old solution got right, wrong
> (because it's all lost in the history).
History, repeating mistakes, all that. History never repeats itself though. We
might make similar or identical mistakes, but there's no fatality, unless we
decide not to try before even starting :-)
> ADF was probably the best example in this. KMS also took a while until all
> the fbdev wheels have been properly reinvented (some are still the same old
> squeaky onces as fbdev had, e.g. fbcon).
>
> And I don't think destaging ION is going to be hard, just a bit of
> work (could be a nice gsoc or whatever).
Oh, technically speaking, it would be pretty simple. The main issue is to
decide whether we want to commit to the existing ION API. I don't :-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2017-02-14 19:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-13 14:45 [RFC simple allocator v2 0/2] Simple allocator Benjamin Gaignard
2017-02-13 14:45 ` [RFC simple allocator v2 1/2] Create Simple Allocator module Benjamin Gaignard
2017-02-14 19:30 ` Laurent Pinchart
2017-02-15 8:41 ` Benjamin Gaignard
2017-02-14 19:33 ` Daniel Vetter
2017-02-14 19:39 ` Laurent Pinchart
2017-02-14 19:44 ` Daniel Vetter
2017-02-14 19:59 ` Laurent Pinchart [this message]
2017-02-15 8:51 ` Benjamin Gaignard
2017-02-15 12:15 ` Mark Brown
2017-02-26 20:30 ` Daniel Vetter
2017-02-13 14:45 ` [RFC simple allocator v2 2/2] add CMA simple allocator module Benjamin Gaignard
2017-02-13 18:18 ` [RFC simple allocator v2 0/2] Simple allocator Mark Brown
2017-02-13 19:01 ` Laura Abbott
2017-02-14 16:45 ` Mark Brown
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=2684010.GP2h2R50oJ@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=benjamin.gaignard@linaro.org \
--cc=broonie@kernel.org \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=hverkuil@xs4all.nl \
--cc=labbott@redhat.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=robdclark@gmail.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;
as well as URLs for NNTP newsgroup(s).