From patchwork Fri Jan 14 23:24:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Pandruvada X-Patchwork-Id: 532021 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7560EC433FE for ; Fri, 14 Jan 2022 23:24:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbiANXYr (ORCPT ); Fri, 14 Jan 2022 18:24:47 -0500 Received: from mga01.intel.com ([192.55.52.88]:33182 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbiANXYr (ORCPT ); Fri, 14 Jan 2022 18:24:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642202687; x=1673738687; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+57jmJGipD0NVrM4oIQsgoZMVZ6PC/LhLcEpTUfLqew=; b=l6i8JyKTlrDsARADBeg5CnYN0O6FB06ZtJ311YR3a7e3curczwZ9+jnL uRAqV84TmAMpP9Tl4RrretvCKzzK51WYZFaTtAUTCOcAVMU1xpD6ClYI9 q49H442AXHhYtW7QXPIYFxhH5xDr8yG6lrNJCwgzuWtpsqwfXYAe/7XJ5 72dQCmTS4XR2uZwTBVi+cJ39oj/bmA4rn9FksmAEuhjXWRNKbVWsHTjs7 I0AAW1oiSzy4oqUuYy3sqM0j96acChG3tokmrt38nhF4FXE2XLIDCSOO0 FtfeNILwUb6rOYemAU5/bo+JtLEvuiwLqGM/U++iAR7t9MOeS4afyh/NB w==; X-IronPort-AV: E=McAfee;i="6200,9189,10227"; a="268718349" X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="268718349" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2022 15:24:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="491682054" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by orsmga002.jf.intel.com with ESMTP; 14 Jan 2022 15:24:46 -0800 From: Srinivas Pandruvada To: rafael@kernel.org, lenb@kernel.org, daniel.lezcano@linaro.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, amitk@kernel.org, Srinivas Pandruvada Subject: [PATCH 1/3] ACPI: DPTF: Support Raptor Lake Date: Fri, 14 Jan 2022 15:24:33 -0800 Message-Id: <20220114232435.448340-2-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220114232435.448340-1-srinivas.pandruvada@linux.intel.com> References: <20220114232435.448340-1-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Add Raptor Lake ACPI IDs for DPTF devices. Signed-off-by: Srinivas Pandruvada --- drivers/acpi/dptf/dptf_pch_fivr.c | 1 + drivers/acpi/dptf/dptf_power.c | 2 ++ drivers/acpi/dptf/int340x_thermal.c | 6 ++++++ drivers/acpi/fan.h | 1 + 4 files changed, 10 insertions(+) diff --git a/drivers/acpi/dptf/dptf_pch_fivr.c b/drivers/acpi/dptf/dptf_pch_fivr.c index e7ab0fc90db9..c0da24c9f8c3 100644 --- a/drivers/acpi/dptf/dptf_pch_fivr.c +++ b/drivers/acpi/dptf/dptf_pch_fivr.c @@ -151,6 +151,7 @@ static int pch_fivr_remove(struct platform_device *pdev) static const struct acpi_device_id pch_fivr_device_ids[] = { {"INTC1045", 0}, {"INTC1049", 0}, + {"INTC10A3", 0}, {"", 0}, }; MODULE_DEVICE_TABLE(acpi, pch_fivr_device_ids); diff --git a/drivers/acpi/dptf/dptf_power.c b/drivers/acpi/dptf/dptf_power.c index a24d5d7aa117..dc1f52a5b3f4 100644 --- a/drivers/acpi/dptf/dptf_power.c +++ b/drivers/acpi/dptf/dptf_power.c @@ -231,6 +231,8 @@ static const struct acpi_device_id int3407_device_ids[] = { {"INTC1050", 0}, {"INTC1060", 0}, {"INTC1061", 0}, + {"INTC10A4", 0}, + {"INTC10A5", 0}, {"", 0}, }; MODULE_DEVICE_TABLE(acpi, int3407_device_ids); diff --git a/drivers/acpi/dptf/int340x_thermal.c b/drivers/acpi/dptf/int340x_thermal.c index da5d5f0be2f2..42a556346548 100644 --- a/drivers/acpi/dptf/int340x_thermal.c +++ b/drivers/acpi/dptf/int340x_thermal.c @@ -37,6 +37,12 @@ static const struct acpi_device_id int340x_thermal_device_ids[] = { {"INTC1050"}, {"INTC1060"}, {"INTC1061"}, + {"INTC10A0"}, + {"INTC10A1"}, + {"INTC10A2"}, + {"INTC10A3"}, + {"INTC10A4"}, + {"INTC10A5"}, {""}, }; diff --git a/drivers/acpi/fan.h b/drivers/acpi/fan.h index dc9a6efa514b..dd9bb8ca2244 100644 --- a/drivers/acpi/fan.h +++ b/drivers/acpi/fan.h @@ -10,4 +10,5 @@ {"INT3404", }, /* Fan */ \ {"INTC1044", }, /* Fan for Tiger Lake generation */ \ {"INTC1048", }, /* Fan for Alder Lake generation */ \ + {"INTC10A2", }, /* Fan for Raptor Lake generation */ \ {"PNP0C0B", } /* Generic ACPI fan */ From patchwork Fri Jan 14 23:24:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Pandruvada X-Patchwork-Id: 532434 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7068AC433F5 for ; Fri, 14 Jan 2022 23:24:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiANXYs (ORCPT ); Fri, 14 Jan 2022 18:24:48 -0500 Received: from mga01.intel.com ([192.55.52.88]:33182 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiANXYr (ORCPT ); Fri, 14 Jan 2022 18:24:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642202687; x=1673738687; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AYiQJoCHac+p7l76fSC/rzt2/E84pBNzxfz461aHqNU=; b=iDGXUqng3OUtGsB3AeoBEr1NycpAPU5dE2ickpKTaj+H1VH2mob3dxVQ E9gXqvEdsBL0KCxAutlgWHNgfxy7RCvZGcXzhhvDYN1RRCZw4Wjf/5VfE //aUjijGTFr25Zg35DBffSts7gxmezB2r+sMDnplmKYyrEBQ+B0Mz8E6B 83rMo8j800x58RAXNOpURYgf2pQVCbRlxl1oAwAEyNEYRODpWAHhdDpL+ eV+p8ctThUXsmfILJDBMnucpg1cnpKiZZBObx1gcbpPiHrZQ12mN7rz+1 YqYusSUMdh1sEOkjd0a+knPqYvAmdJDaNNxNEezsRqjDhz0W6K6zcd/BK A==; X-IronPort-AV: E=McAfee;i="6200,9189,10227"; a="268718350" X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="268718350" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2022 15:24:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="491682055" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by orsmga002.jf.intel.com with ESMTP; 14 Jan 2022 15:24:46 -0800 From: Srinivas Pandruvada To: rafael@kernel.org, lenb@kernel.org, daniel.lezcano@linaro.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, amitk@kernel.org, Srinivas Pandruvada Subject: [PATCH 2/3] thermal: int340x: Support Raptor Lake Date: Fri, 14 Jan 2022 15:24:34 -0800 Message-Id: <20220114232435.448340-3-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220114232435.448340-1-srinivas.pandruvada@linux.intel.com> References: <20220114232435.448340-1-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Add Raptor Lake ACPI IDs for DPTF devices. Signed-off-by: Srinivas Pandruvada --- drivers/thermal/intel/int340x_thermal/int3400_thermal.c | 1 + drivers/thermal/intel/int340x_thermal/int3403_thermal.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c index 8502b7d8df89..72acb1f61849 100644 --- a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c @@ -596,6 +596,7 @@ static const struct acpi_device_id int3400_thermal_match[] = { {"INT3400", 0}, {"INTC1040", 0}, {"INTC1041", 0}, + {"INTC10A0", 0}, {} }; diff --git a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c index c3c4c4d34542..07e25321dfe3 100644 --- a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c @@ -285,6 +285,7 @@ static const struct acpi_device_id int3403_device_ids[] = { {"INT3403", 0}, {"INTC1043", 0}, {"INTC1046", 0}, + {"INTC10A1", 0}, {"", 0}, }; MODULE_DEVICE_TABLE(acpi, int3403_device_ids); From patchwork Fri Jan 14 23:24:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Pandruvada X-Patchwork-Id: 532020 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50D1AC433EF for ; Fri, 14 Jan 2022 23:24:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbiANXYt (ORCPT ); Fri, 14 Jan 2022 18:24:49 -0500 Received: from mga01.intel.com ([192.55.52.88]:33182 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbiANXYr (ORCPT ); Fri, 14 Jan 2022 18:24:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642202687; x=1673738687; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aERjaKJcO3q8+3VbJzmZCF3NJVD1CcvNJXZcgR8QX+U=; b=ntrahYGI8zhCmegsTzs8LC31d1ti/hKVVPAfkVVT2vXsiG8HjMIPC2q/ stVVknEqXBkj+KFhxRZcCJVdGeGhGcOfRsnApwALldz2hFmp4jBUxxe9c dn2ykGPIkwgawUw0hgRtX5BtXtGkM+j5va3GEDGjE/upf49SxmmMC5sKB 1vcQ/eLzz+Nk+yT09i8WJsNrbeJllQNwX5jp+qMgFM7hm27X5ISGh6uaK 8hCqeYk+8UUb23Og8ELljlXfa1P2oOunPYWQXlW3FHPdKiVkPHBgug/po PrrQoDxOmqPacP3kUTcyXwq+Yz7eRWLqbKuzcB8Ydj+OHghiuR8OIso6o Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10227"; a="268718352" X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="268718352" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2022 15:24:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="491682056" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by orsmga002.jf.intel.com with ESMTP; 14 Jan 2022 15:24:46 -0800 From: Srinivas Pandruvada To: rafael@kernel.org, lenb@kernel.org, daniel.lezcano@linaro.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, amitk@kernel.org, Srinivas Pandruvada Subject: [PATCH 3/3] thermal: int340x: Add Raptor Lake PCI device id Date: Fri, 14 Jan 2022 15:24:35 -0800 Message-Id: <20220114232435.448340-4-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220114232435.448340-1-srinivas.pandruvada@linux.intel.com> References: <20220114232435.448340-1-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Add Raptor Lake PCI ID for processor thermal device. Signed-off-by: Srinivas Pandruvada --- drivers/thermal/intel/int340x_thermal/processor_thermal_device.h | 1 + .../thermal/intel/int340x_thermal/processor_thermal_device_pci.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h index 9b2a64ef55d0..49932a68abac 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h @@ -24,6 +24,7 @@ #define PCI_DEVICE_ID_INTEL_HSB_THERMAL 0x0A03 #define PCI_DEVICE_ID_INTEL_ICL_THERMAL 0x8a03 #define PCI_DEVICE_ID_INTEL_JSL_THERMAL 0x4E03 +#define PCI_DEVICE_ID_INTEL_RPL_THERMAL 0xA71D #define PCI_DEVICE_ID_INTEL_SKL_THERMAL 0x1903 #define PCI_DEVICE_ID_INTEL_TGL_THERMAL 0x9A03 diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c index b4bcd3fe9eb2..ca40b0967cdd 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c @@ -358,6 +358,7 @@ static SIMPLE_DEV_PM_OPS(proc_thermal_pci_pm, proc_thermal_pci_suspend, static const struct pci_device_id proc_thermal_pci_ids[] = { { PCI_DEVICE_DATA(INTEL, ADL_THERMAL, PROC_THERMAL_FEATURE_RAPL | PROC_THERMAL_FEATURE_FIVR | PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_MBOX) }, + { PCI_DEVICE_DATA(INTEL, RPL_THERMAL, PROC_THERMAL_FEATURE_RAPL | PROC_THERMAL_FEATURE_FIVR | PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_MBOX) }, { }, };