Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp564512lqp; Wed, 12 Jun 2024 09:28:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0kVJGoRO7e3glPk+KDjXqgrMGgoTg/NXw8EU/LGdhEuimx2kg5JJp3hQbqBjEhImBw501qQy/MF8r4K770TH3Ue5zGx3clqBqw3JR8w== X-Google-Smtp-Source: AGHT+IH/VA2aDGuabA3JR2hSukimroruVxoMW5lf+pl5dvuLwcV/K2rbBI0MrqFPq/1gR0Hr1ejd X-Received: by 2002:a05:6a20:9146:b0:1b4:5605:dde5 with SMTP id adf61e73a8af0-1b8a9c877bemr2736306637.52.1718209695000; Wed, 12 Jun 2024 09:28:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718209694; cv=pass; d=google.com; s=arc-20160816; b=YsOkRanUUIK5UUdRL7o2bjOtaaR0F683cuaBfLNTnm9mnSwM15ZOYS8eDXGxrDrgSq sz9gEZm8ZYXrbymPP8bwGPKrGge5tD0N0gMeHzm30nqgTu23xCpuiF09RzXRUmh3beYZ XB5+kwb5D5sGemfY8Vt9oEexa3OhZ8aLCd+p+VihZpwtjmZ2U18Xfa16JcO9YDi+yWok 5KWU+PE7ErlfWWdhAFAuevOxkyK3Y7sAEer166UMb3jpZxvfiJmp9Nc8JGRl0MZgV+ZP Xf/+BPWzPkXQuPbnEMNHoXbtIXOnj8nkvbCK7hNRZt5E4Szyys9fgmJKQ6L7WH5ClPJi GY4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=i0SZO5+K4tPB3cxo/0gwk2raZmazNK3CHxiwPLuw1qs=; fh=gY0LtIZW1DrHvUpaQ8FOLi2m1wIh5fk2mckW4lL4sz0=; b=OSvtKaOdI5nGyaQ/Rkq7fpNh7F741cIQpPG4MMJYgyzQF8q7COxdhka5Gvk/SKhVn7 yp9vhapP/1mMYmKsBeA+CObtnEnIjdi+xBu2IsyQODWWeDIuuUb41VBrVZRkU98jQnoW hdb1m3sYha2GnLYX0AEbtXQhBLiDrj2JGqEuvCaRDu/wtlZqNpdEAiunEz6aUz9p7lQ2 cI3ukGtrPJsrf4A/t+2kOzscwQXBbXVRDS9jv6Hh7/J01kLtX+tAosGaIOvStCZ79C8D iPkWvrCX/AID0U9kZaSLK7XYKn1u8bao8vQfEG01vBnzcqKuXTCVhxCn2tK+zeYP7kII 14ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=kymwpd+v; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-211905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211905-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f7273a77c3si42357925ad.435.2024.06.12.09.28.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 09:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=kymwpd+v; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-211905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211905-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CC697283C3B for ; Wed, 12 Jun 2024 16:22:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 591561822CA; Wed, 12 Jun 2024 16:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="kymwpd+v" Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 8F63E181306 for ; Wed, 12 Jun 2024 16:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718209186; cv=none; b=srQZrkRb1GUc+m+PzzAydmUZSMPtb5riED5TSBL+fLAYcykpkThXvjb5rBTte0aW6E4fDiGYjjXad/D4guTH/4za9kdyQbPUnjlDSiQlSh9yWfDE855Wz3MamUKSfSoUVK6DdxHxm+69VotJFieWKQVt/olItspBXvqY+7z2lnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718209186; c=relaxed/simple; bh=M+2vZUT5HcUdHG3ExX7quMT7IPpWdDiK4UGZjycX4Jw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=joPY72TvHrK8ml6ycAXnplhFoviT3LWaCRO7yQ+QjZQQmRSa1foxLi3A0FpTMSL3p1DtggNSQIP7zpOkG80spbJXKV1aD8G8U8/GbNFayiLc9zHHlbLIAo/r/N/5xLj11CluyMS2joo+/T8L62rvfhpnwUXiVAcPFtI0sTaRIqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=kymwpd+v; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=k1; bh=i0SZ O5+K4tPB3cxo/0gwk2raZmazNK3CHxiwPLuw1qs=; b=kymwpd+vF3DiXNHscBb5 mxCTXOnHjjf5IqDv2W7HJJN3q6okTmsTrPG91WbEi5wRPih4Bn/1S752nyH5vrrS J69IpY8ljzfYG1Cs+d2bAPRiWWtNbp8VLXklh3fpKu7AUVsD22SlxXnwjxgVESy6 Ux92A3NMZHN4i7pBk1NckI2qS9h0cfQQM5bEUHx29zC2XM2JIdjxkws2D+cc12d4 XmNDMvw5gNS2gBjtoua0dT4QgPgo4Os+q8n/wDO8qzNrX2Z8G53jeSeOyyU+ZBIN Wkv04V6+PDa3YsJObiomMXXrcUEkv46SyTPAW4L3m/4v2c0D+S79eAUF4UOZIYjC TQ== Received: (qmail 868741 invoked from network); 12 Jun 2024 18:19:42 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 12 Jun 2024 18:19:42 +0200 X-UD-Smtp-Session: l3s3148p1@iYfyv7Man3dtKPIY Date: Wed, 12 Jun 2024 18:19:41 +0200 From: Wolfram Sang To: Guenter Roeck , Heiner Kallweit Cc: Armin Wolf , linux-hwmon@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?B?UmVuw6k=?= Rebe , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , Stephen Horvath Subject: Re: [PATCH v4 5/6] i2c: smbus: Support DDR5 SPD EEPROMs Message-ID: Mail-Followup-To: Wolfram Sang , Guenter Roeck , Heiner Kallweit , Armin Wolf , linux-hwmon@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?B?UmVuw6k=?= Rebe , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , Stephen Horvath References: <20240604040237.1064024-1-linux@roeck-us.net> <20240604040237.1064024-6-linux@roeck-us.net> <79f406ae-cfc9-48bb-9c80-20f998c40b69@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fsi4s3rbbehergvr" Content-Disposition: inline In-Reply-To: <79f406ae-cfc9-48bb-9c80-20f998c40b69@roeck-us.net> --fsi4s3rbbehergvr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable CCing Heiner... > > > > Yes, maybe this could be simplified to "(LP)DDR memory types" > > > >=20 > > >=20 > > > I rephrased it to "Only works for (LP)DDR memory types up to DDR5". > >=20 > > Thanks! > >=20 > > > How about "Only works on systems with 1 to 8 memory slots" ? > >=20 > > This is a question for Heiner. I'd think it is is still correct, but I > > don't know exactly. > >=20 >=20 > My interpretation was that it should work if the DIMMs are connected to > multiplexed I2C busses, but probably not if they are connected to > different adapters. The error message in that case is a bit misleading, > though, because it claims that "More than 8 memory slots on a single bus", > which isn't necessarily the case. For example, it should be perfectly val= id > to have up to 24 DIMMs in this system. >=20 > i2c-0/name:SMBus PIIX4 adapter port 0 at 0b00 > i2c-1/name:SMBus PIIX4 adapter port 2 at 0b00 > i2c-2/name:SMBus PIIX4 adapter port 1 at 0b20 >=20 > ... but I guess that is a question for someone with such a system to answ= er. >=20 > Ultimately the handling of systems with more than 8 memory slots will need > to be updated at some point. On my systems, with 'i2c: piix4: Register SP= Ds' > applied, I see >=20 > i2c i2c-0: 4/4 memory slots populated (from DMI) > [my system is running 6.6.y which still generates that message] > i2c i2c-0: Successfully instantiated SPD at 0x50 > i2c i2c-0: Successfully instantiated SPD at 0x51 > i2c i2c-0: Successfully instantiated SPD at 0x52 > i2c i2c-0: Successfully instantiated SPD at 0x53 > i2c i2c-1: 4/4 memory slots populated (from DMI) > i2c i2c-2: 4/4 memory slots populated (from DMI) >=20 > meaning the function is called for each adapter (which makes sense). > However, the code counting the DIMMs doesn't really take the adapter > into account, meaning adapters 1 and 2 are still probed even though > all DIMMs were already instantiated from adapter 0. >=20 > On a system with more than 8 DIMMs connected to different piix4 adapters > (without mux) we'd probably see something like >=20 > i2c i2c-0: More than 8 memory slots on a single bus, contact i801 maintai= ner ... > i2c i2c-1: More than 8 memory slots on a single bus, contact i801 maintai= ner ... > i2c i2c-2: More than 8 memory slots on a single bus, contact i801 maintai= ner ... >=20 > which wouldn't be very helpful. I think the main problem may be that > the i801 driver implements sub-adapters as muxes, but the piix4 driver > doesn't do (or need) that. The message is also i801 centric which doesn't > apply anymore after 'i2c: piix4: Register SPDs' is applied. >=20 > However, I would not want to even try changing that code without access > to a system using piix4 and supporting more than 8 memory slots. >=20 > Thanks, > Guenter >=20 >=20 --fsi4s3rbbehergvr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmZpyp0ACgkQFA3kzBSg KbZwAg//evDpbsM2ljwvYiweqDlQzz4eSZT31H8tqXZ5ic8o5Oe40w5dqxo9WO7h tND6TOrHdFByVlIiWD2Oa5jzz6mjI75baC2w3vF0/gw1I/hf44sbpL8dqQ0eHeic xJKI1BIiMUp9ofvEuICO9/lV7b4qApWLTJPyLheus6znhRy5mjd+vPuRjrdlcqIM Vgrs9xkurwRUhAKfb9gvix3c9uJ26fOz4QPnOL2/aNYuyIZXCI979XVwzYpYHn2A 5q6TA2OZDOdVi2YUaJu3o0hgK2qmyHV2Q6oQtU+2K+72KDdjTa8/zaLt5PR3xdnz Yb0SNXTAywDsFi50OYSBGucTcglfs3HbF5dVGr+9ZMFwgZ50ug3gIBcgJbUj1J58 W/q1AbkjoAiDzNhR+p6pmYSitMUZNSJLNgKXjgx4wrz39B1mVQ2DMP8Q6FgFLhty sWGH0xsRfPLownNx7y+RnitBngIKeWIFTnN7FYxNk1VbuWVYufPyjfzrVoShXCfO lQO1zaqylvX1T5m4Bdgsw71L42fjBZ/sbE+G+zVj8OQ13MDzHgMDie7rt4fDz4jj A0M8UV7/SeFdHWGogUSgszxD5Ye5RNnp7FLCYH6HpbXTZUZpDXOmAqPnldPQIXWn emEIX/Re0LdLTMRYTQLQENdx/ttXkNsF4Rtco3PufIMJWk2dW48= =sysT -----END PGP SIGNATURE----- --fsi4s3rbbehergvr--