Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3889530pxb; Tue, 10 Nov 2020 02:43:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjcc9+IBRKUktehdpj5AvHIln0m6LypDSUKCMi4nc00+1f0fT5PoEcD6PagSYg2OhUlyaw X-Received: by 2002:a17:906:1317:: with SMTP id w23mr18940078ejb.120.1605005036203; Tue, 10 Nov 2020 02:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605005036; cv=none; d=google.com; s=arc-20160816; b=KGMGZ9oqgfIupqLKHh2JK91ycDhbRrtcauoc9LImBUi/2Sfa25bvDxK28mLLNZFf4/ C0xERMWy1fMy/C6Qe909amjI4frX31IvBLr/J1Zip7VfkukKAu2TUc59BucL1yH8b6sF j0sKad5M7WVaPFA/htGjJclDOdV67CZthbjC/76Es4vTP6gBaYdRUEB3Cw30ZEkrEKV0 W3w8d662ZJyc4aHYgCo2LX7AoEwePyOml+FbKrbEi6cnTobBTKC+eUyaEG7UuXaMd9S2 iIOvnHVvtKKExeHQr67UUurOY7M0dbspyRtiBD3OGmjym9Vvk4MtqL7VYkPzFxZhzLIV gl4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=PLlsEGFO+UNJyfsrDQkvwYBM++LmH/sVJXHnxUOe2bI=; b=siASszA/YOB7yfQby2vJes9C9GflHIAmmylwSyPxtlJgR09/D1NFN52YXou6VEorM1 J0g+47cX/TkFIjF/RFwbdNWWJOXD9zBYJcvn7EId1RPqctWJaOvlhXkEzvzpqCCulRet 3Pchi3Uoul58mfclBgilcgAeN/GfDE98LdeNShn5NWko1sZYSKpt8YYB1VIF6W5fDidO +5lyM4A7lmyutqEHCRKaIQS/XMSl0DpgWGs8WcxNALWIS10zQWE04PdYUarBRFAtyn4v j1Z9CfPdITWCk3MVM3aW2GBCWNheUD6RY/rlYvHjakYIrF8iFETFlL2ukWqcNXcFGulH uXvA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qo13si8487855ejb.650.2020.11.10.02.43.32; Tue, 10 Nov 2020 02:43:56 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729944AbgKJKjv (ORCPT + 99 others); Tue, 10 Nov 2020 05:39:51 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:40702 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgKJKju (ORCPT ); Tue, 10 Nov 2020 05:39:50 -0500 Received: by mail-oi1-f193.google.com with SMTP id m143so13779956oig.7; Tue, 10 Nov 2020 02:39:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PLlsEGFO+UNJyfsrDQkvwYBM++LmH/sVJXHnxUOe2bI=; b=NcMnBdrL65nIlh3wiaKqYV8yvknAy7rrYbgKcBuBEVCmaOd7Zo0jhiWyj23+23Oopa 7+vBlbA/ngh2P4inkrrr7SpCZCF6AjffbbgTpmxR+rHCO4lyCIHPg4C5v8vkwQ29tBZz zDYR5Cw1qGGPkJ3qiPexMgK0xoNq4ZT38ypPqEF7gibGzA4dB9q6L63Il02h96tWE3x0 D50vfXR4jrQLZAXHNCVj6RXKJx02QDXj0PubkPf6bDprykLnue9dyeMLMcundAgOsQhU T89PROXNRmAdYGlOKUdHZfJdVExwC7BzdHwhnNMEfYJWmIrxtWfJGpLXA+qqHhpGJoK0 Yr9A== X-Gm-Message-State: AOAM530nT47Q+RXvVpgtcme1U8gQ4SXexisdGnTdxtBurSZEjaucxoMz Z91QnrHns1gtd9x8JHitf9lOCv7zov17l7owjQM= X-Received: by 2002:aca:52c9:: with SMTP id g192mr2439496oib.54.1605004788072; Tue, 10 Nov 2020 02:39:48 -0800 (PST) MIME-Version: 1.0 References: <20201003013123.20269-1-david.e.box@linux.intel.com> <20201003013123.20269-3-david.e.box@linux.intel.com> In-Reply-To: <20201003013123.20269-3-david.e.box@linux.intel.com> From: Geert Uytterhoeven Date: Tue, 10 Nov 2020 11:39:37 +0100 Message-ID: Subject: Re: [PATCH V8 2/5] mfd: Intel Platform Monitoring Technology support To: "David E. Box" Cc: Lee Jones , Darren Hart , andy@infradead.org, Bjorn Helgaas , Hans de Goede , alexey.budankov@linux.intel.com, Linux Kernel Mailing List , platform-driver-x86@vger.kernel.org, linux-pci , Alexander Duyck , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Sat, Oct 3, 2020 at 3:32 AM David E. Box wrote: > Intel Platform Monitoring Technology (PMT) is an architecture for > enumerating and accessing hardware monitoring facilities. PMT supports > multiple types of monitoring capabilities. This driver creates platform > devices for each type so that they may be managed by capability specific > drivers (to be introduced). Capabilities are discovered using PCIe DVSEC > ids. Support is included for the 3 current capability types, Telemetry, > Watcher, and Crashlog. The features are available on new Intel platforms > starting from Tiger Lake for which support is added. This patch adds > support for Tiger Lake (TGL), Alder Lake (ADL), and Out-of-Band Management > Services Module (OOBMSM). > > Also add a quirk mechanism for several early hardware differences and bugs. > For Tiger Lake and Alder Lake, do not support Watcher and Crashlog > capabilities since they will not be compatible with future product. Also, > fix use a quirk to fix the discovery table offset. > > Co-developed-by: Alexander Duyck > Signed-off-by: Alexander Duyck > Signed-off-by: David E. Box > Reviewed-by: Andy Shevchenko Thanks for your patch, which is now commit 4f8217d5b0ca8ace ("mfd: Intel Platform Monitoring Technology support") in the mfd/for-mfd-next. > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -670,6 +670,16 @@ config MFD_INTEL_PMC_BXT > Register and P-unit access. In addition this creates devices > for iTCO watchdog and telemetry that are part of the PMC. > > +config MFD_INTEL_PMT > + tristate "Intel Platform Monitoring Technology (PMT) support" > + depends on PCI Does this need a "depend on X86 || COMPILE_TEST", to prevent the question from showing up on platforms where the PMT cannot be present? I see the TGL and ADL PCI IDs are also referenced from drivers/platform/x86/intel_pmt_telemetry.c, which suggests this is X86-only. Perhaps the OOBMSM is a PCI device that can be used on non-X86 platforms? > + select MFD_CORE > + help > + The Intel Platform Monitoring Technology (PMT) is an interface that > + provides access to hardware monitor registers. This driver supports > + Telemetry, Watcher, and Crashlog PMT capabilities/devices for > + platforms starting from Tiger Lake. > + Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds