Skip to contentSkip to conversation

docs/drm: Add a new bullet to the uAPI requirements

PATCH In review Jason Ekstrand 2 participants 3 messages Aug 4, 2021

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

PATCH 1/1 docs/drm: Add a new bullet to the uAPI requirements

While tracking down various bits of i915 uAPI, it's been difficult to find the userspace much of the time because no one bothers to mention it in commit messages. Require the kernel patch to be a one-stop shop for finding the various bits which were used to justify the new uAPI.

Cc Daniel Vetter <[email protected]>
Cc Dave Airlie <[email protected]>
---
 Documentation/gpu/drm-uapi.rst | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/gpu/drm-uapi.rst +5 -0
index 199afb503ab1..82f780bc3fce 100644
@@ -109,6 +109,11 @@ leads to a few additional requirements:
   userspace patches land. uAPI always flows from the kernel, doing things the
   other way round risks divergence of the uAPI definitions and header files.
 
+- The kernel patch which adds the new uAPI **must** reference the patch series
+  or merge requests in the userspaces project which use the new uAPI and
+  against which the review was done so that future developers can find all of
+  the pieces which tie together.
+
 These are fairly steep requirements, but have grown out from years of shared
 pain and experience with uAPI added hastily, and almost always regretted about
 just as fast. GFX devices change really fast, requiring a paradigm shift and
Signature · 1 line
2.31.1
#1 lore raw
Quoted 18 lines · Jason Ekstrand

While tracking down various bits of i915 uAPI, it's been difficult to find the userspace much of the time because no one bothers to mention it in commit messages. Require the kernel patch to be a one-stop shop for finding the various bits which were used to justify the new uAPI.

Cc Daniel Vetter <[email protected]>
Cc Dave Airlie <[email protected]>
---
 Documentation/gpu/drm-uapi.rst | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/gpu/drm-uapi.rst +0 -0
index 199afb503ab1..82f780bc3fce 100644

Documentation/gpu/drm-uapi.rst leads to a few additional requirements: · line 113

Quoted 5 lines
Documentation/gpu/drm-uapi.rst +2 -0
@@ -109,6 +109,11 @@ leads to a few additional requirements:
   userspace patches land. uAPI always flows from the kernel, doing things the
   other way round risks divergence of the uAPI definitions and header files.
 
+- The kernel patch which adds the new uAPI **must** reference the patch series
+  or merge requests in the userspaces project which use the new uAPI and

Locally, I've done s/project which use/projects which demonstrate/

--Jason

Quoted 9 lines
Documentation/gpu/drm-uapi.rst +3 -1
+  against which the review was done so that future developers can find all of
+  the pieces which tie together.
+
 These are fairly steep requirements, but have grown out from years of shared
 pain and experience with uAPI added hastily, and almost always regretted about
 just as fast. GFX devices change really fast, requiring a paradigm shift and
--

2.31.1

Acked-by
#2 lore raw
Quoted 23 lines · Jason Ekstrand
Quoted 21 lines · Jason Ekstrand

While tracking down various bits of i915 uAPI, it's been difficult to find the userspace much of the time because no one bothers to mention it in commit messages. Require the kernel patch to be a one-stop shop for finding the various bits which were used to justify the new uAPI.

Cc Daniel Vetter <[email protected]>
Cc Dave Airlie <[email protected]>
---
 Documentation/gpu/drm-uapi.rst | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/gpu/drm-uapi.rst +0 -0
index 199afb503ab1..82f780bc3fce 100644
@@ -109,6 +109,11 @@ leads to a few additional requirements:
   userspace patches land. uAPI always flows from the kernel, doing things the
   other way round risks divergence of the uAPI definitions and header files.
 
Quoted 4 lines

Documentation/gpu/drm-uapi.rst leads to a few additional requirements: · line 113

Quoted 2 lines
Documentation/gpu/drm-uapi.rst +2 -0
+- The kernel patch which adds the new uAPI **must** reference the patch series
+  or merge requests in the userspaces project which use the new uAPI and

Locally, I've done s/project which use/projects which demonstrate/

While we paint this shed ... projects which demonstrate the use of the new uAPI?

Either way this seems like a fine addition to our docs and process, since grepping through all the things just to figure out what something does because documentation was deemed optional too gets boring.

-Daniel

Quoted 12 lines

--Jason

Quoted 9 lines
Documentation/gpu/drm-uapi.rst +3 -1
+  against which the review was done so that future developers can find all of
+  the pieces which tie together.
+
 These are fairly steep requirements, but have grown out from years of shared
 pain and experience with uAPI added hastily, and almost always regretted about
 just as fast. GFX devices change really fast, requiring a paradigm shift and
--

2.31.1

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