Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp289512lqr; Wed, 5 Jun 2024 06:19:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQoPkqCF8fOoHSmgbVboPGUoxQAmwHDtDkeWTvtb38yiU/tgEQ3IC2XC0cA/0X5bGOFaPNAh9yjK20U6yEwxFi+53zyteuiBsJpijdjA== X-Google-Smtp-Source: AGHT+IF2v4NP+R4BK3RzD60sk8wjKBdHiW3jTK25N3e9iQfYnxvM4SEbsgyBqp9lw0Nd/ybtypfd X-Received: by 2002:a17:902:dac9:b0:1f6:1c72:955f with SMTP id d9443c01a7336-1f6a5a5ca77mr30316405ad.43.1717593546475; Wed, 05 Jun 2024 06:19:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717593546; cv=pass; d=google.com; s=arc-20160816; b=T7RCGq5nVkAXX6Tb390OiUNFhquXAJUArmtfHDdDpoabwUaxdUWghNAlR571Ud+wr5 2jHv/qtp8a9r/R2ONXrAN95FNE24a098j113YGRMT4m0c3LB3bKZy8MyjiLJuaJeHB+h RGinzyXe59g6A/R3OAx86epS59fgAkljMj7rNBhpk7s13Ree0D2jFqJVAlo42IMXf33r 6hIY9iM9e+veSg6K+MNzrQUn5WNxdGyyB5Qe78VmfAkxcDSl5SI9WqQ9eLoIlfXlUo8A R/D60DZXOevwZHWFoluy26+yo4vQCco3kvY18Y4py/R9llgBBU6ryfFhbZVJ9ErA/kf/ YzMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=S5THWU1N6Hy2ZqabMFB0Wp+r0RxtD9PZXjopIWqQ5AA=; fh=kTmEounKRcKqR6DwV8eYhN///RiVtGm7cyj4BCtsZ9w=; b=JASx6AHkVldKCHzgFiozlTjW9iqv4mLhH8j7xOH3aX9eDsFjK8UTM/4/ZC/TiMBmxy FNBuFtVZ2rETtZEyhy/OQ1T4A3W0VXVvDcpr2oleF3PsAZHh9VA5NY6NRhX/JzehNcl/ IBH8D3DES6t+22iXHCSEh8/sQXi1MHuKV6A5tVg9nSxBznX3DW6dlAupFG0LEA00/E8P TjRNIIMb15dUgun7MFLgHpYMhSw+yp4IZcoRAvvBGz9amXTQZwbjRXeyYlx8DcnGqY2r sf1+vdR4AYLKCplJVAjZYFqjLIAWGo70yxy3+5MeXOeAZKlKJdSiy4qFbv4RsR1pDWhm I65g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-202592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202592-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-1f67f939f4bsi50728965ad.16.2024.06.05.06.19.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202592-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; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-202592-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202592-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 5A12A28747C for ; Wed, 5 Jun 2024 13:07:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0168C1BC081; Wed, 5 Jun 2024 12:22:46 +0000 (UTC) Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (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 EF6C619A2AC; Wed, 5 Jun 2024 12:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590165; cv=none; b=BNCLUxjGR/A3prG7S0KDCqG0vpg8k11KhsW77YrzjUjtS+4BvZGb/JAYBNOmHus2+nPuq5Rwk2TrC6hjlHrM8yUHLUmPzKPnAwEX/j1tbc4wbAE12LbKt0KsFh8bTSyZ2yAYyzVVTbbDJJSu5yoC33KchvQPRQrw7HVWUpA4eXs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590165; c=relaxed/simple; bh=hRjmhe9Ngf0wmEAJSQe3o0q7qinQYcgJZNR83dg0CPM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IVT3m58Bf/FK0HAQQZYSVSAJ/XfogoyvfMpW7E2HDjcpyLlIh/MwmShKivm01yhcDT//Q4yAm/T4Ems1+dhnnIBpny6dMwnPBDbbX1iLcE8amSk3M62Sb60T+31T0X4iu8VrSdmh8xgS7dUvBDZHSLSPs0i3MoUnhvpT1IY0KYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [141.14.220.45] (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 91EE561E5FE05; Wed, 5 Jun 2024 14:21:51 +0200 (CEST) Message-ID: Date: Wed, 5 Jun 2024 14:21:50 +0200 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: Guenter Roeck Cc: linux-hwmon@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , Wolfram Sang , =?UTF-8?Q?Ren=C3=A9_Rebe?= , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Armin Wolf , Stephen Horvath References: <20240604040237.1064024-1-linux@roeck-us.net> <20240604040237.1064024-6-linux@roeck-us.net> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240604040237.1064024-6-linux@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Guenter, Thank you so much for taking this on. Am 04.06.24 um 06:02 schrieb Guenter Roeck: > Detect DDR5 memory and instantiate the SPD5118 driver automatically. > > Suggested-by: Thomas Weißschuh > Cc: Wolfram Sang > Signed-off-by: Guenter Roeck > --- > v5: New patch > > drivers/i2c/i2c-smbus.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c > index 97f338b123b1..8a0dab835761 100644 > --- a/drivers/i2c/i2c-smbus.c > +++ b/drivers/i2c/i2c-smbus.c > @@ -382,6 +382,10 @@ void i2c_register_spd(struct i2c_adapter *adap) > case 0x1E: /* LPDDR4 */ > name = "ee1004"; > break; > + case 0x22: /* DDR5 */ > + case 0x23: /* LPDDR5 */ > + name = "spd5118"; > + break; > default: > dev_info(&adap->dev, > "Memory type 0x%02x not supported yet, not instantiating SPD\n", Testing this on top of 6.10-rc2+ on a Supermicro X13SAE, Linux logs: $ dmesg | grep -e "DMI:" -e "Linux version" -e i2c-0 [ 0.000000] Linux version 6.10.0-rc2.mx64.461-00036-g151dfab265df (pmenzel@foreveralone.molgen.mpg.de) (gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.41) #74 SMP PREEMPT_DYNAMIC Wed Jun 5 08:24:59 CEST 2024 [ 0.000000] DMI: Supermicro Super Server/X13SAE, BIOS 2.0 10/17/2022 [ 0.000000] DMI: Memory slots populated: 4/4 [ 5.434488] i2c i2c-0: Successfully instantiated SPD at 0x50 [ 5.443848] i2c i2c-0: Successfully instantiated SPD at 0x51 [ 5.450033] i2c i2c-0: Successfully instantiated SPD at 0x52 [ 5.459378] i2c i2c-0: Successfully instantiated SPD at 0x53 Then with `sudo modprobe at24` and `sudo modprobe ee1004`, `decode-dimms` shows: $ sudo ./eeprom/decode-dimms # decode-dimms version 4.3 Memory Serial Presence Detect Decoder By Philip Edelbrock, Christian Zuckschwerdt, Burkart Lingner, Jean Delvare, Trent Piepho and others Number of SDRAM DIMMs detected and decoded: 0 This might be expected, and `decode-dimms` also needs to be updated. Kind regards and thank you again for these patches, Paul