Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp929678rwi; Wed, 2 Nov 2022 21:30:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Mnest7aTD/eUoqC6By0xrAY2GetCiUswbCb4ckplLEYfzblYfWWMAsB6M85Z3uyS+AO3F X-Received: by 2002:a17:906:8469:b0:7ad:dd13:571c with SMTP id hx9-20020a170906846900b007addd13571cmr17012264ejc.141.1667449801669; Wed, 02 Nov 2022 21:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667449801; cv=none; d=google.com; s=arc-20160816; b=qwSD9OTsZ5mvvJlgw3gt4ElNnyA6IU+jEdRxEumBscFvS9pm/qUXwc0Bo8mNlFU69c 5MiUy2H7NCw4rc56URdYAIcGJbWk8epLzS5oQidhSpH6aLU3GLlv3fhqn4inS+jnmWBI jYN/yx7fNexG674Q3iPgZvc0PzqcBqKZtMHMa6Y5qOEUTqK3DerOEtNE/nEG+T9gctCh ZsXMfTsSyUPTpkz0hkH+lvAZTP9dplvYuQIe/DtRX9TZHtVsfHTyid1xHSeiO0jdw3RU k2lUQY9VsV1srSy0Fp5VJO+Q8gAl+Wyn91aEBOtxiAZBHal5eYbhSxhNwYOVuQTKfTpf wWSQ== 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 :user-agent:organization:references:in-reply-to:date:cc:to:reply-to :from:subject:message-id:dkim-signature; bh=eHrcZWETL8JRTQFwbSecyxaMmDQriTOo+/S6lv383xU=; b=ZH03gCxAg89EBsIF7oto8A83m442YhtZtxr4QSLm2t6ByVSK1WC5st0xQTtwr3mTuX j9MTps+nMO0yrbDF3BQzmwQ9ZtgMk41perUSq5hw7A52PTfcWptBPxrMNVjmsKo/eX9Q NO35rOhXK3XL6y5LM7hU6XqdS29Twa9PjVQkWiPrsnVe3ATnAUofmoiAXpKLYZSTgwRK q3rSGpN/Tk+nX3or4OlQtruap+FLrrAVw9M0nEz7oPHUKNnN3HG1BLFtTxL0C0vH0fEK leKGGeDU4mAetr0HtqcgNT0saeT2Isu8CYsZaos6Zt15uU76wMR23ZEt6r9+eV5Runrn cDEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KSmM4upp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc15-20020a170907168f00b0078e0fd161dasi21463264ejc.87.2022.11.02.21.29.38; Wed, 02 Nov 2022 21:30:01 -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=KSmM4upp; 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 S230387AbiKCDNo (ORCPT + 97 others); Wed, 2 Nov 2022 23:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231244AbiKCDNd (ORCPT ); Wed, 2 Nov 2022 23:13:33 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8724E1131; Wed, 2 Nov 2022 20:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667445212; x=1698981212; h=message-id:subject:from:reply-to:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=BWPSNFEZJ2AWajsTGVeZtJzwkg8qYnxtFuFHcQf3OPM=; b=KSmM4uppxX1SSm0WrxaCE3ijstzQzVhGdeA6qUToaFEc0UR1OjDIQCwG cJWB6tBxhF3GouvfwQPNDT4QfzgJYhmsMA9lUmkW9a8PzUnpvGGsfyDeF /jRE9xdq0PiZdS8OAVMm8jrGAn1mBRMOqrGqRyC0a4zY1FvFJRbViLi3s O7iFNCjiV9E2/XVP3AQv9tidoO2yWkyKd/3voNXB0Cf/jVR3wGSeNP59C rtqX5Wbyu63otBdmsn4xfK3WKk9tm7B+NmxACORAmlEsqDkbbe91cNnLR XBCXoXnAbLd86rMxV5m1wt6rAja+sx5zvcE7OCk5pXcqnm3IRRJQvmeuE g==; X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="373801601" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="373801601" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2022 20:13:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10519"; a="629186077" X-IronPort-AV: E=Sophos;i="5.95,235,1661842800"; d="scan'208";a="629186077" Received: from linux.intel.com ([10.54.29.200]) by orsmga007.jf.intel.com with ESMTP; 02 Nov 2022 20:13:32 -0700 Received: from dshivaku-MOBL.amr.corp.intel.com (unknown [10.212.195.54]) by linux.intel.com (Postfix) with ESMTP id D2721580B9E; Wed, 2 Nov 2022 20:13:31 -0700 (PDT) Message-ID: <6aab14ee6b4118059be284695ea6bc646d5a2e1c.camel@linux.intel.com> Subject: Re: [PATCH 4/9] platform/x86/intel/sdsi: Add meter certificate support From: "David E. Box" Reply-To: david.e.box@linux.intel.com To: Andy Shevchenko Cc: hdegoede@redhat.com, markgross@kernel.org, srinivas.pandruvada@intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 02 Nov 2022 20:13:31 -0700 In-Reply-To: References: <20221101191023.4150315-1-david.e.box@linux.intel.com> <20221101191023.4150315-5-david.e.box@linux.intel.com> Organization: David E. Box Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Wed, 2022-11-02 at 12:46 +0200, Andy Shevchenko wrote: > On Tue, Nov 01, 2022 at 12:10:18PM -0700, David E. Box wrote: > > Add support for reading the meter certificate from Intel On Demand > > hardware. The meter certificate [1] is used to access the utilization > > metrics of enabled features in support of the Intel On Demand consumption > > model. Similar to the state certificate, the meter certificate is read by > > mailbox command. > > > > [1] > > https://github.com/intel-sandbox/debox1.intel_sdsi/blob/gnr-review/meter-certificate.rst > > Link: tag? > > ... > > > static BIN_ATTR(state_certificate, 0400, state_certificate_read, NULL, > > SDSI_SIZE_READ_MSG); > > BIN_ATTR_ADMiN_RO() ? > > ... > > > +static BIN_ATTR(meter_certificate, 0400, meter_certificate_read, NULL, > > SDSI_SIZE_READ_MSG); > > Ditto. > Ack on all. Thanks Andy.