Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp7051165rdb; Fri, 15 Dec 2023 16:52:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMVzIA16lc7TLrSvDPjhKvf+bwZfxhUC04oW2ClLN2FpaOOD7i1YCoSatY8fOBCHtWRx+Z X-Received: by 2002:a05:6871:4e45:b0:203:3ff4:e0ca with SMTP id uj5-20020a0568714e4500b002033ff4e0camr4874741oab.2.1702687921710; Fri, 15 Dec 2023 16:52:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702687921; cv=none; d=google.com; s=arc-20160816; b=XIquFJIM56DYHr4yDF2GE3WesF3h+CY9vib4C4IDwcYJCQhOfVb1aN52Abqk6l4dC+ azuq9nefwGwvmFs0++8lth37NRFhhpo1KByE9cjgM/NmZBwWgcrzLRSOOtFeGBOzOZ3E VohVcWtqho3uyOCtSs70vWLNuSiqAHIX50TxqcOK1qsCna+mePj2/7a/4KhiSjy+yA6y 8W/9XoukDFCdK33TQ9oR+Cr0fVnWqH9IPzc1Ip+zedbLBb1o5ZiKd45SHREUckjAvOm6 R1J/Ba5sXhMEpc84pQ3oCagqXWqyCgsc0dZJ8iQEwElejYt2YoErKEVhSm45T1DEbLMC Qq3g== ARC-Message-Signature: i=1; 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=xIyWyYnj9kydj3bbdgJB31KUVxbIUbEntiy3isUzMnU=; fh=myYtJESK9+Lkc7JZsDcFzkanINInE/ao4vLuI4+FbTo=; b=TiI3nAnz3MvEPL0tKMcFs+Yz9YVsrl5ujQ1lL4yfZ89sLotO83AUxmyRW7IUDkNHiS +URZejm+/ks7lPCSX7uF56Dkis/U1xx3ZZ1Go7/cqRUl+NrdZiqiSJxAjBVIku2BC9lK YbUkhaZKbgUBhqUp2OtXgoM5if5nwNg6wbojkIWeLcO6t+Zq1ew2UaH4aOTB0yKczSiU BZ2PQrpgpy69iJE3YxLaDpzr0hR02knYk7LU/MCA9yck+wsft8IsJCfIzXUgNFxvo2nL DHcm7H0DbYf25aQlCcWnwfywHTC8pkVc2qsUY8QJ6UUbCJHuCPo9U2O5EUsq3R+irB1r Nh2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kGOwgGT4; spf=pass (google.com: domain of linux-kernel+bounces-1913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i1-20020a635401000000b005b8ef498e2bsi13687785pgb.461.2023.12.15.16.52.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 16:52:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1913-linux.lists.archive=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=kGOwgGT4; spf=pass (google.com: domain of linux-kernel+bounces-1913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1913-linux.lists.archive=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 5B9D12859D6 for ; Sat, 16 Dec 2023 00:52:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC4CC1106; Sat, 16 Dec 2023 00:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kGOwgGT4" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 D69A517E8; Sat, 16 Dec 2023 00:51:51 +0000 (UTC) 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=1702687912; x=1734223912; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FrdnvABXLWZBgVFBeb7jdyh66RlSMWph5cvL0Ajf7EI=; b=kGOwgGT4NVyfxj0Dy/K1VxzSUyB2vGWurvA3jPOAHP687v3iJ392Wozm QtWfAPgzqNqXT3l04kCn5XWvTIJXMWRKqhpWZ7IHRlUnipbE4H9r6B70n wAsujWscNy/uueYzVLtqBoh9P+1Tsmp3Z6ibH4G2cFljKtfmlQc9fxLqR 8eQ1NXczlZJ92EWuGlHIWcBjNeao8oY5HtISsMXL/hph5GVpihC80HEBE 8w+F7SdE6nwuCKtcrdz2CEapJXlkprdlbc5R55igtwYWF8rDPKQh1pxvl hU25nLOaorNGfsQZ5A268d0uGA8RBFO7ISKeCkjet2bUiXV7lpE/Y8txE w==; X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="2171699" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="2171699" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 16:51:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10925"; a="898310133" X-IronPort-AV: E=Sophos;i="6.04,280,1695711600"; d="scan'208";a="898310133" Received: from simmons1-mobl5.amr.corp.intel.com (HELO rjingar-desk5.intel.com) ([10.213.162.133]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2023 16:51:50 -0800 From: rjingar To: linux-kernel@vger.kernel.org, david.e.box@linux.intel.com, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, platform-driver-x86@vger.kernel.org Cc: Rajvi Jingar Subject: [PATCH] platform/x86/intel/vsec: Add support for Lunar Lake M Date: Fri, 15 Dec 2023 16:51:46 -0800 Message-Id: <20231216005146.1735455-1-rajvi.jingar@linux.intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Rajvi Jingar Add Lunar Lake M PMT telemetry support. Signed-off-by: Rajvi Jingar --- drivers/platform/x86/intel/vsec.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/platform/x86/intel/vsec.c b/drivers/platform/x86/intel/vsec.c index c1f9e4471b28..3567dba57781 100644 --- a/drivers/platform/x86/intel/vsec.c +++ b/drivers/platform/x86/intel/vsec.c @@ -421,6 +421,11 @@ static const struct intel_vsec_platform_info tgl_info = { .quirks = VSEC_QUIRK_TABLE_SHIFT | VSEC_QUIRK_EARLY_HW, }; +/* LNL info */ +static const struct intel_vsec_platform_info lnl_info = { + .caps = VSEC_CAP_TELEMETRY | VSEC_CAP_WATCHER, +}; + #define PCI_DEVICE_ID_INTEL_VSEC_ADL 0x467d #define PCI_DEVICE_ID_INTEL_VSEC_DG1 0x490e #define PCI_DEVICE_ID_INTEL_VSEC_MTL_M 0x7d0d @@ -428,6 +433,7 @@ static const struct intel_vsec_platform_info tgl_info = { #define PCI_DEVICE_ID_INTEL_VSEC_OOBMSM 0x09a7 #define PCI_DEVICE_ID_INTEL_VSEC_RPL 0xa77d #define PCI_DEVICE_ID_INTEL_VSEC_TGL 0x9a0d +#define PCI_DEVICE_ID_INTEL_VSEC_LNL_M 0x647d static const struct pci_device_id intel_vsec_pci_ids[] = { { PCI_DEVICE_DATA(INTEL, VSEC_ADL, &tgl_info) }, { PCI_DEVICE_DATA(INTEL, VSEC_DG1, &dg1_info) }, @@ -436,6 +442,7 @@ static const struct pci_device_id intel_vsec_pci_ids[] = { { PCI_DEVICE_DATA(INTEL, VSEC_OOBMSM, &oobmsm_info) }, { PCI_DEVICE_DATA(INTEL, VSEC_RPL, &tgl_info) }, { PCI_DEVICE_DATA(INTEL, VSEC_TGL, &tgl_info) }, + { PCI_DEVICE_DATA(INTEL, VSEC_LNL_M, &lnl_info) }, { } }; MODULE_DEVICE_TABLE(pci, intel_vsec_pci_ids); -- 2.34.1