Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd55d44f authored by Hans de Goede's avatar Hans de Goede Committed by Greg Kroah-Hartman
Browse files

staging: vboxvideo: Add vboxvideo to drivers/staging



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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMichael Thayer <michael.thayer@oracle.com>
Acked-by: default avatarDaniel Vetter <daniel@ffwll.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 677e6a1a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -110,4 +110,6 @@ source "drivers/staging/ccree/Kconfig"

source "drivers/staging/typec/Kconfig"

source "drivers/staging/vboxvideo/Kconfig"

endif # STAGING
+1 −0
Original line number Diff line number Diff line
@@ -44,3 +44,4 @@ obj-$(CONFIG_KS7010) += ks7010/
obj-$(CONFIG_GREYBUS)		+= greybus/
obj-$(CONFIG_BCM2835_VCHIQ)	+= vc04_services/
obj-$(CONFIG_CRYPTO_DEV_CCREE)	+= ccree/
obj-$(CONFIG_DRM_VBOXVIDEO)	+= vboxvideo/
+12 −0
Original line number Diff line number Diff line
config DRM_VBOXVIDEO
	tristate "Virtual Box Graphics Card"
	depends on DRM && X86 && PCI
	select DRM_KMS_HELPER
	help
	  This is a KMS driver for the virtual Graphics Card used in
	  Virtual Box virtual machines.

	  Although it is possible to builtin this module, it is advised
	  to build this driver as a module, so that it can be updated
	  independently of the kernel. Select M to built this driver as a
	  module and add support for these devices via drm/kms interfaces.
+7 −0
Original line number Diff line number Diff line
ccflags-y := -Iinclude/drm

vboxvideo-y :=  hgsmi_base.o modesetting.o vbva_base.o \
		vbox_drv.o vbox_fb.o vbox_hgsmi.o vbox_irq.o vbox_main.o \
		vbox_mode.o vbox_prime.o vbox_ttm.o

obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo.o
+9 −0
Original line number Diff line number Diff line
TODO:
-Move the driver over to the atomic API
-Stop using old load / unload drm_driver hooks
-Get a full review from the drm-maintainers on dri-devel done on this driver
-Extend this TODO with the results of that review

Please send any patches to Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Hans de Goede <hdegoede@redhat.com> and
Michael Thayer <michael.thayer@oracle.com>.
Loading