Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7800345ybl; Thu, 16 Jan 2020 05:54:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwEbbvsheyETatmC0Xrjq07mbc005sdsh6WL4d8cmFpgi3XD7NPRlVoSs9gROYV2eb/4jNS X-Received: by 2002:a9d:65cf:: with SMTP id z15mr2057455oth.238.1579182866047; Thu, 16 Jan 2020 05:54:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579182866; cv=none; d=google.com; s=arc-20160816; b=nOFm7hV2uJXpWckjKdDpQCAGJNXT0sYeA+YqFT/Jzml5RQYQesx5S3r/dOVArVWjnj GPJ5iaS3OgGza4Q5HIWZt+DJThonAA2XE68Y1yQVcMcUetk5uEFlBocnPo6/RjF8XazX O8aUFQGtoE7FozkCWBOA45yuR69VqXZHYOMfv8hUAXaJABSs+nw3ifKligo8qRwpUaHp urzUTbu+Vr5muo5ce6vHQU8dcI4OBR/8yaclULVEqtXgiaejgU81csmviwJsFYo6dAa5 weV3LqjA4fzPB12drQpwam/LJXp/WtFAGjLW+cDa6pnlEQX2SY1Zzpq7fZzdXKxl5elx YfdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=2BrH0oWvxvJMcNZucOCXUvHa4sf0DSMHlQZREQ4eeJU=; b=tV1f7nC+HFYZJLrjXO9ksLIVJ5Id9PboihPu/JJ3Z4TcOXBGfjbRgLtYygV4I8PiLN YDKthQXf0benSmaI7bBBZmqK4itSj583/69yoKZR2GZQlebN8hnyQ/ZONrm7U/ZlD0AF ZbtL5XAVflrubP4nuZTNZzu0uF/rIuADjNSuzC47zlEmyEdJ95e9qCj+bnW0/FAWnxh9 Rjkz/KSP20Egt03BfT9m5A36sL7yVpTJ6plTLp4us60DYtwHZhR9+V7E4D2fH4LvWpAs qpJjCOV3ycbEMc7fn811/fKAdLAqeLwbT7Vlk4b6gBjsC6/u7DlOwFN2vQJACWIqeAaB 1Mxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si10833304otk.261.2020.01.16.05.54.13; Thu, 16 Jan 2020 05:54:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbgAPNxP (ORCPT + 99 others); Thu, 16 Jan 2020 08:53:15 -0500 Received: from mga09.intel.com ([134.134.136.24]:43661 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbgAPNxO (ORCPT ); Thu, 16 Jan 2020 08:53:14 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jan 2020 05:53:14 -0800 X-IronPort-AV: E=Sophos;i="5.70,326,1574150400"; d="scan'208";a="373316388" Received: from dlneuman-mobl1.amr.corp.intel.com ([10.254.178.157]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jan 2020 05:53:13 -0800 Message-ID: <2a5e9df32e2df27297149a577512f6b1557de241.camel@linux.intel.com> Subject: Re: [PATCH] thermal: intel_pch_thermal: Add PCI ids for Lewisburg PCH. From: Srinivas Pandruvada To: Andres Freund , Tushar Dave , Zhang Rui Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 16 Jan 2020 05:53:13 -0800 In-Reply-To: <20200115184415.1726953-1-andres@anarazel.de> References: <20200115184415.1726953-1-andres@anarazel.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-01-15 at 10:44 -0800, Andres Freund wrote: > 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. Does the temperature reading match with what you read via IPMI? The patch looks fine to me otherwise. Thanks, Srinivas > > I suspect there's some other PCI id's missing. But I hope somebody at > Intel would have an easier time figuring that out than I... > > Signed-off-by: Andres Freund > --- > drivers/thermal/intel/intel_pch_thermal.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/thermal/intel/intel_pch_thermal.c > b/drivers/thermal/intel/intel_pch_thermal.c > index 4f0bb8f502e1..1f3ff0d489ef 100644 > --- a/drivers/thermal/intel/intel_pch_thermal.c > +++ b/drivers/thermal/intel/intel_pch_thermal.c > @@ -23,6 +23,7 @@ > #define PCH_THERMAL_DID_SKL_H 0xA131 /* Skylake PCH 100 > series */ > #define PCH_THERMAL_DID_CNL 0x9Df9 /* CNL PCH */ > #define PCH_THERMAL_DID_CNL_H 0xA379 /* CNL-H PCH */ > +#define PCH_THERMAL_DID_LWB 0xA1B1 /* Lewisburg PCH */ > > /* Wildcat Point-LP PCH Thermal registers */ > #define WPT_TEMP 0x0000 /* Temperature */ > @@ -272,6 +273,7 @@ enum board_ids { > board_wpt, > board_skl, > board_cnl, > + board_lwb, > }; > > static const struct board_info { > @@ -294,6 +296,10 @@ static const struct board_info { > .name = "pch_cannonlake", > .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, > @@ -398,6 +404,8 @@ static const struct pci_device_id > intel_pch_thermal_id[] = { > .driver_data = board_cnl, }, > { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_CNL_H), > .driver_data = board_cnl, }, > + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_LWB), > + .driver_data = board_lwb, }, > { 0, }, > }; > MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id);