]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: apple: rtkit: Use high prio work queue
authorJanne Grunau <j@jannau.net>
Wed, 26 Feb 2025 19:00:05 +0000 (19:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:02 +0000 (11:13 +0200)
commitccafd3502ee20950ff9034a8640e4cd7913fd60b
tree7b31501aa03a498db22768dc9ccc293318c2f6f9
parent58f3c084f6b830af4e649ad9bbe95fb57a818bb4
soc: apple: rtkit: Use high prio work queue

[ Upstream commit 22af2fac88fa5dbc310bfe7d0b66d4de3ac47305 ]

rtkit messages as communication with the DCP firmware for framebuffer
swaps or input events are time critical so use WQ_HIGHPRI to prevent
user space CPU load to increase latency.
With kwin_wayland 6's explicit sync mode user space load was able to
delay the IOMFB rtkit communication enough to miss vsync for surface
swaps. Minimal test scenario is constantly resizing a glxgears
Xwayland window.

Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Link: https://lore.kernel.org/r/20250226-apple-soc-misc-v2-3-c3ec37f9021b@svenpeter.dev
Signed-off-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/apple/rtkit.c