dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: devel@driverdev.osuosl.org, vbox-dev@virtualbox.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Michael Thayer <michael.thayer@oracle.com>,
	dri-devel@lists.freedesktop.org,
	Daniel Vetter <daniel.vetter@intel.com>
Subject: Re: [PATCH v3] staging: vboxvideo: Add vboxvideo to drivers/staging
Date: Mon, 26 Jun 2017 18:26:51 +0200	[thread overview]
Message-ID: <51223ce5-4f8f-5b14-5a05-5ea9737bb85b@redhat.com> (raw)
In-Reply-To: <20170626162408.ftjf3oqmwr45xewc@phenom.ffwll.local>

Hi,

On 26-06-17 18:24, Daniel Vetter wrote:
> On Mon, Jun 26, 2017 at 06:06:19PM +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 23-06-17 11:31, Daniel Vetter wrote:
>>> On Thu, Jun 22, 2017 at 11:11:37AM +0200, Hans de Goede wrote:
>>>> This commit adds the vboxvideo drm/kms driver for the virtual graphics
>>>> card used in Virtual Box virtual machines to drivers/staging.
>>>>
>>>> Why drivers/staging? This driver is already being patched into the kernel
>>>> by several distros, thus it is good to get this driver upstream soon, so
>>>> that work on the driver can be easily shared.
>>>>
>>>> At the same time we want to take our time to get this driver properly
>>>> cleaned up (mainly converted to the new atomic modesetting APIs) before
>>>> submitting it as a normal driver under drivers/gpu/drm, putting this
>>>> driver in staging for now allows both.
>>>>
>>>> Note this driver has already been significantly cleaned up, when I started
>>>> working on this the files under /usr/src/vboxguest/vboxvideo as installed
>>>> by Virtual Box 5.1.18 Guest Additions had a total linecount of 52681
>>>> lines. The version in this commit has 4874 lines.
>>>>
>>>> Cc: vbox-dev@virtualbox.org
>>>> Cc: Michael Thayer <michael.thayer@oracle.com>
>>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>>> Signed-off-by: Michael Thayer <michael.thayer@oracle.com>
>>>> ---
>>>> Changes in v2:
>>>> -Add Michael's S-o-b
>>>> -Improve Kconfig help text
>>>> -Remove .config changes which accidentally got added to the commit
>>>>
>>>> Changes in v3:
>>>> -Convert the files shared with the video-driver for other operating-systems
>>>>    to kernel coding style too
>>>> -Remove unused code from these files
>>>
>>> In the end it's up to you, but our experience in drm with -staging has
>>> been that's both a pain (separate tree, which makes coordination harder
>>> for drm drivers) and a ghetto (no one from drm will look at your patches).
>>>
>>> Especially for small drivers (and this is one, and I expect if you use all
>>> the latest and greates helpers atomic will provide it'll shrink
>>> considerably) it's just not worth the pain to polish stuff twice.
>>>
>>> 0toh I see the benefit of putting stuff into staging so in the end it's up
>>> to you, just beware pls.
>>
>> Thanks for the heads up Daniel, for now I would like to move forward with
>> getting this in staging, but I do agree that it would be good to get it
>> into drivers/gpu soon. Michael do you think you will have some time soon
>> to look at moving this to the atomic helpers ?
> 
> To make it clear what I think is the minimal path towards drivers/gpu:
> - switch to atomic helpers (well probably simple_display_pipe if it fits)
> - delete half the driver code by dropping optional hooks and using helpers
> - make sure you don't use any callback/functions where the kerneldoc says
>    it's deprecated (e.g. load/unload)
> - merge

Thank you for this list, that is very helpful.

> We can do the checkpatch/style bikeshedding once merged into drivers/gpu/
> imo, that's real good fodder for newbies anyway :-)

Actually for v3 I've already converted everything to kernel coding style,
so that is already done :)

Regards,

Hans
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2017-06-26 16:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-22  9:11 [PATCH v3 0/1] staging: vboxvideo: Add vboxvideo to drivers/staging Hans de Goede
2017-06-22  9:11 ` [PATCH v3] " Hans de Goede
2017-06-22 12:03   ` Dan Carpenter
2017-06-23  9:16     ` Michael Thayer
2017-06-26 14:55     ` Hans de Goede
2017-06-28  9:23       ` Dan Carpenter
2017-06-23  9:31   ` Daniel Vetter
2017-06-26 16:06     ` Hans de Goede
2017-06-26 16:24       ` Daniel Vetter
2017-06-26 16:26         ` Hans de Goede [this message]
2017-06-27 11:56       ` Michael Thayer

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=51223ce5-4f8f-5b14-5a05-5ea9737bb85b@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=daniel.vetter@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=devel@driverdev.osuosl.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=michael.thayer@oracle.com \
    --cc=vbox-dev@virtualbox.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;
as well as URLs for NNTP newsgroup(s).