Skip to content

Commit 9ce23f3

Browse files
committed
soc: apple: rtkit: Use high prio work queue
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>
1 parent 6857e15 commit 9ce23f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/apple/rtkit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
695695
rtk->mbox->rx = apple_rtkit_rx;
696696
rtk->mbox->cookie = rtk;
697697

698-
rtk->wq = alloc_ordered_workqueue("rtkit-%s", WQ_MEM_RECLAIM,
698+
rtk->wq = alloc_ordered_workqueue("rtkit-%s", WQ_HIGHPRI | WQ_MEM_RECLAIM,
699699
dev_name(rtk->dev));
700700
if (!rtk->wq) {
701701
ret = -ENOMEM;

0 commit comments

Comments
 (0)