From patchwork Thu Mar 16 22:57:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "David E. Box" X-Patchwork-Id: 71010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp47094wrt; Thu, 16 Mar 2023 16:23:31 -0700 (PDT) X-Google-Smtp-Source: AK7set8+XPyT3Ye3/ugj3821lioe3e1Y8R1M+emDTnsdAFLyQ8y8rgP2c8NDTEBR57aRIcWgz9p2 X-Received: by 2002:a17:90b:1b50:b0:237:4170:f63 with SMTP id nv16-20020a17090b1b5000b0023741700f63mr5742253pjb.18.1679009011085; Thu, 16 Mar 2023 16:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679009011; cv=none; d=google.com; s=arc-20160816; b=HdTmPi+9o5hJBdxQsicjHATHIOwKKA+zBxMcIgvNjctJpby4MMpFcg5rSaSf4Pog4/ 1OopEG3ngGWbFwMXqohp7/ZlkrM+D8OHx8cDl5TCQ1of9cHG0qNF2FwZ9Rwyc8SiAw9U OXaazKFMI9R9oAm+et13xLOOdKMvM8D2rob1zBGX0zEdycwHdTQ/3usLlCEzX39mvIue CZquC/XfWfaScjkhRZkGPjYbN2TZ5GDNtJPOartfY3orvMTq/evsIdHoBoINyK34gRCn yMKP4n69INw3e5VIFrJczKZOeBuXjbAgtXCRueDzY38m2yGdjAkE9k/J9bCwEs/M35Ne XZOA== 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=1c0+ttHC2thCbvyHwtOFkGWAqeaeNQuf2olqhnIyT0w=; b=n8zJL5POqwKJQ87FUox/k0xvxx5sr5UIneaF3eJ2MnMul5sO62Ugl0nD0hTP2jMWYd OP1hnxMm7hkiiZpr08w2VVRROPWsufTI8+6FV8MC08mjNl7zolxl+Vx3QKiQptLZ/X7G n6t97v/bAZPyRpKTiiDgGOucV8vel7K/dMH2xRMIBL6bsC0UCVqoTm6bzHlbXAsugio0 gTLh1+LFCBaQpswaCDvzwT1YNOyVbiFt32VeeOXhcxh4UrpvLv/IQgXmB0a8WkJjYGGQ +aC0wWEWuyDAHBScMwAH5KAdmPkBhZuya0vMHg/X7bP2h8+RgnZ7kxDvlKBwJZ3D7erg n9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I4xDHW40; 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 g190-20020a636bc7000000b0050bf58ab139si545189pgc.590.2023.03.16.16.23.16; Thu, 16 Mar 2023 16:23:31 -0700 (PDT) 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=I4xDHW40; 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 S230234AbjCPW5j (ORCPT + 99 others); Thu, 16 Mar 2023 18:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbjCPW5i (ORCPT ); Thu, 16 Mar 2023 18:57:38 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46061C5ADD; Thu, 16 Mar 2023 15:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679007457; x=1710543457; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qwfHlTCxA1ylkKrdEJyrKd/vE/qqC1tP3ZmUkPiWOKY=; b=I4xDHW40p8EE9wt69Ocf10NcFBsI8hwCZHSMs45osnvkKkKdJgFC8eGv ppuak4UO1ifYIFtjwFE/ag6uzB1/cThcXdYqyi54UViEyTwD7zbJ+R1Kq ycnKNp7WWK+EbeIVPf8CNIOxW0xxHHgM/OP8HHI8kvu/k0e+Od9XHcIG2 yaglbW0WSjNox1prC/Ome/s58P96u+p+zxgyBZ5PWOTAWsYs4WELFSBVM adIhVNNKALYkNtvPKwqpssIJonb6vVbkbX1q5JRbRyvIq2PPncs46y+mY FhNSXq5Wu0AUkdqn6r2HVuaE5Z8axqoMHIg1BwBXGK/Vr2hiHUERiE71q Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="321984196" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="321984196" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 15:57:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="803914129" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="803914129" Received: from linux.intel.com ([10.54.29.200]) by orsmga004.jf.intel.com with ESMTP; 16 Mar 2023 15:57:36 -0700 Received: from debox1-desk4.intel.com (unknown [10.212.175.15]) by linux.intel.com (Postfix) with ESMTP id 6A7D6580C1F; Thu, 16 Mar 2023 15:57:36 -0700 (PDT) From: "David E. Box" To: irenic.rajneesh@gmail.com, david.e.box@intel.com, hdegoede@redhat.com, markgross@kernel.org, andy.shevchenko@gmail.com Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH 1/2] platform/x86/intel/pmt: Add INTEL_PMT module namespace Date: Thu, 16 Mar 2023 15:57:35 -0700 Message-Id: <20230316225736.2856521-1-david.e.box@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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?1760568552765770623?= X-GMAIL-MSGID: =?utf-8?q?1760568552765770623?= Since the currently exported symbols in pmt_class are only used by other Intel PMT drivers, create an INTEL_PMT module namespace for them. Signed-off-by: David E. Box Reviewed-by: Andy Shevchenko --- drivers/platform/x86/intel/pmt/class.c | 6 +++--- drivers/platform/x86/intel/pmt/crashlog.c | 1 + drivers/platform/x86/intel/pmt/telemetry.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) base-commit: 79df06733435e2773eb5e9ab9c0ce13c23e4cd88 diff --git a/drivers/platform/x86/intel/pmt/class.c b/drivers/platform/x86/intel/pmt/class.c index 46598dcb634a..0b96d75f5924 100644 --- a/drivers/platform/x86/intel/pmt/class.c +++ b/drivers/platform/x86/intel/pmt/class.c @@ -33,7 +33,7 @@ bool intel_pmt_is_early_client_hw(struct device *dev) */ return !!(ivdev->info->quirks & VSEC_QUIRK_EARLY_HW); } -EXPORT_SYMBOL_GPL(intel_pmt_is_early_client_hw); +EXPORT_SYMBOL_NS_GPL(intel_pmt_is_early_client_hw, INTEL_PMT); static inline int pmt_memcpy64_fromio(void *to, const u64 __iomem *from, size_t count) @@ -327,7 +327,7 @@ int intel_pmt_dev_create(struct intel_pmt_entry *entry, struct intel_pmt_namespa return intel_pmt_dev_register(entry, ns, dev); } -EXPORT_SYMBOL_GPL(intel_pmt_dev_create); +EXPORT_SYMBOL_NS_GPL(intel_pmt_dev_create, INTEL_PMT); void intel_pmt_dev_destroy(struct intel_pmt_entry *entry, struct intel_pmt_namespace *ns) @@ -343,7 +343,7 @@ void intel_pmt_dev_destroy(struct intel_pmt_entry *entry, device_unregister(dev); xa_erase(ns->xa, entry->devid); } -EXPORT_SYMBOL_GPL(intel_pmt_dev_destroy); +EXPORT_SYMBOL_NS_GPL(intel_pmt_dev_destroy, INTEL_PMT); static int __init pmt_class_init(void) { diff --git a/drivers/platform/x86/intel/pmt/crashlog.c b/drivers/platform/x86/intel/pmt/crashlog.c index ace1239bc0a0..bbb3d61d09f4 100644 --- a/drivers/platform/x86/intel/pmt/crashlog.c +++ b/drivers/platform/x86/intel/pmt/crashlog.c @@ -328,3 +328,4 @@ module_exit(pmt_crashlog_exit); MODULE_AUTHOR("Alexander Duyck "); MODULE_DESCRIPTION("Intel PMT Crashlog driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(INTEL_PMT); diff --git a/drivers/platform/x86/intel/pmt/telemetry.c b/drivers/platform/x86/intel/pmt/telemetry.c index 5e4009c05ecf..71cdef42084a 100644 --- a/drivers/platform/x86/intel/pmt/telemetry.c +++ b/drivers/platform/x86/intel/pmt/telemetry.c @@ -160,3 +160,4 @@ module_exit(pmt_telem_exit); MODULE_AUTHOR("David E. Box "); MODULE_DESCRIPTION("Intel PMT Telemetry driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(INTEL_PMT); From patchwork Thu Mar 16 22:57:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "David E. Box" X-Patchwork-Id: 71011 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp47364wrt; Thu, 16 Mar 2023 16:24:14 -0700 (PDT) X-Google-Smtp-Source: AK7set/7C8vUzZR9HBLmHqKgw4/C+G47H//j69VKsIvjxcGMV6MZx1BMMMsv7PaHhslGeBY8zQz5 X-Received: by 2002:a05:6a20:6aa9:b0:d7:41ed:b3d2 with SMTP id bi41-20020a056a206aa900b000d741edb3d2mr2634974pzb.16.1679009053990; Thu, 16 Mar 2023 16:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679009053; cv=none; d=google.com; s=arc-20160816; b=VRdh020odT+mNT4dUitrE7oepgQ3VCJlZJbx4yox+Ju+5mRpFzG9OSLQSn8ZDFcbRu c53/b2Fiqrdsl+NaWQwdjALFR+/1r9C8jPGrE0+svQNw9qcVPYhWdLt2zEe8CEJA+id0 mdRNQApuHFyww0tcCNWn6vmtbHIaqAbYFA3TQAysRLR0KHUu6cuHopVkDla5rSn7/0KU WCqEcby2ivJ98SQb5Tedss5CgM0NBHuleSg71+4F0p2IU88V57Ckqmj1Yp+trjSppItP GGWisgEbJFP8za54eM+XOv0iK9e71KLJvBnSVWV76rnZYLDjT3Xk3Ik/cjFS/FlKfOFX QYOg== 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=6n4IjY1M8VzrztGrZdQUrR/uPWpSiAvY5vhvG1R6OTA=; b=EGzj2Y7R35rvFqeAq9DPiFx62tOiiaRly0huu8Z2PbAit/tHZL0N78ugmjhcMSJ8qN vA0BQHmxkgU70mIEzXW/Aoa3kp6h0nJPKMlAIu8Sy0FyWxSfFQL5NqFpgotQ7xtSR+NW Y+JlVl271+1eE4x9G4bqvg8ATuPQnDS50oRRvMGADnDYq8/P9miEGC5PIIsQb5C3Lh9L MBhD+23qLOtiWqPt53PfOh4d0un6TA3mGEuWWJ4kaaPRx9dc0VANPxJHknnQ0eF82WuM Lm6VbdL4nwcOA7Nd6lXBHWY23qf1s0r2MTWBUW0+5jNgXgoitxEVgX6Y22D/mX4ejafg VLuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PIUz2WUr; 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 o6-20020a63fb06000000b004fb95c8f647si505435pgh.407.2023.03.16.16.23.59; Thu, 16 Mar 2023 16:24:13 -0700 (PDT) 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=PIUz2WUr; 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 S230240AbjCPW5l (ORCPT + 99 others); Thu, 16 Mar 2023 18:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbjCPW5i (ORCPT ); Thu, 16 Mar 2023 18:57:38 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C75ED7C14; Thu, 16 Mar 2023 15:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679007458; x=1710543458; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Qwbi8WFPAtRQ/5UGVKeLue4Y8i0TM3Lz0+U0sm0VmRY=; b=PIUz2WUr8xOvg8DGtqg57NUmJkTAXOzCmElX+uyvq4p+ZnhGQVH/6+In Nk9r2YoXwp35z9kLrtCQkc1dQrNfhc21qZhGqvoaU15/x4Pq4ANfKirTJ u1Gyj6JOL2U7ofiBOE3iJNZR09wfvXk3C/DHt9qjvLnDXGppYv2mYkFPI 9/FBRJfwhvQoaY2xfHCNgbU3i+pTzuphzq+q1x8R5hcKW9FMIDyj7JV7c 8DNlq5Ep8YmR5N38zK4aGUW6hpxSEvbbxLk5QYSJM/dz7xtVsxuaxIeRH P7VNiKDx2DW1dlOA44kCCuSn6kz0Pqimfk/BuIiTyXdsalffYN5smuVmt w==; X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="321984201" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="321984201" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 15:57:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="803914132" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="803914132" Received: from linux.intel.com ([10.54.29.200]) by orsmga004.jf.intel.com with ESMTP; 16 Mar 2023 15:57:36 -0700 Received: from debox1-desk4.intel.com (unknown [10.212.175.15]) by linux.intel.com (Postfix) with ESMTP id A1A3F580C4C; Thu, 16 Mar 2023 15:57:36 -0700 (PDT) From: "David E. Box" To: irenic.rajneesh@gmail.com, david.e.box@intel.com, hdegoede@redhat.com, markgross@kernel.org, andy.shevchenko@gmail.com Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH 2/2] platform/x86/intel/pmt/telemetry: Add driver version Date: Thu, 16 Mar 2023 15:57:36 -0700 Message-Id: <20230316225736.2856521-2-david.e.box@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316225736.2856521-1-david.e.box@linux.intel.com> References: <20230316225736.2856521-1-david.e.box@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,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?1760568598019388628?= X-GMAIL-MSGID: =?utf-8?q?1760568598019388628?= Add a driver version number to make it easier to track changes in backported kernels. Signed-off-by: David E. Box --- drivers/platform/x86/intel/pmt/telemetry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/intel/pmt/telemetry.c b/drivers/platform/x86/intel/pmt/telemetry.c index 71cdef42084a..deb96b5777ce 100644 --- a/drivers/platform/x86/intel/pmt/telemetry.c +++ b/drivers/platform/x86/intel/pmt/telemetry.c @@ -19,6 +19,7 @@ #include "../vsec.h" #include "class.h" +#define DRIVER_VERSION "1.0" #define TELEM_SIZE_OFFSET 0x0 #define TELEM_GUID_OFFSET 0x4 #define TELEM_BASE_OFFSET 0x8 @@ -160,4 +161,5 @@ module_exit(pmt_telem_exit); MODULE_AUTHOR("David E. Box "); MODULE_DESCRIPTION("Intel PMT Telemetry driver"); MODULE_LICENSE("GPL v2"); +MODULE_VERSION(DRIVER_VERSION); MODULE_IMPORT_NS(INTEL_PMT);