Home | History | Annotate | Download | only in drm
History log of /src/sys/external/bsd/drm2/dist/drm/drm_crtc.c
RevisionDateAuthorComments
 1.19  19-Dec-2021  riastradh 64-bit printf
 1.18  18-Dec-2021  riastradh Merge linux-drm-v5-6-rc3
 1.17  27-Jun-2020  jmcneill prop_dictionary_get_cstring -> prop_dictionary_get_string
 1.16  14-Feb-2020  maya Reduce diffs by side-loading some header files like Linux.

From riastradh
 1.15  14-Feb-2020  riastradh Revert cosmetic changes.
 1.14  14-Feb-2020  riastradh Reduce diffs by nixing DRM_SUSER macro, deleted upstream long ago.

Instead stub Linux capable(CAP_SYS_ADMIN).
 1.13  14-Feb-2020  riastradh Use a header file hack to cope with Linux/NetBSD namespace clashes.

Currently serves for:

ALIGN
mutex_init
mutex_destroy
 1.12  14-Feb-2020  riastradh Eliminate -Wpointer-arith patches; use -Wno-pointer-arith instead.
 1.11  27-Aug-2018  riastradh branches: 1.11.6;
Call drm_modeset_lock_fini in drm_plane_cleanup.

From mrg@.
 1.10  27-Aug-2018  riastradh Initialize connector->kdev, which amdgpu uses.
 1.9  27-Aug-2018  riastradh Sprinkle idr_preload/idr_preload_end.

Try to do these outside all mutex locks.

Tricky case is i915_gem_context, where the struct mutex is held for a
long time.
 1.8  27-Aug-2018  riastradh Fix up drm_crtc.c.

- Ifdef out debugfs variables.
- Restore int ret declaration lost in merge.
- Use PRIu64, not %llu, for uint64_t.
 1.7  27-Aug-2018  riastradh Adapt abuse of kref abstraction in DRM_DEBUG messages.
 1.6  27-Aug-2018  riastradh Use kref_exclusive_p, rather than abusing kref abstraction.
 1.5  27-Aug-2018  riastradh merge linux-drm-v4-4-143
 1.4  16-Jul-2014  riastradh branches: 1.4.4; 1.4.28; 1.4.30;
Make it build and boot on my test machines.

Screen blanks on boot on the Ivy Bridge system with

DRM error in cpt_serr_int_handler: PCH transcoder A FIFO underrun

But after that everything is OK. Appears to be an upstream problem.
To investigate...

I think there's a cache flushing issue somewhere -- there are little
display artefacts on my T60.
 1.3  16-Jul-2014  riastradh fix merge conflicts
 1.2  18-Mar-2014  riastradh branches: 1.2.2; 1.2.4;
Merge riastradh-drm2 to HEAD.
 1.1  23-Jul-2013  riastradh branches: 1.1.1;
Initial revision
 1.1.1.4  18-Dec-2021  riastradh Import drm from Linux v5.6-rc3 (commit f8788d86ab28f61f7b46eb6be375f8a726783636)

drivers/gpu/drm -> sys/external/bsd/drm2/dist/drm
include/drm -> sys/external/bsd/drm2/dist/include/drm
include/uapi/drm -> sys/external/bsd/drm2/dist/include/uapi/drm

GPL exclusions in dist/drm:

