Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1444757pxb; Fri, 13 Nov 2020 12:53:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvHW7D+O8GyOLADme4DyDKi01Y0yfwo9nlRIHGJdzafVgfnNzawWNI8MzB1H8NTYBWhvxC X-Received: by 2002:a17:906:2e08:: with SMTP id n8mr4077384eji.440.1605300799252; Fri, 13 Nov 2020 12:53:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605300799; cv=none; d=google.com; s=arc-20160816; b=J8jArA08zNEllVo3e0fmW4X9DMDYP8drpQNMlBOeS6AloIE9ukNRMYgTh8Cy8lAF3W gzjJk7hxSzeVL31UpwZRroI+BZ5zM2J3l631IAOdmsuxP5AJLXcei65XAnbp/jk0jj/1 LZWOJPX6VAQAf75qWHphdofcb++zZ+T8IlLPUKiCa+IAdRd4lZNC2z3HO1ePuUBSlaOb Y+/hfgz4ivEx0D/b7cEbQatafeHDQyWc8PBFi9v+6Hh5VnTtuh+DrWLcGiyiARFDbraC iH9OfPRec/10u1jcuyeUPsHnh+CoVIAtXtegQcPRLdUxhmlIEKXRW1HW7jbYIV01bkM8 wuGw== ARC-Message-Signature: i=1; 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:dkim-signature; bh=kqEAbuX6RFEOmaBUZA4rnZqet7oQcQH598nORrV3rOE=; b=JuJ+rCHvR2UAax4RAVlo+USNJ91tr+Pqjg19wmNdwYQZ+7oA/1xloUMh7V8yNE8JL9 OPMmg3DacltNgGa0jSq/NNFyhxXBFBGFN0/rwp4/zi1KHn0bZR12INiWU3W2O1051G4C WJvl4sB3v74GhyVnVEFPS1Ih3PnnGe+E8O393kxQr5+3h2I/SIgzpFpu1glmlz04qbuA G2499FUubqWJ4T7UY1C4Hen+Tqbod7bcQOOI0fkXkEwF+zfeKKQHJekDgUQpvQji7Vqn rGnbPh+qQfEQ1zXds02NEMQKNP0bBQ5YZxXMMD83nLjwSWKOa2LzfQmmUA5vBfSryunj Vxpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm3 header.b=Lut6A8xI; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=QnVLINfJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si6638187ejd.547.2020.11.13.12.52.56; Fri, 13 Nov 2020 12:53:19 -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=@anarazel.de header.s=fm3 header.b=Lut6A8xI; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=QnVLINfJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726440AbgKMUt3 (ORCPT + 99 others); Fri, 13 Nov 2020 15:49:29 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:42309 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbgKMUt2 (ORCPT ); Fri, 13 Nov 2020 15:49:28 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 87F8BC3C; Fri, 13 Nov 2020 15:49:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 13 Nov 2020 15:49:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=kqEAbuX6RFEOm aBUZA4rnZqet7oQcQH598nORrV3rOE=; b=Lut6A8xIvD2R9Pp/ze3zg9ohRqRBV N0jDcUyvieYDpyVsrGzfrEJnZusl/g20xTaMPxHhHp44aqtsLj2NPAu6ktHCskte 8SoQoDAVzDzd02kCkFpISFNvPjIbU84If5eyU7W1XKd6z3PtwzPqKqWrfLIgM8lZ TDsUC4QtA9fu+Ns6e9ZWDE/FAB7YoRniqKJA8a7lL/tukGv8atNJAlJz7bL1hIpi 9yKuvm7EuwBoPaYD5Urx2lrnEqxaY1d2oI3oXhA9lhhYoAmhAUeNi/X3g8UIX07i JwE0kpn91vWvo0GofiGsz0DRXqWCnqzMRzPFYDfUiZWP/OrYS5Br3xK1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=kqEAbuX6RFEOmaBUZA4rnZqet7oQcQH598nORrV3rOE=; b=QnVLINfJ wEEKv1i64HHIztKGfiYXpW6qH5B2gQ3+LwomQS12q59F2cJbmeD9jzOIbauaRdsZ kYVLi+epnV218aChRMGINRsZhiVHk2TbDhM4l2j7/J7c3B36KUhY14sbeSIIcA/o 4gsM6vO/nOr4HKIwc4RmIaFEHZf8fRmrm0mQ0/WqAm0neSG7SZfMUPkDkjRHyzfv dSKjJYfr4JL/2YDdqvgBgoy6ChtjvB2lDxkl1Dkp8scUbIksVwmq51FqQUVJRyhn xKrBJNmKqfq8CajNovP72y6FvLqdWdbYQZFrU/b55MYPmH1xIAfS90ZjJx+kD5u8 fas+S4vuuLDleg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddvhedgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepkedvleetffdviefgffekhedvgfdtgefhledtffeukeefkeetffevvdej hfethfffnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepieejrdduiedtrd dvudejrddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 92B993280060; Fri, 13 Nov 2020 15:49:26 -0500 (EST) From: Andres Freund To: Daniel Lezcano Cc: Andres Freund , Srinivas Pandruvada , Tushar Dave , Zhang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] thermal: intel_pch_thermal: Add PCI ids for Lewisburg PCH. Date: Fri, 13 Nov 2020 12:49:16 -0800 Message-Id: <20201113204916.1144907-1-andres@anarazel.de> X-Mailer: git-send-email 2.28.0.651.g306ee63a70 In-Reply-To: <2fd3733b-ed67-80e0-7b27-8e3c421eeb9c@linaro.org> References: <2fd3733b-ed67-80e0-7b27-8e3c421eeb9c@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 3b813ebb6ca1..7785e05f46f0 100644 --- a/drivers/thermal/intel/intel_pch_thermal.c +++ b/drivers/thermal/intel/intel_pch_thermal.c @@ -26,6 +26,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 */ @@ -276,6 +277,7 @@ enum board_ids { board_skl, board_cnl, board_cml, + board_lwb, }; static const struct board_info { @@ -301,7 +303,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, @@ -415,6 +421,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); -- 2.28.0.651.g306ee63a70