Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp154757lqe; Wed, 27 Mar 2024 01:34:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlxvls7ghSblQ2SneWkoiU8nqYqlNBoQidn6OVLpNIJt38BXKDMpSA5I6+p2+qP9B/v+H1DOdMu+WSt3f0hSxvbgC7wkDwpnUE/L2/ug== X-Google-Smtp-Source: AGHT+IFsvuZM1mDsSlA5Di7byNykABlSSRJ7ApmuiJZ72OQw0r6LBWdtWnW5D1w1x+wUScdanK7f X-Received: by 2002:ad4:5c68:0:b0:696:7ffc:4617 with SMTP id i8-20020ad45c68000000b006967ffc4617mr5560471qvh.11.1711528462337; Wed, 27 Mar 2024 01:34:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711528462; cv=pass; d=google.com; s=arc-20160816; b=jnTEG2kEAq8b7dBda4GqYbroA4kaD1cIP2Rgp9yMsotOVH7HOMe3bKvk1pjszULsnK Gi4FnZEgHmOEposTD4Hzs7FeRq+eZJA8ECLqUPcpSWXeCcEc0+RUYI6VgdT1I20N4/OB 7tQbKGo0Rrf4jKdmmEHjAaJMCHsU3VVKPYnfUAozucahyaJFa0WRYQ7bOheNaU7eA4sp lKZBrP1K71w8C25aqNfqFI7s/BuumN7JqQ6MzdsdxpNM24QM/6ySNv+NJHUq2OpkLjmp p5hj4T2y8YztprRE+YAxCFTcR83rBSifIugJ//VqYqanGmmZ2botUFHfL1PDACha3RAW 5Htg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=DUhQssYLWaJl8aUgtkhF/szOZ/logePnv9PMG4zc0vk=; fh=CRlYjm+MeU91wWmJ0GyrG8M/yHzqpG7XnVcheEVSqxQ=; b=tdFtlG0Y28JAp4aZpTViiyaITiQd6YrD5YT6xKvXLjhfvqXlxr+KcOpVqQmtp+kQJ1 WKVRatyrkKPgEphdw9DsIBlKH/KV78GEp0ErsLGvjsPvoUYdA0tW2T2jPPCohldBQ8LF TSmLM2qieQkGz7NVk0iUuQbU1p6NTtEzwBusXb1usNEhnwHw+OhzUVSj4LYnqPG9zxuZ th+UNeqgGHHPAoPHyio5olIpCoP5Jtg8V6iBHTXE4FD5TeD09H3t84IFBOqAGXAimhlr adEdjCR8LHWi2MD0MC2Q9PLXbtagP9wwJwEzu9PO12v9X0T2Rc5zDYMs/RaDdu3mm484 y7pw==; 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-120549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120549-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jf15-20020a0562142a4f00b0068fac70696csi11570205qvb.4.2024.03.27.01.34.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 01:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-120549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120549-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0FFAC1C25CF2 for ; Wed, 27 Mar 2024 08:34:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAB0B339A8; Wed, 27 Mar 2024 08:34:16 +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 DB2B1125C9; Wed, 27 Mar 2024 08:34:10 +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=1711528456; cv=none; b=DX7bjHOzxBFtOqpm16rYb0krxtE9R7IbpOu+WTV7CUXLpNeLM/7Y4KWNv+poEZBFUtVTc01xr2tw+58unX69jKtxfYeTybzARsOqcHlGTwM7WkJLwAk19b7t7IMXF9ICiQI1WuLyiko3slonhlo+LfsOUvKuJYtfnNniPER3GKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711528456; c=relaxed/simple; bh=UGvZxVMikB6qaCnJ2KKhOrkVnVs1RqwYKNO6LJX6940=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=msP3pHDyjb6JvkCo0ZAzFshCkuIq/sQd+xSRaVialcuokxkX5wkkVveXPFwcAWCPxfiNXDFneAyhew5ZVP0/oQNSguQf+S9XwlykvRK9uQX08khnpwTD/EsKvvx0Cj2bKUTPCUfNyTZqyEMJRW9qMCAcal5BpxZZVylPW6lri0M= 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 localhost.localdomain (ip5f5aedba.dynamic.kabel-deutschland.de [95.90.237.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 86C4561E5FE06; Wed, 27 Mar 2024 09:34:02 +0100 (CET) From: Paul Menzel To: Wolfram Sang Cc: Paul Menzel , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] i2c: smbus: Add (LP)DDR5 types to `i2c_register_spd()` Date: Wed, 27 Mar 2024 09:33:55 +0100 Message-ID: <20240327083356.74246-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On several systems Linux logs: i2c i2c-0: Memory type 0x22 not supported yet, not instantiating SPD 1. Supermicro Super Server/X13SAE, BIOS 2.0 10/17/2022 2. Dell Inc. Precision 3660/0PRR48, BIOS 2.9.3 11/22/2023 3. Dell Inc. OptiPlex SFF Plus 7010/0YGWFV, BIOS 1.7.1 08/11/2023 4. Run `git grep 'emory type.*supported yet, not instantiating SPD'` in the repository of dmesg reports for various computers collected by Linux users at https://linux-hardware.org. [1] Add 0x22 and 0x23 for DDR5 according to section 7.18.2 (Memory Device — Type), table 78 in *System Management BIOS (SMBIOS) Reference Specification*, version 3.6.0 [2]. I use the same name as for DDR4 out of ignorance. [1]: https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.6.0.pdf [2]: https://github.com/linuxhw/Dmesg --- drivers/i2c/i2c-smbus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c index 97f338b123b1..0d67a95c0599 100644 --- a/drivers/i2c/i2c-smbus.c +++ b/drivers/i2c/i2c-smbus.c @@ -308,7 +308,7 @@ EXPORT_SYMBOL_GPL(i2c_free_slave_host_notify_device); * target systems are the same. * Restrictions to automatic SPD instantiation: * - Only works if all filled slots have the same memory type - * - Only works for DDR, DDR2, DDR3 and DDR4 for now + * - Only works for DDR, DDR2, DDR3, DDR4 and DDR5 for now * - Only works on systems with 1 to 8 memory slots */ #if IS_ENABLED(CONFIG_DMI) @@ -380,6 +380,8 @@ void i2c_register_spd(struct i2c_adapter *adap) break; case 0x1A: /* DDR4 */ case 0x1E: /* LPDDR4 */ + case 0x22: /* DDR5 */ + case 0x23: /* LPDDR5 */ name = "ee1004"; break; default: -- 2.43.0