From: sashiko-bot@kernel.org
To: "Maarten Lankhorst" <dev@lankhorst.se>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v5 6/6] drm/i915: Use sleeping selftests for igt_atomic on PREEMPT_RT
Date: Wed, 23 Sep 2026 11:28:55 +0000 [thread overview]
Message-ID: <20260923112855.F3DC51F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260923111518.310430-14-dev@lankhorst.se>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] drm/i915: dead data in igt_atomic_phases and truncated commit message
--
commit 321dc694013c1b67cd828bf70f5c9cc0726f1768
Author: Maarten Lankhorst <dev@lankhorst.se>
drm/i915: Use sleeping selftests for igt_atomic on PREEMPT_RT
This commit updates the i915 igt_atomic selftest to use sleeping test
phases on PREEMPT_RT builds. It adds PREEMPT_RT specific phases and
terminates the test array early.
> All of the i915 code that used to run in BH's, IRQ's, etc is
> converted to preemptible code when compiled with PREEMPT_RT,
> so adding coverage for those situations would require
[Severity: Low]
This isn't a bug, but the commit message is visibly truncated mid-sentence
here.
> diff --git a/drivers/gpu/drm/i915/selftests/igt_atomic.c b/drivers/gpu/drm/i915/selftests/igt_atomic.c
> index fb506b6990956..8ae39cf570b76 100644
> --- a/drivers/gpu/drm/i915/selftests/igt_atomic.c
> +++ b/drivers/gpu/drm/i915/selftests/igt_atomic.c
[ ... ]
> const struct igt_atomic_section igt_atomic_phases[] = {
> +#if IS_ENABLED(CONFIG_PREEMPT_RT)
> + { "sleeping", __nop, __nop },
> + { },
> +#endif
> { "preempt", __preempt_begin, __preempt_end },
[Severity: Low]
Does adding this early null sentinel abandon the remaining elements
("preempt", "softirq", "hardirq") in igt_atomic_phases as unreachable dead
data in the binary on PREEMPT_RT builds?
While this avoids unused function warnings for the callbacks, it leaves
unreachable data in the array. Could the remaining elements be explicitly
guarded with an #else instead?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260923111518.310430-8-dev@lankhorst.se?part=6
next prev parent reply other threads:[~2026-09-23 11:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 11:15 [PATCH v5 0/6] drm/i915: Most fixes to make i915 work well with PREEMPT_RT Maarten Lankhorst
2026-09-23 11:15 ` [PATCH v5 1/6] drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() + spin_lock() Maarten Lankhorst
2026-09-23 11:15 ` [PATCH v5 2/6] drm/i915: Drop the irqs_disabled() check Maarten Lankhorst
2026-09-23 11:15 ` [PATCH v5 3/6] drm/i915/guc: Consider also RCU depth in busy loop Maarten Lankhorst
2026-09-23 11:15 ` [PATCH v5 4/6] drm/i915/gt: Fix selftests on PREEMPT_RT Maarten Lankhorst
2026-09-23 14:26 ` Sebastian Andrzej Siewior
2026-09-23 11:15 ` [PATCH v5 5/6] drm/i915/gt: Set stop_timeout() correctly on PREEMPT-RT Maarten Lankhorst
2026-09-23 14:27 ` Sebastian Andrzej Siewior
2026-09-23 11:15 ` [PATCH v5 6/6] drm/i915: Use sleeping selftests for igt_atomic on PREEMPT_RT Maarten Lankhorst
2026-09-23 11:28 ` sashiko-bot [this message]
2026-09-23 14:27 ` Sebastian Andrzej Siewior
2026-09-23 12:55 ` ✓ i915.CI.BAT: success for drm/i915: Most fixes to make i915 work well with PREEMPT_RT Patchwork
2026-09-23 14:27 ` [PATCH v5 0/6] " Sebastian Andrzej Siewior
2026-09-24 6:30 ` ✓ i915.CI.Full: success for " Patchwork
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=20260923112855.F3DC51F00898@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dev@lankhorst.se \
--cc=intel-gfx@lists.freedesktop.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.