Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp532913pxx; Thu, 29 Oct 2020 08:20:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD6MMlwVNGYm+8sQz+jHDxmgyYoYtjAEDyrPgchMF3XgURQ5amM1Psqdjzk4QzCEsWujzq X-Received: by 2002:a17:906:2dc7:: with SMTP id h7mr4739091eji.546.1603984825354; Thu, 29 Oct 2020 08:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603984825; cv=none; d=google.com; s=arc-20160816; b=ipxZPYP/QBTC04RD6chpp3eRBje2O814QJ71/wfL30rQKUtJPvxQyAYzR9wqXWClv+ BYnvH8tDKFUMfHD7X8b0p/uQ2sMjjPw8XqQVkBNegsv89oQuO9NhDXgeB4KX1h7Jz8MX or0nf0nSworG7XRYxkx4FN07Q2O1K6ktjlvGsO2gWRpmXUqEsJE1G+HYfYG0VQuvvmGO VTMU5Q3ZlhQc3f0LByrJ6nq5IA4AGWE6XRsePcgskHhOBRfZXSubj2gWv34NOn+qtjJX 7wuKO9WBt77BKFGjKRDXiEOv1HAYXu+a7WnWi5kHvsfo3mTM9buH7NvrCyj4/aG6a4Bw 0wOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qGSa3lP6/VlSmTE6DEPynJHPtQdFaqjnszykI+jVN74=; b=FiO20EgUQLseEp7iST8BKoJN9wP0zNEm2hEWXk93ChMyNTkzzRl3HtqgZ7HrFUxbZj VX0yI4+5r4r2tCsg65YXs4Ty6OlPkbUlTFDBr/c0anIUhCq2bbi6YWTlZJRd9Z3XXJhv IC29fF45zQb0dAU4l1Vh4dvmgOJJZkXUMFgIWUTa/cfuKHN9medl2ECohkslNCED+1EW XhbiJqm92PcOw9OuF8qo4VJB9ubWIhMHuSjORUI6YNg7ldyGdMOF/lhScDYTkP9xirn9 DiqCgxLmdvl4gLE7SXTptYZ5fVLb2JsZjM6Nf3H4jd4n+MF8mJe/LhoAXYiBVelUZcnj 1gDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q0B83+22; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si2159869eds.561.2020.10.29.08.20.01; Thu, 29 Oct 2020 08:20:25 -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=@linaro.org header.s=google header.b=q0B83+22; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728164AbgJ2PQk (ORCPT + 99 others); Thu, 29 Oct 2020 11:16:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728161AbgJ2PQj (ORCPT ); Thu, 29 Oct 2020 11:16:39 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A283C0613CF for ; Thu, 29 Oct 2020 08:16:37 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id s9so3167005wro.8 for ; Thu, 29 Oct 2020 08:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=qGSa3lP6/VlSmTE6DEPynJHPtQdFaqjnszykI+jVN74=; b=q0B83+221jC3LV3D0vJiIdNgLHOJz8koX0+RGRVI53uJfSwkJ8GhR4JugF+mZ5GPqb ZVTDv8mDAYZYhPQ8hkXlcLD27dSXrp4lAJYYTgW5f0WQCB84W79ZgU2Iqx5VJfIKLCoE jKK2eBSS/Lvzh1DUAeQluJM3KuX5ma/PcZKXUkSkL6f8sz81XxPhZc2UziaorPMUZwdA xfhXKDLXC1lkj6AO73PtkssaMNoMDdcXSp9aRy13Of2jY4DRFx2YOa8plS0aX9VN8pho cgWWv8sETb2CVIs0HkhFj2AqtPjo2Lpg4bUWFrHB8z4qz1kyKkBN1nrmHs2E/WkwPHMO Wrqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=qGSa3lP6/VlSmTE6DEPynJHPtQdFaqjnszykI+jVN74=; b=GaaafoFaWoMORRZNYv57nfQfUttiQ/FbsGuW9zCl+VDVJTXQv/xOd1UgUV1Hdk6AY5 wKi/AyGkiV8fZfKyyGOF6uezPl3sOm3zOKUAwivZN8l61BBOqcDjO4APvmhhK0kDW08N hh3DLcgdISC++q/vaemnNuB+4ukHh2QNVjyqK3NdyrvI3hWA+qz+LY2Nvu6dtSBgevXH +D2sFDqiyYCeENWCVYprctitQGlb/ubrR/RN0ntPzUJ/2Vw9r7Iun/vZ8EY+zWz77ahe ojGKC0v12G18z7FEwif2tYt+CZdjOwXhGHgWSU5XEIrfsUXBlikrw9FBenya5zF5jtiA Is+A== X-Gm-Message-State: AOAM531x+4ZhOGHzo/GH+KYBOHzB5ZNuG6PdFlL8wXTQXT0C9SCHg8MH g95o7SVU7zsGuptTw9QcW7NjIQ== X-Received: by 2002:a5d:694b:: with SMTP id r11mr6423143wrw.104.1603984596064; Thu, 29 Oct 2020 08:16:36 -0700 (PDT) Received: from dell ([91.110.221.160]) by smtp.gmail.com with ESMTPSA id e3sm5702386wrn.32.2020.10.29.08.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 08:16:35 -0700 (PDT) Date: Thu, 29 Oct 2020 15:16:33 +0000 From: Lee Jones To: "David E. Box" Cc: hdegoede@redhat.com, mgross@linux.intel.com, bhelgaas@google.com, alexey.budankov@linux.intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH V9 0/5] Intel Platform Monitoring Technology Message-ID: <20201029151633.GB4127@dell> References: <20201029014449.14955-1-david.e.box@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201029014449.14955-1-david.e.box@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Oct 2020, David E. Box wrote: > Intel Platform Monitoring Technology (PMT) is an architecture for > enumerating and accessing hardware monitoring capabilities on a device. > With customers increasingly asking for hardware telemetry, engineers not > only have to figure out how to measure and collect data, but also how to > deliver it and make it discoverable. The latter may be through some device > specific method requiring device specific tools to collect the data. This > in turn requires customers to manage a suite of different tools in order to > collect the differing assortment of monitoring data on their systems. Even > when such information can be provided in kernel drivers, they may require > constant maintenance to update register mappings as they change with > firmware updates and new versions of hardware. PMT provides a solution for > discovering and reading telemetry from a device through a hardware agnostic > framework that allows for updates to systems without requiring patches to > the kernel or software tools. > > PMT defines several capabilities to support collecting monitoring data from > hardware. All are discoverable as separate instances of the PCIE Designated > Vendor extended capability (DVSEC) with the Intel vendor code. The DVSEC ID > field uniquely identifies the capability. Each DVSEC also provides a BAR > offset to a header that defines capability-specific attributes, including > GUID, feature type, offset and length, as well as configuration settings > where applicable. The GUID uniquely identifies the register space of any > monitor data exposed by the capability. The GUID is associated with an XML > file from the vendor that describes the mapping of the register space along > with properties of the monitor data. This allows vendors to perform > firmware updates that can change the mapping (e.g. add new metrics) without > requiring any changes to drivers or software tools. The new mapping is > confirmed by an updated GUID, read from the hardware, which software uses > with a new XML. > > The current capabilities defined by PMT are Telemetry, Watcher, and > Crashlog. The Telemetry capability provides access to a continuous block > of read only data. The Watcher capability provides access to hardware > sampling and tracing features. Crashlog provides access to device crash > dumps. While there is some relationship between capabilities (Watcher can > be configured to sample from the Telemetry data set) each exists as stand > alone features with no dependency on any other. The design therefore splits > them into individual, capability specific drivers. MFD is used to create > platform devices for each capability so that they may be managed by their > own driver. The PMT architecture is (for the most part) agnostic to the > type of device it can collect from. Software can determine which devices > support a PMT feature by searching through each device node entry in the > sysfs class folder. It can additionally determine if a particular device > supports a PMT feature by checking for a PMT class folder in the device > folder. > > This patch set provides support for the PMT framework, along with support > for Telemetry on Tiger Lake. > > Changes from V8: > - Rebase on 5.10-rc1 > - Add missing changes in MFD patch from V7 that were accidentally > dropped in V8 Which changes are those? Do I need to re-review? > - Remove error message when unsupported capability found. Avoids > unnecessary noise on some systems. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog