Simon, Laurent,
On 03/08/2023 23:46, Simon Ser wrote:
On Thursday, August 3rd, 2023 at 22:44, Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:
On Thu, Aug 03, 2023 at 03:31:16PM +0000, Simon Ser wrote:
On Thursday, August 3rd, 2023 at 17:22, Simon Ser contact@xxxxxxxxxxx wrote:
The KMS docs describe "subconnector" to be defined as "downstream port" for DP.
Can USB-C (or USB) be seen as a DP downstream port?
To expand on this a bit: I'm wondering if we're mixing apples and
oranges here. The current values of "subconnector" typically describe
the lower-level protocol tunneled inside DP. For instance, VGA can be
tunneled inside the DP cable when using DP → VGA adapter.
Doesn't this contradict the example use case you gave in your previous
e-mail, with wlroots stating "DP-3 via DVI-D" ? I understand that as DP
carried over a DVI-D physical connector, did I get it wrong ?
No, this is DVI carried over DP. DP cannot be carried over VGA/DVI/HDMI,
but VGA/DVI/HDMI can be carried over DP.
Please excuse me for the long delay, I was on vacation.
Several notes on the subconnector topic.
For TV and DVI-I we are really identifying a connector (or a part of the
connector pins) present on the device.
So, we can have e.g. following combinations (type / subtype):
DVI-I / DVI-D (digital part of DVI connector)
DVI-I / DVI-A (analog part of DVI connector)
TV / S-Video (full S-Video connector)
TV / Composite (either a separate Composite connector, or shared with
S-Video)
etc.
For DP unfortunately we have mixed everything together.
The physical connector present on the device can be DP / miniDP or USB-C
(or micro-USB for SlimPort).
The physical protocol can be DP or DVI / HDMI (but only for dual-mode DP
ports). Over USB-C link the DP can be transferred using DP or USB signal
levels.
And last, but not least, we have the dongle / display connector type,
which can be VGA (for active DP -> VGA converters), HDMI, DVI, DP, etc.
If we were designing this from the scratch, I'd say that we should
encode physical connector type to DRM connector type and the dongle type
to subconnector. However AMD and Intel drivers have already reused
DisplayPort connector type for USB-C connections. Subconnector type
represents (if known) the type of downstream / dongle port. I'm not
going to judge whether this was correct or not. We have to live with
this and behave in a similar way.
We have been looking for a way to document that the corresponding DP
port is represented by the USB connector on the device.
Consequently, I believe the best way to document it, would be to use
DisplayPort / USB, when there is no dongle connected, switching to
DisplayPort / HDMI, DisplayPort / VGA, DisplayPort / DisplayPort, etc.
when the actual dongle / display is connected and then switching back to
the DisplayPort / USB when it gets disconnected.
If this sounds good to all parties, I'll post v2, adding this
explanation to the cover letter.
--
With best wishes
Dmitry