DRM: small improvements
Subsystems (2)
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]>
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
@@ -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
PATCH v4 2/2 drm/atomic-helper: improve CRTC enabled/connectors mismatch logging message
In reply to Luca CeresoliThis 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
@@ -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
Quoted 3 lines · Luca Ceresoli
This series brings small improvements to the DRM documentation and logging.
Signed-off-by Luca Ceresoli <[email protected]>
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 messagedrivers/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-1d104cc10280Best regards,
Signature · 1 line
Luca Ceresoli <[email protected]>
Signature · 3 lines
Simona Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Quoted 3 lines · Luca Ceresoli
This series brings small improvements to the DRM documentation and logging.
Signed-off-by Luca Ceresoli <[email protected]>
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 messagedrivers/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-1d104cc10280Best regards,
Signature · 1 line
Luca Ceresoli <[email protected]>