From patchwork Tue Feb 27 19:41:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 207531 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3031544dyb; Tue, 27 Feb 2024 15:45:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7r5IKxkZBpxjTiCeYYzXzuJ5mFZEc3cGusnFMVibpiVtjws+89iaN5qMr3NCLNfFJ8tLYtt9Ne9hqQG9BC0jW3HQjGg== X-Google-Smtp-Source: AGHT+IFmEEN98sPxkCCBM/3KYXm7wJGDgI0hYV0/Jg2MwoFE/ZcVzinlJByu1RRyI8uxKmzYfCec X-Received: by 2002:a17:902:e54d:b0:1dc:b308:50d9 with SMTP id n13-20020a170902e54d00b001dcb30850d9mr5859528plf.17.1709077538738; Tue, 27 Feb 2024 15:45:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709077538; cv=pass; d=google.com; s=arc-20160816; b=e53+g3o6NiK0WO1BmTd5+NPE/vkBthwy8mk79BLU7PATFOxKmHQH9LhImwvJyMA54A Pxgs44L5yXKGAUJECFsK/RAscsAnzYXy6tqNY9sAdLP16FebLmsZBDigwzyMVA3daZ+j y2L7DhBlcOglfthi34Zoimemr1Dh5qzIF39ov+s4DS88DRkhecmtmVmqhhBKcY5Wz3nV uGtpWM5SQxsUpzWtclXrdtMxNOPO9MOMrhprIKzaZhMUMR1LBBXgqg2c6RVKHtbY2yHY XCG+SftwejuYCFTulB8d6Ie1KYV/RnhUHzIrCvr0ES7YyIUc6SlkQ7gFBG2l/dZRVm7S EEPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=EXn2gW+dO+zZeaTn9hrDggMAXtzXqYBezlEUk/WOXvY=; fh=l9bqapiF6mZ2sPbPmQoyVahgrB0RREiuhqDItZofxkY=; b=WGljFmtKQEueZJeSuBcfUfwjsxTXC8EENE3ZdFOfRfutmL5gjKVRh8NgqDPZ4Su0bN 5qe/+JPqY+GyN/+cUZvbUu7/JCOvJ2mza1uuxQcd8rXdEhb4X+i5hXAU9f3hHERa2GKd oOKwvsy4sEKRTAqTsqx2GZLfplpYf14Wx5kseirraGr4k42g8NF9/FldMXWuYhuTXBRS G9ko+imFvlrCJsYnFfLd13+6IaSr7MGrElR67EB49eBKWkkNIHnPuvnJi+Kij7++blB6 ltTOFE1usXMICRwgYIqrULMdzzy7uv5kdYhGa0CX58avrwMmjPzCqEMwgZnDkzEyY+5z mKMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HwqSkhkf; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83945-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83945-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jd12-20020a170903260c00b001dc42bc9403si2104438plb.330.2024.02.27.15.45.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 15:45:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83945-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HwqSkhkf; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83945-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83945-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 40150289F67 for ; Tue, 27 Feb 2024 19:41:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 931FF1487EF; Tue, 27 Feb 2024 19:41:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HwqSkhkf" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BF2B51C5D; Tue, 27 Feb 2024 19:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062894; cv=none; b=qY6XfwXSbRxekNCiD+Xc2NyPJiW0mp0u3AjyOvjQir7w/dFG1SLNO73bpj9IczG7jzcekfPBVYY0Gv9cCJL2QpjYl2ZXSzz2mvswsM8hG0st+ZMkZDx/2BhWhWhGJJ795KnpSS8TNrIIRfEPhSK5xzukGbqYCBv9GDmMQtvPhTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062894; c=relaxed/simple; bh=k+e5j/RZ38n+f/g3s3klnPj+vtf9R3Ifx3kc3Cj6uwc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kFrokQgulMej7Djb7ncvpzS5L6Y22QAofnVcWWY73q7mx8tWkRhbYM5HEM3VIHqGnlciH8BW1ywHVoHqyChh2g5n9/a+elXE0mbIMXs1Z/EBKmyxkjuaWy4wEgRtp+cgN1qXX4jmL4WqLlQGErz9Eu+RDAVs8PAMTOfediXQTuI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HwqSkhkf; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709062892; x=1740598892; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=k+e5j/RZ38n+f/g3s3klnPj+vtf9R3Ifx3kc3Cj6uwc=; b=HwqSkhkfAgL5q8dNk9YTl5eJ0c3rcO136lzSAYB7WGASOpi8+HxaNr01 iBQQfNKsUq1ABJmikHrztxg0Es3p7+CaI7S0/8tIHgOb0TnaeNxFkgL/a u6swa47Xzh05Vm0XymaJ1Qeg/1UAoHmEZlIBPU+Zgeg8EMiiZHu+BbSoA 5O8rMpfnq1V93pE4Dx5kgh9KvypXv7x6D1MuqipSvYFvrZyrgO9cydR0x DYl55K/aj02lVZ7RgmnMBlUyyGMp8497zPxhR29lvZQ1Di5o5Ryp50dzI Tc6os9ZoOCP6iy3qiNPLsX0rElIzUrO1aG1TuxqWJAaN2TYUyRvOtMnAh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3290611" X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="3290611" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 11:41:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,188,1705392000"; d="scan'208";a="7130747" Received: from spandruv-desk.jf.intel.com ([10.54.75.14]) by fmviesa010.fm.intel.com with ESMTP; 27 Feb 2024 11:41:29 -0800 From: Srinivas Pandruvada To: rafael@kernel.org, daniel.lezcano@linaro.org, lukasz.luba@arm.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH] thermal: int340x: processor_thermal: Add Lunar Lake-M PCI ID Date: Tue, 27 Feb 2024 11:41:12 -0800 Message-Id: <20240227194112.1289979-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792097688804867818 X-GMAIL-MSGID: 1792097688804867818 Add Lunar Lake-M 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 95c6013a33fb..674f3c85dfbc 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.h @@ -25,6 +25,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_LNLM_THERMAL 0x641D #define PCI_DEVICE_ID_INTEL_MTLP_THERMAL 0x7D03 #define PCI_DEVICE_ID_INTEL_RPL_THERMAL 0xA71D #define PCI_DEVICE_ID_INTEL_SKL_THERMAL 0x1903 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 d7495571dd5d..4e1dfd283651 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c @@ -407,6 +407,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_WT_REQ) }, + { PCI_DEVICE_DATA(INTEL, LNLM_THERMAL, PROC_THERMAL_FEATURE_RAPL) }, { 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 | PROC_THERMAL_FEATURE_POWER_FLOOR) },