From: Pekka Paalanen Subject: Re: [RFC][PATCH 1/2] drm: Improve PATH prop docs Date: Thu, 27 Jun 2019 10:36:51 +0300 Message-ID: <20190627103651.1683e3f2@eldfell.localdomain> References: <20190613184335.7970-1-ville.syrjala@linux.intel.com> <20190613184335.7970-2-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1970538782==" Return-path: In-Reply-To: <20190613184335.7970-2-ville.syrjala@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Ville Syrjala Cc: intel-gfx@lists.freedesktop.org, Ilia Mirkin , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1970538782== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/nAQXwzCRVEDMW=0s/4izYYe"; protocol="application/pgp-signature" --Sig_/nAQXwzCRVEDMW=0s/4izYYe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 13 Jun 2019 21:43:34 +0300 Ville Syrjala wrote: > From: Ville Syrj=C3=A4l=C3=A4 >=20 > The PATH blob is already being parsed by userspace for MST connectors > so the layout of the blob is now uabi. Let's document what it should > look like. >=20 > Also add a clear note saying non-MST connectors can have a PATH prop > too. >=20 > Cc: Daniel Vetter > Cc: Pekka Paalanen > Cc: Ilia Mirkin > Signed-off-by: Ville Syrj=C3=A4l=C3=A4 > --- > drivers/gpu/drm/drm_connector.c | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connec= tor.c > index e17586aaa80f..ce3926e9ad11 100644 > --- a/drivers/gpu/drm/drm_connector.c > +++ b/drivers/gpu/drm/drm_connector.c > @@ -899,7 +899,16 @@ static const struct drm_prop_enum_list hdmi_colorspa= ces[] =3D { > * connected. Used by DP MST. This should be set by calling > * drm_connector_set_path_property(), in the case of DP MST with the > * path property the MST manager created. Userspace cannot change this > - * property. > + * property. The value must be an ASCII string. > + * > + * For DP MST connectors the path string follows the pattern > + * "mst:[-]...", where the base connector = ID > + * identifies the DP connector on the source device, and the mst ports > + * are the port numbers in the DP MST topology. Hi, what exactly is the connector ID as already used here for MST? Is it not persistent? I assume the MST port numbers are persistent as long as the physical topology does not change. > + * > + * For non-DP MST connectors the format is freeform, as long as it > + * uniquely identifies the physical path, remains stable across > + * kernel releases, and does not start with "mst:". Maybe the requirements for "persistent name" should be clarified more: - remains stable across kernel releases - is immune to driver loading/initialisation order changes - is immune to adding or removing other hardware (e.g. graphics cards) Maybe also some explicit words about what to do with dynamic non-MST connectors? Thanks, pq --Sig_/nAQXwzCRVEDMW=0s/4izYYe Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAl0UchMACgkQI1/ltBGq qqfA9w//ZEhfCvv5BoYQ9CZkRRRaTJmCtYNeUPpnJH3TnGXxVI8PAaKM7YXlJDsd K/zZDrjxlVwV9U9jFsg3fqcN52GYWRbRGMHX3hhFboQln1j6Q5pbGltfyRRo2yvM 1Wx7Enx2gE9jj+1M0WYsxTkRW7iPkQu6+NMJn1qyaSi1S9ysUg67xrbHrLjybSNE xKJLwGhfhU6IiY2bMDs/0NthC8+3Oi0c0lu7XdL2wDUOFrnZ6RbSy2JySYHoFw3c rBZhekCToiko/PcPuFLvoH09b9fdrsVBjiNInElqRR5juD+MKerMsLv5tb5kCrzp 6EM+6Igq2vRo8LyGTstZUDBwCLZUSpmHNtZN7JqGOZaC1Caeu821WYTFdB15nktr dgGcjRap/OTYnFUzHr2I5w8y/oF9nqIK0B9GLPYZgvhO/3b28s6H80LzcDG5FcEe AeFYmvdYwZ3f5ld3qlnjoq7c7/bxfy/fMdHOtvMZ/9BjAbc0nhnYrugscibImI/O cS7yU41zu8q0WrH+a546Mzwnt/gFXPutvR0W0fX+q9fYRZUKf6Bo4APhXAOQ7dpc F3f9dxqkpd2FXDfutNoxImw1biSQ3bqQcE5hr2cPuMhbMcN6P5GP8cOEZrWv5wW8 P1pvE6SNTxiuJkAROoWhbogR6hrLt/QgnUqFtQVfccwiZh5KR3s= =jq+1 -----END PGP SIGNATURE----- --Sig_/nAQXwzCRVEDMW=0s/4izYYe-- --===============1970538782== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4 --===============1970538782==--