Skip to contentSkip to conversation

DRM: small improvements

PATCH In review Luca Ceresoli 3 participants 5 messages Feb 4, 2025

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

v4 cover DRM: small improvements

This series brings small improvements to the DRM documentation and logging.

---
Changes in v4:
- Removed pathches 3 and 4 because the added warning has false positives
when cleaning up a connector in the init error path
- Updated acked-by tags
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- patch 3: various fixes suggested by Jani Nikula and kernel test robot
- Updated reviewed-by tags
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Added patches 3 and 4
- Updated reviewed-by tags
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Luca Ceresoli (2):
drm/drm_mode_object: fix typo in kerneldoc
drm/atomic-helper: improve CRTC enabled/connectors mismatch logging message

 drivers/gpu/drm/drm_atomic_helper.c | 5 +++--
 include/drm/drm_mode_object.h       | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20241018-drm-small-improvements-1d104cc10280

Best regards,

Signature · 1 line
Luca Ceresoli <[email protected]>
#1 lore raw

PATCH v4 1/2 drm/drm_mode_object: fix typo in kerneldoc

Remove unintended extra word.

---
 include/drm/drm_mode_object.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_mode_object.h +1 -1
index 08d7a7f0188fea79e2d8ad5ee6cc5044300f1a26..c68edbd126d04d51221f50aa2b4166475543b59f 100644
@@ -35,7 +35,7 @@ struct drm_file;
  * @id: userspace visible identifier
  * @type: type of the object, one of DRM_MODE_OBJECT\_\*
  * @properties: properties attached to this object, including values
- * @refcount: reference count for objects which with dynamic lifetime
+ * @refcount: reference count for objects with dynamic lifetime
  * @free_cb: free function callback, only set for objects with dynamic lifetime
  *
  * Base structure for modeset objects visible to userspace. Objects can be
Signature · 1 line
2.34.1
#2 lore raw

PATCH v4 2/2 drm/atomic-helper: improve CRTC enabled/connectors mismatch logging message

In reply to Luca Ceresoli

This message reports a mismatch between new_crtc_state->enable and has_connectors, which should be either both true or both false. However it does not mention which one is true and which is false, which can be useful for debugging. Add the value of both avriables to the log message.

---
 drivers/gpu/drm/drm_atomic_helper.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_atomic_helper.c +3 -2
index 5186d2114a503701e228e382cc45180b0c578d0c..8ed186ddaeafae8295696eb11ace58777a5d9e43 100644
@@ -666,8 +666,9 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,
 		}
 
 		if (new_crtc_state->enable != has_connectors) {
-			drm_dbg_atomic(dev, "[CRTC:%d:%s] enabled/connectors mismatch\n",
-				       crtc->base.id, crtc->name);
+			drm_dbg_atomic(dev, "[CRTC:%d:%s] enabled/connectors mismatch (%d/%d)\n",
+				       crtc->base.id, crtc->name,
+				       new_crtc_state->enable, has_connectors);
 
 			return -EINVAL;
 		}
Signature · 1 line
2.34.1
#3 lore raw
In reply to Luca Ceresoli
Quoted 3 lines · Luca Ceresoli

This series brings small improvements to the DRM documentation and logging.

I've seen these fly by a few times ... is there no one at bootlin with drm-misc commit rights who can push these for you? That's how I at least expected these to land a few revisions ago.

Cheers, Sima

Quoted 33 lines

---
Changes in v4:
- Removed pathches 3 and 4 because the added warning has false positives
when cleaning up a connector in the init error path
- Updated acked-by tags
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- patch 3: various fixes suggested by Jani Nikula and kernel test robot
- Updated reviewed-by tags
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Added patches 3 and 4
- Updated reviewed-by tags
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Luca Ceresoli (2):
drm/drm_mode_object: fix typo in kerneldoc
drm/atomic-helper: improve CRTC enabled/connectors mismatch logging message

 drivers/gpu/drm/drm_atomic_helper.c | 5 +++--
 include/drm/drm_mode_object.h       | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20241018-drm-small-improvements-1d104cc10280

Best regards,

Signature · 1 line
Luca Ceresoli <[email protected]>
Signature · 3 lines
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
#4 lore raw
In reply to Luca Ceresoli
Quoted 3 lines · Luca Ceresoli

This series brings small improvements to the DRM documentation and logging.

Applied on drm-misc-next, thanks.

Louis Chauvet

Quoted 33 lines

---
Changes in v4:
- Removed pathches 3 and 4 because the added warning has false positives
when cleaning up a connector in the init error path
- Updated acked-by tags
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- patch 3: various fixes suggested by Jani Nikula and kernel test robot
- Updated reviewed-by tags
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Added patches 3 and 4
- Updated reviewed-by tags
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Luca Ceresoli (2):
drm/drm_mode_object: fix typo in kerneldoc
drm/atomic-helper: improve CRTC enabled/connectors mismatch logging message

 drivers/gpu/drm/drm_atomic_helper.c | 5 +++--
 include/drm/drm_mode_object.h       | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20241018-drm-small-improvements-1d104cc10280

Best regards,

Signature · 1 line
Luca Ceresoli <[email protected]>