Skip to contentSkip to conversation

drm/doc: Task to rename CMA helpers

PATCH In review Daniel Vetter 4 participants 4 messages Jan 29, 2019 – Jan 30, 2019

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

PATCH 1/1 drm/doc: Task to rename CMA helpers

I'm kinda fed up explaining why the have a confusing name :-)

Cc Noralf Trønnes <[email protected]>
Cc Laurent Pinchart <[email protected]>
---
 Documentation/gpu/todo.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/gpu/todo.rst +10 -0
index 38360ede1221..17f1cde6adab 100644
@@ -262,6 +262,16 @@ As a reference, take a look at the conversions already completed in drm core.
 
 Contact: Sean Paul, respective driver maintainers
 
+Rename CMA helpers to DMA helpers
+---------------------------------
+
+CMA (standing for contiguous memory allocator) is really a bit an accident of
+what these were used for first, a much better name would be DMA helpers. In the
+text these should even be called coherent DMA memory helpers (so maybd CDM, but
+no one knows what that means) since underneath they just use dma_alloc_coherent.
+
+Contact: Laurent Pinchart, Daniel Vetter
+
 Core refactorings
 =================
 
Signature · 6 lines
2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v1 1/1
#1 lore raw

Den 29.01.2019 14.21, skrev Daniel Vetter:

Quoted 6 lines

I'm kinda fed up explaining why the have a confusing name :-)

Cc Noralf Trønnes <[email protected]>
Cc Laurent Pinchart <[email protected]>

---

I agree that it's confusing,

I would also make sense to fold drm_fb_cma_helper into the cma gem helper since there's only 2 functions left after my refactorings.

Noralf.

Quoted 15 lines
 Documentation/gpu/todo.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/gpu/todo.rst +3 -0
index 38360ede1221..17f1cde6adab 100644
@@ -262,6 +262,16 @@ As a reference, take a look at the conversions already completed in drm core.
 
 Contact: Sean Paul, respective driver maintainers
 
+Rename CMA helpers to DMA helpers
+---------------------------------
+

Documentation/gpu/todo.rst As a reference, take a look at the conversions already completed in drm core. · line 277

Quoted 10 lines
Documentation/gpu/todo.rst +7 -0
+CMA (standing for contiguous memory allocator) is really a bit an accident of
+what these were used for first, a much better name would be DMA helpers. In the
+text these should even be called coherent DMA memory helpers (so maybd CDM, but
+no one knows what that means) since underneath they just use dma_alloc_coherent.
+
+Contact: Laurent Pinchart, Daniel Vetter
+
 Core refactorings
 =================
 

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to Daniel Vetter
Quoted 14 lines · Daniel Vetter

I'm kinda fed up explaining why the have a confusing name :-)

Cc Noralf Trønnes <[email protected]>
Cc Laurent Pinchart <[email protected]>
---
 Documentation/gpu/todo.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/gpu/todo.rst +0 -0
index 38360ede1221..17f1cde6adab 100644

Documentation/gpu/todo.rst As a reference, take a look at the conversions already completed in drm core. · line 271

Quoted 10 lines
Documentation/gpu/todo.rst +7 -0
@@ -262,6 +262,16 @@ As a reference, take a look at the conversions already completed in drm core.
 
 Contact: Sean Paul, respective driver maintainers
 
+Rename CMA helpers to DMA helpers
+---------------------------------
+
+CMA (standing for contiguous memory allocator) is really a bit an accident of
+what these were used for first, a much better name would be DMA helpers. In the
+text these should even be called coherent DMA memory helpers (so maybd CDM, but
+no one knows what that means) since underneath they just use dma_alloc_coherent.

s/maybd/maybe/

Quoted 13 lines
Documentation/gpu/todo.rst +3 -0
+
+Contact: Laurent Pinchart, Daniel Vetter
+
 Core refactorings
 =================
 
Signature · 6 lines
2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Acked-by on v1 1/1
#3 lore raw
In reply to Daniel Vetter

Hi Daniel,

Quoted 1 line · Daniel Vetter

I'm kinda fed up explaining why the have a confusing name :-)

Fully agreed, it's confusing and should definitely be fixed.

Quoted 28 lines
Cc Noralf Trønnes <[email protected]>
Cc Laurent Pinchart <[email protected]>
---
 Documentation/gpu/todo.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/gpu/todo.rst +10 -0
index 38360ede1221..17f1cde6adab 100644
@@ -262,6 +262,16 @@ As a reference, take a look at the conversions already completed in drm core.
 
 Contact: Sean Paul, respective driver maintainers
 
+Rename CMA helpers to DMA helpers
+---------------------------------
+
+CMA (standing for contiguous memory allocator) is really a bit an accident of
+what these were used for first, a much better name would be DMA helpers. In the
+text these should even be called coherent DMA memory helpers (so maybd CDM, but
+no one knows what that means) since underneath they just use dma_alloc_coherent.
+
+Contact: Laurent Pinchart, Daniel Vetter
+
 Core refactorings
 =================
 
Signature · 7 lines
Regards,

Laurent Pinchart
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel