All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: document that user-space should avoid parsing EDIDs
@ 2020-10-09  9:24 Simon Ser
  2020-10-09  9:36 ` Daniel Vetter
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Simon Ser @ 2020-10-09  9:24 UTC (permalink / raw)
  To: dri-devel; +Cc: Daniel Vetter, Pekka Paalanen

User-space should avoid parsing EDIDs for metadata already exposed via
other KMS interfaces and properties. For instance, user-space should not
try to extract a list of modes from the EDID: the kernel might mutate
the mode list (because of link capabilities or quirks for instance).

Other metadata not exposed by KMS can be parsed by user-space. This
includes for instance monitor identification (make/model/serial) and
supported color-spaces.

Signed-off-by: Simon Ser <contact@emersion.fr>
Suggested-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/drm_connector.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 717c4e7271b0..00e58fd2d292 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -960,6 +960,10 @@ static const struct drm_prop_enum_list dp_colorspaces[] = {
  * 	drm_connector_update_edid_property(), usually after having parsed
  * 	the EDID using drm_add_edid_modes(). Userspace cannot change this
  * 	property.
+ *
+ * 	User-space should not parse the EDID to obtain information exposed via
+ * 	other KMS properties. For instance, user-space should not try to parse
+ * 	mode lists from the EDID.
  * DPMS:
  * 	Legacy property for setting the power state of the connector. For atomic
  * 	drivers this is only provided for backwards compatibility with existing
-- 
2.28.0


_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-10-22 10:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09  9:24 [PATCH] drm: document that user-space should avoid parsing EDIDs Simon Ser
2020-10-09  9:36 ` Daniel Vetter
2020-10-09  9:48 ` Thomas Zimmermann
2020-10-09  9:49   ` Thomas Zimmermann
2020-10-09 10:28   ` Pekka Paalanen
2020-10-09 10:25 ` Brian Starkey
2020-10-22 10:38   ` Simon Ser
2020-10-09 12:07 ` Daniel Stone
2020-10-09 13:10   ` Ville Syrjälä
2020-10-09 13:56     ` Pekka Paalanen
2020-10-09 14:20       ` Ville Syrjälä
2020-10-12  7:11         ` Pekka Paalanen
2020-10-16 13:50           ` Ville Syrjälä
2020-10-19  7:49             ` Pekka Paalanen
2020-10-20  3:08               ` Vitaly Prosyak
2020-10-20 15:04                 ` Ville Syrjälä
2020-10-21  1:46                   ` Vitaly Prosyak
2020-10-21 14:35                     ` Ville Syrjälä
2020-10-21 14:56                       ` Vitaly Prosyak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.