Message ID | 20221107160602.1912225-1-clabbe@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2144342wru; Mon, 7 Nov 2022 08:09:21 -0800 (PST) X-Google-Smtp-Source: AMsMyM45vLzB2lQCrXXRdt5m2Z5cUyaji5fVqTZopuEV9pV9OovuKn8Fd86YtaKvrWXh3iwaNitg X-Received: by 2002:a17:90a:b8f:b0:213:c985:b5e5 with SMTP id 15-20020a17090a0b8f00b00213c985b5e5mr47757712pjr.57.1667837360921; Mon, 07 Nov 2022 08:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667837360; cv=none; d=google.com; s=arc-20160816; b=M27imF8EtoImWueQ7G+JqcMO3zOweK9YXwx+A5okcSswkTkbYRf3mJT7jPXre1/vP9 t+kVv9OxR3DJTM4mT+jHRw+aUUvfsGUa/+4hSy4w/zNDMHTjPSqB0SDfsqlQV55j+wSR gX08kCfx2WSYJ34jxLW99mV4cM4DK15ENknxfCcGcERgxK7s7GXNvJ0TM8q7+acfldR2 Prv0XQyg1qzBYRqDfQ1Ll0FdN7RtoouTPfaSJ5HJQ1wIuil3DNSdJRwF3GSryMXi41rp 4QaxdDwR0bwniiBeGIgPRolnyWY/GbWkjSrkSAbUHjOcLW9Hi2nDUQc6XAJK4NC9i4AS BOxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zKkGanfErhlV5mHrMqbRP0uwulJPPEG7DEmhVp/Qms0=; b=mNRRCl3sTx8zD7Al3aQ6wuvlxqiHjglO7EXs3jOtUR840QHWpanEaAfGPxq9ZO4tTQ 35S8jNbaWHaFOvVVtnLMMqUc740ae+NGvzX991DDftQnWv4k8UMVURaAAgGDt49EXWVz hvKYukbNb0UBI9Tjok+Dv4ctygJRDEZj0JvV2RacA8SDgv0z8cQgrxWs0YIfJwmxRy/4 Mtm9SUDUVUXKrj4lPNymQP5xl8xQXywOYR0QnZL4HN2B4RYemQLgVmqWotpmb+b/pJch Kzs1/KD7OETM701cDKo/O3k4yOw56L8ulmiCm8udGh5ibSpblKdRV6JW9iVTnBjgf8R8 8LmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=etjpu8zE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd33-20020a056a0027a100b0054252c63d75si11178189pfb.98.2022.11.07.08.09.03; Mon, 07 Nov 2022 08:09:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=etjpu8zE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231790AbiKGQHL (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Mon, 7 Nov 2022 11:07:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232677AbiKGQGX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Nov 2022 11:06:23 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5742C20379 for <linux-kernel@vger.kernel.org>; Mon, 7 Nov 2022 08:06:18 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id m7-20020a05600c090700b003cf8a105d9eso7440036wmp.5 for <linux-kernel@vger.kernel.org>; Mon, 07 Nov 2022 08:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zKkGanfErhlV5mHrMqbRP0uwulJPPEG7DEmhVp/Qms0=; b=etjpu8zEt7ZExNWzH7ZrOo9UVdycXv8AO1R3ZfiZbX/Rm6pFVwow+68LI8VWzIold/ 0GJqZ3vAozWmZItmLR8jZzhEXmMLRTqyUcEM47XL5VJIqFcGbjemJWsUETVrHpkwVgKJ oGFC4W+H4CizP6hj3LAvlkQkREaGFUj/OpzDrxCYeXippBCB3kptadn65tcB7GCcGcE9 imzLaSOKSnc0OoJPNKF8KoEcdLEIN1LlGQJxwTriTVwF7ccbYyWTyJN5qFwQtaLwUnze mRsWpIB3K2Hd2KK6m2U2LY5f1oCVR9ZqNvVlSOOLbi5kO0BKxay3k9sjeLFxRQYwaMZL a3dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zKkGanfErhlV5mHrMqbRP0uwulJPPEG7DEmhVp/Qms0=; b=AHA1w1KivsAI/Oh87bGnXncAHTUf7N9oZjiAf6aBdBh73U43pe0Pr8E1bV7hqVf/q6 skk1DDEvngfbQ2rM3jQPBdc8YmdaDsAA89bY8T1BByH7VD/dm/Edgr9APr3EyfcsYjDl ZeEV1BNHZrWjXsVMWkH4HuunADqAuMO8sTLFu7LrGEoP5h2um2+bhq4iv8x01o7hZuxF R5xQyjhccfbuAq3LXDgi7IjFh1n5XJFGbROO/jNIflxxdMpFNCNVFGT2SDq4Dmqo8Nhj JbY+F5dm8FtEavlUhKacq03OsCLme6ynhRiLoPLyaZROyJoPqsF/NUF/jRKf59TtLTgo xHoQ== X-Gm-Message-State: ACrzQf0mJ100v/vsmMtU4MZ/Lx0W6hVUP9O6SBP9bitZp4zesT8SHg7V DR8Vmt1AoAz/WPwP9t0gGwJ3qg== X-Received: by 2002:a05:600c:3781:b0:3b4:63c8:554b with SMTP id o1-20020a05600c378100b003b463c8554bmr44226823wmr.25.1667837176906; Mon, 07 Nov 2022 08:06:16 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id bg20-20020a05600c3c9400b003c6bd12ac27sm9183347wmb.37.2022.11.07.08.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 08:06:15 -0800 (PST) From: Corentin Labbe <clabbe@baylibre.com> To: wsa@kernel.org Cc: jdelvare@suse.de, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe <clabbe@baylibre.com> Subject: [PATCH] i2c: smbus: support new RAM variant for SPD Date: Mon, 7 Nov 2022 16:06:02 +0000 Message-Id: <20221107160602.1912225-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748854228730812406?= X-GMAIL-MSGID: =?utf-8?q?1748854228730812406?= |
Series |
i2c: smbus: support new RAM variant for SPD
|
|
Commit Message
Corentin LABBE
Nov. 7, 2022, 4:06 p.m. UTC
On my x05 laptop I got:
Memory type 0x12 not supported yet, not instantiating SPD
Adding the 0x12 case lead to a successful instantiated SPD AT24 EEPROM.
i801_smbus 0000:00:1f.3: SMBus using polling
i2c i2c-6: 2/2 memory slots populated (from DMI)
at24 6-0050: 256 byte spd EEPROM, read-only
i2c i2c-6: Successfully instantiated SPD at 0x50
at24 6-0051: 256 byte spd EEPROM, read-only
i2c i2c-6: Successfully instantiated SPD at 0x51
And then, I decoded it successfully via decode-dimms.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
The result of decode-dimms could be found at http://kernel.montjoie.ovh/zoo/x05/decode-dimms.txt
Since RAM is DDR, I wanted to add '/* DDR */' comment, but I didnt find any document with
proof that this 0x12 is for DDR.
drivers/i2c/i2c-smbus.c | 1 +
1 file changed, 1 insertion(+)
Comments
Hi Corentin, On Mon, 7 Nov 2022 16:06:02 +0000, Corentin Labbe wrote: > On my x05 laptop I got: > Memory type 0x12 not supported yet, not instantiating SPD Oh, that one must be old. > Adding the 0x12 case lead to a successful instantiated SPD AT24 EEPROM. > i801_smbus 0000:00:1f.3: SMBus using polling > i2c i2c-6: 2/2 memory slots populated (from DMI) > at24 6-0050: 256 byte spd EEPROM, read-only > i2c i2c-6: Successfully instantiated SPD at 0x50 > at24 6-0051: 256 byte spd EEPROM, read-only > i2c i2c-6: Successfully instantiated SPD at 0x51 > > And then, I decoded it successfully via decode-dimms. > > Signed-off-by: Corentin Labbe <clabbe@baylibre.com> > --- > The result of decode-dimms could be found at http://kernel.montjoie.ovh/zoo/x05/decode-dimms.txt > Since RAM is DDR, I wanted to add '/* DDR */' comment, but I didnt find any document with > proof that this 0x12 is for DDR. It is. The document you are looking for is: https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.6.0.pdf and specifically section 7.18.2 (Memory Device — Type), table 78 (Memory Device: Type). > > drivers/i2c/i2c-smbus.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c > index 07c92c8495a3..6dca19c994db 100644 > --- a/drivers/i2c/i2c-smbus.c > +++ b/drivers/i2c/i2c-smbus.c > @@ -362,6 +362,7 @@ void i2c_register_spd(struct i2c_adapter *adap) > } > > switch (common_mem_type) { > + case 0x12: > case 0x13: /* DDR2 */ > case 0x18: /* DDR3 */ > case 0x1C: /* LPDDR2 */ Please also add LPDDR (0x1B) for consistency. Thanks,
Le Tue, Nov 08, 2022 at 11:48:51AM +0100, Jean Delvare a écrit : > Hi Corentin, > > On Mon, 7 Nov 2022 16:06:02 +0000, Corentin Labbe wrote: > > On my x05 laptop I got: > > Memory type 0x12 not supported yet, not instantiating SPD > > > Oh, that one must be old. > > > Adding the 0x12 case lead to a successful instantiated SPD AT24 EEPROM. > > i801_smbus 0000:00:1f.3: SMBus using polling > > i2c i2c-6: 2/2 memory slots populated (from DMI) > > at24 6-0050: 256 byte spd EEPROM, read-only > > i2c i2c-6: Successfully instantiated SPD at 0x50 > > at24 6-0051: 256 byte spd EEPROM, read-only > > i2c i2c-6: Successfully instantiated SPD at 0x51 > > > > And then, I decoded it successfully via decode-dimms. > > > > Signed-off-by: Corentin Labbe <clabbe@baylibre.com> > > --- > > The result of decode-dimms could be found at http://kernel.montjoie.ovh/zoo/x05/decode-dimms.txt > > Since RAM is DDR, I wanted to add '/* DDR */' comment, but I didnt find any document with > > proof that this 0x12 is for DDR. > > It is. The document you are looking for is: > https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.6.0.pdf > > and specifically section 7.18.2 (Memory Device — Type), table 78 > (Memory Device: Type). > Hello Thanks for the link, I will add it also as comment. > > > > drivers/i2c/i2c-smbus.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c > > index 07c92c8495a3..6dca19c994db 100644 > > --- a/drivers/i2c/i2c-smbus.c > > +++ b/drivers/i2c/i2c-smbus.c > > @@ -362,6 +362,7 @@ void i2c_register_spd(struct i2c_adapter *adap) > > } > > > > switch (common_mem_type) { > > + case 0x12: > > case 0x13: /* DDR2 */ > > case 0x18: /* DDR3 */ > > case 0x1C: /* LPDDR2 */ > > Please also add LPDDR (0x1B) for consistency. Will do it. Thanks Regards
diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c index 07c92c8495a3..6dca19c994db 100644 --- a/drivers/i2c/i2c-smbus.c +++ b/drivers/i2c/i2c-smbus.c @@ -362,6 +362,7 @@ void i2c_register_spd(struct i2c_adapter *adap) } switch (common_mem_type) { + case 0x12: case 0x13: /* DDR2 */ case 0x18: /* DDR3 */ case 0x1C: /* LPDDR2 */