Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp473367lqp; Mon, 10 Jun 2024 09:28:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIeQ/DxFMOq2Dwrap0TDwVe7c5s9owUg0zZij/rLWt3W8QzeTipX3EmmBbv3PHOplC406Og9kolYCBP5Jg4XHxI2VgA/rwRTp+hyL4ZQ== X-Google-Smtp-Source: AGHT+IFbg8SoucxVG3Y7MGaR6NNzqUIgLmXsMXLWx0FueFZedqdCHO/xfAX4prMSbq6kNWkZN7S0 X-Received: by 2002:a17:903:11ce:b0:1f6:3b15:82a0 with SMTP id d9443c01a7336-1f6d03f13c7mr105666675ad.64.1718036896411; Mon, 10 Jun 2024 09:28:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718036896; cv=pass; d=google.com; s=arc-20160816; b=qT2JTFTuSRLf3lnocXjRwFMWbvj6jUStN5LsLRYWmLAJQiZPaZ8fHD8ShwvVk8UL3a 0emQe37eJhLoP7rtbeKgtrCytu0ox/E9OY0T7X+DGNWdTj15auuxX7wL4OfYUMr/Ld9c 5t/+3o/wpI1S2Qo73lLQDoIGlk12LBoxqsrNEuUeajbt7FLOcmLpFysnPEEnH61JqRwf BcrYQtWievrlfMLyCt9dO/cyd9jaukg50Y/KqtR00FdOpHgq3Idyph7laUvzhHCHmd2F C1+X7phnV26sf7/o3014xNzjSCQxPwinkLzQ+HkCyIHMEyGqt7mm+SMoWp/w9dSIQJyM BQKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=/z9wCsj/Fmg2uAjDDnmr4Npa382kmTNiC957TY/YawU=; fh=SICuaLpQm4+V1C4gkHwYZfhL/ocE7rNxG6PovgA0aMc=; b=z2X14clXP4l2It3yeXNq/rPwPWbwepP5HECDuvKMZfGH0guLcoVypiJEwR4DiluaUD yUeyHMZ2UdvjXpi4qKnaKiDoADc0DkLBWUWWFH/eJaJfqxVABGIXi4QVyU2Nu2DhMmRd 1E16/gbyBhRoWNrSBZIZFUt4n8elsH8okrz2EUIlSxaPdnhQ01RqSuxdlKQBKFt9Vll6 CdraAqZsYDXZDfS9NTNS/zfE6yjJgzfIVYSzZuoVOJzwBsv3bQRqJK/cm0vC6eCsoy8E 9vlQTCSnHnEOdCgIS24rB2urSbJ8Q1OGy32y3tAvh/LRqXabjRjmg4G7pfCy/HhdNKmH HFbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IkZiEQhb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-208518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208518-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd818e04si51061735ad.528.2024.06.10.09.28.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 09:28:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IkZiEQhb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-208518-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208518-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A8B17B2D1AD for ; Mon, 10 Jun 2024 15:55:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD7B414373D; Mon, 10 Jun 2024 15:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IkZiEQhb" Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E2C0142620; Mon, 10 Jun 2024 15:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718034931; cv=none; b=kaOgkI1q4bJgn/QMVukabk2owg0TsnSQEVrVqz4UOiurE26panj7m3iq3PNi2C+I/H196Bap686OeodkqS1h1/D3azd2Fgbe5XvG7nAyDiULEfPGFuBjmgM6TLAlqUKpwFyBcnGPbhKD/OxVVUnC71l17qFavOPl+tfqd37bEOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718034931; c=relaxed/simple; bh=0UAOy9iN/3VaU4DeCVfVA/APVIl8ZsWFbJBPb0K/yFg=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ea2mYxyD17DJDJuMhX08l4bRWErL5Z5oXOJbO1X410vKsp59ubKyhzs7z8u6lf7S4hYwNjMH/onJR1vQ9acRscJjfcNPTEnP7M+cX5B9yKh3nNCcv3KqV7uinfeKpn1LYyX8Hf2ZyEMcT6YDyv6TmMSRqd6RZvFOvpotz+LRJm4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IkZiEQhb; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2c195eb9af3so90548a91.0; Mon, 10 Jun 2024 08:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718034929; x=1718639729; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=/z9wCsj/Fmg2uAjDDnmr4Npa382kmTNiC957TY/YawU=; b=IkZiEQhb46XInDECwqc6gS5Gyov6o45EvOuQMSlP+E2ujZBoET6b2U9MWm0MOny7Cc Pv/MoNB4fXt/gyrCIF8ZbGWUHquzOr+8qP0MaI0MDh6y/I4pdetrRWVnNlZwDq2N3ahi AkQXxnZccpUvsbXwuQvQzZ8KvwBaNC3iSTYdZdhHcb79gV/YixiNsXvn0tar7PxQ423Q WQePT4VUh6bCXg/1uIa0mfyNdNJqUiLboenkyr95OVpwLQ7Uodkd3Mo8Jkgx0/Kgx+CD tJ5R68P306QLQo1Pnp811pYwhFw+88Gii69oyb/irPO1eiPV2rzXnJsF5n0a4f+Yobt+ 7qwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718034929; x=1718639729; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/z9wCsj/Fmg2uAjDDnmr4Npa382kmTNiC957TY/YawU=; b=Io9n6FjVrO4DASRxGhizX/+vk5VyNQHAz24Q6Lg77mb/VYEUHgpBiRwdDqzD5A1mW7 sVWTFtBjb71CT3KKcWxbWl0pvkGIq9tZl+Hdge+3yI12CvrVUlGPgVTzt5/Rj5OcQdEG 2aRm1YFpevyh73GYire51RWZbRPqlF9Sb+k9gk3k/8+Ld1EPhs5IU61XHi0+ychbQtUA DZJyfagG5TDBgEBRpqakkN+pJWp3B+DZkU0zYPhHog61gAjeCQoj69Q8zHvPfj+Aw9+H FcpHXl39h8Lvuw6fqEllW1MxLgZjlbR5L/60YGuv5P/ufIQ/XZh1NArmoeApy1a1vhIZ fgKg== X-Forwarded-Encrypted: i=1; AJvYcCVabRk0z1OxEXrRBNdiNpUC4Q83/m8gf3gxGI/2UcnctxTaHN1J90Aalu4tbF6doA+YCjG7zONQLxDoo9nnb2Idsb1HJBdRzF0J5hG2hKJ+wg22h9K0+tANPnWlJ4aaaXTKuASRFZbTR+bbgxLNWvgt/MJ2m0AmngSoFDEY05egQmimM3pAlr4WUGOO56CDMDN7PsXerhjdxEwtZsugvZEd X-Gm-Message-State: AOJu0Yx17+QkljLer8MX9Dr/+BoKwUI8VvvKWCmfat+duQUkFE6iktkz hpgACWRUhAaLc/0+cSKmVi7xWGD9ym2S7E9T/qbvz4g8gyot/HRD X-Received: by 2002:a17:90a:f98d:b0:2c3:7e3:6be0 with SMTP id 98e67ed59e1d1-2c307e36c7emr2895674a91.31.1718034929238; Mon, 10 Jun 2024 08:55:29 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c28066d573sm10747274a91.17.2024.06.10.08.55.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Jun 2024 08:55:28 -0700 (PDT) Sender: Guenter Roeck Message-ID: <79f406ae-cfc9-48bb-9c80-20f998c40b69@roeck-us.net> Date: Mon, 10 Jun 2024 08:55:26 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 5/6] i2c: smbus: Support DDR5 SPD EEPROMs To: Wolfram Sang , 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?Q?Ren=C3=A9_Rebe?= , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Stephen Horvath References: <20240604040237.1064024-1-linux@roeck-us.net> <20240604040237.1064024-6-linux@roeck-us.net> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJ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VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/10/24 07:52, Wolfram Sang wrote: > >>> Yes, maybe this could be simplified to "(LP)DDR memory types" >>> >> >> I rephrased it to "Only works for (LP)DDR memory types up to DDR5". > > Thanks! > >> How about "Only works on systems with 1 to 8 memory slots" ? > > This is a question for Heiner. I'd think it is is still correct, but I > don't know exactly. > 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 valid to have up to 24 DIMMs in this system. 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 ... but I guess that is a question for someone with such a system to answer. 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 SPDs' applied, I see 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) 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. On a system with more than 8 DIMMs connected to different piix4 adapters (without mux) we'd probably see something like i2c i2c-0: More than 8 memory slots on a single bus, contact i801 maintainer ... i2c i2c-1: More than 8 memory slots on a single bus, contact i801 maintainer ... i2c i2c-2: More than 8 memory slots on a single bus, contact i801 maintainer ... 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. 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. Thanks, Guenter