Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp217198pxb; Wed, 18 Aug 2021 20:33:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNsDjJf7Xr/x3zo3DMwZvDHlKGXG5HFINqcvI9YTCX/2sMyWu/OjyjAXMev/ivEvvyGf+g X-Received: by 2002:a17:907:2097:: with SMTP id pv23mr12869408ejb.262.1629344004180; Wed, 18 Aug 2021 20:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629344004; cv=none; d=google.com; s=arc-20160816; b=l4o5YKl4SO1q7+N8Os5FJS+XJ62eU65pOecTkz2AxMbKGY7WvTN4xOfLwrNSBVV/lj tnq1oLSDeNE1TALPqXUkIbnUAGjMJMjtc3xIZ/9Vh3kE6+ZRqwWP83MEq2xOPQkWmh2A jPOswZVi6pDD7/ryOh9Fi9ZJjMxNgTuCAY6t94Y8c1AP+2ZqvbkWEV4Pyp55ky96tIq8 sgrVb4nHgX/hoWlemkbKg+3fY8G/iRw+tdpouY/lj4XwFU5bSUjB8Dzg2/3NaRk92W4D P5dsxsS8zqKaUiZPmljFbvvJUPP3iL1qPy2o57tiQgENEMbcX2/A8+2FjQWKtjkfJK0S QYkw== 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=eg32UqCrRk4JHiWHEwU7dwGOFLGUQnMfgBFGpnnK/o8=; b=jVU4sj4RciSs+fQONimoKczfZMy78V3o2K609Q4LN80aDGMfI88lxainaoCMs9vje8 50qgNUxFVNO0Or7ADllgRnreUR9i0xYyAtdWkDHW29ByC92vd1Yms0rWl1U0mAjh7wf9 Iff6aNBqOd45x7J+bcBqraLpTRwEfgDANJtdAN4lB4S+Z8///fAe2H56TAuLzocbtqDA qwh6kJjJLYWUhYaZ7tRXgiVtyNLBmR7iqKOLnZSedCgJiB4S6ZFWUAnqb8cJMJsK82j1 TSkko8GCrXeO+++FmPwFaSx9tSFvzQbaZvjIT5uoYpx9jD7ukrkxlOJeSetUuNP6SM1e eSmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NaGUsDYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si2138690ejp.411.2021.08.18.20.33.01; Wed, 18 Aug 2021 20:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NaGUsDYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236497AbhHSDbv (ORCPT + 99 others); Wed, 18 Aug 2021 23:31:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33361 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236410AbhHSDbu (ORCPT ); Wed, 18 Aug 2021 23:31:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629343874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eg32UqCrRk4JHiWHEwU7dwGOFLGUQnMfgBFGpnnK/o8=; b=NaGUsDYUXm7SvtNSiOCKY4/kiEWiq5lk5iZyEX8lorqWR12AmmHrLxOIjNzzIUZvC3uPXh Pu8QFip+jBNLXUDXewtxlP9iHwb3bSXg+SKjf8uN2ijI8XUDsrX7msyRIi1nT/SiysKCC3 hE/5RwmpPjAUWBdkKai2fzFGsSXm064= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-193-XXMBq7Y1PLOhSNhNhyN4Qw-1; Wed, 18 Aug 2021 23:31:13 -0400 X-MC-Unique: XXMBq7Y1PLOhSNhNhyN4Qw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 574808799EC; Thu, 19 Aug 2021 03:31:11 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.64.242.122]) by smtp.corp.redhat.com (Postfix) with ESMTP id 331A8189C4; Thu, 19 Aug 2021 03:31:08 +0000 (UTC) From: Kate Hsuan To: Alex Hung , Hans de Goede , Mark Gross , Srinivas Pandruvada , AceLan Kao , Jithu Joseph , Maurice Ma , Sujith Thomas , Rajneesh Bhardwaj , Zha Qipeng , Mika Westerberg , "David E . Box" , linux-kernel@vger.kernel.org, Dell.Client.Kernel@dell.com Cc: platform-driver-x86@vger.kernel.org, Kate Hsuan Subject: [PATCH v3 07/20] platform/x86: intel_telemetry: Move to intel sub-directory Date: Thu, 19 Aug 2021 11:29:48 +0800 Message-Id: <20210819033001.20136-8-hpa@redhat.com> In-Reply-To: <20210819033001.20136-1-hpa@redhat.com> References: <20210819033001.20136-1-hpa@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move intel_telemetry to intel sub-directory to improve readability. Signed-off-by: Kate Hsuan --- drivers/platform/x86/Kconfig | 13 ------------- drivers/platform/x86/Makefile | 5 ----- drivers/platform/x86/intel/Kconfig | 1 + drivers/platform/x86/intel/Makefile | 1 + drivers/platform/x86/intel/telemetry/Kconfig | 16 ++++++++++++++++ drivers/platform/x86/intel/telemetry/Makefile | 11 +++++++++++ .../telemetry/core.c} | 0 .../telemetry/debugfs.c} | 0 .../telemetry/pltdrv.c} | 0 9 files changed, 29 insertions(+), 18 deletions(-) create mode 100644 drivers/platform/x86/intel/telemetry/Kconfig create mode 100644 drivers/platform/x86/intel/telemetry/Makefile rename drivers/platform/x86/{intel_telemetry_core.c => intel/telemetry/core.c} (100%) rename drivers/platform/x86/{intel_telemetry_debugfs.c => intel/telemetry/debugfs.c} (100%) rename drivers/platform/x86/{intel_telemetry_pltdrv.c => intel/telemetry/pltdrv.c} (100%) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index baad2c2bdf5f..4750ce36c4d5 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -1158,19 +1158,6 @@ config INTEL_UNCORE_FREQ_CONTROL To compile this driver as a module, choose M here: the module will be called intel-uncore-frequency. - -config INTEL_TELEMETRY - tristate "Intel SoC Telemetry Driver" - depends on X86_64 - depends on MFD_INTEL_PMC_BXT - depends on INTEL_PUNIT_IPC - help - This driver provides interfaces to configure and use - telemetry for INTEL SoC from APL onwards. It is also - used to get various SoC events and parameters - directly via debugfs files. Various tools may use - this interface for SoC state monitoring. - endif # X86_PLATFORM_DEVICES config PMC_ATOM diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index e6667008fc56..6210833289a1 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -126,10 +126,5 @@ obj-$(CONFIG_INTEL_SPEED_SELECT_INTERFACE) += intel_speed_select_if/ obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o -# Intel PMIC / PMC / P-Unit devices - -obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \ - intel_telemetry_pltdrv.o \ - intel_telemetry_debugfs.o obj-$(CONFIG_PMC_ATOM) += pmc_atom.o diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig index 7ad715f65c01..b1b89cd14efc 100644 --- a/drivers/platform/x86/intel/Kconfig +++ b/drivers/platform/x86/intel/Kconfig @@ -60,5 +60,6 @@ config INTEL_PUNIT_IPC source "drivers/platform/x86/intel/pmc/Kconfig" source "drivers/platform/x86/intel/scu/Kconfig" +source "drivers/platform/x86/intel/telemetry/Kconfig" endif # X86_PLATFORM_DRIVERS_INTEL diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile index 71ae5db00864..834c9ff2e1f6 100644 --- a/drivers/platform/x86/intel/Makefile +++ b/drivers/platform/x86/intel/Makefile @@ -23,4 +23,5 @@ obj-$(CONFIG_INTEL_SCU_PCI) += scu/ obj-$(CONFIG_INTEL_SCU_PLATFORM) += scu/ obj-$(CONFIG_INTEL_SCU_WDT) += scu/ obj-$(CONFIG_INTEL_SCU_IPC_UTIL) += scu/ +obj-$(CONFIG_INTEL_TELEMETRY) += telemetry/ diff --git a/drivers/platform/x86/intel/telemetry/Kconfig b/drivers/platform/x86/intel/telemetry/Kconfig new file mode 100644 index 000000000000..9fbc06dc4593 --- /dev/null +++ b/drivers/platform/x86/intel/telemetry/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Intel x86 Platform Specific Drivers +# + +config INTEL_TELEMETRY + tristate "Intel SoC Telemetry Driver" + depends on X86_64 + depends on MFD_INTEL_PMC_BXT + depends on INTEL_PUNIT_IPC + help + This driver provides interfaces to configure and use + telemetry for INTEL SoC from APL onwards. It is also + used to get various SoC events and parameters + directly via debugfs files. Various tools may use + this interface for SoC state monitoring. diff --git a/drivers/platform/x86/intel/telemetry/Makefile b/drivers/platform/x86/intel/telemetry/Makefile new file mode 100644 index 000000000000..8561064c6ce5 --- /dev/null +++ b/drivers/platform/x86/intel/telemetry/Makefile @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Intel x86 Platform Specific Drivers +# + +intel_telemetry_core-y := core.o +intel_telemetry_pltdrv-y := pltdrv.o +intel_telemetry_debugfs-y := debugfs.o +obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \ + intel_telemetry_pltdrv.o \ + intel_telemetry_debugfs.o diff --git a/drivers/platform/x86/intel_telemetry_core.c b/drivers/platform/x86/intel/telemetry/core.c similarity index 100% rename from drivers/platform/x86/intel_telemetry_core.c rename to drivers/platform/x86/intel/telemetry/core.c diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel/telemetry/debugfs.c similarity index 100% rename from drivers/platform/x86/intel_telemetry_debugfs.c rename to drivers/platform/x86/intel/telemetry/debugfs.c diff --git a/drivers/platform/x86/intel_telemetry_pltdrv.c b/drivers/platform/x86/intel/telemetry/pltdrv.c similarity index 100% rename from drivers/platform/x86/intel_telemetry_pltdrv.c rename to drivers/platform/x86/intel/telemetry/pltdrv.c -- 2.31.1