Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2009858rwb; Mon, 7 Nov 2022 08:10:01 -0800 (PST) X-Google-Smtp-Source: AMsMyM5+2CuYg2wc17RYN3tH1OlbwKwGBvKT/s0LKKc41fKiTL+/6e68xWPyywvuSIr4r9AVmS28 X-Received: by 2002:a17:902:e902:b0:186:9c03:5f27 with SMTP id k2-20020a170902e90200b001869c035f27mr51010314pld.16.1667837401598; Mon, 07 Nov 2022 08:10:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667837401; cv=none; d=google.com; s=arc-20160816; b=g4GPo6Emgl/wX6gVp5x4+pRPidkIkN1t/PHwK9djga7W2hL7+n35TQf1oA9ZFbcjub cWhiq8cmDtwScxahbirHWbgN5jyYHgK6k3PdOSSPfYzTALrQ2XeQWOzQV/lwosTIjFrz Lnjy53yta03zE6Ip0YU1CC0XHxGmmQjGjWF8gdzUuRJUnaNQP+D2C9+CTMx+vNZ/CQWh nBQvcEDRyazIshiRwn0IkU/LdxFkiSabYocTm1nAccm78RoiGW4cgrgS1SnRJ+0l0W3W nQsiZ7PjfmL4BbWVHs1qgPvzPsuBe5ulNtJkh16OgNOfG5U0lzCE5g84hqxjGmhjXUel rRXQ== 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 Return-Path: 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.46; Mon, 07 Nov 2022 08:10:01 -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 + 92 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 ); 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 ; Mon, 7 Nov 2022 08:06:18 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id m7-20020a05600c090700b003cf8a105d9eso7440036wmp.5 for ; 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 To: wsa@kernel.org Cc: jdelvare@suse.de, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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(+) 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 */ -- 2.37.4