From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80C2C606A322 for ; Tue, 1 Dec 2026 16:39:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NqYp9LkK Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 41C6210FAD9; Tue, 1 Dec 2026 16:39:50 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2887F10FAAF for ; Tue, 1 Dec 2026 16:39:44 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 684A4605D7; Tue, 1 Dec 2026 16:39:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 074E51F00898; Tue, 1 Dec 2026 16:39:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796143183; bh=9I0BFWG4yGuptK8iiaD1QnWjBhdDfDMC9QkqKwYuNGE=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=NqYp9LkKQrPXjU4tyNFKFDMQd2x17aRxkg++nEtpvO65UpuE29Nb93u9TxE0gD/Fs +bz19TZ7iKotWObG3pX2d+WSvdf4w8efd4WSAWalo8Y+E/2ILnMPT80ls4e7g8F+Dz xQx69XfmK9hw/uoeSy35GXksvXnCOl8AAO7rr84m7GHE761vOhHKC0i4TZ/eQwLSOF /RUamutYyTsJ3WwAkl7E0LqdzEqkTy1HYmuzqEBKXE6nWtleaLO57ZlJsTF5p0DeO/ W0NOxvFbS2DYx4TVGhWD2iRmWTnodvrmN1MuKE38A4G1UV11OLq0HQVSgJLCwE4AiJ xB16t0Jt95g2w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v1] drm/xe: Delay preempt fence retries during VF migration recovery To: "Tomasz Lis" , intel-xe@lists.freedesktop.org In-Reply-To: <20261201163329.2766164-1-tomasz.lis@intel.com> References: <20261201163329.2766164-1-tomasz.lis@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 16:39:42 +0000 X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] drm/xe: missing Fixes trailer for preempt_fence_work_func() retry delay -- commit 3155005090f2e4664ec076e4e10333eb4fac10c1 Author: Tomasz Lis > drm/xe: Delay preempt fence retries during VF migration recovery > > While VF post-migration recovery is pending, the queue suspend wait in > guc_exec_queue_wait_suspend_done() returns -EAGAIN immediately. > preempt_fence_work_func() then requeues itself on the ordered preempt > fence workqueue with no delay, so it spins for the whole recovery. > > This keeps a worker busy at 100% for the duration of the recovery. > On a VM with few vCPUs, this competes with the recovery worker for > CPU and makes the recovery take several times longer than it should. > > Make the preempt fence work a delayed work and requeue it with a 100 ms > delay on -EAGAIN. The first run is still queued with no delay, so the > normal preemption path is unchanged. > > The 100 ms is enough to perform recovery in typical operation, that is > other than stress testing. During stress tests with many active exec > queues, the recovery can take longer - however, even then, repeating > the immediately exiting worker few times should not have measurable > influence on the migration recovery duration. > > Signed-off-by: Tomasz Lis > Tested-by: Adam Miszczak [Severity: Low] This fixes the immediate requeue loop on -EAGAIN during VF post-migration recovery. Should it include a Fixes tag? Fixes: a4dae94aad6a ("drm/xe/vf: Wakeup in GuC backend on VF post migrati= on recovery") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201163329.2766= 164-1-tomasz.lis@intel.com?part=3D1