- amd/amdgpu/amdgpu_atpx_handler.c
- arc/
- arm/
- armada/
- aspeed/
- atmel-hlcdc/
- bochs/
- bridge/
- cirrus/
- drm_dp_cec.c
- drm_dp_mst_topology_internal.h
- drm_edid_load.c
- drm_format_helper.c
- drm_gem_cma_helper.c
- drm_gem_framebuffer_helper.c
- drm_gem_shmem_helper.c
- drm_gem_ttm_helper.c
- drm_gem_vram_helper.c
- drm_hdcp.c
- drm_lease.c
- drm_mipi_dbi.c
- drm_simple_kms_helper.c
- drm_sysfs.c
- drm_trace.h
- drm_vram_helper_common.c
- drm_writeback.c
- etnaviv/
- exynos/
- fsl-dcu/
- gma500/
- hisilicon/
- i2c/tda9950.c
- i2c/tda998x_drv.c
- i915/gt/selftest_context.c
- i915/gt/selftest_engine.c
- i915/gt/selftest_engine.h
- i915/gt/selftest_engine_cs.c
- i915/gt/selftest_engine_pm.c
- i915/i915_trace.h
- i915/selftests/i915_live_selftests.h
- i915/selftests/i915_mock_selftests.h
- i915/selftests/i915_perf_selftests.h
- i915/selftests/lib_sw_fence.h
- imx/
- ingenic/
- lima/
- mcde/
- mediatek/
- meson/
- mgag200/
- msm/
- mxsfb/
- omapdrm/
- panel/
- panfrost/
- pl111/
- radeon/radeon_atpx_handler.c
- rcar-du/
- rockchip/
- selftests/drm_cmdline_selftests.h
- selftests/drm_modeset_selftests.h
- selftests/test-drm_cmdline_parser.c
- selftests/test-drm_damage_helper.c
- selftests/test-drm_dp_mst_helper.c
- selftests/test-drm_format.c
- selftests/test-drm_framebuffer.c
- selftests/test-drm_modeset_common.c
- selftests/test-drm_modeset_common.h
- selftests/test-drm_plane_helper.c
- selftests/test-drm_rect.c
- shmobile/
- sti/
- stm/
- sun4i/
- tegra/
- tilcdc/
- tiny/
- tve200/
- udl/
- v3d/
- vc4/
- virtio/virtgpu_trace.h
- virtio/virtgpu_trace_points.c
- vkms/
- vmwgfx/device_include/vmware_pack_begin.h
- vmwgfx/device_include/vmware_pack_end.h
- zte/

Exceptions -- these all appear to be files to which someone added
an SPDX license header automatically by a script that is not aware
of the default MIT licensing under drivers/gpu/drm:

- ast/ast_dp501.c
- ast/ast_dram_tables.h
- lib/drm_random.c
- lib/drm_random.h
- i915/display/intel_acpi.c
- i915/selftests/mock_gem_device.h
- i915/selftests/i915_mock_selftests.h
- i915/selftests/i915_live_selftests.h
- r128/ati_pcigart.h
- selftests/drm_mm_selftests.h
- selftests/test-drm_mm.c
- vmwgfx/device_include/vm_basic_types.h

GPL exclusions in dist/include/drm:

- bridge
- drm_client.h
- drm_fb_cma_helper.h
- drm_format_helper.h
- drm_gem_cma_helper.h
- drm_gem_shmem_helper.h
- drm_gem_ttm_helper.h
- drm_gem_vram_helper.h
- drm_lease.h
- drm_mipi_dbi.h
- drm_mipi_dsi.h
- drm_of.h
- drm_simple_kms_helper.h
- drm_sysfs.h
- drm_writeback.h
- gma_drm.h
- i2c/tda998x.h
- i915_mei_hdcp_interface.h
- intel-gtt.h

Exceptions:
- drm_agpsupport.h - was in original drm; wrong spdx header auto-added

GPL exclusions in dist/include/uapi/drm:

- armada_drm.h
- etnaviv_drm.h
- exynos_drm.h
- lima_drm.h
- omap_drm.h

Exceptions:
- i810_drm.h - was in original drm; spdx header is wrong
 1.1.1.3  27-Aug-2018  riastradh Import drm from Linux v4.4.143 (commit a8ea6276d00555387deaaa5eaeb380cd5c17bdc9).

drivers/gpu/drm -> sys/external/bsd/drm2/dist/drm
include/drm -> sys/external/bsd/drm2/dist/include/drm
include/uapi/drm -> sys/external/bsd/drm2/dist/uapi/drm

GPL sources excluded.
 1.1.1.2  16-Jul-2014  riastradh Import drm from Linux 3.15 (commitid 1860e379875dfe7271c649058aeddffe5afd9d0d).

drivers/gpu/drm -> sys/external/bsd/drm2/dist/drm
include/drm -> sys/external/bsd/drm2/dist/include/drm
include/uapi/drm -> sys/external/bsd/drm2/dist/uapi/drm

GPL sources excluded.
 1.1.1.1  23-Jul-2013  riastradh branches: 1.1.1.1.2; 1.1.1.1.4;
Import drm sources from Linux v3.8-rc6.
(commit id 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7)

Linux NetBSD
drivers/gpu/drm sys/external/bsd/drm2/dist/drm
include/drm sys/external/bsd/drm2/dist/include/drm
include/uapi/drm sys/external/bsd/drm2/dist/uapi/drm

Files/subtrees excluded because of licence issues, to be either
revisited later (particularly nouveau and radeon, which are mostly
permissively licensed but a number of whose files have no licence
statements), rewritten/ignored, or imported later as kernel modules
under external/gpl2 instead:

include/drm/drm_fb_cma_helper.h
include/drm/drm_gem_cma_helper.h
include/drm/drm_os_linux.h
include/drm/drm_pciids.h
include/drm/drm_sysfs.h
include/drm/drm_usb.h
include/drm/exynos_drm.h
include/drm/gma_drm.h
include/drm/intel-gtt.h
drm/cirrus
drm/drm_edid_load.c
drm/drm_fb_cma_helper.c
drm/drm_gem_cma_helper.c
drm/drm_sysfs.c
drm/drm_trace.h
drm/drm_trace_points.c
drm/drm_usb.c
drm/exynos
drm/gma500
drm/i915/i915_trace.h
drm/i915/i915_trace_points.c
drm/i915/intel_acpi.c
drm/mgag200
drm/nouveau
drm/radeon
drm/shmobile
drm/tegra
drm/udl
uapi/exynos_drm.h
 1.1.1.1.4.3  18-May-2014  rmind sync with head
 1.1.1.1.4.2  28-Aug-2013  rmind sync with head
 1.1.1.1.4.1  23-Jul-2013  rmind file drm_crtc.c was added on branch rmind-smpnet on 2013-08-28 23:59:32 +0000
 1.1.1.1.2.19  08-Sep-2013  riastradh Omit more needless #ifdef __NetBSD__.
 1.1.1.1.2.18  08-Sep-2013  riastradh Remove some more needless #ifdef __NetBSD__.
 1.1.1.1.2.17  08-Sep-2013  riastradh Use -Wno-shadow, not a cpp kludge, for drm_crtc.c's local min/max.
 1.1.1.1.2.16  24-Jul-2013  riastradh Destroy mode config locks in drm_mode_config_cleanup.
 1.1.1.1.2.15  24-Jul-2013  riastradh Constify drm_mode_create_tv_properties.
 1.1.1.1.2.14  24-Jul-2013  riastradh Ifdef out calls to drm_sysfs_connector_remove in drm_crtc.c.

Revisit later, perhaps.
 1.1.1.1.2.13  24-Jul-2013  riastradh drm_crtc.c needs <asm/bug.h>.
 1.1.1.1.2.12  24-Jul-2013  riastradh Fix copypasto in commit ffe8f68e48d8cfe8d22a8f2bea1ea5825e8d5b49.

Diff of sys/external/bsd/drm2/dist between vendor/LINUX_DRM2 and HEAD
is supposed to be only additions.
 1.1.1.1.2.11  24-Jul-2013  riastradh Avoid arithmetic on void * in drm_crtc.c.
 1.1.1.1.2.10  24-Jul-2013  riastradh Work around global definitions of min and max in drm_crtc.c.
 1.1.1.1.2.9  24-Jul-2013  riastradh Use list_next(&list), not list.next, in drm_crtc.c.
 1.1.1.1.2.8  24-Jul-2013  riastradh Avoid LIST_HEAD as a list declarator in drm-crtc.c.
 1.1.1.1.2.7  24-Jul-2013  riastradh Avoid empty-brace initializer in drm_mode_addfb in drm_crtc.c.
 1.1.1.1.2.6  24-Jul-2013  riastradh Make drm_mode_group_init static in drm_crtc.c.
 1.1.1.1.2.5  24-Jul-2013  riastradh Replace mutex_init by linux_mutex_init in drm_crtc.c.
 1.1.1.1.2.4  24-Jul-2013  riastradh Sprinkle const into drm_crtc.c where string literals are involved.

Omit unused drm_get_connector_status_name (was used only by sysfs)
and drm_get_dirty_info_name (seems to have been completely unused).
 1.1.1.1.2.3  24-Jul-2013  riastradh drm_crtc.c needs <linux/err.h> and <linux/spinlock.h>.
 1.1.1.1.2.2  23-Jul-2013  riastradh sync with HEAD and actually get the drm2 import
 1.1.1.1.2.1  23-Jul-2013  riastradh file drm_crtc.c was added on branch riastradh-drm2 on 2013-07-23 21:28:21 +0000
 1.2.4.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1  18-Mar-2014  yamt file drm_crtc.c was added on branch yamt-pagecache on 2014-05-22 11:40:52 +0000
 1.2.2.1  10-Aug-2014  tls Rebase.
 1.4.30.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.4.30.1  10-Jun-2019  christos Sync with HEAD
 1.4.28.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.4.4.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.4.1  16-Jul-2014  tls file drm_crtc.c was added on branch tls-maxphys on 2014-08-20 00:04:08 +0000
 1.11.6.1  29-Feb-2020  ad Sync with head.

RSS XML Feed