From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B95912110E; Tue, 27 May 2025 17:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748367234; cv=none; b=o9+sqoi80hhrRPKnbt3ja5lvTA1md763cxVza+HNIcTW6ByE5SLbSmY6V0ofM+BnHrLuhK5jI+K2Gg9ae4pVHbCss7r5grPHGf/ZwurL8WbOATeJR0LlMGTDlKVrDeV49lbaUHErjq8D4ON1g88o2G3Z70Ft2653i5VAHDE8BRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748367234; c=relaxed/simple; bh=xZUICC0BehkR2YVLgiEQoeH76jFh6jHtTt1ueKVwtjE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s6vUzYpiy+FrhtE5M72Cg3zHo5ODph23StOjCVzHS0FlBxReH1ZeeDOaL9OpCymqNARJ9jt1Lugeux12LE/WyNuMuoe7pzcdbHyTeRBT4Q2GSHyS6tXnmnM2sE536cTtZx/jWMHgDajdD2aU/uNoTziIohUMTOmnSZvDvN8uiSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mS8M2CNd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mS8M2CNd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 268A0C4CEEB; Tue, 27 May 2025 17:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748367234; bh=xZUICC0BehkR2YVLgiEQoeH76jFh6jHtTt1ueKVwtjE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mS8M2CNdPHvQPeq055cc/R6wBIjYJYMww9k3MVAe9fFo4kigd8P30KHxUVqCZ26FA tu+fX0+ki7pTfyuxohRN3x5jB2lcb5J5c8IOL3F3bJw5fHoQ4i0e6REZuk2tg8f22W 0zR4wOu/iKMx3UhvYnpqkXUn4bYti82XTVS6zhrk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Janne Grunau , Alyssa Rosenzweig , Sven Peter , Sasha Levin Subject: [PATCH 6.14 322/783] soc: apple: rtkit: Use high prio work queue Date: Tue, 27 May 2025 18:21:59 +0200 Message-ID: <20250527162526.172812032@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162513.035720581@linuxfoundation.org> References: <20250527162513.035720581@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Janne Grunau [ 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 Reviewed-by: Alyssa Rosenzweig Link: https://lore.kernel.org/r/20250226-apple-soc-misc-v2-3-c3ec37f9021b@svenpeter.dev Signed-off-by: Sven Peter Signed-off-by: Sasha Levin --- drivers/soc/apple/rtkit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/apple/rtkit.c b/drivers/soc/apple/rtkit.c index e6d940292c9fb..00d59a81db88b 100644 --- a/drivers/soc/apple/rtkit.c +++ b/drivers/soc/apple/rtkit.c @@ -667,7 +667,7 @@ struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie, rtk->mbox->rx = apple_rtkit_rx; rtk->mbox->cookie = rtk; - rtk->wq = alloc_ordered_workqueue("rtkit-%s", WQ_MEM_RECLAIM, + rtk->wq = alloc_ordered_workqueue("rtkit-%s", WQ_HIGHPRI | WQ_MEM_RECLAIM, dev_name(rtk->dev)); if (!rtk->wq) { ret = -ENOMEM; -- 2.39.5