drm/atomic_helper: Pass nonblock to commit_tail

The state comparison infrastructure will need to know if a
commit is blocking or non-blocking in commit_tail. Pass the nonblock
flag along.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20260907-drm-state-readout-v5-19-5fa1ac7a5148@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
This commit is contained in:
Maxime Ripard 2026-09-07 15:23:55 +02:00
parent 5494df621f
commit 4bc711eb63
No known key found for this signature in database
GPG Key ID: 275FCE19A23DBE76

View File

@ -2037,7 +2037,7 @@ void drm_atomic_helper_commit_tail_rpm(struct drm_atomic_commit *state)
}
EXPORT_SYMBOL(drm_atomic_helper_commit_tail_rpm);
static void commit_tail(struct drm_atomic_commit *state)
static void commit_tail(struct drm_atomic_commit *state, bool nonblock)
{
struct drm_device *dev = state->dev;
const struct drm_mode_config_helper_funcs *funcs;
@ -2095,7 +2095,7 @@ static void commit_work(struct work_struct *work)
struct drm_atomic_commit *state = container_of(work,
struct drm_atomic_commit,
commit_work);
commit_tail(state);
commit_tail(state, true);
}
/**
@ -2315,7 +2315,7 @@ int drm_atomic_helper_commit(struct drm_device *dev,
if (nonblock)
queue_work(system_dfl_wq, &state->commit_work);
else
commit_tail(state);
commit_tail(state, false);
return 0;