Skip to contentSkip to conversation

drm: Add drm/drm_util.h header file

PATCH In review Daniel Vetter 7 participants 23 messages Sep 5, 2018 – Sep 9, 2018 1 message not in the archive

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

PATCH 1/7 drm: Add drm/drm_util.h header file

We have a bunch of neat little macros all over the place which should move to kernel.h. But some of them died in bikesheds on lkml, and we need a decent home for them.

Start out by moving the for_each_if macro there.

v2: Rename to drm_util.h instead (Dave&Sean)

---
 drivers/gpu/drm/i915/i915_drv.h             |  1 +
 drivers/gpu/drm/i915/intel_display.h        |  2 ++
 drivers/gpu/drm/i915/intel_ringbuffer.h     |  2 ++
 drivers/gpu/drm/nouveau/nouveau_connector.h |  2 ++
 include/drm/drmP.h                          |  3 --
 include/drm/drm_atomic.h                    |  1 +
 include/drm/drm_atomic_helper.h             |  1 +
 include/drm/drm_connector.h                 |  1 +
 include/drm/drm_encoder.h                   |  1 +
 include/drm/drm_plane.h                     |  1 +
 include/drm/drm_util.h                      | 32 +++++++++++++++++++++
 11 files changed, 44 insertions(+), 3 deletions(-)
 create mode 100644 include/drm/drm_util.h
drivers/gpu/drm/i915/i915_drv.h +1 -0
index 5a4da5b723fd..0e567dcf4df2 100644
@@ -52,6 +52,7 @@
 #include <drm/drm_gem.h>
 #include <drm/drm_auth.h>
 #include <drm/drm_cache.h>
+#include <drm/drm_util.h>
 
 #include "i915_params.h"
 #include "i915_reg.h"
drivers/gpu/drm/i915/intel_display.h +2 -0
index e20e6a36a748..ed474da6c200 100644
@@ -25,6 +25,8 @@
 #ifndef _INTEL_DISPLAY_H_
 #define _INTEL_DISPLAY_H_
 
+#include <drm/drm_util.h>
+
 enum i915_gpio {
 	GPIOA,
 	GPIOB,
drivers/gpu/drm/i915/intel_ringbuffer.h +2 -0
index 3f6920dd7880..2dfa585712c2 100644
@@ -2,6 +2,8 @@
 #ifndef _INTEL_RINGBUFFER_H_
 #define _INTEL_RINGBUFFER_H_
 
+#include <drm/drm_util.h>
+
 #include <linux/hashtable.h>
 #include <linux/seqlock.h>
 
drivers/gpu/drm/nouveau/nouveau_connector.h +2 -0
index dc7454e7f19a..0acc07555bcd 100644
@@ -32,6 +32,8 @@
 #include <drm/drm_edid.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_dp_helper.h>
+#include <drm/drm_util.h>
+
 #include "nouveau_crtc.h"
 #include "nouveau_encoder.h"
 
include/drm/drmP.h +0 -3
index f7a19c2a7a80..05350424a4d3 100644
@@ -110,7 +110,4 @@ static inline bool drm_can_sleep(void)
 	return true;
 }
 
-/* helper for handling conditionals in various for_each macros */
-#define for_each_if(condition) if (!(condition)) {} else
-
 #endif
include/drm/drm_atomic.h +1 -0
index da9d95a19580..d621232a469a 100644
@@ -29,6 +29,7 @@
 #define DRM_ATOMIC_H_
 
 #include <drm/drm_crtc.h>
+#include <drm/drm_util.h>
 
 /**
  * struct drm_crtc_commit - track modeset commits on a CRTC
include/drm/drm_atomic_helper.h +1 -0
index f4c7ed876c97..657af7b39379 100644
@@ -31,6 +31,7 @@
 #include <drm/drm_crtc.h>
 #include <drm/drm_modeset_helper_vtables.h>
 #include <drm/drm_modeset_helper.h>
+#include <drm/drm_util.h>
 
 struct drm_atomic_state;
 struct drm_private_obj;
include/drm/drm_connector.h +1 -0
index 97ea41dc678f..91a877fa00cb 100644
@@ -28,6 +28,7 @@
 #include <linux/ctype.h>
 #include <linux/hdmi.h>
 #include <drm/drm_mode_object.h>
+#include <drm/drm_util.h>
 
 #include <uapi/drm/drm_mode.h>
 
include/drm/drm_encoder.h +1 -0
index 4f597c0730b4..70cfca03d812 100644
@@ -28,6 +28,7 @@
 #include <drm/drm_crtc.h>
 #include <drm/drm_mode.h>
 #include <drm/drm_mode_object.h>
+#include <drm/drm_util.h>
 
 struct drm_encoder;
 
include/drm/drm_plane.h +1 -0
index 16f5b66684ca..6760e49d8c85 100644
@@ -27,6 +27,7 @@
 #include <linux/ctype.h>
 #include <drm/drm_mode_object.h>
 #include <drm/drm_color_mgmt.h>
+#include <drm/drm_util.h>
 
 struct drm_crtc;
 struct drm_printer;
include/drm/drm_util.h new file +32 -0
new file mode 100644
index 000000000000..88abdca89baa
@@ -0,0 +1,32 @@
+/*
+ * Internal Header for the Direct Rendering Manager
+ *
+ * Copyright 2018 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef _DRM_UTIL_H_
+#define _DRM_UTIL_H_
+
+/* helper for handling conditionals in various for_each macros */
+#define for_each_if(condition) if (!(condition)) {} else
+
+#endif
Signature · 6 lines
2.19.0.rc1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/7 drm: Drop drmP.h from drm_connector.c

Only needed minimal changes in drm_internal.h (for the drm_ioctl_t type and a few forward declarations), plus a few missing includes in drm_connector.c.

Yay, the last stage of the drm header cleanup can finally commence!

v2: Compiles now, with drm/kernel.h extracted.

---
 drivers/gpu/drm/drm_connector.c | 6 +++++-
 drivers/gpu/drm/drm_internal.h  | 5 +++++
 2 files changed, 10 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_connector.c +5 -1
index 6011d769d50b..526619f963e5 100644
@@ -20,11 +20,15 @@
  * OF THIS SOFTWARE.
  */
 
-#include <drm/drmP.h>
 #include <drm/drm_connector.h>
 #include <drm/drm_edid.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_utils.h>
+#include <drm/drm_print.h>
+#include <drm/drm_drv.h>
+#include <drm/drm_file.h>
+
+#include <linux/uaccess.h>
 
 #include "drm_crtc_internal.h"
 #include "drm_internal.h"
drivers/gpu/drm/drm_internal.h +5 -0
index 40179c5fc6b8..0c4eb4a9ab31 100644
@@ -21,9 +21,14 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include <drm/drm_ioctl.h>
+
 #define DRM_IF_MAJOR 1
 #define DRM_IF_MINOR 4
 
+struct drm_prime_file_private;
+struct dma_buf;
+
 /* drm_file.c */
 extern struct mutex drm_global_mutex;
 struct drm_file *drm_file_alloc(struct drm_minor *minor);
Signature · 6 lines
2.19.0.rc1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

Re: [PATCH 2/7] drm: Drop drmP.h from drm_connector.c

Quoted 7 lines · Daniel Vetter

Only needed minimal changes in drm_internal.h (for the drm_ioctl_t type and a few forward declarations), plus a few missing includes in drm_connector.c.

Yay, the last stage of the drm header cleanup can finally commence!

v2: Compiles now, with drm/kernel.h extracted.

1) It is now named drm_util.h (the drm_util name makes more sense to me)
2) patch revision info belongs outside the changelog part - no?

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

#3 lore raw

Re: [PATCH 2/7] drm: Drop drmP.h from drm_connector.c

Quoted 9 lines · Sam Ravnborg
Quoted 7 lines · Daniel Vetter

Only needed minimal changes in drm_internal.h (for the drm_ioctl_t type and a few forward declarations), plus a few missing includes in drm_connector.c.

Yay, the last stage of the drm header cleanup can finally commence!

v2: Compiles now, with drm/kernel.h extracted.

1) It is now named drm_util.h (the drm_util name makes more sense to me)

Ah right, I'll fix up when applying or respinning, whichever comes first.

Quoted 1 line

2) patch revision info belongs outside the changelog part - no?

If it's information worth writing it's information worth recording. In drm we're pretty much ok with whatever you feel like, and most people include the patch revision in the commit message. Too many cases where critical information was left out and a patch made no sense at all anymore half a year down the road.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw

Re: [PATCH 2/7] drm: Drop drmP.h from drm_connector.c

Quoted 8 lines
Quoted 2 lines

2) patch revision info belongs outside the changelog part - no?

If it's information worth writing it's information worth recording. In drm we're pretty much ok with whatever you feel like, and most people include the patch revision in the commit message. Too many cases where critical information was left out and a patch made no sense at all anymore half a year down the road.

Noted, thanks for the explanation.

Sam
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw

PATCH 3/7 drm: drop drmP.h include from drm_plane.c

In reply to Daniel Vetter

Just a bit of missing includes and pre declarations.

v2: Compiles now, with drm/kernel.h extracted.

v3: Rebase

---
 drivers/gpu/drm/drm_crtc_internal.h |  8 ++++++++
 drivers/gpu/drm/drm_plane.c         | 11 ++++++++++-
 include/drm/drm_color_mgmt.h        |  1 +
 include/drm/drm_plane.h             |  2 ++
 include/drm/drm_property.h          |  2 ++
 5 files changed, 23 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_crtc_internal.h +8 -0
