Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7716528ioo; Fri, 3 Jun 2022 11:56:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/pQnLsIgWFWzSCJC+TB4/jm28IXKc+1rkihh2R5jCko9zIxrHq9OHFWyT0DNpPk7yes9P X-Received: by 2002:a63:1210:0:b0:3fc:b49f:e57 with SMTP id h16-20020a631210000000b003fcb49f0e57mr9861846pgl.570.1654282574142; Fri, 03 Jun 2022 11:56:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654282574; cv=pass; d=google.com; s=arc-20160816; b=Ic7arqDfALu7764MlGL2I3ahSu8iGLb7vvnnJrX5eavhV3vXWxNwoGgrCxzs4wqeMI EJzzOpmztEwkvDzwSbe3bM6TPMxr1NgGhh4ErRKhlctfmMGIho9Diyg7/TMq7FEVgHov mWt4yI3pd2MFq/G8BLX2OCCdq+aYJEhl6MkCmu8BN8DupxbyxmSsh295V9uKzYjOwMHu z7YEVirKjyaVtou13TdRKUjWA0oEJl85N5Ie5IWuCPjzRwBM8cBDJKBm4TG1YTzELyWD nMfxCfHBBP7WyEKY2gR69djbCPWK8vSJrRCw009Zx/BVtA3NmpVRasiXBSLho9W1bvXP JnYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TtyGdWOUtX7++ZhJyDyzd1RtNQ3n/bBgTMe4AW1yqNY=; b=FsFJcWs9gMf3TIpSLiYxgefW/4cPJOn/6qYXphXs8qtAFrT5qw5V1qSMd0EXYju17J +mvTDlmnQtnoyMQM/P49E+kNvbNIL0H+MTOSMJP0lsPLs6iSgBDmpI3TjXO15un9mNZD V2X/Zipwx2mGosVCbpLG2ou5cUKky5EzzR5Z+/KAkyZmznq1FFa3pZLnP+8mnudaHS4V Hfk/qP1LhOCksRqgaC8LRVOTBrxr5fpGjmZzccuixklvw98bD9PVe5GQiNuJaM582cHN /oeZH2dw/EHZh8HG/rFtq93GoXWvUqDz0r2uFv0vmZAs0+jEGGlvNUXdU6jjtIqEXDww OMqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=t5OJVffH; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i197-20020a636dce000000b003fc2c0d5780si10221673pgc.298.2022.06.03.11.56.00; Fri, 03 Jun 2022 11:56:14 -0700 (PDT) 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=@amd.com header.s=selector1 header.b=t5OJVffH; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238804AbiFBUMS (ORCPT + 99 others); Thu, 2 Jun 2022 16:12:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237676AbiFBUL4 (ORCPT ); Thu, 2 Jun 2022 16:11:56 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2050.outbound.protection.outlook.com [40.107.100.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5489CB87E; Thu, 2 Jun 2022 13:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JwnfnBzToLdowQ+N4hKHHAhqKchwH1qk2uiUj6Iiy4AiCARtzu09osGr5yBZjudk8JSpUUeiu6gd80AouSXFCkipc8tUw3fts99PWXdNu0Z54+DHzsDG+3i2A3DED0Er0sUzMi7HI5YTtTIiLGc4JnPEN9yGvlTPR25cXE0kn2SvwbCLVORrwQfQqwzniJ9rk/bKdG+OmivEA3ua1Cur0uQKXho3fkQMFmXBxQCWB/1jF5HegV7Rw26SSoozEfVcfk3Vfm/zt2STCX0jDLl49L2Wsn3xsLzsGG5n5hMa3qzLV7N6bsx0PuAiXCPpkBBqsWzY94C1fDaI6jBMqYaC4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TtyGdWOUtX7++ZhJyDyzd1RtNQ3n/bBgTMe4AW1yqNY=; b=fwUU460bXVjEKnkwh/XwYBv/G+dxykRnMCrxkQ23FUHb7TQXaXoKH4paJntqsDc3+yCFGL1WnSrcuTIi+Y8lT/jxd8LgY+NllUpsF2zTYjjPiOvrvardiUs4Qo8mVY6SJjzLYxOxKzt84UVPsGB9O2Zav4Ut4XBqZRcfWXrOYT2Xf5gfC+ndDsVSnSfS2NXrzADtiHuO79E/kdsKn73NhZe+oHQ5HKJM4JpBYfQrYe7vK1twYDz1jVt//UpvbsKSEP6A3LSHIVR4/BulZ4Ux5GSPt89HTuFAg4q1XuylbPvqRc8xTVeW0F0zdc6VJ1SitzrRFreF1T2l5M+WkPq2mQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=ladisch.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TtyGdWOUtX7++ZhJyDyzd1RtNQ3n/bBgTMe4AW1yqNY=; b=t5OJVffHomH86B48obZ/29jEurRi9fiQ65Tjk7e17why7FvcD98vaTEIkaVe8eDHulfARHQ8EaTfRB/eojnYoUBbuwaZN/XARHRle49cYApD3PG0d29S/ylym1srJF2alq+ve/Bdt+J2jj+VXEgppdIRbpCo2iiyucMR8wSC8Zk= Received: from DM5PR18CA0072.namprd18.prod.outlook.com (2603:10b6:3:22::34) by DM6PR12MB2699.namprd12.prod.outlook.com (2603:10b6:5:4a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.17; Thu, 2 Jun 2022 20:11:48 +0000 Received: from DM6NAM11FT048.eop-nam11.prod.protection.outlook.com (2603:10b6:3:22:cafe::2f) by DM5PR18CA0072.outlook.office365.com (2603:10b6:3:22::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13 via Frontend Transport; Thu, 2 Jun 2022 20:11:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT048.mail.protection.outlook.com (10.13.173.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5314.12 via Frontend Transport; Thu, 2 Jun 2022 20:11:47 +0000 Received: from AUS-LX-MLIMONCI.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 2 Jun 2022 15:11:46 -0500 From: Mario Limonciello To: Clemens Ladisch , Jean Delvare , Guenter Roeck , "open list:K10TEMP HARDWARE MONITORING DRIVER" , open list CC: , , , , , Mario Limonciello Subject: [PATCH v2 4/6] hwmon: (k10temp): Add support for family 17h models A0h-AFh Date: Thu, 2 Jun 2022 15:11:35 -0500 Message-ID: <20220602201137.1415-5-mario.limonciello@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220602201137.1415-1-mario.limonciello@amd.com> References: <20220602201137.1415-1-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c5a7ead-00c7-4c64-5763-08da44d41fa8 X-MS-TrafficTypeDiagnostic: DM6PR12MB2699:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0U6TQQv8a5PGLVpiZnNokY6yPLb1fmnlGlq5wZpjLSYaDNRDpuC1AavVtRH7S5uDmllyJBN5waGIJ7g3vZvJ7VcyxDembACcMBDs0ddf/UA/kc4CIu0zntnSCC2NIz3ajjfkEtDzrKbrKk8UlzxIKG0EfryQlc+Xqbs1ulzM8aAv5f6U8gLhcefa9nYV4mVWSkIAiPkLnuAzzFnB9NJB5n294R/7Klo0LZ+p1oHSxrpy1800YljSVJsPKEEVukbfiJ3fGS2YiEyqaIVmExFmevPVNAslp4tp7MIqE7MBTy8GhSK0HzGXUPRKIDM+HBiuafuxwNsU3w/0BlZoSqBTIX4VMAlXiojqbfp7ZCFLHjdcbwbiuGL+9bUktphvzspDNO3wJPyroK4hgKaTzmfFEQ/W/HW+GdgE9Sc48kp/JXfu2e6A2FPnKgSKmuXmHWUmrZzSF/DVtYn5wswV40Q9QJHTkiRHgb+ZwHCd2f6sSq7i2/WYPCKaR1DOZO0jdQj3yKPwiEkOcg2DGn3iLXFC1RN2YVe6GmuV99MjXSt0plDoNhAsCsOI+lLU6Ui+VLFRgQ1H7Zmd13p9QFwQV3C1YpmfaQcHME9Z8tCXBknhVbq528Tg9os/6IKfvXlyXB87xpk3+nrQTd3iloyjk5NsA2jspwthg/JqAjLoqHDQneiEDUiK9WGEicT63DoILzL5XkEc6SyxnPlNdLfupNS3jA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(70586007)(54906003)(4326008)(40460700003)(8676002)(5660300002)(6666004)(336012)(426003)(26005)(47076005)(8936002)(82310400005)(44832011)(316002)(36756003)(508600001)(86362001)(70206006)(110136005)(2906002)(7696005)(36860700001)(16526019)(2616005)(186003)(1076003)(81166007)(356005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2022 20:11:47.9978 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c5a7ead-00c7-4c64-5763-08da44d41fa8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT048.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2699 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Add the support for CCD offsets used on family 17h models A0h-AFh. Signed-off-by: Mario Limonciello --- drivers/hwmon/k10temp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index 4e239bd75b1d..5f831e74bc51 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -428,6 +428,10 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id) data->ccd_offset = 0x154; k10temp_get_ccd_support(pdev, data, 8); break; + case 0xa0 ... 0xaf: + data->ccd_offset = 0x300; + k10temp_get_ccd_support(pdev, data, 8); + break; } } else if (boot_cpu_data.x86 == 0x19) { data->temp_adjust_mask = ZEN_CUR_TEMP_RANGE_SEL_MASK; @@ -489,6 +493,7 @@ static const struct pci_device_id k10temp_id_table[] = { { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M30H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M60H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M70H_DF_F3) }, + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M10H_DF_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M40H_DF_F3) }, -- 2.34.1