Skip to contentSkip to conversation

drm/plane-helpers: Minor clean ups

PATCH Superseded Thomas Zimmermann 5 participants 20 messages Nov 28, 2023 – Dec 1, 2023

Subsystems (10)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

cover drm/plane-helpers: Minor clean ups

Move drm_plane_helper_atomic_check() into udl, which is the only driver using it. Remove several unnecessary include statements for <drm/drm_plane_helper.h>.

Thomas Zimmermann (8):
drm/plane-helper: Move drm_plane_helper_atomic_check() into udl drm/amdgpu: Do not include <drm/drm_plane_helper.h> drm/loongson: Do not include <drm/drm_plane_helper.h> drm/shmobile: Do not include <drm/drm_plane_helper.h> drm/solomon: Do not include <drm/drm_plane_helper.h> drm/ofdrm: Do not include <drm/drm_plane_helper.h> drm/simpledrm: Do not include <drm/drm_plane_helper.h> drm/xlnx: Do not include <drm/drm_plane_helper.h>

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  1 -
 drivers/gpu/drm/drm_plane_helper.c            | 32 -------------------
 drivers/gpu/drm/loongson/lsdc_plane.c         |  1 -
 .../drm/renesas/shmobile/shmob_drm_plane.c    |  1 -
 drivers/gpu/drm/solomon/ssd130x.h             |  1 -
 drivers/gpu/drm/tiny/ofdrm.c                  |  1 -
 drivers/gpu/drm/tiny/simpledrm.c              |  1 -
 drivers/gpu/drm/udl/udl_modeset.c             | 19 +++++++++--
 drivers/gpu/drm/xlnx/zynqmp_kms.c             |  1 -
 include/drm/drm_plane_helper.h                |  2 --
 10 files changed, 17 insertions(+), 43 deletions(-)
Signature · 1 line
2.43.0
author maintainer
#1 lore raw

PATCH 1/8 drm/plane-helper: Move drm_plane_helper_atomic_check() into udl

The udl driver is the only caller of drm_plane_helper_atomic_check(). Move the function into the driver. No functional changes.

---
 drivers/gpu/drm/drm_plane_helper.c | 32 ------------------------------
 drivers/gpu/drm/udl/udl_modeset.c  | 19 ++++++++++++++++--
 include/drm/drm_plane_helper.h     |  2 --
 3 files changed, 17 insertions(+), 36 deletions(-)
drivers/gpu/drm/drm_plane_helper.c +0 -32
index 5e95089676ff8..7982be4b0306d 100644
@@ -279,35 +279,3 @@ void drm_plane_helper_destroy(struct drm_plane *plane)
 	kfree(plane);
 }
 EXPORT_SYMBOL(drm_plane_helper_destroy);
-
-/**
- * drm_plane_helper_atomic_check() - Helper to check plane atomic-state
- * @plane: plane to check
- * @state: atomic state object
- *
- * Provides a default plane-state check handler for planes whose atomic-state
- * scale and positioning are not expected to change since the plane is always
- * a fullscreen scanout buffer.
- *
- * This is often the case for the primary plane of simple framebuffers. See
- * also drm_crtc_helper_atomic_check() for the respective CRTC-state check
- * helper function.
- *
- * RETURNS:
- * Zero on success, or an errno code otherwise.
- */
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state)
-{
-	struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
-	struct drm_crtc *new_crtc = new_plane_state->crtc;
-	struct drm_crtc_state *new_crtc_state = NULL;
-
-	if (new_crtc)
-		new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
-
-	return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state,
-						   DRM_PLANE_NO_SCALING,
-						   DRM_PLANE_NO_SCALING,
-						   false, false);
-}
-EXPORT_SYMBOL(drm_plane_helper_atomic_check);
drivers/gpu/drm/udl/udl_modeset.c +17 -2
index 40876bcdd79a4..7702359c90c22 100644
@@ -21,7 +21,6 @@
 #include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_gem_shmem_helper.h>
 #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_vblank.h>
 