index b61322763394..ff5e0d521c21 100644
@@ -31,6 +31,14 @@
  * and are not exported to drivers.
  */
 
+enum drm_mode_status;
+enum drm_connector_force;
+
+struct drm_display_mode;
+struct work_struct;
+struct drm_connector;
+struct drm_bridge;
+struct edid;
 
 /* drm_crtc.c */
 int drm_mode_crtc_set_obj_prop(struct drm_mode_object *obj,
drivers/gpu/drm/drm_plane.c +10 -1
index 6153cbda239f..36bf3fe9ad21 100644
@@ -20,8 +20,17 @@
  * OF THIS SOFTWARE.
  */
 
-#include <drm/drmP.h>
+#include <linux/slab.h>
+#include <linux/uaccess.h>
+
 #include <drm/drm_plane.h>
+#include <drm/drm_drv.h>
+#include <drm/drm_print.h>
+#include <drm/drm_framebuffer.h>
+#include <drm/drm_file.h>
+#include <drm/drm_crtc.h>
+#include <drm/drm_fourcc.h>
+#include <drm/drm_vblank.h>
 
 #include "drm_crtc_internal.h"
 
include/drm/drm_color_mgmt.h +1 -0
index 44f04233e3db..90ef9996d9a4 100644
@@ -24,6 +24,7 @@
 #define __DRM_COLOR_MGMT_H__
 
 #include <linux/ctype.h>
+#include <drm/drm_property.h>
 
 struct drm_crtc;
 struct drm_plane;
include/drm/drm_plane.h +2 -0
index 6760e49d8c85..0a0834bef8bd 100644
@@ -27,6 +27,8 @@
 #include <linux/ctype.h>
 #include <drm/drm_mode_object.h>
 #include <drm/drm_color_mgmt.h>
+#include <drm/drm_rect.h>
+#include <drm/drm_modeset_lock.h>
 #include <drm/drm_util.h>
 
 struct drm_crtc;
include/drm/drm_property.h +2 -0
index c030f6ccab99..5b9efff35d6d 100644
@@ -27,6 +27,8 @@
 #include <linux/ctype.h>
 #include <drm/drm_mode_object.h>
 
+#include <uapi/drm/drm_mode.h>
+
 /**
  * struct drm_property_enum - symbolic values for enumerations
  * @value: numeric property value for this enum entry
Signature · 6 lines
2.19.0.rc1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw

PATCH 4/7 drm: drop drmP.h include from drm_crtc.c

In reply to Daniel Vetter

This is starting to become easy!

v2: Compiles now, with drm/kernel.h extracted.

---
 drivers/gpu/drm/drm_crtc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_crtc.c +4 -1
index bae43938c8f6..2f6c877299e4 100644
@@ -34,7 +34,7 @@
 #include <linux/slab.h>
 #include <linux/export.h>
 #include <linux/dma-fence.h>
-#include <drm/drmP.h>
+#include <linux/uaccess.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_edid.h>
 #include <drm/drm_fourcc.h>
@@ -42,6 +42,9 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_auth.h>
 #include <drm/drm_debugfs_crc.h>
+#include <drm/drm_drv.h>
+#include <drm/drm_print.h>
+#include <drm/drm_file.h>
 
 #include "drm_crtc_internal.h"
 #include "drm_internal.h"
Signature · 6 lines
2.19.0.rc1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw

PATCH 5/7 drm/atomic: trim driver interface/docs

In reply to Daniel Vetter

Remove the kerneldoc and EXPORT_SYMBOL which aren't used and really shouldn't ever be used by drivers directly.

Unfortunately this means we need to move the set_writeback_fb function around to avoid a forward decl.

Cc David Airlie <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>
---
 Documentation/gpu/drm-kms.rst |   3 -
 drivers/gpu/drm/drm_atomic.c  | 219 ++++++----------------------------
 include/drm/drm_atomic.h      |   6 -
 3 files changed, 34 insertions(+), 194 deletions(-)
Documentation/gpu/drm-kms.rst +0 -3
index f8f5bf11a6ca..3a9dd68b97c9 100644
@@ -287,9 +287,6 @@ Atomic Mode Setting Function Reference
 .. kernel-doc:: drivers/gpu/drm/drm_atomic.c
    :export:
 
-.. kernel-doc:: drivers/gpu/drm/drm_atomic.c
-   :internal:
-
 CRTC Abstraction
 ================
 
drivers/gpu/drm/drm_atomic.c +34 -185

274 lines not on this page · raw message

include/drm/drm_atomic.h +0 -6
index d621232a469a..93d29af34024 100644
@@ -374,9 +374,6 @@ void drm_atomic_state_default_release(struct drm_atomic_state *state);
 struct drm_crtc_state * __must_check
 drm_atomic_get_crtc_state(struct drm_atomic_state *state,
 			  struct drm_crtc *crtc);
-int drm_atomic_crtc_set_property(struct drm_crtc *crtc,
-		struct drm_crtc_state *state, struct drm_property *property,
-		uint64_t val);
 struct drm_plane_state * __must_check
 drm_atomic_get_plane_state(struct drm_atomic_state *state,
 			   struct drm_plane *plane);
@@ -603,9 +600,6 @@ void drm_atomic_set_fence_for_plane(struct drm_plane_state *plane_state,
 int __must_check
 drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state,
 				  struct drm_crtc *crtc);
-int drm_atomic_set_writeback_fb_for_connector(
-		struct drm_connector_state *conn_state,
-		struct drm_framebuffer *fb);
 int __must_check
 drm_atomic_add_affected_connectors(struct drm_atomic_state *state,
 				   struct drm_crtc *crtc);
Signature · 6 lines
2.19.0.rc1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Acked-by on v1 5/7
#8 lore raw

Re: [PATCH 5/7] drm/atomic: trim driver interface/docs

Am Mittwoch, 5. September 2018, 15:57:09 CEST schrieb Daniel Vetter:

Quoted 11 lines

Remove the kerneldoc and EXPORT_SYMBOL which aren't used and really shouldn't ever be used by drivers directly.

Unfortunately this means we need to move the set_writeback_fb function around to avoid a forward decl.

Cc David Airlie <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>

checked that the two moved functions keep identical content from old to new location, so

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#9 lore raw

PATCH 6/7 drm: Update todo.rst

In reply to Daniel Vetter

- drmP.h is now fully split up.
- vkms is happening (and will gain its own todo and docs under a new vkms.rst file real soon)
- legacy cruft is completely hidden now, drm_vblank.c is split out from drm_irq.c now. I've decided to drop the task to split out drm_legacy.ko, partially because Dave already rejected a patch to hide the old dri1 drivers better. Current state feels good enough to me.
- best_encoder atomic cleanup is done (it's now the default, not even exported anymore)
- bunch of smaller things

v2:
- Explain why the drm_legacy.ko task is dropped (Emil).
- typos (Sam).

Cc Sam Ravnborg <[email protected]>
Cc Emil Velikov <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
---
 Documentation/gpu/todo.rst | 68 ++++++--------------------------------
 1 file changed, 10 insertions(+), 58 deletions(-)
Documentation/gpu/todo.rst +10 -58
index a7c150d6b63f..44e42415d2f3 100644
@@ -127,7 +127,8 @@ interfaces to fix these issues:
   the acquire context explicitly on stack and then also pass it down into
   drivers explicitly so that the legacy-on-atomic functions can use them.
 
-  Except for some driver code this is done.
+  Except for some driver code this is done. This task should be finished by
+  adding WARN_ON(!drm_drv_uses_atomic_modeset) in drm_modeset_lock_all().
 
 * A bunch of the vtable hooks are now in the wrong place: DRM has a split
   between core vfunc tables (named ``drm_foo_funcs``), which are used to
@@ -137,13 +138,6 @@ interfaces to fix these issues:
   ``_helper_funcs`` since they are not part of the core ABI. There's a
   ``FIXME`` comment in the kerneldoc for each such case in ``drm_crtc.h``.
 
-* There's a new helper ``drm_atomic_helper_best_encoder()`` which could be
-  used by all atomic drivers which don't select the encoder for a given
-  connector at runtime. That's almost all of them, and would allow us to get
-  rid of a lot of ``best_encoder`` boilerplate in drivers.
-
-  This was almost done, but new drivers added a few more cases again.
-
 Contact: Daniel Vetter
 
 Get rid of dev->struct_mutex from GEM drivers
@@ -164,9 +158,8 @@ private lock. The tricky part is the BO free functions, since those can't
 reliably take that lock any more. Instead state needs to be protected with
 suitable subordinate locks or some cleanup work pushed to a worker thread. For
 performance-critical drivers it might also be better to go with a more
-fine-grained per-buffer object and per-context lockings scheme. Currently the
-following drivers still use ``struct_mutex``: ``msm``, ``omapdrm`` and
-``udl``.
+fine-grained per-buffer object and per-context lockings scheme. Currently only the
+``msm`` driver still use ``struct_mutex``.
 
 Contact: Daniel Vetter, respective driver maintainers
 
@@ -190,7 +183,8 @@ Convert drivers to use simple modeset suspend/resume
 
 Most drivers (except i915 and nouveau) that use
 drm_atomic_helper_suspend/resume() can probably be converted to use
-drm_mode_config_helper_suspend/resume().
+drm_mode_config_helper_suspend/resume(). Also there's still open-coded version
+of the atomic suspend/resume code in older atomic modeset drivers.
 
 Contact: Maintainer of the driver you plan to convert
 
@@ -246,20 +240,10 @@ Core refactorings
 Clean up the DRM header mess
 ----------------------------
 
-Currently the DRM subsystem has only one global header, ``drmP.h``. This is
-used both for functions exported to helper libraries and drivers and functions
-only used internally in the ``drm.ko`` module. The goal would be to move all
-header declarations not needed outside of ``drm.ko`` into
-``drivers/gpu/drm/drm_*_internal.h`` header files. ``EXPORT_SYMBOL`` also
-needs to be dropped for these functions.
-
-This would nicely tie in with the below task to create kerneldoc after the API
-is cleaned up. Or with the "hide legacy cruft better" task.
-
-Note that this is well in progress, but ``drmP.h`` is still huge. The updated
-plan is to switch to per-file driver API headers, which will also structure
-the kerneldoc better. This should also allow more fine-grained ``#include``
-directives.
+The DRM subsystem originally had only one huge global header, ``drmP.h``. This
+is not split up, but many source files still include it. The remaining part of
+the cleanup work here is to replace any ``#include <drm/drmP.h>`` by only the
+headers needed (and fixing up any missing pre-declarations in the headers).
 
 In the end no .c file should need to include ``drmP.h`` anymore.
 
@@ -278,26 +262,6 @@ See https://dri.freedesktop.org/docs/drm/ for what's there already.
 
 Contact: Daniel Vetter
 
-Hide legacy cruft better
-------------------------
-
-Way back DRM supported only drivers which shadow-attached to PCI devices with
-userspace or fbdev drivers setting up outputs. Modern DRM drivers take charge
-of the entire device, you can spot them with the DRIVER_MODESET flag.
-
-Unfortunately there's still large piles of legacy code around which needs to
-be hidden so that driver writers don't accidentally end up using it. And to
-prevent security issues in those legacy IOCTLs from being exploited on modern
-drivers. This has multiple possible subtasks:
-
-* Extract support code for legacy features into a ``drm-legacy.ko`` kernel
-  module and compile it only when one of the legacy drivers is enabled.
-
-This is mostly done, the only thing left is to split up ``drm_irq.c`` into
-legacy cruft and the parts needed by modern KMS drivers.
-
-Contact: Daniel Vetter
-
 Make panic handling work
 ------------------------
 
@@ -398,18 +362,6 @@ the non-i915 specific modeset tests.
 
 Contact: Daniel Vetter
 
-Create a virtual KMS driver for testing (vkms)
-----------------------------------------------
-
-With all the latest helpers it should be fairly simple to create a virtual KMS
-driver useful for testing, or for running X or similar on headless machines
-(to be able to still use the GPU). This would be similar to vgem, but aimed at
-the modeset side.
-
-Once the basics are there there's tons of possibilities to extend it.
-
-Contact: Daniel Vetter
-
 Driver Specific
 ===============
 
Signature · 6 lines
2.19.0.rc1

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

PATCH 1/1 drm: Update todo.rst

- drmP.h is now fully split up.
- vkms is happening (and will gain its own todo and docs under a new vkms.rst file real soon)
- legacy cruft is completely hidden now, drm_vblank.c is split out from drm_irq.c now. I've decided to drop the task to split out drm_legacy.ko, partially because Dave already rejected a patch to hide the old dri1 drivers better. Current state feels good enough to me.
- best_encoder atomic cleanup is done (it's now the default, not even exported anymore)
- bunch of smaller things

v2:
- Explain why the drm_legacy.ko task is dropped (Emil).
- typos (Sam).

v3: Fix typo (Ilia)

Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Emil Velikov <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
---
 Documentation/gpu/todo.rst | 68 ++++++--------------------------------
 1 file changed, 10 insertions(+), 58 deletions(-)
Documentation/gpu/todo.rst +10 -58
index a7c150d6b63f..4c7c3ab60089 100644
@@ -127,7 +127,8 @@ interfaces to fix these issues:
   the acquire context explicitly on stack and then also pass it down into
   drivers explicitly so that the legacy-on-atomic functions can use them.
 
-  Except for some driver code this is done.
+  Except for some driver code this is done. This task should be finished by
+  adding WARN_ON(!drm_drv_uses_atomic_modeset) in drm_modeset_lock_all().
 
 * A bunch of the vtable hooks are now in the wrong place: DRM has a split
   between core vfunc tables (named ``drm_foo_funcs``), which are used to
@@ -137,13 +138,6 @@ interfaces to fix these issues:
   ``_helper_funcs`` since they are not part of the core ABI. There's a
   ``FIXME`` comment in the kerneldoc for each such case in ``drm_crtc.h``.
 
-* There's a new helper ``drm_atomic_helper_best_encoder()`` which could be
-  used by all atomic drivers which don't select the encoder for a given
-  connector at runtime. That's almost all of them, and would allow us to get
-  rid of a lot of ``best_encoder`` boilerplate in drivers.
-
-  This was almost done, but new drivers added a few more cases again.
-
 Contact: Daniel Vetter
 
 Get rid of dev->struct_mutex from GEM drivers
@@ -164,9 +158,8 @@ private lock. The tricky part is the BO free functions, since those can't
 reliably take that lock any more. Instead state needs to be protected with
 suitable subordinate locks or some cleanup work pushed to a worker thread. For
 performance-critical drivers it might also be better to go with a more
-fine-grained per-buffer object and per-context lockings scheme. Currently the
-following drivers still use ``struct_mutex``: ``msm``, ``omapdrm`` and
-``udl``.
+fine-grained per-buffer object and per-context lockings scheme. Currently only the
+``msm`` driver still use ``struct_mutex``.
 
 Contact: Daniel Vetter, respective driver maintainers
 
@@ -190,7 +183,8 @@ Convert drivers to use simple modeset suspend/resume
 
 Most drivers (except i915 and nouveau) that use
 drm_atomic_helper_suspend/resume() can probably be converted to use
-drm_mode_config_helper_suspend/resume().
+drm_mode_config_helper_suspend/resume(). Also there's still open-coded version
+of the atomic suspend/resume code in older atomic modeset drivers.
 
 Contact: Maintainer of the driver you plan to convert
 
@@ -246,20 +240,10 @@ Core refactorings
 Clean up the DRM header mess
 ----------------------------
 
-Currently the DRM subsystem has only one global header, ``drmP.h``. This is
-used both for functions exported to helper libraries and drivers and functions
-only used internally in the ``drm.ko`` module. The goal would be to move all
-header declarations not needed outside of ``drm.ko`` into
-``drivers/gpu/drm/drm_*_internal.h`` header files. ``EXPORT_SYMBOL`` also
-needs to be dropped for these functions.
-
-This would nicely tie in with the below task to create kerneldoc after the API
-is cleaned up. Or with the "hide legacy cruft better" task.
-
-Note that this is well in progress, but ``drmP.h`` is still huge. The updated
-plan is to switch to per-file driver API headers, which will also structure
-the kerneldoc better. This should also allow more fine-grained ``#include``
-directives.
+The DRM subsystem originally had only one huge global header, ``drmP.h``. This
+is now split up, but many source files still include it. The remaining part of
+the cleanup work here is to replace any ``#include <drm/drmP.h>`` by only the
+headers needed (and fixing up any missing pre-declarations in the headers).
 
 In the end no .c file should need to include ``drmP.h`` anymore.
 
@@ -278,26 +262,6 @@ See https://dri.freedesktop.org/docs/drm/ for what's there already.
 
 Contact: Daniel Vetter
 
-Hide legacy cruft better
-------------------------
-
-Way back DRM supported only drivers which shadow-attached to PCI devices with
-userspace or fbdev drivers setting up outputs. Modern DRM drivers take charge
-of the entire device, you can spot them with the DRIVER_MODESET flag.
-
-Unfortunately there's still large piles of legacy code around which needs to
-be hidden so that driver writers don't accidentally end up using it. And to
-prevent security issues in those legacy IOCTLs from being exploited on modern
-drivers. This has multiple possible subtasks:
-
-* Extract support code for legacy features into a ``drm-legacy.ko`` kernel
-  module and compile it only when one of the legacy drivers is enabled.
-
-This is mostly done, the only thing left is to split up ``drm_irq.c`` into
-legacy cruft and the parts needed by modern KMS drivers.
-
-Contact: Daniel Vetter
-
 Make panic handling work
 ------------------------
 
@@ -398,18 +362,6 @@ the non-i915 specific modeset tests.
 
 Contact: Daniel Vetter
 
-Create a virtual KMS driver for testing (vkms)
-----------------------------------------------
-
-With all the latest helpers it should be fairly simple to create a virtual KMS
-driver useful for testing, or for running X or similar on headless machines
-(to be able to still use the GPU). This would be similar to vgem, but aimed at
-the modeset side.
-
-Once the basics are there there's tons of possibilities to extend it.
-
-Contact: Daniel Vetter
-
 Driver Specific
 ===============
 
Signature · 6 lines
2.19.0.rc1

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

Re: [PATCH] drm: Update todo.rst

Am Mittwoch, 5. September 2018, 20:15:09 CEST schrieb Daniel Vetter:

Quoted 18 lines

- drmP.h is now fully split up.
- vkms is happening (and will gain its own todo and docs under a new vkms.rst file real soon)
- legacy cruft is completely hidden now, drm_vblank.c is split out from drm_irq.c now. I've decided to drop the task to split out drm_legacy.ko, partially because Dave already rejected a patch to hide the old dri1 drivers better. Current state feels good enough to me.
- best_encoder atomic cleanup is done (it's now the default, not even exported anymore)
- bunch of smaller things

v2:
- Explain why the drm_legacy.ko task is dropped (Emil).
- typos (Sam).

v3: Fix typo (Ilia)

Quoted 8 lines
Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Emil Velikov <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>

I've read through the text changes and didn't spot any glaring typos [beware non-native speaker], so fwiw

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

Reviewed-by
#12 lore raw

Re: [PATCH] drm: Update todo.rst

Quoted 28 lines · Heiko Stuebner

Am Mittwoch, 5. September 2018, 20:15:09 CEST schrieb Daniel Vetter:

Quoted 18 lines

- drmP.h is now fully split up.
- vkms is happening (and will gain its own todo and docs under a new vkms.rst file real soon)
- legacy cruft is completely hidden now, drm_vblank.c is split out from drm_irq.c now. I've decided to drop the task to split out drm_legacy.ko, partially because Dave already rejected a patch to hide the old dri1 drivers better. Current state feels good enough to me.
- best_encoder atomic cleanup is done (it's now the default, not even exported anymore)
- bunch of smaller things

v2:
- Explain why the drm_legacy.ko task is dropped (Emil).
- typos (Sam).

v3: Fix typo (Ilia)

Quoted 8 lines
Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Emil Velikov <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Quoted 2 lines

I've read through the text changes and didn't spot any glaring typos [beware non-native speaker], so fwiw

Most of the people in the CC list are ;-)

Fwiw

Thanks
Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#13 lore raw

Re: [PATCH] drm: Update todo.rst

Quoted 29 lines · Emil Velikov
Quoted 28 lines · Heiko Stuebner

Am Mittwoch, 5. September 2018, 20:15:09 CEST schrieb Daniel Vetter:

Quoted 26 lines

- drmP.h is now fully split up.
- vkms is happening (and will gain its own todo and docs under a new vkms.rst file real soon)
- legacy cruft is completely hidden now, drm_vblank.c is split out from drm_irq.c now. I've decided to drop the task to split out drm_legacy.ko, partially because Dave already rejected a patch to hide the old dri1 drivers better. Current state feels good enough to me.
- best_encoder atomic cleanup is done (it's now the default, not even exported anymore)
- bunch of smaller things

v2:
- Explain why the drm_legacy.ko task is dropped (Emil).
- typos (Sam).

v3: Fix typo (Ilia)

Cc Ilia Mirkin <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc Emil Velikov <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Quoted 6 lines
Quoted 2 lines

I've read through the text changes and didn't spot any glaring typos [beware non-native speaker], so fwiw

Most of the people in the CC list are ;-)

Fwiw

Thanks to both of you for reviewing, entire series pulled into drm-misc-next.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

A message that is not in the archive (sent off-list or not yet received): 20180905135711.28370-1-daniel.vetter-/[email protected]

#15 lore raw

PATCH 7/7 drm: extract drm_atomic_uapi.c

This leaves all the commit/check and state handling in drm_atomic.c, while pulling all the uapi glue and the huge ioctl itself into a seprate file.

This seems to almost perfectly split the rather big drm_atomic.c file into 2 equal sizes.

Also adjust the kerneldoc and type a very terse overview text.

v2: Rebase.

v3: Fix tiny typo.

v4:
- Fixup armada, newly converted atomic driver hooray!
- Fixup msm/dpu1, newly added too.

Cc David Airlie <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Sean Paul <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Rob Clark <[email protected]>
Cc Eric Anholt <[email protected]>
---
 Documentation/gpu/drm-kms.rst                |   11 +-
 drivers/gpu/drm/Makefile                     |    3 +-
 drivers/gpu/drm/armada/armada_overlay.c      |    1 +
 drivers/gpu/drm/drm_atomic.c                 | 1359 +----------------
 drivers/gpu/drm/drm_atomic_helper.c          |    1 +
 drivers/gpu/drm/drm_atomic_uapi.c            | 1393 ++++++++++++++++++
 drivers/gpu/drm/drm_crtc_helper.c            |    1 +
 drivers/gpu/drm/drm_crtc_internal.h          |    5 +
 drivers/gpu/drm/drm_framebuffer.c            |    1 +
 drivers/gpu/drm/drm_gem_framebuffer_helper.c |    1 +
 drivers/gpu/drm/drm_plane_helper.c           |    1 +
 drivers/gpu/drm/i915/intel_display.c         |    1 +
 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c    |    2 +
 drivers/gpu/drm/msm/msm_atomic.c             |    2 +
 drivers/gpu/drm/vc4/vc4_crtc.c               |    1 +
 drivers/gpu/drm/vc4/vc4_plane.c              |    1 +
 include/drm/drm_atomic.h                     |   16 -
 include/drm/drm_atomic_uapi.h                |   58 +
 18 files changed, 1483 insertions(+), 1375 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_atomic_uapi.c
 create mode 100644 include/drm/drm_atomic_uapi.h
Documentation/gpu/drm-kms.rst +10 -1
index 3a9dd68b97c9..4b1501b4835b 100644
@@ -287,6 +287,15 @@ Atomic Mode Setting Function Reference
 .. kernel-doc:: drivers/gpu/drm/drm_atomic.c
    :export:
 
+Atomic Mode Setting IOCTL and UAPI Functions
+--------------------------------------------
+
+.. kernel-doc:: drivers/gpu/drm/drm_atomic_uapi.c
+   :doc: overview
+
+.. kernel-doc:: drivers/gpu/drm/drm_atomic_uapi.c
+   :export:
+
 CRTC Abstraction
 ================
 
@@ -563,7 +572,7 @@ Tile Group Property
 Explicit Fencing Properties
 ---------------------------
 
-.. kernel-doc:: drivers/gpu/drm/drm_atomic.c
+.. kernel-doc:: drivers/gpu/drm/drm_atomic_uapi.c
    :doc: explicit fencing properties
 
 Existing KMS Properties
drivers/gpu/drm/Makefile +2 -1
index a6771cef85e2..bc6a16a3c36e 100644
@@ -18,7 +18,8 @@ drm-y       :=	drm_auth.o drm_bufs.o drm_cache.o \
 		drm_encoder.o drm_mode_object.o drm_property.o \
 		drm_plane.o drm_color_mgmt.o drm_print.o \
 		drm_dumb_buffers.o drm_mode_config.o drm_vblank.o \
-		drm_syncobj.o drm_lease.o drm_writeback.o drm_client.o
+		drm_syncobj.o drm_lease.o drm_writeback.o drm_client.o \
+		drm_atomic_uapi.o
 
 drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
 drm-$(CONFIG_DRM_VM) += drm_vm.o
drivers/gpu/drm/armada/armada_overlay.c +1 -0
index eb7dfb65ef47..8d770641fcc4 100644
@@ -8,6 +8,7 @@
  */
 #include <drm/drmP.h>
 #include <drm/drm_atomic.h>
+#include <drm/drm_atomic_uapi.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_plane_helper.h>
 #include <drm/armada_drm.h>
drivers/gpu/drm/drm_atomic.c +2 -1357

1,398 lines not on this page · raw message

drivers/gpu/drm/drm_atomic_helper.c +1 -0
index daa04d29f8cc..8469a7e9afe3 100644
@@ -27,6 +27,7 @@
 
 #include <drm/drmP.h>
 #include <drm/drm_atomic.h>
+#include <drm/drm_atomic_uapi.h>
 #include <drm/drm_plane_helper.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_atomic_helper.h>
drivers/gpu/drm/drm_atomic_uapi.c new file +1393 -0

1,393 lines not on this page · raw message

drivers/gpu/drm/drm_crtc_helper.c +1 -0
index 5a84c3bc915d..ce75e9506e85 100644
@@ -35,6 +35,7 @@
 
 #include <drm/drmP.h>
 #include <drm/drm_atomic.h>
+#include <drm/drm_atomic_uapi.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_fourcc.h>
drivers/gpu/drm/drm_crtc_internal.h +5 -0
index ff5e0d521c21..ede20b55d50c 100644
@@ -204,6 +204,9 @@ struct drm_minor;
 int drm_atomic_debugfs_init(struct drm_minor *minor);
 #endif
 
+void drm_atomic_print_state(const struct drm_atomic_state *state);
+
+/* drm_atomic_uapi.c */
 int drm_atomic_connector_commit_dpms(struct drm_atomic_state *state,
 				     struct drm_connector *connector,
 				     int mode);
@@ -213,6 +216,8 @@ int drm_atomic_set_property(struct drm_atomic_state *state,
 			    uint64_t prop_value);
 int drm_atomic_get_property(struct drm_mode_object *obj,
 			    struct drm_property *property, uint64_t *val);
+
+/* IOCTL */
 int drm_mode_atomic_ioctl(struct drm_device *dev,
 			  void *data, struct drm_file *file_priv);
 
drivers/gpu/drm/drm_framebuffer.c +1 -0
index 781af1d42d76..7ca8c77223cb 100644
@@ -25,6 +25,7 @@
 #include <drm/drm_auth.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_atomic.h>
+#include <drm/drm_atomic_uapi.h>
 #include <drm/drm_print.h>
 
 #include "drm_internal.h"
drivers/gpu/drm/drm_gem_framebuffer_helper.c +1 -0
index 2810d4131411..7607f9cd6f77 100644
@@ -16,6 +16,7 @@
 
 #include <drm/drmP.h>
 #include <drm/drm_atomic.h>
+#include <drm/drm_atomic_uapi.h>
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_framebuffer.h>
drivers/gpu/drm/drm_plane_helper.c +1 -0
index 621f17643bb0..a393756b664e 100644
@@ -28,6 +28,7 @@
 #include <drm/drm_plane_helper.h>
 #include <drm/drm_rect.h>
 #include <drm/drm_atomic.h>
+#include <drm/drm_atomic_uapi.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_encoder.h>
 #include <drm/drm_atomic_helper.h>
drivers/gpu/drm/i915/intel_display.c +1 -0
index a85a83f31979..85cad16f31ed 100644
@@ -46,6 +46,7 @@
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_plane_helper.h>
 #include <drm/drm_rect.h>
+#include <drm/drm_atomic_uapi.h>
 #include <linux/dma_remapping.h>
 #include <linux/reservation.h>
 
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +2 -0
index b640e39ebaca..015341e2dd4c 100644
@@ -21,6 +21,8 @@
 #include <linux/debugfs.h>
 #include <linux/dma-buf.h>
 
+#include <drm/drm_atomic_uapi.h>
+
 #include "msm_drv.h"
 #include "dpu_kms.h"
 #include "dpu_formats.h"
drivers/gpu/drm/msm/msm_atomic.c +2 -0
index c1f1779c980f..4bcdeca7479d 100644
@@ -15,6 +15,8 @@
  * this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <drm/drm_atomic_uapi.h>
+
 #include "msm_drv.h"
 #include "msm_gem.h"
 #include "msm_kms.h"
drivers/gpu/drm/vc4/vc4_crtc.c +1 -0
index 0e6a121858d1..3ce136ba8791 100644
@@ -35,6 +35,7 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_crtc_helper.h>
+#include <drm/drm_atomic_uapi.h>
 #include <linux/clk.h>
 #include <drm/drm_fb_cma_helper.h>
 #include <linux/component.h>
drivers/gpu/drm/vc4/vc4_plane.c +1 -0
index 6c6d37aa512a..9dc3fcbd290b 100644
@@ -22,6 +22,7 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_fb_cma_helper.h>
 #include <drm/drm_plane_helper.h>
+#include <drm/drm_atomic_uapi.h>
 
 #include "uapi/drm/vc4_drm.h"
 #include "vc4_drv.h"
include/drm/drm_atomic.h +0 -16
index 93d29af34024..d6adebcd6ea4 100644
@@ -584,22 +584,6 @@ __drm_atomic_get_current_plane_state(struct drm_atomic_state *state,
 	return plane->state;
 }
 
-int __must_check
-drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state,
-			     const struct drm_display_mode *mode);
-int __must_check
-drm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state,
-				  struct drm_property_blob *blob);
-int __must_check
-drm_atomic_set_crtc_for_plane(struct drm_plane_state *plane_state,
-			      struct drm_crtc *crtc);
-void drm_atomic_set_fb_for_plane(struct drm_plane_state *plane_state,
-				 struct drm_framebuffer *fb);
-void drm_atomic_set_fence_for_plane(struct drm_plane_state *plane_state,
-				    struct dma_fence *fence);
-int __must_check
-drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state,
-				  struct drm_crtc *crtc);
 int __must_check
 drm_atomic_add_affected_connectors(struct drm_atomic_state *state,
 				   struct drm_crtc *crtc);
