Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1500946pxu; Tue, 24 Nov 2020 01:39:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSuA++p8YpPy2mi9foWghRi9tNPoxfV4U6EFSyQlUIErCZwCuRAUBWMREljDojp/jJyN5B X-Received: by 2002:a17:906:ee2:: with SMTP id x2mr3485084eji.326.1606210777835; Tue, 24 Nov 2020 01:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606210777; cv=none; d=google.com; s=arc-20160816; b=DYcPebvIAYfcCU12zlE9Uiy0xAU+e8mEm43VbKdM4Fq6Owbx17ednhn6whfzNL6rYy SflYuRZmDjjNJhB/w6DddPQWtNde3B/r7tWCqY5VnY+wFgq4wWG8Vze53x0/jg04Z9+F ToklPpVNhR1dCcoDKujXoRqmkBERjFA06gcUCWY0BeWTl4PHhZ6LRnNN32wGASWMoeOL FzG7j13FvB90SbCZDjYNiJO+q6WRzHox3IcrjruDXNfsoXYg+YsjcBTWFEN4ENIWlnWA i+N8ckkDw1PHZca0OTzYU00gGhuzk+Av70kPMabMhkWH3EJttLYu4CG/TVxt7QPC3Cfg 4liA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=qLJtI9nAfxpQ241N7feAZU1m7Epn1p0do43IJBH+6tU=; b=lfkAi63z+KZ1Qh6MQbyQTY7G7SIfjS1lwmO1HdgPoDhwW/dMUkW4ymytZd7btMqysk BSdMeAprHCnfihAayw5rWKyZxuhvnlKp7MfqjlRi/voMQBKhOS9FYklo0lYlA7+DTgAY lZR14E4TATOAwWwrsIZb42zdoYZqJv4UArw2lDY9dDVbnR24s7lY04DiD7htBXlVqBYk BCVuO+GEcVKnWuk3JxtEPKhnLfUVurDcavLqd79RzDSbRu5jU+QYGfGxqDiBwFqJxQBe 51r7lrEhWtTqiAfGxgSGEvpyQDH1xcG+gGu7dZyZ0CqkJTYW1fGt3t5z1Fn1HaXN2NT7 CtbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=sy4pMokH; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si7879058ejk.69.2020.11.24.01.39.15; Tue, 24 Nov 2020 01:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=sy4pMokH; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731420AbgKXJgp (ORCPT + 99 others); Tue, 24 Nov 2020 04:36:45 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:41972 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731310AbgKXJgi (ORCPT ); Tue, 24 Nov 2020 04:36:38 -0500 Date: Tue, 24 Nov 2020 09:36:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606210595; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qLJtI9nAfxpQ241N7feAZU1m7Epn1p0do43IJBH+6tU=; b=sy4pMokHHcaYUQMauj+dUeEbQKxSNTcsfaCr5Dn40ZDIJDPfhB3Ar1/yA+Vso3ybq0x26b uLqN2oSLE1qWA3wMGf+bBZMwoyLz4Jg3pHfzH3FL0R2nv0MThZpuxr5SmAVqDKOPXpILml sJbqJzhrvQ1S/LxwLZRKK4AFtG6CyCVauiRqd8PvKfPa1X3tjuuIGI4njZoiyqWpTqsttt 552nuFzzS3vpsEL5qrV+vr/BmDuaYZs2hW+Io9b/JpZFu2c4Uclxdapb5pM5EQ1LrxE4vP ssgkdxMCouHD4EkhYmI7oM1nXtgpbVmBbz3MASUEfxXU3zptcrTe6EHlnzyylw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606210595; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qLJtI9nAfxpQ241N7feAZU1m7Epn1p0do43IJBH+6tU=; b=eEZGRxdy5QQQ1XXJC2YRLenW1ZKrW8LufEZvVZr4rhp9EPvvvgqNin5Z4nb6f7lAlGgqRs v5mxz6uO5FmNLnAw== From: "thermal-bot for Andres Freund" Sender: tip-bot2@linutronix.de Reply-to: linux-pm@vger.kernel.org To: linux-pm@vger.kernel.org Subject: [thermal: thermal/next] thermal: intel_pch_thermal: Add PCI ids for Lewisburg PCH. Cc: Daniel Lezcano , Srinivas Pandruvada , Tushar Dave , Zhang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Andres Freund , amitk@kernel.org In-Reply-To: <20201113204916.1144907-1-andres@anarazel.de> References: <20201113204916.1144907-1-andres@anarazel.de> MIME-Version: 1.0 Message-ID: <160621059444.11115.12415047656928422652.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the thermal/next branch of thermal: Commit-ID: e78acf7efebff9184ad4add02b62a1f486a8cde8 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//e78acf7efebff9184ad4add02b62a1f486a8cde8 Author: Andres Freund AuthorDate: Fri, 13 Nov 2020 12:49:16 -08:00 Committer: Daniel Lezcano CommitterDate: Sat, 14 Nov 2020 19:44:39 +01:00 thermal: intel_pch_thermal: Add PCI ids for Lewisburg PCH. I noticed that I couldn't read the PCH temperature on my workstation (C620 series chipset, w/ 2x Xeon Gold 5215 CPUs) directly, but had to go through IPMI. Looking at the data sheet, it looks to me like the existing intel PCH thermal driver should work without changes for Lewisburg. I suspect there's some other PCI IDs missing. But I hope somebody at Intel would have an easier time figuring that out than I... Cc: Daniel Lezcano Cc: Srinivas Pandruvada Cc: Tushar Dave Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Link: https://lore.kernel.org/lkml/20200115184415.1726953-1-andres@anarazel.de/ Signed-off-by: Andres Freund Reviewed-by: Pandruvada, Srinivas Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20201113204916.1144907-1-andres@anarazel.de --- drivers/thermal/intel/intel_pch_thermal.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/intel/intel_pch_thermal.c b/drivers/thermal/intel/intel_pch_thermal.c index 0a9e445..32e1b28 100644 --- a/drivers/thermal/intel/intel_pch_thermal.c +++ b/drivers/thermal/intel/intel_pch_thermal.c @@ -28,6 +28,7 @@ #define PCH_THERMAL_DID_CNL_H 0xA379 /* CNL-H PCH */ #define PCH_THERMAL_DID_CNL_LP 0x02F9 /* CNL-LP PCH */ #define PCH_THERMAL_DID_CML_H 0X06F9 /* CML-H PCH */ +#define PCH_THERMAL_DID_LWB 0xA1B1 /* Lewisburg PCH */ /* Wildcat Point-LP PCH Thermal registers */ #define WPT_TEMP 0x0000 /* Temperature */ @@ -340,6 +341,7 @@ enum board_ids { board_skl, board_cnl, board_cml, + board_lwb, }; static const struct board_info { @@ -365,7 +367,11 @@ static const struct board_info { [board_cml] = { .name = "pch_cometlake", .ops = &pch_dev_ops_wpt, - } + }, + [board_lwb] = { + .name = "pch_lewisburg", + .ops = &pch_dev_ops_wpt, + }, }; static int intel_pch_thermal_probe(struct pci_dev *pdev, @@ -479,6 +485,8 @@ static const struct pci_device_id intel_pch_thermal_id[] = { .driver_data = board_cnl, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CML_H), .driver_data = board_cml, }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_LWB), + .driver_data = board_lwb, }, { 0, }, }; MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id);