@@ -261,6 +260,22 @@ static const uint64_t udl_primary_plane_fmtmods[] = {
 	DRM_FORMAT_MOD_INVALID
 };
 
+static int udl_primary_plane_helper_atomic_check(struct drm_plane *plane,
+						 struct drm_atomic_state *state)
+{
+	struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
+	struct drm_crtc *new_crtc = new_plane_state->crtc;
+	struct drm_crtc_state *new_crtc_state = NULL;
+
+	if (new_crtc)
+		new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
+
+	return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state,
+						   DRM_PLANE_NO_SCALING,
+						   DRM_PLANE_NO_SCALING,
+						   false, false);
+}
+
 static void udl_primary_plane_helper_atomic_update(struct drm_plane *plane,
 						   struct drm_atomic_state *state)
 {
@@ -296,7 +311,7 @@ static void udl_primary_plane_helper_atomic_update(struct drm_plane *plane,
 
 static const struct drm_plane_helper_funcs udl_primary_plane_helper_funcs = {
 	DRM_GEM_SHADOW_PLANE_HELPER_FUNCS,
-	.atomic_check = drm_plane_helper_atomic_check,
+	.atomic_check = udl_primary_plane_helper_atomic_check,
 	.atomic_update = udl_primary_plane_helper_atomic_update,
 };
 
include/drm/drm_plane_helper.h +0 -2
index 3a574e8cd22f4..75f9c4830564a 100644
@@ -26,7 +26,6 @@
 
 #include <linux/types.h>
 
-struct drm_atomic_state;
 struct drm_crtc;
 struct drm_framebuffer;
 struct drm_modeset_acquire_ctx;
@@ -42,7 +41,6 @@ int drm_plane_helper_update_primary(struct drm_plane *plane, struct drm_crtc *cr
 int drm_plane_helper_disable_primary(struct drm_plane *plane,
 				     struct drm_modeset_acquire_ctx *ctx);
 void drm_plane_helper_destroy(struct drm_plane *plane);
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state);
 
 /**
  * DRM_PLANE_NON_ATOMIC_FUNCS - Default plane functions for non-atomic drivers
Signature · 1 line
2.43.0
#2 lore raw

Re: [1/8] drm/plane-helper: Move drm_plane_helper_atomic_check() into udl

Hi,

Quoted 40 lines · Thomas Zimmermann

The udl driver is the only caller of drm_plane_helper_atomic_check(). Move the function into the driver. No functional changes.

---
  drivers/gpu/drm/drm_plane_helper.c | 32 ------------------------------
  drivers/gpu/drm/udl/udl_modeset.c  | 19 ++++++++++++++++--
  include/drm/drm_plane_helper.h     |  2 --
  3 files changed, 17 insertions(+), 36 deletions(-)
drivers/gpu/drm/drm_plane_helper.c +0 -22
index 5e95089676ff8..7982be4b0306d 100644
@@ -279,35 +279,3 @@ void drm_plane_helper_destroy(struct drm_plane *plane)
  	kfree(plane);
  }
  EXPORT_SYMBOL(drm_plane_helper_destroy);
-
-/**
- * drm_plane_helper_atomic_check() - Helper to check plane atomic-state
- * @plane: plane to check
- * @state: atomic state object
- *
- * Provides a default plane-state check handler for planes whose atomic-state
- * scale and positioning are not expected to change since the plane is always
- * a fullscreen scanout buffer.
- *
- * This is often the case for the primary plane of simple framebuffers. See
- * also drm_crtc_helper_atomic_check() for the respective CRTC-state check
- * helper function.
- *
- * RETURNS:
- * Zero on success, or an errno code otherwise.
- */
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state)
-{
-	struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
-	struct drm_crtc *new_crtc = new_plane_state->crtc;
-	struct drm_crtc_state *new_crtc_state = NULL;

drivers/gpu/drm/drm_plane_helper.c void drm_plane_helper_destroy(struct drm_plane *plane) · line 313

Quoted 10 lines
drivers/gpu/drm/drm_plane_helper.c +0 -10
-
-	if (new_crtc)
-		new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
-
-	return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state,
-						   DRM_PLANE_NO_SCALING,
-						   DRM_PLANE_NO_SCALING,
-						   false, false);
-}
-EXPORT_SYMBOL(drm_plane_helper_atomic_check);