include/drm/drm_atomic_uapi.h new file +58 -0

58 lines not on this page · raw message

Signature · 6 lines
2.19.0.rc1

_______________________________________________
Freedreno mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/freedreno
#16 lore raw

✗ Fi.CI.CHECKPATCH: warning for series starting with [1/7] drm: Add drm/drm_util.h header file

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file
URL : https://patchwork.freedesktop.org/series/49184/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
d5a605f276d9 drm: Add drm/drm_util.h header file
-:144: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#144: 
new file mode 100644

-:149: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #149: FILE: include/drm/drm_util.h:1:
+/*

-:178: ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros starting with if should be enclosed by a do - while loop to avoid possible if/else logic defects #178: FILE: include/drm/drm_util.h:30:
+#define for_each_if(condition) if (!(condition)) {} else

-:178: WARNING:BRACES: braces {} are not necessary for single statement blocks #178: FILE: include/drm/drm_util.h:30:
+#define for_each_if(condition) if (!(condition)) {} else

total: 1 errors, 3 warnings, 0 checks, 105 lines checked
4160e400d588 drm: Drop drmP.h from drm_connector.c
-:56: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 30 lines checked
c17e9291daa4 drm: drop drmP.h include from drm_plane.c
-:94: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 55 lines checked
bb851e8337a5 drm: drop drmP.h include from drm_crtc.c
-:35: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 17 lines checked 3ff713fa808f drm/atomic: trim driver interface/docs
-:88: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #88: FILE: drivers/gpu/drm/drm_atomic.c:501:
+static int drm_atomic_crtc_set_property(struct drm_crtc *crtc,
struct drm_crtc_state *state, struct drm_property *property,

-:202: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #202: FILE: drivers/gpu/drm/drm_atomic.c:1253:
+static int drm_atomic_set_writeback_fb_for_connector(

-:342: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 2 checks, 301 lines checked
1ee8ffd03200 drm: Update todo.rst
df2c2eecc6bf drm: extract drm_atomic_uapi.c
-:1515: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #1515:
new file mode 100644

-:1520: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #1520: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1:
+/*

-:1569: WARNING:TYPO_SPELLING: 'similiar' may be misspelled - perhaps 'similar'? #1569: FILE: drivers/gpu/drm/drm_atomic_uapi.c:50:
+ * for load detect or similiar.

-:1600: ERROR:CODE_INDENT: code indent should use tabs where possible #1600: FILE: drivers/gpu/drm/drm_atomic_uapi.c:81:
+^I^I sizeof(umode),$

-:1600: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1600: FILE: drivers/gpu/drm/drm_atomic_uapi.c:81:
+ drm_property_create_blob(state->crtc->dev,
+ sizeof(umode),

-:1601: ERROR:CODE_INDENT: code indent should use tabs where possible #1601: FILE: drivers/gpu/drm/drm_atomic_uapi.c:82:
+^I^I &umode);$

-:1634: ERROR:CODE_INDENT: code indent should use tabs where possible #1634: FILE: drivers/gpu/drm/drm_atomic_uapi.c:115:
+ struct drm_property_blob *blob)$

-:1634: WARNING:LEADING_SPACE: please, no spaces at the start of a line #1634: FILE: drivers/gpu/drm/drm_atomic_uapi.c:115:
+ struct drm_property_blob *blob)$

-:1877: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1877: FILE: drivers/gpu/drm/drm_atomic_uapi.c:358:
+static int set_out_fence_for_connector(struct drm_atomic_state *state,
+ struct drm_connector *connector,

-:1917: CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "!new_blob" #1917: FILE: drivers/gpu/drm/drm_atomic_uapi.c:398:
+ if (new_blob == NULL)

-:1939: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1939: FILE: drivers/gpu/drm/drm_atomic_uapi.c:420:
+static int drm_atomic_crtc_set_property(struct drm_crtc *crtc,
+ struct drm_crtc_state *state, struct drm_property *property,

-:1947: CHECK:BRACES: braces {} should be used on all arms of this statement #1947: FILE: drivers/gpu/drm/drm_atomic_uapi.c:428:
+ if (property == config->prop_active)
[...]
+ else if (property == config->prop_mode_id) {
[...]
+ } else if (property == config->degamma_lut_property) {
[...]
+ } else if (property == config->ctm_property) {
[...]
+ } else if (property == config->gamma_lut_property) {
[...]
+ } else if (property == config->prop_out_fence_ptr) {
[...]
+ } else if (crtc->funcs->atomic_set_property) {
[...]
+ } else {
[...]

-:1957: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1957: FILE: drivers/gpu/drm/drm_atomic_uapi.c:438:
+ ret = drm_atomic_replace_property_blob_from_id(dev,
+ &state->degamma_lut,

-:1965: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1965: FILE: drivers/gpu/drm/drm_atomic_uapi.c:446:
+ ret = drm_atomic_replace_property_blob_from_id(dev,
+ &state->ctm,

-:1973: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1973: FILE: drivers/gpu/drm/drm_atomic_uapi.c:454:
+ ret = drm_atomic_replace_property_blob_from_id(dev,
+ &state->gamma_lut,

-:1991: WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return #1991: FILE: drivers/gpu/drm/drm_atomic_uapi.c:472:
+ return crtc->funcs->atomic_set_property(crtc, state, property, val);
+ } else {

-:2003: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2003: FILE: drivers/gpu/drm/drm_atomic_uapi.c:484:
+drm_atomic_crtc_get_property(struct drm_crtc *crtc,
+ const struct drm_crtc_state *state,

-:2030: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2030: FILE: drivers/gpu/drm/drm_atomic_uapi.c:511:
+static int drm_atomic_plane_set_property(struct drm_plane *plane,
+ struct drm_plane_state *state, struct drm_property *property,

-:2038: WARNING:LINE_SPACING: Missing a blank line after declarations #2038: FILE: drivers/gpu/drm/drm_atomic_uapi.c:519:
+ struct drm_framebuffer *fb = drm_framebuffer_lookup(dev, NULL, val);
+ drm_atomic_set_fb_for_plane(state, fb);

-:2054: WARNING:LINE_SPACING: Missing a blank line after declarations #2054: FILE: drivers/gpu/drm/drm_atomic_uapi.c:535:
+ struct drm_crtc *crtc = drm_crtc_find(dev, NULL, val);
+ return drm_atomic_set_crtc_for_plane(state, crtc);

-:2103: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2103: FILE: drivers/gpu/drm/drm_atomic_uapi.c:584:
+drm_atomic_plane_get_property(struct drm_plane *plane,
+ const struct drm_plane_state *state,

-:2109: WARNING:BRACES: braces {} are not necessary for any arm of this statement #2109: FILE: drivers/gpu/drm/drm_atomic_uapi.c:590:
+ if (property == config->prop_fb_id) {
[...]
+ } else if (property == config->prop_in_fence_fd) {
[...]
+ } else if (property == config->prop_crtc_id) {
[...]
+ } else if (property == config->prop_crtc_x) {
[...]
+ } else if (property == config->prop_crtc_y) {
[...]
+ } else if (property == config->prop_crtc_w) {
[...]
+ } else if (property == config->prop_crtc_h) {
[...]
+ } else if (property == config->prop_src_x) {
[...]
+ } else if (property == config->prop_src_y) {
[...]
+ } else if (property == config->prop_src_w) {
[...]
+ } else if (property == config->prop_src_h) {
[...]
+ } else if (property == plane->alpha_property) {
[...]
+ } else if (property == plane->blend_mode_property) {
[...]
+ } else if (property == plane->rotation_property) {
[...]
+ } else if (property == plane->zpos_property) {
[...]
+ } else if (property == plane->color_encoding_property) {
[...]
+ } else if (property == plane->color_range_property) {
[...]
+ } else if (plane->funcs->atomic_get_property) {
[...]
+ } else {
[...]

-:2164: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #2164: FILE: drivers/gpu/drm/drm_atomic_uapi.c:645:
+static int drm_atomic_set_writeback_fb_for_connector(

-:2186: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2186: FILE: drivers/gpu/drm/drm_atomic_uapi.c:667:
+static int drm_atomic_connector_set_property(struct drm_connector *connector,
+ struct drm_connector_state *state, struct drm_property *property,

-:2194: WARNING:LINE_SPACING: Missing a blank line after declarations #2194: FILE: drivers/gpu/drm/drm_atomic_uapi.c:675:
+ struct drm_crtc *crtc = drm_crtc_find(dev, NULL, val);
+ return drm_atomic_set_crtc_for_connector(state, crtc);

-:2254: WARNING:LINE_SPACING: Missing a blank line after declarations #2254: FILE: drivers/gpu/drm/drm_atomic_uapi.c:735:
+ int ret = drm_atomic_set_writeback_fb_for_connector(state, fb);
+ if (fb)

-:2277: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2277: FILE: drivers/gpu/drm/drm_atomic_uapi.c:758:
+drm_atomic_connector_get_property(struct drm_connector *connector,
+ const struct drm_connector_state *state,

-:2337: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2337: FILE: drivers/gpu/drm/drm_atomic_uapi.c:818:
+int drm_atomic_get_property(struct drm_mode_object *obj,
+ struct drm_property *property, uint64_t *val)

-:2345: WARNING:LINE_SPACING: Missing a blank line after declarations #2345: FILE: drivers/gpu/drm/drm_atomic_uapi.c:826:
+ struct drm_connector *connector = obj_to_connector(obj);
+ WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex));

-:2347: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2347: FILE: drivers/gpu/drm/drm_atomic_uapi.c:828:
+ ret = drm_atomic_connector_get_property(connector,
+ connector->state, property, val);

-:2352: WARNING:LINE_SPACING: Missing a blank line after declarations #2352: FILE: drivers/gpu/drm/drm_atomic_uapi.c:833:
+ struct drm_crtc *crtc = obj_to_crtc(obj);
+ WARN_ON(!drm_modeset_is_locked(&crtc->mutex));

-:2354: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2354: FILE: drivers/gpu/drm/drm_atomic_uapi.c:835:
+ ret = drm_atomic_crtc_get_property(crtc,
+ crtc->state, property, val);

-:2359: WARNING:LINE_SPACING: Missing a blank line after declarations #2359: FILE: drivers/gpu/drm/drm_atomic_uapi.c:840:
+ struct drm_plane *plane = obj_to_plane(obj);
+ WARN_ON(!drm_modeset_is_locked(&plane->mutex));

-:2361: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2361: FILE: drivers/gpu/drm/drm_atomic_uapi.c:842:
+ ret = drm_atomic_plane_get_property(plane,
+ plane->state, property, val);

-:2376: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #2376: FILE: drivers/gpu/drm/drm_atomic_uapi.c:857:
+static struct drm_pending_vblank_event *create_vblank_event(

-:2381: WARNING:SIZEOF_PARENTHESIS: sizeof *e should be sizeof(*e) #2381: FILE: drivers/gpu/drm/drm_atomic_uapi.c:862:
+ e = kzalloc(sizeof *e, GFP_KERNEL);

-:2466: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2466: FILE: drivers/gpu/drm/drm_atomic_uapi.c:947:
+ ret = drm_atomic_connector_set_property(connector,
+ connector_state, prop, prop_value);

-:2480: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2480: FILE: drivers/gpu/drm/drm_atomic_uapi.c:961:
+ ret = drm_atomic_crtc_set_property(crtc,
+ crtc_state, prop, prop_value);

-:2494: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2494: FILE: drivers/gpu/drm/drm_atomic_uapi.c:975:
+ ret = drm_atomic_plane_set_property(plane,
+ plane_state, prop, prop_value);

-:2510: WARNING:TYPO_SPELLING: 'transfered' may be misspelled - perhaps 'transferred'? #2510: FILE: drivers/gpu/drm/drm_atomic_uapi.c:991:
+ * between devices. A Fence or a group of fences are transfered to/from

-:2582: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2582: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1063:
+static int prepare_signaling(struct drm_device *dev,
+ struct drm_atomic_state *state,

-:2789: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2789: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1270:
+ if ((arg->flags & DRM_MODE_PAGE_FLIP_ASYNC) &&
+ !dev->mode_config.async_page_flip)

-:2794: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2794: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1275:
+ if ((arg->flags & DRM_MODE_ATOMIC_TEST_ONLY) &&
+ (arg->flags & DRM_MODE_PAGE_FLIP_EVENT))

-:3079: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #3079: FILE: include/drm/drm_atomic_uapi.h:1:
+/*

-:3136: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 3 errors, 17 warnings, 25 checks, 2458 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#17 lore raw

✗ Fi.CI.SPARSE: warning for series starting with [1/7] drm: Add drm/drm_util.h header file

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file
URL : https://patchwork.freedesktop.org/series/49184/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Commit: drm: Add drm/drm_util.h header file
-drivers/gpu/drm/i915/selftests/../i915_drv.h:3688:16: warning: expression using sizeof(void)
+drivers/gpu/drm/i915/selftests/../i915_drv.h:3689:16: warning: expression using sizeof(void)

Commit: drm: Drop drmP.h from drm_connector.c
Okay!

Commit: drm: drop drmP.h include from drm_plane.c
Okay!

Commit: drm: drop drmP.h include from drm_crtc.c
Okay!

Commit: drm/atomic: trim driver interface/docs
Okay!

Commit: drm: Update todo.rst
Okay!

Commit: drm: extract drm_atomic_uapi.c
Okay!

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#18 lore raw

✓ Fi.CI.BAT: success for series starting with [1/7] drm: Add drm/drm_util.h header file

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file
URL : https://patchwork.freedesktop.org/series/49184/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4772 -> Patchwork_10093 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/49184/revisions/1/mbox/

== Known issues ==

Here are the changes found in Patchwork_10093 that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@amdgpu/amd_basic@userptr:
      fi-kbl-8809g:       PASS -> INCOMPLETE (fdo#107402)

    igt@gem_exec_suspend@basic-s3:
      fi-kbl-guc:         PASS -> INCOMPLETE (fdo#106693)

    igt@kms_frontbuffer_tracking@basic:
      fi-byt-clapper:     PASS -> FAIL (fdo#103167)

    igt@kms_pipe_crc_basic@hang-read-crc-pipe-a:
      fi-byt-clapper:     PASS -> FAIL (fdo#103191, fdo#107362)

    igt@prime_vgem@basic-fence-flip:
      fi-ilk-650:         PASS -> FAIL (fdo#104008)

    
    ==== Possible fixes ====

    igt@gem_exec_suspend@basic-s4-devices:
      fi-kbl-7500u:       DMESG-WARN (fdo#105128, fdo#107139) -> PASS

    igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence:
      fi-ilk-650:         DMESG-WARN (fdo#106387) -> PASS

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
      fi-byt-clapper:     FAIL (fdo#103191, fdo#107362) -> PASS
      fi-blb-e6850:       INCOMPLETE (fdo#107718) -> PASS

fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
fdo#105128 https://bugs.freedesktop.org/show_bug.cgi?id=105128
fdo#106387 https://bugs.freedesktop.org/show_bug.cgi?id=106387
fdo#106693 https://bugs.freedesktop.org/show_bug.cgi?id=106693
fdo#107139 https://bugs.freedesktop.org/show_bug.cgi?id=107139
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#107402 https://bugs.freedesktop.org/show_bug.cgi?id=107402
fdo#107718 https://bugs.freedesktop.org/show_bug.cgi?id=107718

== Participating hosts (54 -> 49) ==

Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u

== Build changes ==

* Linux: CI_DRM_4772 -> Patchwork_10093

CI_DRM_4772: 1351ee8f3aacdb8f4a71cd17a7035556065c59a9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4629: c3b6d69aa3dd2d1a6c1f2e787670a0aef78f2ea5 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10093: df2c2eecc6bfd175617f735143a2d876e3122acc @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

df2c2eecc6bf drm: extract drm_atomic_uapi.c 1ee8ffd03200 drm: Update todo.rst 3ff713fa808f drm/atomic: trim driver interface/docs bb851e8337a5 drm: drop drmP.h include from drm_crtc.c c17e9291daa4 drm: drop drmP.h include from drm_plane.c 4160e400d588 drm: Drop drmP.h from drm_connector.c d5a605f276d9 drm: Add drm/drm_util.h header file

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10093/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#19 lore raw

✓ Fi.CI.IGT: success for series starting with [1/7] drm: Add drm/drm_util.h header file

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file
URL : https://patchwork.freedesktop.org/series/49184/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4772_full -> Patchwork_10093_full =

== Summary - SUCCESS ==

No regressions found.

== Known issues ==

Here are the changes found in Patchwork_10093_full that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@kms_flip@flip-vs-expired-vblank:
      shard-kbl:          PASS -> FAIL (fdo#102887, fdo#105363)

    
    ==== Possible fixes ====

    igt@kms_rotation_crc@primary-rotation-180:
      shard-kbl:          DMESG-WARN (fdo#103558, fdo#105602) -> PASS +9
      shard-apl:          DMESG-WARN (fdo#103558, fdo#105602) -> PASS +9

    igt@perf_pmu@rc6-runtime-pm:
      shard-apl:          FAIL (fdo#105010) -> PASS

fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#105010 https://bugs.freedesktop.org/show_bug.cgi?id=105010
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602

== Participating hosts (5 -> 5) ==

No changes in participating hosts

== Build changes ==

* Linux: CI_DRM_4772 -> Patchwork_10093

CI_DRM_4772: 1351ee8f3aacdb8f4a71cd17a7035556065c59a9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4629: c3b6d69aa3dd2d1a6c1f2e787670a0aef78f2ea5 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10093: df2c2eecc6bfd175617f735143a2d876e3122acc @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10093/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#20 lore raw

✗ Fi.CI.CHECKPATCH: warning for series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)
URL : https://patchwork.freedesktop.org/series/49184/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
ef536308c993 drm: Add drm/drm_util.h header file
-:144: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#144: 
new file mode 100644

-:149: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #149: FILE: include/drm/drm_util.h:1:
+/*

-:178: ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros starting with if should be enclosed by a do - while loop to avoid possible if/else logic defects #178: FILE: include/drm/drm_util.h:30:
+#define for_each_if(condition) if (!(condition)) {} else

-:178: WARNING:BRACES: braces {} are not necessary for single statement blocks #178: FILE: include/drm/drm_util.h:30:
+#define for_each_if(condition) if (!(condition)) {} else

total: 1 errors, 3 warnings, 0 checks, 105 lines checked
c6a2e00f8ca5 drm: Drop drmP.h from drm_connector.c
-:56: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 30 lines checked
6d4da8841fd5 drm: drop drmP.h include from drm_plane.c
-:94: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 55 lines checked
cc8a1f89a3b1 drm: drop drmP.h include from drm_crtc.c
-:35: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 17 lines checked 00332fdfbdca drm/atomic: trim driver interface/docs
-:88: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #88: FILE: drivers/gpu/drm/drm_atomic.c:501:
+static int drm_atomic_crtc_set_property(struct drm_crtc *crtc,
struct drm_crtc_state *state, struct drm_property *property,

-:202: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #202: FILE: drivers/gpu/drm/drm_atomic.c:1253:
+static int drm_atomic_set_writeback_fb_for_connector(

-:342: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 0 errors, 1 warnings, 2 checks, 301 lines checked
d4aedeb40f21 drm: Update todo.rst
4ec94773c551 drm: extract drm_atomic_uapi.c
-:1515: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #1515:
new file mode 100644

-:1520: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #1520: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1:
+/*

-:1569: WARNING:TYPO_SPELLING: 'similiar' may be misspelled - perhaps 'similar'? #1569: FILE: drivers/gpu/drm/drm_atomic_uapi.c:50:
+ * for load detect or similiar.

-:1600: ERROR:CODE_INDENT: code indent should use tabs where possible #1600: FILE: drivers/gpu/drm/drm_atomic_uapi.c:81:
+^I^I sizeof(umode),$

-:1600: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1600: FILE: drivers/gpu/drm/drm_atomic_uapi.c:81:
+ drm_property_create_blob(state->crtc->dev,
+ sizeof(umode),

-:1601: ERROR:CODE_INDENT: code indent should use tabs where possible #1601: FILE: drivers/gpu/drm/drm_atomic_uapi.c:82:
+^I^I &umode);$

-:1634: ERROR:CODE_INDENT: code indent should use tabs where possible #1634: FILE: drivers/gpu/drm/drm_atomic_uapi.c:115:
+ struct drm_property_blob *blob)$

-:1634: WARNING:LEADING_SPACE: please, no spaces at the start of a line #1634: FILE: drivers/gpu/drm/drm_atomic_uapi.c:115:
+ struct drm_property_blob *blob)$

-:1877: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1877: FILE: drivers/gpu/drm/drm_atomic_uapi.c:358:
+static int set_out_fence_for_connector(struct drm_atomic_state *state,
+ struct drm_connector *connector,

-:1917: CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "!new_blob" #1917: FILE: drivers/gpu/drm/drm_atomic_uapi.c:398:
+ if (new_blob == NULL)

-:1939: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1939: FILE: drivers/gpu/drm/drm_atomic_uapi.c:420:
+static int drm_atomic_crtc_set_property(struct drm_crtc *crtc,
+ struct drm_crtc_state *state, struct drm_property *property,

-:1947: CHECK:BRACES: braces {} should be used on all arms of this statement #1947: FILE: drivers/gpu/drm/drm_atomic_uapi.c:428:
+ if (property == config->prop_active)
[...]
+ else if (property == config->prop_mode_id) {
[...]
+ } else if (property == config->degamma_lut_property) {
[...]
+ } else if (property == config->ctm_property) {
[...]
+ } else if (property == config->gamma_lut_property) {
[...]
+ } else if (property == config->prop_out_fence_ptr) {
[...]
+ } else if (crtc->funcs->atomic_set_property) {
[...]
+ } else {
[...]

-:1957: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1957: FILE: drivers/gpu/drm/drm_atomic_uapi.c:438:
+ ret = drm_atomic_replace_property_blob_from_id(dev,
+ &state->degamma_lut,

-:1965: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1965: FILE: drivers/gpu/drm/drm_atomic_uapi.c:446:
+ ret = drm_atomic_replace_property_blob_from_id(dev,
+ &state->ctm,

-:1973: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #1973: FILE: drivers/gpu/drm/drm_atomic_uapi.c:454:
+ ret = drm_atomic_replace_property_blob_from_id(dev,
+ &state->gamma_lut,

-:1991: WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return #1991: FILE: drivers/gpu/drm/drm_atomic_uapi.c:472:
+ return crtc->funcs->atomic_set_property(crtc, state, property, val);
+ } else {

-:2003: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2003: FILE: drivers/gpu/drm/drm_atomic_uapi.c:484:
+drm_atomic_crtc_get_property(struct drm_crtc *crtc,
+ const struct drm_crtc_state *state,

-:2030: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2030: FILE: drivers/gpu/drm/drm_atomic_uapi.c:511:
+static int drm_atomic_plane_set_property(struct drm_plane *plane,
+ struct drm_plane_state *state, struct drm_property *property,

-:2038: WARNING:LINE_SPACING: Missing a blank line after declarations #2038: FILE: drivers/gpu/drm/drm_atomic_uapi.c:519:
+ struct drm_framebuffer *fb = drm_framebuffer_lookup(dev, NULL, val);
+ drm_atomic_set_fb_for_plane(state, fb);

-:2054: WARNING:LINE_SPACING: Missing a blank line after declarations #2054: FILE: drivers/gpu/drm/drm_atomic_uapi.c:535:
+ struct drm_crtc *crtc = drm_crtc_find(dev, NULL, val);
+ return drm_atomic_set_crtc_for_plane(state, crtc);

-:2103: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2103: FILE: drivers/gpu/drm/drm_atomic_uapi.c:584:
+drm_atomic_plane_get_property(struct drm_plane *plane,
+ const struct drm_plane_state *state,

-:2109: WARNING:BRACES: braces {} are not necessary for any arm of this statement #2109: FILE: drivers/gpu/drm/drm_atomic_uapi.c:590:
+ if (property == config->prop_fb_id) {
[...]
+ } else if (property == config->prop_in_fence_fd) {
[...]
+ } else if (property == config->prop_crtc_id) {
[...]
+ } else if (property == config->prop_crtc_x) {
[...]
+ } else if (property == config->prop_crtc_y) {
[...]
+ } else if (property == config->prop_crtc_w) {
[...]
+ } else if (property == config->prop_crtc_h) {
[...]
+ } else if (property == config->prop_src_x) {
[...]
+ } else if (property == config->prop_src_y) {
[...]
+ } else if (property == config->prop_src_w) {
[...]
+ } else if (property == config->prop_src_h) {
[...]
+ } else if (property == plane->alpha_property) {
[...]
+ } else if (property == plane->blend_mode_property) {
[...]
+ } else if (property == plane->rotation_property) {
[...]
+ } else if (property == plane->zpos_property) {
[...]
+ } else if (property == plane->color_encoding_property) {
[...]
+ } else if (property == plane->color_range_property) {
[...]
+ } else if (plane->funcs->atomic_get_property) {
[...]
+ } else {
[...]

-:2164: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #2164: FILE: drivers/gpu/drm/drm_atomic_uapi.c:645:
+static int drm_atomic_set_writeback_fb_for_connector(

-:2186: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2186: FILE: drivers/gpu/drm/drm_atomic_uapi.c:667:
+static int drm_atomic_connector_set_property(struct drm_connector *connector,
+ struct drm_connector_state *state, struct drm_property *property,

-:2194: WARNING:LINE_SPACING: Missing a blank line after declarations #2194: FILE: drivers/gpu/drm/drm_atomic_uapi.c:675:
+ struct drm_crtc *crtc = drm_crtc_find(dev, NULL, val);
+ return drm_atomic_set_crtc_for_connector(state, crtc);

-:2254: WARNING:LINE_SPACING: Missing a blank line after declarations #2254: FILE: drivers/gpu/drm/drm_atomic_uapi.c:735:
+ int ret = drm_atomic_set_writeback_fb_for_connector(state, fb);
+ if (fb)

-:2277: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2277: FILE: drivers/gpu/drm/drm_atomic_uapi.c:758:
+drm_atomic_connector_get_property(struct drm_connector *connector,
+ const struct drm_connector_state *state,

-:2337: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2337: FILE: drivers/gpu/drm/drm_atomic_uapi.c:818:
+int drm_atomic_get_property(struct drm_mode_object *obj,
+ struct drm_property *property, uint64_t *val)

-:2345: WARNING:LINE_SPACING: Missing a blank line after declarations #2345: FILE: drivers/gpu/drm/drm_atomic_uapi.c:826:
+ struct drm_connector *connector = obj_to_connector(obj);
+ WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex));

-:2347: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2347: FILE: drivers/gpu/drm/drm_atomic_uapi.c:828:
+ ret = drm_atomic_connector_get_property(connector,
+ connector->state, property, val);

-:2352: WARNING:LINE_SPACING: Missing a blank line after declarations #2352: FILE: drivers/gpu/drm/drm_atomic_uapi.c:833:
+ struct drm_crtc *crtc = obj_to_crtc(obj);
+ WARN_ON(!drm_modeset_is_locked(&crtc->mutex));

-:2354: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2354: FILE: drivers/gpu/drm/drm_atomic_uapi.c:835:
+ ret = drm_atomic_crtc_get_property(crtc,
+ crtc->state, property, val);

-:2359: WARNING:LINE_SPACING: Missing a blank line after declarations #2359: FILE: drivers/gpu/drm/drm_atomic_uapi.c:840:
+ struct drm_plane *plane = obj_to_plane(obj);
+ WARN_ON(!drm_modeset_is_locked(&plane->mutex));

-:2361: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2361: FILE: drivers/gpu/drm/drm_atomic_uapi.c:842:
+ ret = drm_atomic_plane_get_property(plane,
+ plane->state, property, val);

-:2376: CHECK:OPEN_ENDED_LINE: Lines should not end with a '(' #2376: FILE: drivers/gpu/drm/drm_atomic_uapi.c:857:
+static struct drm_pending_vblank_event *create_vblank_event(

-:2381: WARNING:SIZEOF_PARENTHESIS: sizeof *e should be sizeof(*e) #2381: FILE: drivers/gpu/drm/drm_atomic_uapi.c:862:
+ e = kzalloc(sizeof *e, GFP_KERNEL);

-:2466: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2466: FILE: drivers/gpu/drm/drm_atomic_uapi.c:947:
+ ret = drm_atomic_connector_set_property(connector,
+ connector_state, prop, prop_value);

-:2480: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2480: FILE: drivers/gpu/drm/drm_atomic_uapi.c:961:
+ ret = drm_atomic_crtc_set_property(crtc,
+ crtc_state, prop, prop_value);

-:2494: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2494: FILE: drivers/gpu/drm/drm_atomic_uapi.c:975:
+ ret = drm_atomic_plane_set_property(plane,
+ plane_state, prop, prop_value);

-:2510: WARNING:TYPO_SPELLING: 'transfered' may be misspelled - perhaps 'transferred'? #2510: FILE: drivers/gpu/drm/drm_atomic_uapi.c:991:
+ * between devices. A Fence or a group of fences are transfered to/from

-:2582: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2582: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1063:
+static int prepare_signaling(struct drm_device *dev,
+ struct drm_atomic_state *state,

-:2789: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2789: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1270:
+ if ((arg->flags & DRM_MODE_PAGE_FLIP_ASYNC) &&
+ !dev->mode_config.async_page_flip)

-:2794: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #2794: FILE: drivers/gpu/drm/drm_atomic_uapi.c:1275:
+ if ((arg->flags & DRM_MODE_ATOMIC_TEST_ONLY) &&
+ (arg->flags & DRM_MODE_PAGE_FLIP_EVENT))

-:3079: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #3079: FILE: include/drm/drm_atomic_uapi.h:1:
+/*

-:3136: WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'Daniel Vetter <[email protected]>'

total: 3 errors, 17 warnings, 25 checks, 2458 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#21 lore raw

✗ Fi.CI.SPARSE: warning for series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)
URL : https://patchwork.freedesktop.org/series/49184/
State : warning

== Summary ==

$ dim sparse origin/drm-tip
Commit: drm: Add drm/drm_util.h header file
-drivers/gpu/drm/i915/selftests/../i915_drv.h:3688:16: warning: expression using sizeof(void)
+drivers/gpu/drm/i915/selftests/../i915_drv.h:3689:16: warning: expression using sizeof(void)

Commit: drm: Drop drmP.h from drm_connector.c
Okay!

Commit: drm: drop drmP.h include from drm_plane.c
Okay!

Commit: drm: drop drmP.h include from drm_crtc.c
Okay!

Commit: drm/atomic: trim driver interface/docs
Okay!

Commit: drm: Update todo.rst
Okay!

Commit: drm: extract drm_atomic_uapi.c
Okay!

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#22 lore raw

✓ Fi.CI.BAT: success for series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)
URL : https://patchwork.freedesktop.org/series/49184/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4773 -> Patchwork_10099 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/49184/revisions/2/mbox/

== Known issues ==

Here are the changes found in Patchwork_10099 that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@kms_frontbuffer_tracking@basic:
      fi-byt-clapper:     PASS -> FAIL (fdo#103167)

    igt@kms_psr@primary_page_flip:
      fi-cnl-psr:         PASS -> FAIL (fdo#107336)

    
    ==== Possible fixes ====

    igt@prime_vgem@basic-fence-flip:
      fi-ilk-650:         FAIL (fdo#104008) -> PASS

fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
fdo#107336 https://bugs.freedesktop.org/show_bug.cgi?id=107336

== Participating hosts (54 -> 49) ==

Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u

== Build changes ==

* Linux: CI_DRM_4773 -> Patchwork_10099

CI_DRM_4773: fb94a684a02a423798c1c773cf2ca9d5a7a94fb7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4630: 86686c6e2f7c6f0944bced11550e06d20bc6957f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10099: 4ec94773c5515f4e52c5b4e584eb05c3bee69df0 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

4ec94773c551 drm: extract drm_atomic_uapi.c d4aedeb40f21 drm: Update todo.rst 00332fdfbdca drm/atomic: trim driver interface/docs cc8a1f89a3b1 drm: drop drmP.h include from drm_crtc.c 6d4da8841fd5 drm: drop drmP.h include from drm_plane.c c6a2e00f8ca5 drm: Drop drmP.h from drm_connector.c ef536308c993 drm: Add drm/drm_util.h header file

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10099/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#23 lore raw

✓ Fi.CI.IGT: success for series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)

In reply to Daniel Vetter
== Series Details ==

== Series Details ==

Series: series starting with [1/7] drm: Add drm/drm_util.h header file (rev2)
URL : https://patchwork.freedesktop.org/series/49184/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4773_full -> Patchwork_10099_full =

== Summary - SUCCESS ==

No regressions found.

== Known issues ==

Here are the changes found in Patchwork_10099_full that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@gem_exec_await@wide-contexts:
      shard-glk:          PASS -> FAIL (fdo#105900)

    igt@kms_setmode@basic:
      shard-kbl:          PASS -> FAIL (fdo#99912)

    igt@perf@blocking:
      shard-hsw:          PASS -> FAIL (fdo#102252)

    
    ==== Possible fixes ====

    igt@drv_suspend@shrink:
      shard-glk:          FAIL (fdo#106886) -> PASS

    igt@kms_cursor_crc@cursor-64x64-suspend:
      shard-apl:          INCOMPLETE (fdo#103927) -> PASS

    igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy:
      shard-hsw:          FAIL (fdo#105767) -> PASS

    igt@kms_flip@flip-vs-expired-vblank-interruptible:
      shard-glk:          FAIL (fdo#102887, fdo#105363) -> PASS

    igt@kms_setmode@basic:
      shard-apl:          FAIL (fdo#99912) -> PASS

fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105767 https://bugs.freedesktop.org/show_bug.cgi?id=105767
fdo#105900 https://bugs.freedesktop.org/show_bug.cgi?id=105900
fdo#106886 https://bugs.freedesktop.org/show_bug.cgi?id=106886
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912

== Participating hosts (5 -> 5) ==

No changes in participating hosts

== Build changes ==

* Linux: CI_DRM_4773 -> Patchwork_10099

CI_DRM_4773: fb94a684a02a423798c1c773cf2ca9d5a7a94fb7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4630: 86686c6e2f7c6f0944bced11550e06d20bc6957f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10099: 4ec94773c5515f4e52c5b4e584eb05c3bee69df0 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10099/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx