From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796025573; b=Yfm7pORYVrrhlD1RLH3Wu13j10jYElwJkwFyuiLHkBBqDRxn6Kd18JfDIu5Bp3eD4dKY wzY59AY6MDCw5NyqTOY09ErENN41VCUpa1A+jcup//s+qkAhFBrGaDlV8203LdcyG2fuU CuNh8iMwXr0ZQT7yuvpQHVDu8EVnSOhbmpltoL6d0TXi1pLoqO78QfUe8nuNZj/jnXhI1 kdeuahzENpD8cmuoJXDTZ8Z4zcahgzfqPsTLYj0NY0l/d2RDsmsEUQFFlq0CgDwKe3/MX F1d7zdR1o5GuiUJmI83oaQVe8nKAvjt4+HPfrU/b9vVwMSFvgPVWFUhEPGKgPUXJ5cg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796025573; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=AV5ykGG2nQbTrRcUn374GlQYV6wuzi+PtI64oR9p6TM=; b=M3GBB+JP+s1f/zK4Lx9ACkYbY4bTAwJ3zGdqN6QpUL9Z/rEjq5v7Z6V/C1tKS1FZHAUb cq1Av9F10gMoYnqUpfm90AUZt76EPTzlKSy7+vnAzWTJHxzCKjMXyQs1LN+aMERIdpcbX lMCVfiy7OZGnah0Wptq6vM/3nSRF9v0MquOEnUKWJbE/60rrd3oZ9HcB6XxeGJEOFtuAk SyMGSJWXJrECOPivEJh2HrAHLj5rx0htts4gZsToWs8LH5m6ppVQPTMyhp6PZ93U4sWJl cPcKy71GiBn5hEIy6WT2J45aH0J37y7CW49IFWxOt5IRiH3MXmU7/0iO1Uxj0ov6+HA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=O20eDgdw; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 622E0606A31C for ; Mon, 30 Nov 2026 07:59:33 +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=O20eDgdw Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8F221F000C1; Mon, 30 Nov 2026 07:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796025572; bh=AV5ykGG2nQbTrRcUn374GlQYV6wuzi+PtI64oR9p6TM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=O20eDgdwTH7Kx4JdX+owPRx+4KdGmU9Fyl2CKeUmuNEHy+DhdIgMuuQG6C1UJaEpD t6HPYfQ++ugn1tTz/A3jBSxuIq78f2hUXCSdhPZGe7zpousFAqVcbLnB4+dburIyJB 8a8qBuYTed22HEBVeEetUuBPtUEtUhH/QRBZLA5bZDmcoldXfqJJV2ERNJMNWM+lb+ m9L6xmJP5t1LraxD5/pqN6exz3OjD6RDmPiHOYnG1DCLyydsQ1V5x/yZ2QVTT+ZEZ+ +lhkEny9s7zxOOwADiM2EMAz8gvN3E+/kM6C7pR+yAUMk/P+KG0/nkGJPamIobtlEt /+STnO7Vh3Mjg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] PCI/MSI: Retry a mismatched MSI-X message once during restore Reply-To: sashiko-reviews@lists.linux.dev To: raoxu Cc: linux-pci@vger.kernel.org In-Reply-To: <86A15F7DC608A2E9+20261130075042.726555-1-raoxu@uniontech.com> References: <86A15F7DC608A2E9+20261130075042.726555-1-raoxu@uniontech.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 07:59:32 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Xu Rao >=20 > Repeated S3 cycles on an Inspur CE720F2 with a Phytium D3000 CPU > leave its Renesas xHCI controller (0000:04:00.0, 1912:0014) without > working interrupts. The keyboard and mouse stop responding, and > newly attached USB devices cannot be used. Manually resetting the > controller restores operation. >=20 > The failure was reproduced on UOS 6.6.0-arm64-desktop, revision > d7bafad345e0, build #5. >=20 > The affected kernel already includes commit 231c7a57d193 > ("PCI/MSI: Enable memory decoding before restoring MSI-X messages"). > However, inconsistent MSI-X message readbacks still occur after the > messages have been restored. >=20 > Read back each non-virtual MSI-X message after restoring it when the > device is in D0 and its PCI channel is online. If the message differs > from the cached value, retry the write once before restoring vector > control. Skip the readback when the PCI channel is offline, consistent > with the existing MSI-X programming paths. >=20 > In an earlier diagnostic run of 500 S3 cycles, nine initial MSI-X > message readbacks differed from the cached values. All nine matched > after one additional write. Subsequent testing of the single-retry > approach completed 1000 S3 cycles without reproducing the failure. >=20 > Signed-off-by: Xu Rao Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/86A15F7DC608A2E9+20= 261130075042.726555-1-raoxu@uniontech.com?part=3D1