From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: misc/syncobj: add /dev/syncobj device
Date: Mon, 18 May 2026 16:53:29 +1000 [thread overview]
Message-ID: <review-overall-20260516-jorth-syncobj-v1-0-88ede9d98a81@gmail.com> (raw)
In-Reply-To: <20260516-jorth-syncobj-v1-0-88ede9d98a81@gmail.com>
Overall Series Review
Subject: misc/syncobj: add /dev/syncobj device
Author: Julian Orth <ju.orth@gmail.com>
Patches: 16
Reviewed: 2026-05-18T16:53:29.890629
---
This 12-patch series by Julian Orth introduces `/dev/syncobj`, a standalone misc device that exposes DRM syncobj operations without requiring a DRM device node. The motivation is sound: Wayland compositors and software renderers (llvmpipe) need syncobj interop for buffer synchronization but currently must open a DRM device node even when no GPU-specific logic is involved.
The series is well-structured: patches 1-11 refactor the existing `drm_syncobj.c` code to extract reusable building blocks that accept `struct drm_syncobj *` directly rather than `drm_file`/handle pairs. Patch 12 then builds the new `/dev/syncobj` misc device on top. The refactoring is generally clean and incremental.
**Key concerns:**
1. **Architectural placement**: The author themselves flags this -- `drivers/misc/` is questionable for something tightly coupled to the DRM subsystem. This probably belongs under `drivers/gpu/drm/` or at least should get buy-in from Greg KH on the misc placement.
2. **`copy_from_user` in exported helper**: `drm_syncobj_timeline_signal()` and `drm_syncobj_query()` take raw `u64 user_points` and internally call `copy_from_user`. This is an unusual and problematic API design for a kernel-internal exported function -- callers outside the DRM ioctl path shouldn't need to deal with user pointers at that abstraction level.
3. **ioctl number conflict**: `0xCD` is claimed as dead (reiserfs, removed in 6.13), but the new allocation `0xCD 00-0F` overlaps with the existing `0xCD 01` reservation line. This needs formal ioctl allocation review.
4. **The bug fix in patch 9 is real** and should be sent separately as a standalone fix with a Fixes: tag targeting the commit that introduced the `point` parameter support.
5. **No selftests** are included for the new device. A `kselftest` for the new ioctls would significantly strengthen the submission.
6. **No documentation** beyond the ioctl-number.rst entry. A doc file describing the new userspace API semantics would be valuable.
Overall: the idea has clear merit for the Wayland ecosystem, but the internal API design (user pointers in exported functions) needs rework, and the series needs tests and documentation.
---
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-05-18 6:53 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-16 11:06 [PATCH 00/12] misc/syncobj: add /dev/syncobj device Julian Orth
2026-05-16 11:06 ` [PATCH 01/12] drm/syncobj: add drm_syncobj_from_fd Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 02/12] drm/syncobj: add drm_syncobj_fence_lookup Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 03/12] drm/syncobj: make drm_syncobj_array_wait_timeout public Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 04/12] drm/syncobj: add drm_syncobj_register_eventfd Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 05/12] drm/syncobj: have transfer functions accept drm_syncobj directly Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 06/12] drm/syncobj: add drm_syncobj_transfer Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 07/12] drm/syncobj: add drm_syncobj_timeline_signal Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 08/12] drm/syncobj: add drm_syncobj_query Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 09/12] drm/syncobj: fix resource leak in drm_syncobj_import_sync_file_fence Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 10/12] drm/syncobj: add drm_syncobj_import_sync_file Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 11/12] drm/syncobj: add drm_syncobj_export_sync_file Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-16 11:06 ` [PATCH 12/12] misc/syncobj: add new device Julian Orth
2026-05-16 11:37 ` Greg Kroah-Hartman
2026-05-16 11:38 ` Greg Kroah-Hartman
2026-05-16 12:08 ` Julian Orth
2026-05-18 6:53 ` Claude review: " Claude Code Review Bot
2026-05-18 6:53 ` Claude Code Review Bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260516-jorth-syncobj-v1-0-88ede9d98a81@gmail.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox