Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1321966lqb; Thu, 30 May 2024 07:07:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVn4LrnCa/oaKctK3mmq51qCh/jN1c5iVvUXxV0fDwiqdjPg5qaf3xYM1HAvgtKZ4T9grAC7zgGjlO3eLhbnJ5ocRPllzzJ2xG6TqofMw== X-Google-Smtp-Source: AGHT+IGJZkMA1T5Kqx7+Ij1hm5HHqg7PxF5MyMUjNu+ZntvT+3tIjYmtSOjJOs7cuOp0rlOxPzlq X-Received: by 2002:a05:6a21:789e:b0:1b2:5948:6b81 with SMTP id adf61e73a8af0-1b264555814mr2703828637.14.1717078074101; Thu, 30 May 2024 07:07:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717078074; cv=pass; d=google.com; s=arc-20160816; b=QJHLgcFpL3Pq18tUkyHvYJThH4nCWMgIfJOV3FN7jPoWhubib1B9z0BFz5UklN7Gbr TUWkmjpYoatZdWB6cBROPF/B46yNcHU2akYYMe5lHokkctNrjz3n0Kj4abGrC++UAC21 V+cy7sympPzcZ3etGzqrfEgBFSPrGEIFze7LxhedxVL/DgRoH1dIjSHZadASPjaq2k4G rvWEMVrWky27wI3S9sLodDCFVAYFAM5BlR47PkU+ykocrOmbmnSCBt0qqXAtkekxttZl SITSSfxImHFIJCCESpVQDzX+yF+rp+7UsvzJaF32wnouN6FN+Uys5tUGo/ryMBUV0vDX ECag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=u4GimzYAy1i6fno73Dy7LKKA9+QvH6ceArd5s19dZ3Q=; fh=Z73P9RxtacwPnwQTqRBY5RA0bFi4DpWyhSCUr+iYHSw=; b=rkESEEPnsPYPKHLEJuS+fEWpDnoCSYfaUsya8is9cyb6luNmaf46mmEiDUyoLHMYk2 uI4SwbPCmKAWAiHCyHzXpfqICSVpOUDaSR1JnDbW8kh+sDgz3uan5u58FIzLoKzrCas0 rJeFrQDJB4Pu1dBmgXyOPtw63NU+cLQCJwnblIwOmEMBaehHK9/jk6yeJ/PxKsxhmTg9 fUkLEH+sYPC9+3RL62nVvAwShZaYfrZ6vwuGQpLs/QIiw3eMrDuG7jD+AqZfHvkYVelv n6Zt4tyYAvaFlDe3evVUineFhfJ0ZdUjfI/P53xNtguWiLlqIa8+AExyCPHlQfHJhlxM fb0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QFN6lXNN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195487-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195487-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-684987c4800si11690245a12.179.2024.05.30.07.07.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 07:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195487-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QFN6lXNN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-195487-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195487-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 B1C19281A08 for ; Thu, 30 May 2024 14:07:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC872186E3E; Thu, 30 May 2024 14:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QFN6lXNN" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B574186E39; Thu, 30 May 2024 14:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717078063; cv=none; b=krcZDddMnYU8Y1DoxX3QYSOEwzMtvVf7kjBiEscNipqbc3Au31T7HQyjRTyiPT3WmyTv9rpuBblQUiAeDfvli9l1BzYFkoCefb6r5Q+PJPXxbkZrVXua67LQ6trQWbzaYgD/eC2rUJ4aiLfLBoR4FYe9Flwxx00I4MXq32/7KaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717078063; c=relaxed/simple; bh=h7hU7qbuwVbk/ZpC7LCL/8LlxomxCnLOqgvlLA9FNQE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M39bsiyH8bvOtsMBY0lxUMq+VX/gdLDi96byvCmqR5V5f6wsEn+FIdfK6Az23ncqfjnT9/FajHTKMK1Ce2Hfc6MqDpuadutZ4YUgsW8hlU4xUaLLRxWs6G4AmB/L/5o+BDGu7SoidsQ6BCHWsWTqyY/Wk4emzphW3ta7hZVnY7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QFN6lXNN; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1f480624d0fso7443585ad.1; Thu, 30 May 2024 07:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717078061; x=1717682861; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=u4GimzYAy1i6fno73Dy7LKKA9+QvH6ceArd5s19dZ3Q=; b=QFN6lXNN8if9zSpTw0wJ7ERDb/f/q2rAxiS13RNNsgHPQsHZRrZ7uZKTVa32xcyzBD DwmBsgIHmyRwRY2Ly2r7bbgqMUkGw7x/SySi+kyjT/YUxnkHdIGa94FQJ9o6cKZf3QDa +veoutHYK4IdffrKiYIy2n8dF8xAXk69NPR3IW+bkdK0etoKu2aWS5W0k5kamPRat8K6 ft9H/Gd4ZsvtY9j9XmeJiYNWCLbxwPo3AqgdB+pMqLFr/58Ey7C/p8+7TLbmRJ3bwuG6 IgIG79JfHn0pfHAPPpcZyxuLP6oVlLDQMVPGejQjKJsmaxXBdPYQAeUPtFe6ZeM0w95c 0MAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717078061; x=1717682861; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=u4GimzYAy1i6fno73Dy7LKKA9+QvH6ceArd5s19dZ3Q=; b=Zh+OZsUwInSWWHxtdlyiVbiPefS1LjGFD6710gk5pDGEgB8QsKBXL1CBcGhwpwMVMx C5dbeBqAbidj3dH2+R6ro8Med7RRFd/nCcj33sNH/WNNHCsTaEq+VOIZvVyX+LQfn1gf qZwZwpcHR7+iNv0N7k3pDjxFbu0yGbIP/XUlR7PRVJhBtmVbCWYUbHaMehtFazeDIfj8 ABoGoOyJ4LYQ82eLzdei7WWO9QKudI3nkJ2wtqpaGQzpwKxuAW1DW5QhAvDsatYAI0Ei 6qpMNBExra3UiS2X8KZ7DSg5C8k/wzs++iOiz6f5TqG2Edmk50Mw5djOlaVJJYDf+o1v ROTQ== X-Forwarded-Encrypted: i=1; AJvYcCUILjmxMpafWxbn9AH0s/miVk3hEOHc++myGhVfXyEdyuinZJZy9x8EuDXaOxMDm0q8GWQ5ytlfXCqiu1kH65EmzDttqJaCtWTv6v2Z2rskYckdbIquyA/7SDnUeU6vglydOh/17Flskg== X-Gm-Message-State: AOJu0Yz/XsO/1EsRMqMROswJQe7alAN/X8PvWUuLt6PtEJtY2Q5buFuF JsUS4v1M037Hbhq6tVLMb1YA+txKtRCrGMgzB3fn5yPsovOT0ZbD/jP/FQ== X-Received: by 2002:a17:902:e5cf:b0:1f4:a3a1:a7e9 with SMTP id d9443c01a7336-1f619605f60mr26066885ad.24.1717078061343; Thu, 30 May 2024 07:07:41 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c9b87b4sm121997815ad.264.2024.05.30.07.07.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 May 2024 07:07:39 -0700 (PDT) Sender: Guenter Roeck Message-ID: <468905cc-151a-4513-84a7-712684aaea68@roeck-us.net> Date: Thu, 30 May 2024 07:07:38 -0700 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 2/3] hwmon: Add support for SPD5118 compliant temperature sensors To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= Cc: linux-hwmon@vger.kernel.org, Hristo Venev , =?UTF-8?Q?Ren=C3=A9_Rebe?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Radu Sabau References: <20240529205204.81208-1-linux@roeck-us.net> <20240529205204.81208-3-linux@roeck-us.net> <6d5c2ee5-6e0e-4d13-a977-493d2ee2c0ed@t-8ch.de> <9c7e050b-0e73-4388-bc58-5c4d3ed4f50a@roeck-us.net> <1258a064-e23f-4079-b1f5-59017c28a210@t-8ch.de> Content-Language: en-US From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBv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8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <1258a064-e23f-4079-b1f5-59017c28a210@t-8ch.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/30/24 06:57, Thomas Weißschuh wrote: > On 2024-05-30 06:47:17+0000, Guenter Roeck wrote: >> On 5/30/24 03:51, Thomas Weißschuh wrote: >>> On 2024-05-29 13:52:03+0000, Guenter Roeck wrote: >>>> Add support for SPD5118 (Jedec JESD300-5B.01) compliant temperature >>>> sensors. Such sensors are typically found on DDR5 memory modules. >>>> >>>> Cc: René Rebe >>>> Signed-off-by: Guenter Roeck >>>> --- >>>> Tested on MAG B650 TOMAHAWK WIFI with CMH32GX5M2B6000Z30 >>>> (Corsair Venegance DDR5). >>>> >>>> René: I included you as MODULE_AUTHOR since the patch is derived from >>>> your driver. Please let me know if you prefer not to be listed as >>>> author. >>>> >>>> Documentation/hwmon/index.rst | 1 + >>>> Documentation/hwmon/spd5118.rst | 60 ++++ >>>> drivers/hwmon/Kconfig | 12 + >>>> drivers/hwmon/Makefile | 1 + >>>> drivers/hwmon/spd5118.c | 482 ++++++++++++++++++++++++++++++++ >>>> 5 files changed, 556 insertions(+) >>>> create mode 100644 Documentation/hwmon/spd5118.rst >>>> create mode 100644 drivers/hwmon/spd5118.c >>> >>> With the Makefile and detect callback fixed: >>> >>> Reviewed-by: Thomas Weißschuh >>> Tested-by: Thomas Weißschuh >> >> Thanks a lot for the feedback! >> >> If it is not too much trouble, could you send me a register dump ? >> The one I have is from Montage Technology M88SPD5118, and I'd like to get >> a few more to improve my module test script. > >>From a Kingston KF556S40-32: > > # i2cdump 20 0x50 > 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef > 00: 51 18 0a 86 32 03 32 00 00 00 00 07 ff 3c 00 00 Q???2?2....?.<.. > 10: 00 00 00 00 00 00 00 00 00 00 00 00 70 03 00 00 ............p?.. > 20: 50 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 P?.............. > 30: 00 f0 01 00 00 00 00 00 00 00 00 00 00 00 00 00 .??............. > 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ This is the same SPD hub chip (Montage Technology M88SPD5118) as used on my Corsair DDRs. Interesting. Thanks! Guenter