Since this function is removed, does the comments of the drm_crtc_helper_atomic_check() function (in the drm_crtc_helper.c) need to update as well? I'm ask because I see the comments of the drm_crtc_helper_atomic_check() still referencing this function.

Quoted 64 lines
drivers/gpu/drm/udl/udl_modeset.c +17 -2
index 40876bcdd79a4..7702359c90c22 100644
@@ -21,7 +21,6 @@
  #include <drm/drm_gem_framebuffer_helper.h>
  #include <drm/drm_gem_shmem_helper.h>
  #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
  #include <drm/drm_probe_helper.h>
  #include <drm/drm_vblank.h>
 
@@ -261,6 +260,22 @@ static const uint64_t udl_primary_plane_fmtmods[] = {
  	DRM_FORMAT_MOD_INVALID
  };
 
+static int udl_primary_plane_helper_atomic_check(struct drm_plane *plane,
+						 struct drm_atomic_state *state)
+{
+	struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
+	struct drm_crtc *new_crtc = new_plane_state->crtc;
+	struct drm_crtc_state *new_crtc_state = NULL;
+
+	if (new_crtc)
+		new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
+
+	return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state,
+						   DRM_PLANE_NO_SCALING,
+						   DRM_PLANE_NO_SCALING,
+						   false, false);
+}
+
  static void udl_primary_plane_helper_atomic_update(struct drm_plane *plane,
  						   struct drm_atomic_state *state)
  {
@@ -296,7 +311,7 @@ static void udl_primary_plane_helper_atomic_update(struct drm_plane *plane,
 
  static const struct drm_plane_helper_funcs udl_primary_plane_helper_funcs = {
  	DRM_GEM_SHADOW_PLANE_HELPER_FUNCS,
-	.atomic_check = drm_plane_helper_atomic_check,
+	.atomic_check = udl_primary_plane_helper_atomic_check,
  	.atomic_update = udl_primary_plane_helper_atomic_update,
  };
 
include/drm/drm_plane_helper.h +0 -2
index 3a574e8cd22f4..75f9c4830564a 100644
@@ -26,7 +26,6 @@
 
  #include <linux/types.h>
 
-struct drm_atomic_state;
  struct drm_crtc;
  struct drm_framebuffer;
  struct drm_modeset_acquire_ctx;
@@ -42,7 +41,6 @@ int drm_plane_helper_update_primary(struct drm_plane *plane, struct drm_crtc *cr
  int drm_plane_helper_disable_primary(struct drm_plane *plane,
  				     struct drm_modeset_acquire_ctx *ctx);
  void drm_plane_helper_destroy(struct drm_plane *plane);
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state);
 
  /**
   * DRM_PLANE_NON_ATOMIC_FUNCS - Default plane functions for non-atomic drivers
author maintainer
#3 lore raw

Re: [1/8] drm/plane-helper: Move drm_plane_helper_atomic_check() into udl

Hi

Am 01.12.23 um 03:36 schrieb Sui Jingfeng:

Quoted 59 lines

Hi,

Quoted 55 lines · Thomas Zimmermann

The udl driver is the only caller of drm_plane_helper_atomic_check(). Move the function into the driver. No functional changes.

---
  drivers/gpu/drm/drm_plane_helper.c | 32 ------------------------------ drivers/gpu/drm/udl/udl_modeset.c  | 19 ++++++++++++++++-- include/drm/drm_plane_helper.h     |  2 --

  3 files changed, 17 insertions(+), 36 deletions(-)
drivers/gpu/drm/drm_plane_helper.c +0 -0
index 5e95089676ff8..7982be4b0306d 100644
@@ -279,35 +279,3 @@ void drm_plane_helper_destroy(struct drm_plane 
 *plane)
       kfree(plane);
   }

  EXPORT_SYMBOL(drm_plane_helper_destroy);

drivers/gpu/drm/drm_plane_helper.c +0 -7
-
-/**
- * drm_plane_helper_atomic_check() - Helper to check plane atomic-state
- * @plane: plane to check
- * @state: atomic state object
- *
- * Provides a default plane-state check handler for planes whose 

atomic-state
- * scale and positioning are not expected to change since the plane is always
- * a fullscreen scanout buffer.
- *
- * This is often the case for the primary plane of simple framebuffers. See
- * also drm_crtc_helper_atomic_check() for the respective CRTC-state check
- * helper function.
- *
- * RETURNS:
- * Zero on success, or an errno code otherwise.
- */
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state)
-{
-    struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
-    struct drm_crtc *new_crtc = new_plane_state->crtc;
-    struct drm_crtc_state *new_crtc_state = NULL;

drivers/gpu/drm/drm_plane_helper.c +0 -5
-
-    if (new_crtc)
-        new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
-
-    return drm_atomic_helper_check_plane_state(new_plane_state, 

new_crtc_state,
-                           DRM_PLANE_NO_SCALING,
-                           DRM_PLANE_NO_SCALING,

Quoted 8 lines

drivers/gpu/drm/drm_plane_helper.c void drm_plane_helper_destroy(struct drm_plane *plane) · line 313

Quoted 3 lines

-                           false, false);

drivers/gpu/drm/drm_plane_helper.c +0 -2
-}
-EXPORT_SYMBOL(drm_plane_helper_atomic_check);

Since this function is removed, does the comments of the drm_crtc_helper_atomic_check() function (in the drm_crtc_helper.c) need to update as well? I'm ask because I see the comments of the drm_crtc_helper_atomic_check() still referencing this function.

Good point. I'll update that comment. Thanks for reviewing.

Best regards
Thomas

Quoted 66 lines
Quoted 66 lines
drivers/gpu/drm/udl/udl_modeset.c +0 -1
index 40876bcdd79a4..7702359c90c22 100644
@@ -21,7 +21,6 @@
   #include <drm/drm_gem_framebuffer_helper.h>
   #include <drm/drm_gem_shmem_helper.h>
   #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
   #include <drm/drm_probe_helper.h>
   #include <drm/drm_vblank.h>
@@ -261,6 +260,22 @@ static const uint64_t udl_primary_plane_fmtmods[] 
 = {

      DRM_FORMAT_MOD_INVALID
  };
+static int udl_primary_plane_helper_atomic_check(struct drm_plane *plane,
+                         struct drm_atomic_state *state) +{
+    struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
+    struct drm_crtc *new_crtc = new_plane_state->crtc; +    struct drm_crtc_state *new_crtc_state = NULL;

drivers/gpu/drm/udl/udl_modeset.c +5 -0
+
+    if (new_crtc)
+        new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
+
+    return drm_atomic_helper_check_plane_state(new_plane_state, 

new_crtc_state,
+                           DRM_PLANE_NO_SCALING,
+                           DRM_PLANE_NO_SCALING,
+                           false, false);

drivers/gpu/drm/udl/udl_modeset.c +2 -0
+}
+

  static void udl_primary_plane_helper_atomic_update(struct drm_plane *plane, struct drm_atomic_state *state)
  {

drivers/gpu/drm/udl/udl_modeset.c +1 -1
@@ -296,7 +311,7 @@ static void 
 udl_primary_plane_helper_atomic_update(struct drm_plane *plane,
   static const struct drm_plane_helper_funcs udl_primary_plane_helper_funcs = {
       DRM_GEM_SHADOW_PLANE_HELPER_FUNCS,
-    .atomic_check = drm_plane_helper_atomic_check,
+    .atomic_check = udl_primary_plane_helper_atomic_check,
       .atomic_update = udl_primary_plane_helper_atomic_update,
   };
include/drm/drm_plane_helper.h +0 -2
index 3a574e8cd22f4..75f9c4830564a 100644
@@ -26,7 +26,6 @@
   #include <linux/types.h>
-struct drm_atomic_state;
   struct drm_crtc;
   struct drm_framebuffer;
   struct drm_modeset_acquire_ctx;
@@ -42,7 +41,6 @@ int drm_plane_helper_update_primary(struct drm_plane 
 *plane, struct drm_crtc *cr
   int drm_plane_helper_disable_primary(struct drm_plane *plane,
                        struct drm_modeset_acquire_ctx *ctx);
   void drm_plane_helper_destroy(struct drm_plane *plane);
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct 
 drm_atomic_state *state);
   /**

   * DRM_PLANE_NON_ATOMIC_FUNCS - Default plane functions for non-atomic drivers

Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
Acked-by
#4 lore raw

Re: [1/8] drm/plane-helper: Move drm_plane_helper_atomic_check() into udl

Hi,

Quoted 74 lines · Thomas Zimmermann

Hi

Am 01.12.23 um 03:36 schrieb Sui Jingfeng:

Quoted 62 lines

Hi,

Quoted 58 lines · Thomas Zimmermann

The udl driver is the only caller of drm_plane_helper_atomic_check(). Move the function into the driver. No functional changes.

---
  drivers/gpu/drm/drm_plane_helper.c | 32
------------------------------
  drivers/gpu/drm/udl/udl_modeset.c  | 19 ++++++++++++++++-- include/drm/drm_plane_helper.h     |  2 --

  3 files changed, 17 insertions(+), 36 deletions(-)
drivers/gpu/drm/drm_plane_helper.c +0 -0
index 5e95089676ff8..7982be4b0306d 100644
@@ -279,35 +279,3 @@ void drm_plane_helper_destroy(struct drm_plane 
 *plane)
       kfree(plane);
   }

  EXPORT_SYMBOL(drm_plane_helper_destroy);

drivers/gpu/drm/drm_plane_helper.c +0 -3
-
-/**
- * drm_plane_helper_atomic_check() - Helper to check plane 

atomic-state
- * @plane: plane to check
- * @state: atomic state object
- *
- * Provides a default plane-state check handler for planes whose atomic-state
- * scale and positioning are not expected to change since the plane is always
- * a fullscreen scanout buffer.
- *
- * This is often the case for the primary plane of simple framebuffers. See
- * also drm_crtc_helper_atomic_check() for the respective CRTC-state check
- * helper function.
- *
- * RETURNS:
- * Zero on success, or an errno code otherwise.
- */
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state)
-{
-    struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
-    struct drm_crtc *new_crtc = new_plane_state->crtc;
-    struct drm_crtc_state *new_crtc_state = NULL;
-
-    if (new_crtc)
-        new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
-
-    return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state,
-                           DRM_PLANE_NO_SCALING,
-                           DRM_PLANE_NO_SCALING,

Quoted 8 lines

drivers/gpu/drm/drm_plane_helper.c void drm_plane_helper_destroy(struct drm_plane *plane) · line 313

Quoted 3 lines

-                           false, false);

drivers/gpu/drm/drm_plane_helper.c +0 -2
-}
-EXPORT_SYMBOL(drm_plane_helper_atomic_check);

Since this function is removed, does the comments of the drm_crtc_helper_atomic_check() function (in the drm_crtc_helper.c) need to update as well? I'm ask because I see the comments of the drm_crtc_helper_atomic_check() still referencing this function.

Quoted 2 lines

Good point. I'll update that comment. Thanks for reviewing.

OK,  with this trivial problem solved:

Quoted 71 lines

Best regards
Thomas

Quoted 67 lines
Quoted 67 lines
drivers/gpu/drm/udl/udl_modeset.c +0 -1
index 40876bcdd79a4..7702359c90c22 100644
@@ -21,7 +21,6 @@
   #include <drm/drm_gem_framebuffer_helper.h>
   #include <drm/drm_gem_shmem_helper.h>
   #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
   #include <drm/drm_probe_helper.h>
   #include <drm/drm_vblank.h>
@@ -261,6 +260,22 @@ static const uint64_t 
 udl_primary_plane_fmtmods[] = {

      DRM_FORMAT_MOD_INVALID
  };
+static int udl_primary_plane_helper_atomic_check(struct drm_plane *plane,
+                         struct drm_atomic_state *state) +{
+    struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
+    struct drm_crtc *new_crtc = new_plane_state->crtc; +    struct drm_crtc_state *new_crtc_state = NULL;
+
+    if (new_crtc)
+        new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc);
+
+    return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state,
+                           DRM_PLANE_NO_SCALING,
+                           DRM_PLANE_NO_SCALING,
+                           false, false);

