Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5267363rwb; Mon, 14 Nov 2022 01:48:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6BrgUSoBD2kzwV0G0jeptRIm2FMiEG2sFcjUG8xmPnqq6/rVc8fLmjo9n7do2qJIXq1DQT X-Received: by 2002:a17:906:53c7:b0:780:8144:a41f with SMTP id p7-20020a17090653c700b007808144a41fmr10004694ejo.189.1668419299345; Mon, 14 Nov 2022 01:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668419299; cv=none; d=google.com; s=arc-20160816; b=j8Qjru8U7gma5Wcei+FaA2l7EbP2BXNOkhoeRT2IHogfu7jm5Iba8pinaGbstpXjqW w3SKl4HgmdfUdeaZK5RxFgK31GvMGMMp0vOuL3jvJYP3nqn/FzfXnfOokjdMuuX5pZdi 68rV8r4v0e26ceHagrsXx/j6qc16QTHltGyKOlz8WTY5D9Y1/oYj2Pz5MQbTIBJ2Omuz PRc+AL6bzTMnFa57cGflY5CVADUKN/7uo/qMkFfkll2HCd5FQpymXoj6t9HZBUqXfs3K hn0lDtnBunacsoHlpDoICNNdDHefe/GJcvxYkfYIJvZ9Ymjy3IhRlq4ti5SUNokxsR0d +vng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W3b//FjMS4rYYJ7oM3rSzlRHPMsqyV/xeMF8hoPwJfw=; b=o7wmKsknkMvudXEsrBh2jBe85BNJE5QgktngZ2/huwOoCKHU1w2LH7IW91dNGubMcQ JuoHybUUovS/H4mskyQd6A3ASbsAYku0m7vPvqfEaG1iRBCsc8hHMyfVOS934jDddQ3x zAeFa4CPoHRCjILrlWEcCfyuSWL5FzgKucywUnDSMzvHf8ELymD8Kw0loltilGAxytKy l2s8p2LLQOs0xsIEC8I/RjN/Tlc5Mf8qg0Y9XdK41Zj6T3JUzI17+PQdbYv77ih9RL3s eoiSlhfyUAayWA+L3Qf+XW1m9eV4ew9cWXIGZlYjbw/BvGpOeErZqDaIcIJtd6t/i9gy fCsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=GHNzWSMw; 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 l1-20020a170907914100b0077ea290986fsi5806304ejs.584.2022.11.14.01.47.57; Mon, 14 Nov 2022 01:48:19 -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=GHNzWSMw; 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 S236459AbiKNJSE (ORCPT + 88 others); Mon, 14 Nov 2022 04:18:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235832AbiKNJSC (ORCPT ); Mon, 14 Nov 2022 04:18:02 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B1F1DA4B for ; Mon, 14 Nov 2022 01:18:00 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so10178524wmb.2 for ; Mon, 14 Nov 2022 01:17:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=W3b//FjMS4rYYJ7oM3rSzlRHPMsqyV/xeMF8hoPwJfw=; b=GHNzWSMw2xUVtaFE/cz5B7bbo0NOd8jx56sPoYFujgt7gLXf4U3mr622kiQa0M81Ce FCR3osuBna4mdy1KnYKDTo5hLVCK29pM3eUa2tRVwf3TiZhmf6TW0uPB65GafDW/woY1 uRlmWdOLvvpO4yLA0Vz8UfNPImBffnALVFM3VAKIMtynNtZ7JGy701vy9ni809A00AIM zUoPcqNCv5muyLWFcJoMVm7jHQiL1al8cVnmaS7P0qrykh10d9EAbJ+SM6TzB5Hwrr4q vhQoNoHpcWPtRSsS4299G+qTzl2itDpq/BO1SFc4Rkke6KNMtZtMlnthgoUuFWz+RhEz kBnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W3b//FjMS4rYYJ7oM3rSzlRHPMsqyV/xeMF8hoPwJfw=; b=gGGBNBH3OAzlAw+Iw9YXUhKBSc0Jm/9+X7d8CO0ZMI6SX6S3zuzEbaQeXLH7DqRhqs Jv1PeF+g467vbdegXg5tYI/ug9dUr5xIYa19LxOytdUpc+Tuu+YUh0AYLCYuzsikKysi Ws5i1fmP85QtZxDtVZuR2pPZZBuxO2PURMCEaD/q4QjSHTB1xo4jQn7D7hInTgJNyO2F b0AilvIhmc2zdcLdH6SIreyM6KZtV2McJjObM8/EyDJhAk449RZ3w0ZDrWYVJ1tleNIL /V0JrylBXQGi2yYbDto0OApRDe0cxNrY2jhIiIs9UZJsJURt3jse6Z89Td2HaPraRxa+ be+A== X-Gm-Message-State: ANoB5plpdxn/vorX3WLS9VI92WyaneHhM/H1N114mpeJhJnVHHd0JfGi db0HKZ8p2DvNdpL8bScvSFHd1A== X-Received: by 2002:a05:600c:1e11:b0:3cf:84e9:e705 with SMTP id ay17-20020a05600c1e1100b003cf84e9e705mr7385922wmb.28.1668417478546; Mon, 14 Nov 2022 01:17:58 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:4a02:2aff:fe07:1efc]) by smtp.googlemail.com with ESMTPSA id u12-20020adfdb8c000000b002417ed67bfdsm5900809wri.5.2022.11.14.01.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 01:17:58 -0800 (PST) Date: Mon, 14 Nov 2022 10:17:54 +0100 From: Corentin LABBE To: Jean Delvare Cc: wsa@kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: smbus: support new RAM variant for SPD Message-ID: References: <20221107160602.1912225-1-clabbe@baylibre.com> <20221108114851.4436c3cb@endymion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221108114851.4436c3cb@endymion.delvare> 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 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 > > --- > > 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