Re: [PATCH 1/2] drm/sched: Guard sched->ready with ACCESS_ONCE()
From: Danilo Krummrich
Date: Mon Jun 29 2026 - 08:10:28 EST
> + WRITE_ONCE(sched->ready, false);
Don't we need smp_store_release() here and
> + return READ_ONCE(sched->ready);
smp_load_acquire() here?
Also, what about drm_sched_init()? It also seems that this is accessed from
amdgpu without the drm_sched_wqueue_ready() helper about a million times. :)
$ grep -Rin "sched\.ready" drivers/gpu/drm/amd | wc
$ 119 544 10320
There may be false positives, but from a quick glance at least most of them seem
to actually come from the scheduler.