public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Walker <dwalker@codeaurora.org>
To: Dave Airlie <airlied@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	linux-arm-msm@vger.kernel.org, jcrouse@codeaurora.org
Subject: Re: Closed source userspace graphics drivers with an open source  kernel component
Date: Thu, 01 Jul 2010 17:08:04 -0700	[thread overview]
Message-ID: <1278029284.7738.116.camel@c-dwalke-linux.qualcomm.com> (raw)
In-Reply-To: <AANLkTilGdNgWIprJ2XZ2gSv2d-DVybGmb9phcboi4fNL@mail.gmail.com>

On Fri, 2010-07-02 at 09:37 +1000, Dave Airlie wrote:

> > Oh, man .. It seems like any driver model that straddles userspace and
> > kernel space is kind of asking for trouble (my opinion anyway)..
> >
> > Would you accept a userspace component that supported some subset of the
> > features ? You would have a kernel space driver, and userspace both open
> > source and GPL'd , but the userspace component wouldn't support ever
> > feature available .. Then the company would be free to make another
> > proprietary userspace with more features based off the open source one.
> >
> 
> That starts to get a bit more towards useful, except you still run
> into the problem of what happens if community developers start adding
> features to the open driver, that conflict with  features in the
> closed code. We'd also have to be very careful about what interfaces
> the kernel exposed had corresponding code in userspace. i.e. adding
> "special" ioctls for the closed bits would be a disaster, all such
> ioctls would need open users for verification and testing.

Ok .. The open userspace would just be like any other project, but
whatever company pushed the driver would likely maintain the userspace
component .. So the maintainer would have to handle the conflicts
between the proprietary vs. open source sides of it.

Actually , now that I think about it the biggest problem is the license
of the userspace side.. Whatever company makes this would have to be
able to relicense it and actually make a proprietary userspace.. So the
userspace license would be really critical.. Either that or no one
outside the company that pushed the driver could make code changes to
the userspace side..

> So for example, if you have a kernel KMS/DRM driver, and it set the
> hardware up, but then you had an open 2D driver and a closed 3D
> driver, you would have to make sure there was no functionality in the
> kernel that only the 3D driver used as it would become impossible to
> openly validate it.

Ok. I'm not sure how crazy that would be to setup, but it doesn't seem
like it would be that hard to just abstract the various components of
the driver.

> The other issue I see with a lot of these, is the driver are presented
> as this is the kernel driver, these APIs are set in stone as we have
> binary userspaces already deployed, this is even more unacceptable,
> since we need to be able to change the interface and do proper driver
> design before merging what looks like crap thrown together in a pile
> and made to stick.

This seems really wild to me .. Your talking about how you change the
kernel space side and you need to be able to change the userspace side
to match right ?

Where does the userspace side of these driver live? Not in the kernel
right?

Daniel

-- 
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.


  reply	other threads:[~2010-07-02  0:08 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-01 22:10 Closed source userspace graphics drivers with an open source kernel component Dave Airlie
2010-07-01 22:36 ` Dave Airlie
2010-07-01 22:51   ` Daniel Walker
2010-07-01 22:57     ` Dave Airlie
2010-07-01 23:29       ` Daniel Walker
2010-07-01 23:37         ` Dave Airlie
2010-07-02  0:08           ` Daniel Walker [this message]
2010-07-02  0:13             ` Dave Airlie
2010-07-02  0:18               ` Saravana Kannan
     [not found]                 ` <AANLkTilsqmCZwLUNJhvDKkralHQZzlRV3ZxaIGbt9-xB@mail.gmail.com>
     [not found]                   ` <AANLkTinvzJrx4AqgWYuMg66Djf-snouLQZE7wI9Bu0Kv@mail.gmail.com>
2010-07-02  0:42                     ` Timothy Meade
2010-07-02  2:46                       ` Dave Airlie
2010-07-02  3:01                         ` Piotr Gluszenia Slawinski
2010-07-02  4:54                           ` Howard Chu
2010-07-02  6:52                             ` Piotr Gluszenia Slawinski
2010-07-14 13:24                           ` Pavel Machek
2010-07-16  0:42                             ` Tim HRM
2010-07-01 23:51 ` Piotr Gluszenia Slawinski
2010-07-02  1:27   ` Corbin Simpson
2010-07-02  7:48 ` Christoph Hellwig
2010-07-02  9:58 ` Luc Verhaegen
2010-07-02 10:15   ` Christoph Hellwig
2010-07-02 11:12     ` Luc Verhaegen
2010-07-02 11:26       ` Dave Airlie
2010-07-02 10:23   ` Dave Airlie
2010-07-02 11:10     ` Luc Verhaegen
2010-07-02 11:53       ` Dave Airlie
2010-07-02 12:07         ` "C. Bergström"
2010-07-02 14:45           ` Xavier Bestel
2010-07-02 15:03             ` "C. Bergström"
     [not found]         ` <AANLkTinZXHi_mbmsX1HTzbMNjQx7j0rbEfTKSoz-02CF@mail.gmail.com>
2010-07-04  7:27           ` Dave Airlie
2010-07-04 11:03             ` Theodore Tso
2010-07-04 15:37               ` Matthew Garrett
2010-07-04 20:05               ` Dave Airlie
2010-07-02 14:01       ` Anton Vorontsov
2010-07-03  0:41   ` Ian Romanick

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=1278029284.7738.116.camel@c-dwalke-linux.qualcomm.com \
    --to=dwalker@codeaurora.org \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jcrouse@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --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