From patchwork Thu Feb 2 01:07:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 51620 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp606815wrn; Wed, 1 Feb 2023 17:10:55 -0800 (PST) X-Google-Smtp-Source: AK7set/1uTcPP9v7xItveEvlc6VPh/YvY9nIC07PQ/RcYZV9XSnlbIePJnkIjBGJ8s+lgc+krVwv X-Received: by 2002:a17:906:7e4a:b0:886:7e24:82eb with SMTP id z10-20020a1709067e4a00b008867e2482ebmr4110090ejr.21.1675300255193; Wed, 01 Feb 2023 17:10:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675300255; cv=none; d=google.com; s=arc-20160816; b=WZhdR7agkUvuspY0xqOiG6GQN9axcSOdsN/x4sJecqR02Ylj35K5T7M58bDy62DEnP P/jz2JOtqJ2b6VZ30yLgOSVuprVoHv5GL1e38SEama6ZzRNu8Cd//94oqLXap6UNksih vSNr2yc+1FYm8erw6uxJQ+f3y6aXZzBtDq5d4SgHQFC3Aa3SOvwMYmd+4N0XZ63WIcU6 9SCFSYGAp2LnVxv39X9xOM1EzkVa5Yc8C620JQrzd69Io6WnjGy2i95xAzjpne+T1AW4 vnZX0pbPc67ZMzDm0fYYLUrMDsYD9kThHBxFdSVNH+fMPIBOvmHNZmHypC1Ukc2Q+ckv q0CA== 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; bh=EYQQXEkmeahNiw925FS0Vgzin1uSKNiBCNQDU58sgDI=; b=tqDezUiQDnzgMeJRHfBhEDoo8Q/59STnETNdu1d35OfwuI4Fo7RIlqgliQfQhM2Noc Y5G1L2f/ZElTGJ5YvHUyWbHzhYutiFjPh2Kqlhsz/cxGrwtAg729BJcRQrJx6LhyV4WY hWF1SmpERQdVRrvMaHhBbLxkZrl0o+6QkEjLzQkyjsW/diIyyHjcpxI7z8v/wQieINGB ssp140Vej9LNfKOfzXuPXwcVLhDocH27cidDERp5n7NAt64zNr0Y2dkEv/72q27OV7vl /OuIv+jCCz/swjofq4PJ9+DSJg5VpMPgbX0N8U78WBvEPRfKtBBfsNgvgbgONtKgl9pm hWwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BdWTLquQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t30-20020a50ab5e000000b0046844a8111dsi6457116edc.533.2023.02.01.17.10.31; Wed, 01 Feb 2023 17:10:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BdWTLquQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230203AbjBBBJE (ORCPT + 99 others); Wed, 1 Feb 2023 20:09:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbjBBBJD (ORCPT ); Wed, 1 Feb 2023 20:09:03 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E1493FF15; Wed, 1 Feb 2023 17:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675300141; x=1706836141; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3lMOfD9F6HuX4w1wpmWNiLldjGCwlcw1Bc5PlcqtZGk=; b=BdWTLquQStoqvr3AYh73dCP9fXsv9OUc571XyhIk1WuS/richcZrytHC PRJNhNEH1J+nn9gFFlTxyTuJDTCC5jLmDFUpWJJ6xo9muWw9eaEdJWYoF zBdoVZqRi2N9Fl8gbPNoNpCvt6/N0o/JDq3BY+eB/mduVbRzwAOEBvZYc qN/0BcWJhvyhvmSlnrDjc+sLaM2vrt8wlb72UZhacA47AjFDJW2Rig9Aq +RCkE6VFlpwS6GJHqu4K6K2ZNs6+RaibC7oLayq67TdhQs1TCZ9kY/GHW 3OdvL4J4WUHfSEA1g/YegcN4BRvClZYNgfZaw2zF03+nMXD/+TmS/2rLm A==; X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="355654303" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="355654303" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 17:08:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="665087924" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="665087924" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by orsmga002.jf.intel.com with ESMTP; 01 Feb 2023 17:08:15 -0800 From: Srinivas Pandruvada To: hdegoede@redhat.com, markgross@kernel.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada , "David E . Box" Subject: [PATCH 1/7] platform/x86/intel/vsec: Add TPMI ID Date: Wed, 1 Feb 2023 17:07:32 -0800 Message-Id: <20230202010738.2186174-2-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230202010738.2186174-1-srinivas.pandruvada@linux.intel.com> References: <20230202010738.2186174-1-srinivas.pandruvada@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756679639967457243?= X-GMAIL-MSGID: =?utf-8?q?1756679639967457243?= Add TPMI (Topology Aware Register and PM Capsule Interface) VSEC ID to create an aux device. This will allow TPMI driver to enumerate on this aux device. Signed-off-by: Srinivas Pandruvada Acked-by: David E. Box --- drivers/platform/x86/intel/vsec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/platform/x86/intel/vsec.c b/drivers/platform/x86/intel/vsec.c index bb81b8b1f7e9..a82b2a5ed99d 100644 --- a/drivers/platform/x86/intel/vsec.c +++ b/drivers/platform/x86/intel/vsec.c @@ -64,6 +64,7 @@ enum intel_vsec_id { VSEC_ID_WATCHER = 3, VSEC_ID_CRASHLOG = 4, VSEC_ID_SDSI = 65, + VSEC_ID_TPMI = 66, }; static enum intel_vsec_id intel_vsec_allow_list[] = { @@ -71,6 +72,7 @@ static enum intel_vsec_id intel_vsec_allow_list[] = { VSEC_ID_WATCHER, VSEC_ID_CRASHLOG, VSEC_ID_SDSI, + VSEC_ID_TPMI, }; static const char *intel_vsec_name(enum intel_vsec_id id) @@ -88,6 +90,9 @@ static const char *intel_vsec_name(enum intel_vsec_id id) case VSEC_ID_SDSI: return "sdsi"; + case VSEC_ID_TPMI: + return "tpmi"; + default: return NULL; }