From patchwork Wed Sep 13 17:35:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 139103 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:a8d:b0:3f2:4152:657d with SMTP id gr13csp96611vqb; Wed, 13 Sep 2023 14:28:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwLCFFJ4deoQDH1iMyZwdSHevqo3oCG/4xsw646BQfj3dzlDiVPSiHjPVQOUOx0miIg5Vy X-Received: by 2002:a17:90a:eb06:b0:268:314f:8f40 with SMTP id j6-20020a17090aeb0600b00268314f8f40mr3323922pjz.16.1694640525344; Wed, 13 Sep 2023 14:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694640525; cv=none; d=google.com; s=arc-20160816; b=X+nZetUQ2N6Av0j2KT4IF+hD3OZlDjlWvyRIz7VIX4qn4zZ70Z3R8F7QsZdewvl7qt 9y9YJx268EzkTmyTg8nBYDBM76yBag8WmbWVaQR0alLFm/9H1RGK5syMtfiVIuXLJQE7 n6+SvkUq6PJvg3iezVZn+pNjGmCor6CWp4UaW7+T/5xpVC/5V8t83oajdI3KZXwX2TkC 8UxnnPxXLEuHyVQxOJMy0ZFpF7Y+0dFaHzItB3ixDRDqQmQB2UErprdlze9upEIloAuK Yu6vQNWxgwXX7G38+IOXRz4MKrclqBSAdQTMt9jqgjJuhd+iziQ2tJzas7f3bkdoLyoZ WEug== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lVSDKjwTUvcgPWTK7xv1/TTwLZz+/gvtsRAJym3UhWc=; fh=HlKkiquNc46jVE3LHXufgrfsbaUPEXN8C6VLDpazkiQ=; b=0HZpW6hO4Ic/K6DufgssQosNi46D3EaP2/selnxhaJnOSV41QvfTVLBvGyRv+Q9t07 Gh+OTRjZkv28Tgfnd/6ekVuR3LgEmBx9EXyknGYi3xe93VtrcK5iEauy2sM03Un0s+8U if9karLLw4W51+kAcpPKD96mJ9HyMDV8lXhl4j2rZSOzlofT2C/iW74gUgxzM47qequs c2WDiDmZyGckkd4vBd6/J+d0mHUJfRDUhcbWVhcKQHUIwYkNa9JvLP59GauUzkUPUBIZ ekCq6KLPXFEDnjgMPGNG7hF/bdxiF2m93XGf5a5G/PKWL6RJZ6JvRED8A3m+KtnxSxSW vLHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SWQvjKzS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id nv2-20020a17090b1b4200b0025359a570fesi200733pjb.19.2023.09.13.14.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 14:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SWQvjKzS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id AEB27802D412; Wed, 13 Sep 2023 10:35:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbjIMRfl (ORCPT + 34 others); Wed, 13 Sep 2023 13:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjIMRfk (ORCPT ); Wed, 13 Sep 2023 13:35:40 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C25F8A8; Wed, 13 Sep 2023 10:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694626536; x=1726162536; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3/kfAqbdJ1Jw40JpAhtowZlrzIpwtchpP4+yODy4jDQ=; b=SWQvjKzSG3eVvW4+1ddUcmc2w8Vq2dF1+Kr3B0Qi15zQbWNNEwYCTZWo c5xxe0A5aG3xoBe4xue7SJbaRpglef+H0JcY+xqhsuoL6r27B5SuJtNVf doHvxqx+ffW3QE24TqUgF1t3Sfp9mGxDy7ehjiAl36bycBWOYhb2XV6/+ L/UoH2aohvL7y/zcO1tH+A2RCwXkI0G/M752xKc7bQe8GIGb9pjjQ9aTW NBFcRHtdNCbdGJwGBlmq3sQYsC7L45ULkYIlc8R9kRJtxuVijW0tV6Odp G1d/zQX6zmq/I0WOxxWdWviX+w0k7tj7pA7+4J0hCE+aTsEll2JKG39Ts g==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="445168516" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="445168516" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 10:35:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="737603953" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="737603953" Received: from spandruv-desk.jf.intel.com ([10.54.75.14]) by orsmga007.jf.intel.com with ESMTP; 13 Sep 2023 10:35:36 -0700 From: Srinivas Pandruvada To: daniel.lezcano@linaro.org, rafael@kernel.org, rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH] thermal: int340x: Add ArrowLake-S PCI ID Date: Wed, 13 Sep 2023 10:35:10 -0700 Message-Id: <20230913173510.3963561-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 10:35:42 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776959383731835098 X-GMAIL-MSGID: 1776959383731835098 Add ArrowLake-S PCI ID for processor thermal device. Signed-off-by: Srinivas Pandruvada --- .../thermal/intel/int340x_thermal/processor_thermal_device.h | 1 + .../intel/int340x_thermal/processor_thermal_device_pci.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h index b974583c5c11..dd025c8c2bac 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h @@ -10,6 +10,7 @@ #include #define PCI_DEVICE_ID_INTEL_ADL_THERMAL 0x461d +#define PCI_DEVICE_ID_INTEL_ARL_S_THERMAL 0xAD03 #define PCI_DEVICE_ID_INTEL_BDW_THERMAL 0x1603 #define PCI_DEVICE_ID_INTEL_BSW_THERMAL 0x22DC 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 7253277e476a..44b179ce9bc9 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c @@ -390,6 +390,8 @@ static const struct pci_device_id proc_thermal_pci_ids[] = { { PCI_DEVICE_DATA(INTEL, MTLP_THERMAL, PROC_THERMAL_FEATURE_RAPL | PROC_THERMAL_FEATURE_FIVR | PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_DLVR | PROC_THERMAL_FEATURE_WT_HINT) }, + { PCI_DEVICE_DATA(INTEL, ARL_S_THERMAL, PROC_THERMAL_FEATURE_RAPL | + PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_DLVR | PROC_THERMAL_FEATURE_WT_HINT) }, { PCI_DEVICE_DATA(INTEL, RPL_THERMAL, PROC_THERMAL_FEATURE_RAPL | PROC_THERMAL_FEATURE_FIVR | PROC_THERMAL_FEATURE_DVFS | PROC_THERMAL_FEATURE_WT_REQ) }, { },