Documentation: gpu: Mention the requirements for new properties
Subsystems (3)
PATCH 1/1 Documentation: gpu: Mention the requirements for new properties
New KMS properties come with a bunch of requirements to avoid each driver from running their own, inconsistent, set of properties, eventually leading to issues like property conflicts, inconsistencies between drivers and semantics, etc.
Let's document what we expect.
--- Documentation/gpu/drm-kms.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Documentation/gpu/drm-kms.rst +18 -0
@@ -463,6 +463,24 @@ KMS Properties This section of the documentation is primarily aimed at user-space developers. For the driver APIs, see the other sections. +Requirements +------------ + +KMS drivers might need to add extra properties to support new features. +Each new property introduced in a driver need to meet a few +requirements, in addition to the one mentioned above.: + +- It must be standardized, with some documentation to describe the + property can be used. + +- It must provide a generic helper in the core code to register that + property on the object it attaches to. + +- Its content must be decoded by the core and provided in the object + associated state structure. + +- An IGT test must be submitted. + Property Types and Blob Property Support ----------------------------------------
Signature · 1 line
2.31.1
Quoted 19 lines · Maxime Ripard
New KMS properties come with a bunch of requirements to avoid each driver from running their own, inconsistent, set of properties, eventually leading to issues like property conflicts, inconsistencies between drivers and semantics, etc.
Let's document what we expect.
Signed-off-by Maxime Ripard <[email protected]>--- Documentation/gpu/drm-kms.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)Documentation/gpu/drm-kms.rst +0
-0@@ -463,6 +463,24 @@ KMS Properties This section of the documentation is primarily aimed at user-space developers.
Documentation/gpu/drm-kms.rst KMS Properties · line 473
Quoted 10 lines
Documentation/gpu/drm-kms.rst +8
-0For the driver APIs, see the other sections. +Requirements +------------ + +KMS drivers might need to add extra properties to support new features. +Each new property introduced in a driver need to meet a few +requirements, in addition to the one mentioned above.: + +- It must be standardized, with some documentation to describe the
"to describe how the"
With that fixed, it looks good to me.
Alex
Quoted 16 lines
Documentation/gpu/drm-kms.rst +10
-1+ property can be used. + +- It must provide a generic helper in the core code to register that + property on the object it attaches to. + +- Its content must be decoded by the core and provided in the object + associated state structure. + +- An IGT test must be submitted. + Property Types and Blob Property Support ---------------------------------------- --2.31.1
Quoted 22 lines · Maxime Ripard
New KMS properties come with a bunch of requirements to avoid each driver from running their own, inconsistent, set of properties, eventually leading to issues like property conflicts, inconsistencies between drivers and semantics, etc.
Let's document what we expect.
Signed-off-by Maxime Ripard <[email protected]>--- Documentation/gpu/drm-kms.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)Documentation/gpu/drm-kms.rst +2
-0@@ -463,6 +463,24 @@ KMS Properties This section of the documentation is primarily aimed at user-space developers. For the driver APIs, see the other sections. +Requirements +------------
Documentation/gpu/drm-kms.rst KMS Properties · line 477
Quoted 10 lines
Documentation/gpu/drm-kms.rst +10
-0+ +KMS drivers might need to add extra properties to support new features. +Each new property introduced in a driver need to meet a few +requirements, in addition to the one mentioned above.: + +- It must be standardized, with some documentation to describe the + property can be used. + +- It must provide a generic helper in the core code to register that + property on the object it attaches to.
Maybe also include anything that drivers might want to precompute, e.g. we have helpers for cliprects.
Documentation/gpu/drm-kms.rst KMS Properties · line 479
Quoted 2 lines
Documentation/gpu/drm-kms.rst +2
-0+ +- Its content must be decoded by the core and provided in the object
object's
Documentation/gpu/drm-kms.rst KMS Properties · line 482
Quoted 3 lines
Documentation/gpu/drm-kms.rst +3
-0+ associated state structure. + +- An IGT test must be submitted.
"... where reasonable."
We have that disclaimer already here:
https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#testing-requirements-for-userspace-api
I think would be good to cross-reference the uapi rules in general
https://dri.freedesktop.org/docs/drm/gpu/drm-uapi.html#open-source-userspace-requirements
With the bikesheds addressed:
But this needs ideally a pile of acks from most display driver teams. -Daniel
Quoted 7 lines
Documentation/gpu/drm-kms.rst +1
-0+ Property Types and Blob Property Support ----------------------------------------Signature · 1 line
2.31.1
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch