From: sashiko-bot@kernel.org
To: "Mike Lothian" <mike@fireburn.co.uk>
Cc: dri-devel@lists.freedesktop.org, ojeda@kernel.org
Subject: Re: [PATCH v3 13/13] Documentation/gpu: document the Vino driver
Date: Wed, 26 Aug 2026 17:10:25 +0000 [thread overview]
Message-ID: <20260826171025.BDF011F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260826163913.7052-14-mike@fireburn.co.uk>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Sleeping functions (GFP_KERNEL allocations and Mutex locks) are called from atomic KMS callbacks.
- [Low] Sphinx build warning due to title overline and underline being shorter than the title text.
--
commit fb3eb13f9dac446a54542b31ed570e00753ca4c1
Author: Mike Lothian <mike@fireburn.co.uk>
Documentation/gpu: document the Vino driver
Describe how a dock is identified and placed by family rather than by
product ID, what the driver implements in-kernel in place of EVDI and
DisplayLinkManager, and the module parameters an unfamiliar dock or a
converter with broken DDC may need.
> diff --git a/Documentation/gpu/vino.rst b/Documentation/gpu/vino.rst
> new file mode 100644
> index 0000000000000..98e82297a82a9
> --- /dev/null
> +++ b/Documentation/gpu/vino.rst
> @@ -0,0 +1,254 @@
> +.. SPDX-License-Identifier: GPL-2.0-only
> +
> +==========================
> +Vino DisplayLink DL3 driver
> +==========================
[Severity: Low]
Does this title formatting violate reStructuredText syntax requirements?
The overline and underline are 26 characters long, but the title text is 27
characters long, which can cause a Sphinx build warning.
[Severity: High]
Can these sleeping functions be called from an atomic context?
In read_cursor_bgra(), a GFP_KERNEL allocation is made, which can sleep:
drivers/gpu/drm/vino/drm_sink/scanout.rs:read_cursor_bgra() {
...
out.resize(len, 0, GFP_KERNEL)?;
...
}
It appears this is called from the atomic VinoPlane::atomic_update callback.
Similarly, do these code paths acquire a sleepable kernel Mutex during atomic
contexts?
drivers/gpu/drm/vino/drm_sink/dispatch.rs:queue_scanout() {
...
let pending = self.pending_scanout.lock();
...
let mut pool = self.shadow[connector].lock();
...
}
This appears to be called in an atomic plane update context.
drivers/gpu/drm/vino/drm_sink/dispatch.rs:queue_cmd() {
...
let mut pending = self.pending_kms.lock();
...
}
This seems to be called from the atomic_enable and atomic_disable callbacks.
drivers/gpu/drm/vino/drm_sink.rs:update_color() {
...
let changed = if let Some(slot) = self.color.lock().get_mut(connector) {
...
}
This also appears to be called from VinoCrtc::atomic_enable and atomic_disable.
Calling sleeping functions like GFP_KERNEL allocations and Mutex locks from
atomic context can lead to might_sleep kernel warnings, system instability,
and deadlocks.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260826163913.7052-1-mike@fireburn.co.uk?part=13
next prev parent reply other threads:[~2026-08-26 17:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 16:37 [PATCH v3 0/13] drm/vino: a Rust driver for DisplayLink DL3 docks Mike Lothian
2026-08-26 16:37 ` [PATCH v3 1/13] drm/vino: add the DL3 wire framing Mike Lothian
2026-08-26 16:37 ` [PATCH v3 2/13] drm/vino: add the USB transport Mike Lothian
2026-08-26 16:58 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 3/13] drm/vino: add the crypto primitives and the HDCP 2.2 AKE Mike Lothian
2026-08-26 16:37 ` [PATCH v3 4/13] drm/vino: add the encrypted control plane Mike Lothian
2026-08-26 16:37 ` [PATCH v3 5/13] drm/vino: add the dock profiles Mike Lothian
2026-08-26 16:37 ` [PATCH v3 6/13] drm/vino: add the video codec Mike Lothian
2026-08-26 16:56 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 7/13] drm/vino: add control-session bring-up Mike Lothian
2026-08-26 16:57 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 8/13] drm/vino: add the KMS device and the atomic path Mike Lothian
2026-08-26 16:59 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 9/13] drm/vino: add the dock activation and scanout path Mike Lothian
2026-08-26 16:59 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 10/13] drm/vino: read the dock's firmware version, and update it over DFU Mike Lothian
2026-08-26 16:58 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 11/13] drm/vino: add the USB driver frontend Mike Lothian
2026-08-26 17:01 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 12/13] drm/vino: allow the driver to be built Mike Lothian
2026-08-26 17:04 ` sashiko-bot
2026-08-26 16:37 ` [PATCH v3 13/13] Documentation/gpu: document the Vino driver Mike Lothian
2026-08-26 17:10 ` sashiko-bot [this message]
2026-08-26 17:28 ` Randy Dunlap
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=20260826171025.BDF011F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=mike@fireburn.co.uk \
--cc=ojeda@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.