linux_dsm_epyc7002/drivers/gpu/drm
Arnd Bergmann 44a2d56429 drm/via: use monotonic time for VIA_WAIT_IRQ
The normal DRM vblank interrupt events started using monotonic times in
commit c61eef726a ("drm: add support for monotonic vblank timestamps"),
which is useful for a number of reasons, including the possible y2038
overflow.

The VIA_WAIT_IRQ ioctl uses the same drm_wait_vblank_reply as
DRM_IOCTL_WAIT_VBLANK, but still uses wall-clock time.

This converts it to using monotonic time as well, which is more
consistent, and avoids problems with the y2038 overflow as well
as synchronization issues when the real time skips.

I could not find the matching user space that calls the VIA_WAIT_IRQ
ioctl to verify that this is safe, but it very likely is. Please
either test or review the user space side before applying this.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171127111728.1710742-1-arnd@arndb.de
2017-11-27 17:24:52 +01:00
..
amd Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
arc drm/arc: Use drm_gem_cma_print_info() 2017-11-11 11:23:15 +01:00
arm drm: Move drm_plane_helper_check_state() into drm_atomic_helper.c 2017-11-20 21:14:22 +02:00
armada
ast
atmel-hlcdc
bochs
bridge drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
cirrus Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
etnaviv drm/etnaviv: short-circuit perfmon ioctls 2017-10-22 18:41:56 +02:00
exynos drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
fsl-dcu
gma500 gpu: gma500: remove unneeded DRIVER_LICENSE #define 2017-11-20 11:16:31 +01:00
hisilicon drm/hisilicon: Ensure LDI regs are properly configured. 2017-11-01 10:36:50 +08:00
i2c drm/drivers: drop redundant drm_edid_to_eld() calls 2017-11-07 17:43:35 +02:00
i810
i915 drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
imx drm: Move drm_plane_helper_check_state() into drm_atomic_helper.c 2017-11-20 21:14:22 +02:00
lib
mediatek drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
meson drm: Move drm_plane_helper_check_state() into drm_atomic_helper.c 2017-11-20 21:14:22 +02:00
mga
mgag200
msm Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
mxsfb
nouveau drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
omapdrm
panel drm/panel: simple: Add Mitsubishi AA070MC01 panel support 2017-11-17 12:42:24 +01:00
pl111
qxl Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
r128
radeon Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
rcar-du
rockchip drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
savage
selftests drm/selftests/mm: Insert cond_resched() between insert modes 2017-11-07 15:58:07 +02:00
shmobile
sis
sti drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
stm drm/stm: ltdc: add a 2nd endpoint 2017-11-07 14:47:39 +01:00
sun4i
tdfx
tegra Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
tilcdc Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
tinydrm drm/tinydrm: Use drm_gem_cma_print_info() 2017-11-11 11:24:44 +01:00
ttm drm/ttm: Downgrade pr_err to pr_debug for memory allocation failures 2017-11-04 09:48:28 -04:00
tve200
udl Merge tag 'drm-misc-next-2017-10-20' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2017-10-24 16:51:05 +10:00
vc4 drm/vc4: Add support for NV21 and NV61. 2017-11-20 15:19:56 -08:00
vgem
via drm/via: use monotonic time for VIA_WAIT_IRQ 2017-11-27 17:24:52 +01:00
virtio virtgpu: remove redundant task_comm copying 2017-11-10 12:45:35 +01:00
vmwgfx Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
zte drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
ati_pcigart.c
drm_agpsupport.c
drm_atomic_helper.c Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
drm_atomic.c Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
drm_auth.c drm: Check mode object lease status in all master ioctl paths [v4] 2017-10-25 16:31:30 +10:00
drm_blend.c
drm_bridge.c
drm_bufs.c
drm_cache.c
drm_color_mgmt.c
drm_connector.c
drm_context.c
drm_crtc_helper_internal.h
drm_crtc_helper.c
drm_crtc_internal.h
drm_crtc.c
drm_debugfs_crc.c
drm_debugfs.c drm/debugfs: Fix framebuffer debugfs file init 2017-11-14 11:08:17 +02:00
drm_dma.c
drm_dp_aux_dev.c
drm_dp_dual_mode_helper.c
drm_dp_helper.c drm: don't link DP aux i2c adapter to the hardware device node 2017-11-20 09:34:17 +01:00
drm_dp_mst_topology.c
drm_drv.c Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
drm_dumb_buffers.c
drm_edid_load.c
drm_edid.c drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
drm_encoder_slave.c
drm_encoder.c drm: Check mode object lease status in all master ioctl paths [v4] 2017-10-25 16:31:30 +10:00
drm_fb_cma_helper.c drm/cma-helper: Remove drm_fb_cma_debugfs_show() 2017-11-11 11:25:14 +01:00
drm_fb_helper.c drm/fb-helper: Add .last_close and .output_poll_changed helpers 2017-10-31 19:06:31 +01:00
drm_file.c
drm_flip_work.c
drm_fourcc.c
drm_framebuffer.c Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
drm_gem_cma_helper.c drm: gem_cma_helper.c: Allow importing of contiguous scatterlists with nents > 1 2017-11-15 18:14:46 +01:00
drm_gem_framebuffer_helper.c
drm_gem.c drm/framebuffer: Add framebuffer debugfs file 2017-11-11 11:21:19 +01:00
drm_global.c
drm_hashtab.c
drm_info.c
drm_internal.h Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
drm_ioc32.c
drm_ioctl.c drm: Add four ioctls for managing drm mode object leases [v7] 2017-10-25 16:31:30 +10:00
drm_irq.c
drm_kms_helper_common.c
drm_lease.c drm: Add four ioctls for managing drm mode object leases [v7] 2017-10-25 16:31:30 +10:00
drm_legacy.h
drm_lock.c
drm_memory.c
drm_mipi_dsi.c
drm_mm.c drm: Spelling fixes 2017-11-02 11:10:37 -02:00
drm_mode_config.c drm: Check mode object lease status in all master ioctl paths [v4] 2017-10-25 16:31:30 +10:00
drm_mode_object.c drm/mode_object: fix documentation for object lookups. 2017-11-10 13:50:47 +10:00
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c drm: Require __GFP_NOFAIL for the legacy drm_modeset_lock_all 2017-10-31 17:36:46 +01:00
drm_of.c
drm_panel.c
drm_pci.c
drm_plane_helper.c drm: Move drm_plane_helper_check_state() into drm_atomic_helper.c 2017-11-20 21:14:22 +02:00
drm_plane.c drm: Check mode object lease status in all master ioctl paths [v4] 2017-10-25 16:31:30 +10:00
drm_prime.c
drm_print.c drm/printer: Add drm_vprintf() 2017-11-23 12:31:49 +02:00
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_scdc_helper.c
drm_simple_kms_helper.c drm: Move drm_plane_helper_check_state() into drm_atomic_helper.c 2017-11-20 21:14:22 +02:00
drm_syncobj.c Merge airlied/drm-next into drm-misc-next 2017-11-21 14:17:56 +01:00
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_vblank.c drm/vblank: Tune drm_crtc_accurate_vblank_count() WARN down to a debug 2017-11-07 21:07:02 +02:00
drm_vm.c
drm_vma_manager.c drm/drm_vma_manager.c: Remove useless goto statement 2017-11-02 10:44:08 +01:00
Kconfig
Makefile drm: Add drm_object lease infrastructure [v5] 2017-10-25 16:31:29 +10:00