License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 21:07:57 +07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2015-10-29 15:36:23 +07:00
|
|
|
|
2008-05-29 07:09:59 +07:00
|
|
|
# Makefile for the drm device driver. This driver provides support for the
|
|
|
|
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
|
|
|
|
|
2019-04-18 14:10:40 +07:00
|
|
|
drm-y := drm_auth.o drm_cache.o \
|
2017-03-08 21:12:40 +07:00
|
|
|
drm_file.o drm_gem.o drm_ioctl.o drm_irq.o \
|
2019-04-18 14:10:40 +07:00
|
|
|
drm_memory.o drm_drv.o drm_pci.o \
|
2016-12-14 02:24:34 +07:00
|
|
|
drm_sysfs.o drm_hashtab.o drm_mm.o \
|
2016-06-09 16:54:08 +07:00
|
|
|
drm_crtc.o drm_fourcc.o drm_modes.o drm_edid.o \
|
2018-11-22 04:35:10 +07:00
|
|
|
drm_encoder_slave.o \
|
2018-10-19 15:54:23 +07:00
|
|
|
drm_trace_points.o drm_prime.o \
|
2013-11-20 00:10:12 +07:00
|
|
|
drm_rect.o drm_vma_manager.o drm_flip_work.o \
|
2016-08-15 21:07:02 +07:00
|
|
|
drm_modeset_lock.o drm_atomic.o drm_bridge.o \
|
2016-08-29 15:27:49 +07:00
|
|
|
drm_framebuffer.o drm_connector.o drm_blend.o \
|
2016-09-21 15:59:24 +07:00
|
|
|
drm_encoder.o drm_mode_object.o drm_property.o \
|
2016-11-14 18:58:16 +07:00
|
|
|
drm_plane.o drm_color_mgmt.o drm_print.o \
|
2017-04-04 10:26:24 +07:00
|
|
|
drm_dumb_buffers.o drm_mode_config.o drm_vblank.o \
|
2018-09-05 20:57:11 +07:00
|
|
|
drm_syncobj.o drm_lease.o drm_writeback.o drm_client.o \
|
2019-05-31 21:01:11 +07:00
|
|
|
drm_client_modeset.o drm_atomic_uapi.o drm_hdcp.o
|
2008-05-29 07:09:59 +07:00
|
|
|
|
2019-04-18 14:10:40 +07:00
|
|
|
drm-$(CONFIG_DRM_LEGACY) += drm_legacy_misc.o drm_bufs.o drm_context.o drm_dma.o drm_scatter.o drm_lock.o
|
2016-12-22 15:36:08 +07:00
|
|
|
drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
|
2017-01-04 16:12:56 +07:00
|
|
|
drm-$(CONFIG_DRM_VM) += drm_vm.o
|
2008-05-29 07:09:59 +07:00
|
|
|
drm-$(CONFIG_COMPAT) += drm_ioc32.o
|
2012-06-27 20:30:18 +07:00
|
|
|
drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o
|
2019-03-13 07:43:44 +07:00
|
|
|
drm-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_gem_shmem_helper.o
|
2019-04-23 06:55:20 +07:00
|
|
|
drm-$(CONFIG_DRM_ATI_PCIGART) += ati_pcigart.o
|
2013-08-30 18:36:43 +07:00
|
|
|
drm-$(CONFIG_DRM_PANEL) += drm_panel.o
|
2014-06-15 17:07:12 +07:00
|
|
|
drm-$(CONFIG_OF) += drm_of.o
|
2015-09-09 21:45:52 +07:00
|
|
|
drm-$(CONFIG_AGP) += drm_agpsupport.o
|
2016-10-06 22:21:06 +07:00
|
|
|
drm-$(CONFIG_DEBUG_FS) += drm_debugfs.o drm_debugfs_crc.o
|
drm: handle override and firmware EDID at drm_do_get_edid() level
Handle debugfs override edid and firmware edid at the low level to
transparently and completely replace the real edid. Previously, we
practically only used the modes from the override EDID, and none of the
other data, such as audio parameters.
This change also prevents actual EDID reads when the EDID is to be
overridden, but retains the DDC probe. This is useful if the reason for
preferring override EDID are problems with reading the data, or
corruption of the data.
Move firmware EDID loading from helper to core, as the functionality
moves to lower level as well. This will result in a change of module
parameter from drm_kms_helper.edid_firmware to drm.edid_firmware, which
arguably makes more sense anyway.
Some future work remains related to override and firmware EDID
validation. Like before, no validation is done for override EDID. The
firmware EDID is validated separately in the loader. Some unification
and deduplication would be in order, to validate all of them at the
drm_do_get_edid() level, like "real" EDIDs.
v2: move firmware loading to core
v3: rebase, commit message refresh
Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1e8a710bcac46e5136c1a7b430074893c81f364a.1505203831.git.jani.nikula@intel.com
2017-09-12 15:19:26 +07:00
|
|
|
drm-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
|
2008-05-29 07:09:59 +07:00
|
|
|
|
2019-05-08 15:26:11 +07:00
|
|
|
drm_vram_helper-y := drm_gem_vram_helper.o \
|
2019-05-08 15:26:16 +07:00
|
|
|
drm_vram_helper_common.o \
|
|
|
|
drm_vram_mm_helper.o
|
2019-05-08 15:26:11 +07:00
|
|
|
obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o
|
|
|
|
|
2018-11-28 04:41:07 +07:00
|
|
|
drm_kms_helper-y := drm_crtc_helper.o drm_dp_helper.o drm_dsc.o drm_probe_helper.o \
|
2016-01-22 06:10:18 +07:00
|
|
|
drm_plane_helper.o drm_dp_mst_topology.o drm_atomic_helper.o \
|
2016-06-10 21:55:59 +07:00
|
|
|
drm_kms_helper_common.o drm_dp_dual_mode_helper.o \
|
2017-03-13 18:23:59 +07:00
|
|
|
drm_simple_kms_helper.o drm_modeset_helper.o \
|
2018-10-05 03:24:28 +07:00
|
|
|
drm_scdc_helper.o drm_gem_framebuffer_helper.o \
|
2019-04-05 16:52:15 +07:00
|
|
|
drm_atomic_state_helper.o drm_damage_helper.o \
|
|
|
|
drm_format_helper.o
|
2016-01-22 06:10:18 +07:00
|
|
|
|
2017-06-06 21:31:50 +07:00
|
|
|
drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o
|
2015-08-05 13:58:57 +07:00
|
|
|
drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o
|
2012-07-02 21:37:47 +07:00
|
|
|
drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o
|
2016-01-22 06:10:19 +07:00
|
|
|
drm_kms_helper-$(CONFIG_DRM_DP_AUX_CHARDEV) += drm_dp_aux_dev.o
|
2018-07-11 20:29:07 +07:00
|
|
|
drm_kms_helper-$(CONFIG_DRM_DP_CEC) += drm_dp_cec.o
|
2009-09-07 12:45:33 +07:00
|
|
|
|
2009-09-08 08:08:32 +07:00
|
|
|
obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
|
2018-05-03 18:22:16 +07:00
|
|
|
obj-$(CONFIG_DRM_DEBUG_SELFTEST) += selftests/
|
2009-09-07 12:45:33 +07:00
|
|
|
|
2008-05-29 07:09:59 +07:00
|
|
|
obj-$(CONFIG_DRM) += drm.o
|
2013-12-04 22:35:12 +07:00
|
|
|
obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
|
2017-11-26 02:35:48 +07:00
|
|
|
obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o
|
2018-12-05 10:41:35 +07:00
|
|
|
obj-y += arm/
|
2009-06-22 23:16:13 +07:00
|
|
|
obj-$(CONFIG_DRM_TTM) += ttm/
|
2018-01-24 17:44:49 +07:00
|
|
|
obj-$(CONFIG_DRM_SCHED) += scheduler/
|
2008-05-29 07:09:59 +07:00
|
|
|
obj-$(CONFIG_DRM_TDFX) += tdfx/
|
|
|
|
obj-$(CONFIG_DRM_R128) += r128/
|
2014-12-21 20:21:41 +07:00
|
|
|
obj-$(CONFIG_HSA_AMD) += amd/amdkfd/
|
2008-05-29 07:09:59 +07:00
|
|
|
obj-$(CONFIG_DRM_RADEON)+= radeon/
|
2015-04-21 03:55:21 +07:00
|
|
|
obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
|
2008-05-29 07:09:59 +07:00
|
|
|
obj-$(CONFIG_DRM_MGA) += mga/
|
|
|
|
obj-$(CONFIG_DRM_I810) += i810/
|
2016-08-19 22:54:28 +07:00
|
|
|
obj-$(CONFIG_DRM_I915) += i915/
|
2012-04-17 21:01:25 +07:00
|
|
|
obj-$(CONFIG_DRM_MGAG200) += mgag200/
|
2018-05-01 01:10:58 +07:00
|
|
|
obj-$(CONFIG_DRM_V3D) += v3d/
|
2015-03-03 04:01:12 +07:00
|
|
|
obj-$(CONFIG_DRM_VC4) += vc4/
|
2012-04-17 20:12:29 +07:00
|
|
|
obj-$(CONFIG_DRM_CIRRUS_QEMU) += cirrus/
|
2008-05-29 07:09:59 +07:00
|
|
|
obj-$(CONFIG_DRM_SIS) += sis/
|
|
|
|
obj-$(CONFIG_DRM_SAVAGE)+= savage/
|
2009-12-10 07:19:58 +07:00
|
|
|
obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
|
2008-05-29 07:09:59 +07:00
|
|
|
obj-$(CONFIG_DRM_VIA) +=via/
|
2015-03-05 07:33:41 +07:00
|
|
|
obj-$(CONFIG_DRM_VGEM) += vgem/
|
2018-05-14 21:33:46 +07:00
|
|
|
obj-$(CONFIG_DRM_VKMS) += vkms/
|
2009-12-11 16:24:15 +07:00
|
|
|
obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
|
2011-10-04 17:19:01 +07:00
|
|
|
obj-$(CONFIG_DRM_EXYNOS) +=exynos/
|
2014-08-22 17:36:26 +07:00
|
|
|
obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
|
2011-11-04 01:22:48 +07:00
|
|
|
obj-$(CONFIG_DRM_GMA500) += gma500/
|
2010-12-15 04:14:24 +07:00
|
|
|
obj-$(CONFIG_DRM_UDL) += udl/
|
drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series (v2)
This is the initial driver for the Aspeed Technologies chips found in
servers. This driver supports the AST 2000, 2100, 2200, 2150 and 2300. It
doesn't support the AST11xx due to lack of hw to test it on, and them requiring
different codepaths.
This driver is intended to be used with xf86-video-modesetting in userspace.
This driver has a slightly different design than other KMS drivers, but
future server chips will probably share similiar setup. As these GPUs commonly
have low video RAM, it doesn't make sense to put the kms console in VRAM
always. This driver places the kms console into system RAM, and does dirty
updates to a copy in video RAM. When userspace sets a new scanout buffer,
it forcefully evicts the video RAM console, and X can create a framebuffer
that can use all of of video RAM.
This driver uses TTM but in a very simple fashion to control the eviction
to system RAM of the console, and multiple servers.
v2: add s/r support, fix Kconfig.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-02-29 20:40:04 +07:00
|
|
|
obj-$(CONFIG_DRM_AST) += ast/
|
2012-08-15 19:59:49 +07:00
|
|
|
obj-$(CONFIG_DRM_ARMADA) += armada/
|
2015-01-06 17:13:28 +07:00
|
|
|
obj-$(CONFIG_DRM_ATMEL_HLCDC) += atmel-hlcdc/
|
2019-01-17 06:11:37 +07:00
|
|
|
obj-y += rcar-du/
|
2012-04-26 18:53:59 +07:00
|
|
|
obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
|
2015-12-10 01:26:00 +07:00
|
|
|
obj-y += omapdrm/
|
2015-10-29 15:36:23 +07:00
|
|
|
obj-$(CONFIG_DRM_SUN4I) += sun4i/
|
2015-02-18 17:26:50 +07:00
|
|
|
obj-y += tilcdc/
|
drm: add new QXL driver. (v1.4)
QXL is a paravirtual graphics device used by the Spice virtual desktop
interface.
The drivers uses GEM and TTM to manage memory, the qxl hw fencing however
is quite different than normal TTM expects, we have to keep track of a number
of non-linear fence ids per bo that we need to have released by the hardware.
The releases are freed from a workqueue that wakes up and processes the
release ring.
releases are suballocated from a BO, there are 3 release categories, drawables,
surfaces and cursor cmds. The hw also has 3 rings for commands, cursor and release handling.
The hardware also have a surface id tracking mechnaism and the driver encapsulates it completely inside the kernel, userspace never sees the actual hw surface
ids.
This requires a newer version of the QXL userspace driver, so shouldn't be
enabled until that has been placed into your distro of choice.
Authors: Dave Airlie, Alon Levy
v1.1: fixup some issues in the ioctl interface with padding
v1.2: add module device table
v1.3: fix nomodeset, fbcon leak, dumb bo create, release ring irq,
don't try flush release ring (broken hw), fix -modesetting.
v1.4: fbcon cpu usage reduction + suitable accel flags.
Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-02-25 11:47:55 +07:00
|
|
|
obj-$(CONFIG_DRM_QXL) += qxl/
|
2013-12-18 00:04:46 +07:00
|
|
|
obj-$(CONFIG_DRM_BOCHS) += bochs/
|
2013-09-09 07:02:56 +07:00
|
|
|
obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/
|
drm/msm: basic KMS driver for snapdragon
The snapdragon chips have multiple different display controllers,
depending on which chip variant/version. (As far as I can tell, current
devices have either MDP3 or MDP4, and upcoming devices have MDSS.) And
then external to the display controller are HDMI, DSI, etc. blocks which
may be shared across devices which have different display controller
blocks.
To more easily add support for different display controller blocks, the
display controller specific bits are split out into a "kms" module,
which provides the kms plane/crtc/encoder objects.
The external HDMI, DSI, etc. blocks are part encoder, and part connector
currently. But I think I will pull in the drm_bridge patches from
chromeos tree, and split them into a bridge+connector, with the
registers that need to be set in modeset handled by the bridge. This
would remove the 'msm_connector' base class. But some things need to be
double checked to make sure I could get the correct ON/OFF sequencing..
This patch adds support for mdp4 crtc (including hw cursor), dtv encoder
(part of MDP4 block), and hdmi.
Signed-off-by: Rob Clark <robdclark@gmail.com>
2013-06-26 23:44:06 +07:00
|
|
|
obj-$(CONFIG_DRM_MSM) += msm/
|
2013-10-09 15:32:49 +07:00
|
|
|
obj-$(CONFIG_DRM_TEGRA) += tegra/
|
2017-04-14 17:13:34 +07:00
|
|
|
obj-$(CONFIG_DRM_STM) += stm/
|
2014-07-30 23:20:56 +07:00
|
|
|
obj-$(CONFIG_DRM_STI) += sti/
|
2014-11-24 22:33:34 +07:00
|
|
|
obj-$(CONFIG_DRM_IMX) += imx/
|
2016-01-05 00:36:34 +07:00
|
|
|
obj-$(CONFIG_DRM_MEDIATEK) += mediatek/
|
2016-11-10 21:29:37 +07:00
|
|
|
obj-$(CONFIG_DRM_MESON) += meson/
|
2009-12-11 16:24:15 +07:00
|
|
|
obj-y += i2c/
|
2013-08-30 20:10:14 +07:00
|
|
|
obj-y += panel/
|
2014-02-24 17:31:24 +07:00
|
|
|
obj-y += bridge/
|
2015-08-20 09:19:49 +07:00
|
|
|
obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
|
2015-12-04 00:21:29 +07:00
|
|
|
obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
|
2016-02-19 19:30:26 +07:00
|
|
|
obj-$(CONFIG_DRM_ARCPGU)+= arc/
|
2015-10-09 17:00:56 +07:00
|
|
|
obj-y += hisilicon/
|
2016-09-22 18:52:39 +07:00
|
|
|
obj-$(CONFIG_DRM_ZTE) += zte/
|
2016-08-19 01:23:01 +07:00
|
|
|
obj-$(CONFIG_DRM_MXSFB) += mxsfb/
|
2017-01-22 06:15:00 +07:00
|
|
|
obj-$(CONFIG_DRM_TINYDRM) += tinydrm/
|
drm/pl111: Initial drm/kms driver for pl111
This is a modesetting driver for the pl111 CLCD display controller
found on various ARM platforms such as the Versatile Express. The
driver has only been tested on the bcm911360_entphn platform so far,
with PRIME-based buffer sharing between vc4 and clcd.
It reuses the existing devicetree binding, while not using quite as
many of its properties as the fbdev driver does (those are left for
future work).
v2: Nearly complete rewrite by anholt, cutting 2/3 of the code thanks
to DRM core's excellent new helpers.
v3: Don't match pl110 any more, don't attach if we don't have a DRM
panel, use DRM_GEM_CMA_FOPS, update MAINTAINERS, use the simple
display helper, use drm_gem_cma_dumb_create (same as our wrapper).
v4: Change the driver's .name to not clash with fbdev in sysfs, drop
platform alias, drop redundant "drm" in DRM driver name, hook up
.prepare_fb to the CMA helper so that DMA fences should work.
v5: Move register definitions inside the driver directory, fix build
in COMPILE_TEST and !AMBA mode.
v6: Drop TIM2_CLKSEL for now to be consistent with existing DT
bindings, switch back to external register definitions.
Signed-off-by: Tom Cooksey <tom.cooksey@arm.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org> (v5)
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170413031746.12921-2-eric@anholt.net
2017-04-13 10:17:46 +07:00
|
|
|
obj-$(CONFIG_DRM_PL111) += pl111/
|
2017-08-20 17:05:55 +07:00
|
|
|
obj-$(CONFIG_DRM_TVE200) += tve200/
|
drm/xen-front: Add support for Xen PV display frontend
Add support for Xen para-virtualized frontend display driver.
Accompanying backend [1] is implemented as a user-space application
and its helper library [2], capable of running as a Weston client
or DRM master.
Configuration of both backend and frontend is done via
Xen guest domain configuration options [3].
Driver limitations:
1. Only primary plane without additional properties is supported.
2. Only one video mode supported which resolution is configured
via XenStore.
3. All CRTCs operate at fixed frequency of 60Hz.
1. Implement Xen bus state machine for the frontend driver according to
the state diagram and recovery flow from display para-virtualized
protocol: xen/interface/io/displif.h.
2. Read configuration values from Xen store according
to xen/interface/io/displif.h protocol:
- read connector(s) configuration
- read buffer allocation mode (backend/frontend)
3. Handle Xen event channels:
- create for all configured connectors and publish
corresponding ring references and event channels in Xen store,
so backend can connect
- implement event channels interrupt handlers
- create and destroy event channels with respect to Xen bus state
4. Implement shared buffer handling according to the
para-virtualized display device protocol at xen/interface/io/displif.h:
- handle page directories according to displif protocol:
- allocate and share page directories
- grant references to the required set of pages for the
page directory
- allocate xen balllooned pages via Xen balloon driver
with alloc_xenballooned_pages/free_xenballooned_pages
- grant references to the required set of pages for the
shared buffer itself
- implement pages map/unmap for the buffers allocated by the
backend (gnttab_map_refs/gnttab_unmap_refs)
5. Implement kernel modesetiing/connector handling using
DRM simple KMS helper pipeline:
- implement KMS part of the driver with the help of DRM
simple pipepline helper which is possible due to the fact
that the para-virtualized driver only supports a single
(primary) plane:
- initialize connectors according to XenStore configuration
- handle frame done events from the backend
- create and destroy frame buffers and propagate those
to the backend
- propagate set/reset mode configuration to the backend on display
enable/disable callbacks
- send page flip request to the backend and implement logic for
reporting backend IO errors on prepare fb callback
- implement virtual connector handling:
- support only pixel formats suitable for single plane modes
- make sure the connector is always connected
- support a single video mode as per para-virtualized driver
configuration
6. Implement GEM handling depending on driver mode of operation:
depending on the requirements for the para-virtualized environment,
namely requirements dictated by the accompanying DRM/(v)GPU drivers
running in both host and guest environments, number of operating
modes of para-virtualized display driver are supported:
- display buffers can be allocated by either
frontend driver or backend
- display buffers can be allocated to be contiguous
in memory or not
Note! Frontend driver itself has no dependency on contiguous memory for
its operation.
6.1. Buffers allocated by the frontend driver.
The below modes of operation are configured at compile-time via
frontend driver's kernel configuration.
6.1.1. Front driver configured to use GEM CMA helpers
This use-case is useful when used with accompanying DRM/vGPU driver
in guest domain which was designed to only work with contiguous
buffers, e.g. DRM driver based on GEM CMA helpers: such drivers can
only import contiguous PRIME buffers, thus requiring frontend driver
to provide such. In order to implement this mode of operation
para-virtualized frontend driver can be configured to use
GEM CMA helpers.
6.1.2. Front driver doesn't use GEM CMA
If accompanying drivers can cope with non-contiguous memory then, to
lower pressure on CMA subsystem of the kernel, driver can allocate
buffers from system memory.
Note! If used with accompanying DRM/(v)GPU drivers this mode of operation
may require IOMMU support on the platform, so accompanying DRM/vGPU
hardware can still reach display buffer memory while importing PRIME
buffers from the frontend driver.
6.2. Buffers allocated by the backend
This mode of operation is run-time configured via guest domain
configuration through XenStore entries.
For systems which do not provide IOMMU support, but having specific
requirements for display buffers it is possible to allocate such buffers
at backend side and share those with the frontend.
For example, if host domain is 1:1 mapped and has DRM/GPU hardware
expecting physically contiguous memory, this allows implementing
zero-copying use-cases.
Note, while using this scenario the following should be considered:
a) If guest domain dies then pages/grants received from the backend
cannot be claimed back
b) Misbehaving guest may send too many requests to the
backend exhausting its grant references and memory
(consider this from security POV).
Note! Configuration options 1.1 (contiguous display buffers) and 2
(backend allocated buffers) are not supported at the same time.
7. Handle communication with the backend:
- send requests and wait for the responses according
to the displif protocol
- serialize access to the communication channel
- time-out used for backend communication is set to 3000 ms
- manage display buffers shared with the backend
[1] https://github.com/xen-troops/displ_be
[2] https://github.com/xen-troops/libxenbe
[3] https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=docs/man/xl.cfg.pod.5.in;h=a699367779e2ae1212ff8f638eff0206ec1a1cc9;hb=refs/heads/master#l1257
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180403112317.28751-2-andr2000@gmail.com
2018-04-03 18:23:17 +07:00
|
|
|
obj-$(CONFIG_DRM_XEN) += xen/
|
2019-03-04 23:47:24 +07:00
|
|
|
obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
|
2019-03-09 19:20:12 +07:00
|
|
|
obj-$(CONFIG_DRM_LIMA) += lima/
|
2018-09-11 02:27:58 +07:00
|
|
|
obj-$(CONFIG_DRM_PANFROST) += panfrost/
|
2019-04-03 07:19:08 +07:00
|
|
|
obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
|
2019-05-24 16:20:19 +07:00
|
|
|
obj-$(CONFIG_DRM_MCDE) += mcde/
|