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=1796157008; b=1r/DzSx6O9j8Iga7HXnAyMZGeul8PCpKgKEluTW7gkKkfr/kookHzFLTvFtH9tawu3+5 zRilCPJHoTF9zhbxt8goBChcemNbsh1Prcq6bOCKcdx8/Mj453mDBWNvuylf6Nzvv49Jz FGqMJS54UX3UhgbUEW2xg2CG1kmqDRzqgWJwIAmIhpkJ5ynw+Xs7Jk1x0IFmENXKf4qgG iNk3THGFCkj1mlHhYarxiiIo4gAE/JAfbofOUQoGKO1X1WNXHyn7WuBK4sKyw7S3CJ3DB 94v/MhDFH9d8NJsd2UoggDHpMWkEl8Cn2dMSKf1OzuSYqjPYyBnSCXWD8uusHIe6lgA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796157008; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:Cc:References:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=mLdv6E+L9nb/Whpt+kYh4jQBkIu+WUlw7tQdMe6ksWs=; b=R4idRFSHD4EDY5ySn2ORcmRx8M/L6AR90lgmzbVfD04TcKhZvYzk8q5DVSj0ptrxmzRP ad46tblai/AZgC8hIiyUp2n72Ps5xrB/yngqzyF+3R3GcuvLKf9Xn9ymFQxmZiLMXfsil O2KVs3HUIF9Tbs9jf2zn5BX61Pt3nDZiJG1j6HW4AAj6XI9mF+2fTqXeOBcdtCAeDfniy tKKMWdI3bZ849mu7k0hXFt95jSDo6hUnWruQK++4PEsnQ2AEY+j0eYtzyIaLn0/NyEUek iSdpcpmEfr0FVl5gB7LyyMjk5E0Iseys1bYhWnedy1uLvwlyuKh+q8x5uvAMAgOyv9A== 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=BvtCoxHT; 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 78BDF606A31A; Tue, 1 Dec 2026 20:30:08 +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=BvtCoxHT Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCE611F00897; Tue, 1 Dec 2026 20:30:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796157008; bh=mLdv6E+L9nb/Whpt+kYh4jQBkIu+WUlw7tQdMe6ksWs=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=BvtCoxHTklsNiAonbkos5u9Kuz1LpsVS9GgDd6Ao7+ULQJShbnZ1OB/sIxiVD+30K Mw/Rxp6Gi4oyrOJRAV1HD2IPZU+hxrEXhkflz4/+ynuPEswwtXg1OAtTxph2TeXszr pjntlLRys2m5imn3NN8IxQ3MIGEDKOJ/4D4YXzICNwY8ZpxP022nKc/hDMfkuI3XbK Gxv8MN5MTbBI3ws2CDiU2SAwuKKyUKqoHPcovABmbMCXLme7jMVAUxZ9tFSY5uhdn1 N7K5ZbHyWif/0x372I1SBgwU3KseQ5L5UyvXpEgfQanvj8w46Vlj7Imf1Ir1k6kcxQ ahr2VIjGoujVw== Message-ID: Date: Tue, 1 Dec 2026 14:30:06 -0600 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] i2c: piix4: Reset AMD FCH SMBus controller when HOST_BUSY is stuck Content-Language: en-US To: =?UTF-8?Q?Yannick_Vo=C3=9Fen?= , Jean Delvare , Andi Shyti Cc: "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Shyam Sundar S K , "stable@vger.kernel.org" References: <20261130-piix4-fch-reset-v1-1-b19497ed5514@beckhoff.com> <7a7e8d26-6f3d-4b79-ade0-f68ab447fb17@kernel.org> <8db7978c30414489894930948e438a36@beckhoff.com> From: Mario Limonciello In-Reply-To: <8db7978c30414489894930948e438a36@beckhoff.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/1/26 06:54, Yannick Voßen wrote: > Mario Limonciello wrote: >> I'll pose what I hope is the obvious question - why are there two >> masters on the same bus in this design? And do you have full >> control of the second master? > > The second master is a microcontroller on our power supply module. It > is a slave to the host, but it also talks to a battery on the same > bus, so it becomes a master for those transfers. It runs our own > firmware, so yes, we have full control over it. > >> Is that master following the arbitration rules mentioned in the >> SMBUS spec (https://www.smbus.org/specs/smbus20.pdf section 4.3.2)? > > Not 100%, thanks for the pointer. We will go through the firmware and > try making it fully SMBus compliant, then run a long-term test and let you > know whether the hang still shows up. Sounds good. > > Even so, the host controller should not end up in a state it can only > leave by rebooting, even if a second master misbehaves. If our > suspicion is right, the FCH sees a collision on the bus, but instead > of aborting the transfer it stays HOST_BUSY until reboot. The patch > only adds a way to recover from that state. > > Would you prefer this recovery as a quirk, e.g. DMI-matched and > limited to affected boards, instead of enabling it for all KERNCZ FCH > controllers? I'm happy to rework the patch either way. > IMO - Let's wait until you have your microcontroller firmware fully compliant and then decide whether to adopt tech debt and what form it looks like.