How DL3 docks work
Here's a quick tour of what the computer's side of things does. I've stuck to the outline, and each point names the file in the Vino source it comes from.
Finding the dock
- The driver binds to any device from vendor
17e9with a DL3 display interface (classff, subclass 0, protocol 3), not to a list of product IDs. Source:Documentation/gpu/vino.rst - Three hardware families are supported: Ella (DL-3x00), Ridge (DL-6xxx) and Navarro (DL-7000). Source:
Documentation/gpu/vino.rst - The family is read from a vendor descriptor in the dock's USB configuration, so it is known when the device is probed. A dock of an unsupported family is declined by name. Source:
Documentation/gpu/vino.rst - The number of connectors comes from how many video endpoints the device exposes. Source:
Documentation/gpu/vino.rst
Setting a mode
- Each connector has a primary plane, a cursor plane, a CRTC, an encoder and a channel for reading the monitor's EDID. Source:
Documentation/gpu/vino.rst - A mode is sent to the dock as a timing plus two control words describing sync polarity and the video identification code. Source:
Documentation/gpu/vino.rst - Modes beyond a dock's per-connector or dock-wide pixel rate limits are refused. Source:
Documentation/gpu/vino.rst - Atomic commits record the wanted state and wake an ordered control queue. USB transfers are not issued from the atomic callback, and failed control transfers are retried. Source:
Documentation/gpu/vino.rst
Sending frames
- The dock cannot scan out a buffer in the computer's memory, so frames are compressed by the computer and sent over USB bulk transfers. Source:
Documentation/gpu/vino.rst - Two connectors may share one bulk video endpoint. Source:
Documentation/gpu/vino.rst - Encoding and USB submission run on a separate worker for each connector. Source:
Documentation/gpu/vino.rst