From patchwork Mon Dec 11 21:02:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Wolf X-Patchwork-Id: 176916 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7335589vqy; Mon, 11 Dec 2023 13:02:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGfDlIyWVSwjOPWdiCDeZovHyABl5iDz2z+Lz6m3fg+vESDIQeD0ENQXlDQYFRrY5VBEOF X-Received: by 2002:a05:6e02:1bca:b0:35d:a38a:fc91 with SMTP id x10-20020a056e021bca00b0035da38afc91mr5912703ilv.40.1702328567599; Mon, 11 Dec 2023 13:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702328567; cv=none; d=google.com; s=arc-20160816; b=xdZe2+jt5JTFCdT9NBrcYjMvNdO+WOfgCS8f9AE9TydLgsX/ZsCGyMWrDNm+pxK93Q Y4QSDplPJmWi+h4QAPMonmourH6PgcsP5smYOFQTpMcnVZgDeiCZMmBRnD6bHXmo5+vD A92ACvru6R5boF5cBh7kOjGQiKe+jdfgyMMmeyMhD02q2ra+Wg7EtgxILfzh0lD8b60t QQFyt3WmBmAFx6SdA+Foj9brnuo9IBoJ1jLxrxDlldgyIJ0mjep4wd7HAG/lFFEnpm7O 7py7s5bqPdl7+C6qkM4uRD4Yi9qyA3k/OFrZF+b+wUzk0RpgslKqgM4OGH17LV3AkrQh Mz7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=eK6XaNDNutxaNn6LOTcHFpbIuRSxSR79BjkgWmsTmB4=; fh=D6x3vR67D61ONO0FlPjuglVMEHeG/EmRi33Z2DoxtS4=; b=vzxOm3XpWCGqgjnlvVIDeptImtWyRSqF6ogkXVpMqbqaIWHwhHdBqQ+omGsfry9U5O NO2mXVNzOoh8zhuxs2MrxQIOysCfykeh7Xm7VIPvTIGCXOot9i9+zD9PruOtXnCuiLdm 5JfBvLewPbYLKZi1OMkArCI1JWA92fHpi9qSwBUvT4UuFE3EhbsWeFxJFv/zoaVmQ8pP f4/TRftVtZYHhOw90khCIAQd5BgfnGCTqWagoNncoB1RESRyMZUZpksBEh3yZ+p8tQuF tUC+aaKvLRv/Qp+ccaBQEZwH6gINNJ4FIBnRSjs6nIiKVLGh5/gXey0I6hnQg7x7a7hH afjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=TjPZ8Xow; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bf15-20020a656d0f000000b005c673af4e7bsi6801852pgb.393.2023.12.11.13.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 13:02:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=TjPZ8Xow; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E30F380A4F6A; Mon, 11 Dec 2023 13:02:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344997AbjLKVC2 (ORCPT + 99 others); Mon, 11 Dec 2023 16:02:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344988AbjLKVC1 (ORCPT ); Mon, 11 Dec 2023 16:02:27 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E68DC8; Mon, 11 Dec 2023 13:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1702328533; x=1702933333; i=w_armin@gmx.de; bh=r5JwhE7WVnOi0zL1pvBnZD8RDseYzabf8g49jVHn60k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=TjPZ8XowpffTga7TPKfRglvgWbusZV6t+GeMi02o2ijZsBOXHeLllYIUj2SzI18m +FvAlID7zEXDKrKB1NCxRBw8DH/TF7610gaJbQZTtHvfr1FOsLZEq00BipxEfsmgL J44HKU2OccCHVvgiKq9SxCxW1FoADIT51rXVoe9rBek2zG6LIMpQ7glwvqcNSm2nG euENf2JdTsGEo28007zoI+FlqMxFlxk8rBetYxwj5F/+hnR3Z7POs33y1851mo6Td CrHZ9bRjRbPVz6I6tf23DbcRpi2QZGX3snl7WUJeZ6/lamX/Qn+w2FzZgQY0CowJ4 O7MMBKa0G9DB/zprQQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from mx-amd-b650.users.agdsn.de ([141.30.226.129]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MEm27-1r0un00yU7-00GFIu; Mon, 11 Dec 2023 22:02:13 +0100 From: Armin Wolf To: clemens@ladisch.de Cc: jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] hwmon: (k10temp) Add support for AMD Family 19h Model 8h Date: Mon, 11 Dec 2023 22:02:06 +0100 Message-Id: <20231211210206.11060-1-W_Armin@gmx.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:RbIggH91CFz/XAJwNFKyhG5mZPwntsqz+9ypAA9HPaIqGhpBL0T 08P3t2gRNu/jk/B556BDzdXSeL+HolRF88fQwtpT5GPMaeN1wDaXcl3ZnFZpDYwgVKIUucV zgPOipxbT6O1hGI1Ru9w8e6x0CiVfEkBPGKPsiXltFm0LOy0E534iYYf9Haxx+/RISNV81f fekaXLqyK8H+t3W0vKGTg== UI-OutboundReport: notjunk:1;M01:P0:YuDohJt/SOI=;pWZflexVTv+dqq4CCbj6nbD7xg9 KvYStuzLunyTgVcytArwjFQlqDb1Zz3Dv1xLosT6h6a6tURGqjpDuTPbwDwFCN2sxXNGOZlgM tCsc7IAIxrjc9UjnacWofkFdBk14QPQvUtQBhRbPYMye6o/Qy3i+LZavBZICqqcaWDdIuKp+B +fdtsNxUOfrcmuPK1WAK3VSH0xYYMHqv7ECYKyBJrx//O2DTNA569wiwkQXhCi2x/rtmIGAsv qGFs1gh/2Rr838ZIu+xbMJzJZHb4pDbXd/ub/Z/Una8OvD+VlVlhh7tKQKDqVoVr/hYjp4u+L Vcy+V33W4scCkIRrCRxdUfngDtFjMzoYhKs42TpFwhWFox0ijpYqyOvi42PT8J9c0cuQKZzyz ZDmm0FVBxiV7bpblcELaiq6QOqFt0n+t/M7bkpdWWgW8/pVNSi4nH5yAxseEjE1vFrjAz81eU Lzko9dqQoi/X9eKyrYMIEhcXcuczHprMrOAVuIF6DEPIccU83r32R+xWV0rWrojtLTbPo2cRc apk+xKBF26KkZkapjdMshdLgO/Ke8yKJC46u3jffQE8k+XH1Co+hFnRwgn4SZmY3pSkDN+SoL xN4F2x+c2ZbGq1fBtFGiRWO5JUnJyYU5hrJ1xekLWXbceZf+FdW21BCMAwZoXyaOPN7Ry0WPE DI1ygk/fWysG4d6n1EguL/gtKK+Ytj6dIwrf5D2dS6skpKMN+C9UaMbpnqKW7k7DACcjwA+t5 5997mkJWV+vudVFFtO1M76J6vhgQa1/Ng/K8+aZzJl+IPeguVoDJvqJOpiwNyAa/oqBTcj0fN mlTUA0rehZW2Bbcrps5gRi4LGM8BJ9jyHT9voHLL7iq1XkPzGSan2SyyT+gvGNV6Lz+jALN/c 0ErI+oRckoUDxhpdVMGYubI5q1gH70xbgYdwkRQGoMwjAOHGSG+Hg9uiUpBIVFA0s+R/nqkcl P0cBwwrddudoGzQwKngERZ1irE4= X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 13:02:45 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785020879799082687 X-GMAIL-MSGID: 1785020879799082687 From: Jami Kurki From: Jami Kurki Add support for AMD Family 19h Model 8h CPUs, which appear to be the Zen 3 based AMD Threadripper 5000WX series (Chagall). The patch was tested with an AMD Threadripper 5955WX. Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218244 Tested-by: Jami Kurki Signed-off-by: Jami Kurki Co-developed-by: Armin Wolf Signed-off-by: Armin Wolf --- Changes since v1: - reword patch description - reduce changes to existing code --- drivers/hwmon/k10temp.c | 1 + 1 file changed, 1 insertion(+) -- 2.39.2 diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index bae0becfa24b..8092312c0a87 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -455,6 +455,7 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id) switch (boot_cpu_data.x86_model) { case 0x0 ... 0x1: /* Zen3 SP3/TR */ + case 0x8: /* Zen3 TR Chagall */ case 0x21: /* Zen3 Ryzen Desktop */ case 0x50 ... 0x5f: /* Green Sardine */ data->ccd_offset = 0x154;