drivers/gpu/drm/udl/udl_modeset.c +2 -0
+}
+

  static void udl_primary_plane_helper_atomic_update(struct drm_plane *plane, struct drm_atomic_state *state)
  {

drivers/gpu/drm/udl/udl_modeset.c +1 -1
@@ -296,7 +311,7 @@ static void 
 udl_primary_plane_helper_atomic_update(struct drm_plane *plane,
   static const struct drm_plane_helper_funcs udl_primary_plane_helper_funcs = {
       DRM_GEM_SHADOW_PLANE_HELPER_FUNCS,
-    .atomic_check = drm_plane_helper_atomic_check,
+    .atomic_check = udl_primary_plane_helper_atomic_check,
       .atomic_update = udl_primary_plane_helper_atomic_update,
   };
include/drm/drm_plane_helper.h +0 -1
index 3a574e8cd22f4..75f9c4830564a 100644
@@ -26,7 +26,6 @@
   #include <linux/types.h>
-struct drm_atomic_state;
   struct drm_crtc;
   struct drm_framebuffer;
   struct drm_modeset_acquire_ctx;
@@ -42,7 +41,6 @@ int drm_plane_helper_update_primary(struct 

drm_plane *plane, struct drm_crtc *cr
  int drm_plane_helper_disable_primary(struct drm_plane *plane, struct drm_modeset_acquire_ctx *ctx);
  void drm_plane_helper_destroy(struct drm_plane *plane);
-int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state);
  /**
   * DRM_PLANE_NON_ATOMIC_FUNCS - Default plane functions for non-atomic drivers

author maintainer
#5 lore raw

PATCH 2/8 drm/amdgpu: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -1
index aa43f1761acd3..b8c3a9b104a41 100644
@@ -92,7 +92,6 @@
 #include <drm/drm_vblank.h>
 #include <drm/drm_audio_component.h>
 #include <drm/drm_gem_atomic_helper.h>
-#include <drm/drm_plane_helper.h>
 
 #include <acpi/video.h>
 
Signature · 1 line
2.43.0
author maintainer
#6 lore raw

PATCH 3/8 drm/loongson: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/loongson/lsdc_plane.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/loongson/lsdc_plane.c +0 -1
index 0d50946332229..d227a2c1dcf16 100644
@@ -9,7 +9,6 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_atomic_helper.h>
-#include <drm/drm_plane_helper.h>
 
 #include "lsdc_drv.h"
 #include "lsdc_regs.h"
Signature · 1 line
2.43.0
Reviewed-by Tested-by on v1 3/8
#7 lore raw

Re: [3/8] drm/loongson: Do not include <drm/drm_plane_helper.h>

Hi,

Thank you for the patch.

Quoted 5 lines · Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

Quoted 16 lines
---
  drivers/gpu/drm/loongson/lsdc_plane.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/loongson/lsdc_plane.c +0 -1
index 0d50946332229..d227a2c1dcf16 100644
@@ -9,7 +9,6 @@
  #include <drm/drm_atomic_helper.h>
  #include <drm/drm_framebuffer.h>
  #include <drm/drm_gem_atomic_helper.h>
-#include <drm/drm_plane_helper.h>
 
  #include "lsdc_drv.h"
  #include "lsdc_regs.h"
author maintainer
#8 lore raw

PATCH 4/8 drm/shmobile: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c +0 -1
index 8f9a728affde8..07ad17d24294d 100644
@@ -14,7 +14,6 @@
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_dma_helper.h>
-#include <drm/drm_plane_helper.h>
 
 #include "shmob_drm_drv.h"
 #include "shmob_drm_kms.h"
Signature · 1 line
2.43.0
Reviewed-by Acked-by on v1 4/8
#9 lore raw

Re: [PATCH 4/8] drm/shmobile: Do not include <drm/drm_plane_helper.h>

Quoted 5 lines · Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
author maintainer
#10 lore raw

PATCH 5/8 drm/solomon: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/solomon/ssd130x.h | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/solomon/ssd130x.h +0 -1
index acf7cedf0c1ab..075c5c3ee75ac 100644
@@ -17,7 +17,6 @@
 #include <drm/drm_crtc.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_encoder.h>
-#include <drm/drm_plane_helper.h>
 
 #include <linux/regmap.h>
 
Signature · 1 line
2.43.0
Reviewed-by on v1 5/8
#11 lore raw

Re: [PATCH 5/8] drm/solomon: Do not include <drm/drm_plane_helper.h>

Quoted 5 lines · Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
maintainer Reviewed-by on v1 5/8
#12 lore raw

Re: [PATCH 5/8] drm/solomon: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Thomas Zimmermann <[email protected]> writes:

Hello Thomas,

Quoted 24 lines

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/solomon/ssd130x.h | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/solomon/ssd130x.h +0 -1
index acf7cedf0c1ab..075c5c3ee75ac 100644
@@ -17,7 +17,6 @@
 #include <drm/drm_crtc.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_encoder.h>
-#include <drm/drm_plane_helper.h>
 
 #include <linux/regmap.h>
 
Signature · 1 line
2.43.0
Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
author maintainer
#13 lore raw

PATCH 6/8 drm/ofdrm: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/tiny/ofdrm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/tiny/ofdrm.c +0 -1
index 05a72473cfc65..ab89b7fc7bf61 100644
@@ -19,7 +19,6 @@
 #include <drm/drm_gem_shmem_helper.h>
 #include <drm/drm_managed.h>
 #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_simple_kms_helper.h>
 
Signature · 1 line
2.43.0
Reviewed-by on v1 6/8
#14 lore raw

Re: [6/8] drm/ofdrm: Do not include <drm/drm_plane_helper.h>

Hi,

Quoted 5 lines · Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

Quoted 16 lines
---
  drivers/gpu/drm/tiny/ofdrm.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/tiny/ofdrm.c +0 -1
index 05a72473cfc65..ab89b7fc7bf61 100644
@@ -19,7 +19,6 @@
  #include <drm/drm_gem_shmem_helper.h>
  #include <drm/drm_managed.h>
  #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
  #include <drm/drm_probe_helper.h>
  #include <drm/drm_simple_kms_helper.h>
 
author maintainer
#15 lore raw

PATCH 7/8 drm/simpledrm: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/tiny/simpledrm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/tiny/simpledrm.c +0 -1
index 34bbbd7b53dd9..7ce1c46176750 100644
@@ -25,7 +25,6 @@
 #include <drm/drm_gem_shmem_helper.h>
 #include <drm/drm_managed.h>
 #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
 #include <drm/drm_probe_helper.h>
 
 #define DRIVER_NAME	"simpledrm"
Signature · 1 line
2.43.0
Reviewed-by on v1 7/8
#16 lore raw

Re: [7/8] drm/simpledrm: Do not include <drm/drm_plane_helper.h>

Hi,

Quoted 5 lines · Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

Quoted 16 lines
---
  drivers/gpu/drm/tiny/simpledrm.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/tiny/simpledrm.c +0 -1
index 34bbbd7b53dd9..7ce1c46176750 100644
@@ -25,7 +25,6 @@
  #include <drm/drm_gem_shmem_helper.h>
  #include <drm/drm_managed.h>
  #include <drm/drm_modeset_helper_vtables.h>
-#include <drm/drm_plane_helper.h>
  #include <drm/drm_probe_helper.h>
 
  #define DRIVER_NAME	"simpledrm"
author maintainer
#17 lore raw

PATCH 8/8 drm/xlnx: Do not include <drm/drm_plane_helper.h>

In reply to Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

---
 drivers/gpu/drm/xlnx/zynqmp_kms.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/xlnx/zynqmp_kms.c +0 -1
index a7f8611be6f42..db3bb4afbfc46 100644
@@ -27,7 +27,6 @@
 #include <drm/drm_managed.h>
 #include <drm/drm_mode_config.h>
 #include <drm/drm_plane.h>
-#include <drm/drm_plane_helper.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_simple_kms_helper.h>
 #include <drm/drm_vblank.h>
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 8/8
#18 lore raw

Re: [PATCH 8/8] drm/xlnx: Do not include <drm/drm_plane_helper.h>

Hi Thomas,

Thank you for the patch.

Quoted 5 lines · Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

Assuming you've compile-tested the driver,

Please get this merged through drm-misc as part of the series if possible.

Quoted 16 lines
---
 drivers/gpu/drm/xlnx/zynqmp_kms.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/xlnx/zynqmp_kms.c +0 -1
index a7f8611be6f42..db3bb4afbfc46 100644
@@ -27,7 +27,6 @@
 #include <drm/drm_managed.h>
 #include <drm/drm_mode_config.h>
 #include <drm/drm_plane.h>
-#include <drm/drm_plane_helper.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_simple_kms_helper.h>
 #include <drm/drm_vblank.h>
Signature · 3 lines
Regards,

Laurent Pinchart
author maintainer
#19 lore raw

Re: [PATCH 8/8] drm/xlnx: Do not include <drm/drm_plane_helper.h>

Hi

Am 28.11.23 um 12:02 schrieb Laurent Pinchart:

Quoted 4 lines

Hi Thomas,

Thank you for the patch.

Quoted 8 lines
Quoted 5 lines · Thomas Zimmermann

Remove unnecessary include statements for <drm/drm_plane_helper.h>. The file contains helpers for non-atomic code and should not be required by most drivers. No functional changes.

Assuming you've compile-tested the driver,

I've COMPILE_TEST'ed the driver on aarch64.

Quoted 5 lines

Please get this merged through drm-misc as part of the series if possible.

Sure.

Best regards
Thomas

Quoted 18 lines
Quoted 17 lines
---
  drivers/gpu/drm/xlnx/zynqmp_kms.c | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/xlnx/zynqmp_kms.c +0 -1
index a7f8611be6f42..db3bb4afbfc46 100644
@@ -27,7 +27,6 @@
  #include <drm/drm_managed.h>
  #include <drm/drm_mode_config.h>
  #include <drm/drm_plane.h>
-#include <drm/drm_plane_helper.h>
  #include <drm/drm_probe_helper.h>
  #include <drm/drm_simple_kms_helper.h>
  #include <drm/drm_vblank.h>
Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)