public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Maxime Ripard <mripard@kernel.org>
To: Tvrtko Ursulin <tursulin@ursulin.net>
Cc: Matthew Brost <matthew.brost@intel.com>,
	Danilo Krummrich <dakr@kernel.org>,
	Philipp Stanner <phasta@kernel.org>,
	Christian Koenig <christian.koenig@amd.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	Matthew Auld <matthew.auld@intel.com>,
	Arun Pravin <arunpravin.paneerselvam@amd.com>,
	Simona Vetter <simona.vetter@ffwll.ch>,
	David Airlie <airlied@gmail.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/tests: Mark slow tests as slow
Date: Thu, 26 Feb 2026 11:56:13 +0100	[thread overview]
Message-ID: <20260226-certain-tuscan-caribou-ba4c5e@penduick> (raw)
In-Reply-To: <1c76b8d6-9394-4017-a18f-95ecc2c08175@ursulin.net>

[-- Attachment #1: Type: text/plain, Size: 2228 bytes --]

Hi Tvrtko,

On Tue, Feb 24, 2026 at 12:49:01PM +0000, Tvrtko Ursulin wrote:
> 
> On 24/02/2026 11:03, Maxime Ripard wrote:
> > Some DRM tests cross the 1s execution time threshold that defines a test
> > as slow. Let's flag them as such.
> 
> Curious that both did not trigger for me and I even run them under nested
> qemu most of the time.
> 
> > Signed-off-by: Maxime Ripard <mripard@kernel.org>
> > ---
> >   drivers/gpu/drm/scheduler/tests/tests_basic.c | 4 ++--
> >   drivers/gpu/drm/tests/drm_buddy_test.c        | 2 +-
> >   2 files changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/scheduler/tests/tests_basic.c b/drivers/gpu/drm/scheduler/tests/tests_basic.c
> > index 82a41a456b0a..a5a5a35a87b0 100644
> > --- a/drivers/gpu/drm/scheduler/tests/tests_basic.c
> > +++ b/drivers/gpu/drm/scheduler/tests/tests_basic.c
> > @@ -419,11 +419,11 @@ static void drm_sched_change_priority(struct kunit *test)
> >   		drm_mock_sched_entity_free(entity[i]);
> >   }
> >   static struct kunit_case drm_sched_priority_tests[] = {
> >   	KUNIT_CASE(drm_sched_priorities),
> > -	KUNIT_CASE(drm_sched_change_priority),
> > +	KUNIT_CASE_SLOW(drm_sched_change_priority),
> 
> This one deliberately aims to run for ~1s and I don't have an immediate idea
> how it would go over 2s.

1s is the threshold for a slow test:
https://elixir.bootlin.com/linux/v6.19.3/source/lib/kunit/test.c#L365

It only warns about it if it crosses 2s, but if it's expected to take
1s, it should be flagged as such still.

> >   	{}
> >   };
> >   static struct kunit_suite drm_sched_priority = {
> >   	.name = "drm_sched_basic_priority_tests",
> > @@ -544,11 +544,11 @@ static void drm_sched_test_credits(struct kunit *test)
> >   	drm_mock_sched_entity_free(entity);
> >   	drm_mock_sched_fini(sched);
> >   }
> >   static struct kunit_case drm_sched_credits_tests[] = {
> > -	KUNIT_CASE(drm_sched_test_credits),
> > +	KUNIT_CASE_SLOW(drm_sched_test_credits),
> 
> Same really.
> 
> Anyway, the scheduler parts LGTM and I can follow up trying to optimise
> these two later.
> 
> For the scheduler:
> 
> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>

Thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]

  reply	other threads:[~2026-02-26 10:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24 11:03 [PATCH] drm/tests: Mark slow tests as slow Maxime Ripard
2026-02-24 11:12 ` Thomas Zimmermann
2026-02-24 11:43 ` Danilo Krummrich
2026-02-24 12:29   ` Tvrtko Ursulin
2026-02-24 12:44     ` Philipp Stanner
2026-02-24 12:49 ` Tvrtko Ursulin
2026-02-26 10:56   ` Maxime Ripard [this message]
2026-02-26 12:42     ` Tvrtko Ursulin
2026-02-26 12:48       ` Philipp Stanner
2026-02-26 13:02         ` Tvrtko Ursulin
2026-02-26 13:17           ` Philipp Stanner
2026-02-26 13:23             ` Tvrtko Ursulin
2026-02-24 13:07 ` Arunpravin Paneer Selvam
2026-02-27  5:13 ` Claude review: " Claude Code Review Bot
2026-02-27  5:13 ` Claude Code Review Bot

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=20260226-certain-tuscan-caribou-ba4c5e@penduick \
    --to=mripard@kernel.org \
    --cc=airlied@gmail.com \
    --cc=arunpravin.paneerselvam@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=matthew.auld@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=phasta@kernel.org \
    --cc=simona.vetter@ffwll.ch \
    --cc=tursulin@ursulin.net \
    --cc=tzimmermann@suse.de \
    /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