Skip to contentSkip to conversation

drm: Document requirements for driver-specific KMS props in new drivers

PATCH Superseded Sebastian Wick 3 participants 3 messages Mar 11, 2024 – Mar 19, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm: Document requirements for driver-specific KMS props in new drivers

When extending support for a driver-specific KMS property to additional drivers, we should apply all the requirements for new properties and make sure the semantics are the same and documented.

v2: devs of the driver which introduced property shall help and ack

---
 Documentation/gpu/drm-kms.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/gpu/drm-kms.rst +7 -0
index 13d3627d8bc0..b98b98359c90 100644
@@ -496,6 +496,13 @@ addition to the one mentioned above:
 
 * An IGT test must be submitted where reasonable.
 
+For historical reasons, non-standard, driver-specific properties exist. If a KMS
+driver wants to add support for one of those properties, the requirements for
+new properties apply where possible. Additionally, the documented behavior must
+match the de facto semantics of the existing property to ensure compatibility.
+Developers of the driver that first added the property should help with those
+tasks and must ACK the documented behavior if possible.
+
 Property Types and Blob Property Support
 ----------------------------------------
 
Signature · 1 line
2.44.0
maintainer Acked-by on v2 1/1
#1 lore raw
Quoted 7 lines · Sebastian Wick

When extending support for a driver-specific KMS property to additional drivers, we should apply all the requirements for new properties and make sure the semantics are the same and documented.

v2: devs of the driver which introduced property shall help and ack

We probably want to have Dave or Sima ack on that one too

Maxime

Acked-by
#2 lore raw
Quoted 5 lines · Maxime Ripard
Quoted 4 lines · Sebastian Wick

When extending support for a driver-specific KMS property to additional drivers, we should apply all the requirements for new properties and make sure the semantics are the same and documented.

Quoted 7 lines
Quoted 3 lines

v2: devs of the driver which introduced property shall help and ack

We probably want to have Dave or Sima ack on that one too

Yeah that's a good idea and defacto how we handled this - additional users of anything (whether library or uapi or whatever) get to clean up an existing mess if it's too bad. But for uapi it's good to be really explicit and document that.

Cheers, Sima

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch