xserver-multidpi/hw/xfree86/drivers/modesetting
Alex Goins f6fef2a171 modesetting: Blacklist USB transport devices from PRIME sync
UDL (USB 2.0 DisplayLink DRM driver) and other drivers for USB transport devices
have strange semantics when it comes to vblank events, due to their inability to
get the actual vblank info.

When doing a page flip, UDL instantly raises a vblank event without waiting for
vblank. It also has no support for DRM_IOCTL_WAIT_VBLANK, and has some strange
behavior with how it handles damage when page flipping.

It's possible to get something semi-working by hacking around these issues,
but even then there isn't much value-add vs single buffered PRIME, and it
reduces maintainability and adds additional risks to the modesetting driver
when running with more well-behaved DRM drivers.

Work needs to be done on UDL in order to properly support synchronized
PRIME. For now, just blacklist it, causing RandR to fall back to
unsynchronized PRIME.

This patch originally blacklisted UDL by name, but it was pointed out that there
are other USB transport device drivers with similar limitations, so it was
expanded to blacklist all USB transport devices.

v1: N/A
v2: N/A
v3: Initial commit
v4: Move check to driver.c for consistency/visibility
v5: Refactor to accomodate earlier changes
v6: Rebase onto ToT
v7: Expand to blacklist all USB transport devices, not just UDL

Signed-off-by: Alex Goins <agoins@nvidia.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2016-06-28 12:56:37 -04:00
..
dri2.c modesetting: avoid double free if AddResource fails 2016-03-08 10:19:55 -05:00
driver.c modesetting: Blacklist USB transport devices from PRIME sync 2016-06-28 12:56:37 -04:00
driver.h modesetting: add support for background none. 2016-05-02 18:21:10 -04:00
drmmode_display.c modesetting: Suspend and resume flipping with DPMS 2016-06-28 12:56:35 -04:00
drmmode_display.h modesetting: Implement PRIME syncing as a sink 2016-06-28 12:56:30 -04:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
Makefile.am modesetting: Add vblank synchronization support when using Present. 2014-12-25 13:39:19 -08:00
modesetting.man modesetting: Add more missing options to man page. 2015-08-13 00:36:12 +01:00
present.c modesetting: Clear drmmode->fb_id before unflipping 2016-06-17 11:38:13 +02:00
vblank.c modesetting: Use NotifyFd for drm event monitoring 2015-12-01 13:55:25 -05:00