Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3867928rwi; Wed, 2 Nov 2022 04:14:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6N0eYbBYnlwo5aFN86YREn+EevLZFQX/+ZKhHqjTrGsvvVS6IXXhNWcbL0NxBYyNA4W7Ny X-Received: by 2002:a63:db42:0:b0:45c:9c73:d72e with SMTP id x2-20020a63db42000000b0045c9c73d72emr20536910pgi.181.1667387653045; Wed, 02 Nov 2022 04:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667387653; cv=none; d=google.com; s=arc-20160816; b=Jr9PW31OlGHLB61btCzviKPIVy9QJSD+9838eS7AimXT2SlmV7G0kJQ+ZYtoz2S68D uF7TgM/I7/jAv3/7uniC4ktruxmTVwwZtI4K3c+fDfO8XUBOnd+an7Y9Qq3FC13wG+ri 2AzZIDnV3ECYTMk0hc2tO/hY2EKZSVH7ZjiYCdONS1mC+LcCx1Ol+cPezkLqdDju2FCq +Ls3+dcYl50H0mOyWdPflb5ZLc3YpVrpwWvAzmcmP1LGl7S3v3iJP2ktFapvgC0srEIy 24mREXFw+AKJ09qbxUzi4ilUL7EMD6weG3DIqnIQdowbveK7Er520hDoji6BjZuR89Jz NHSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=w8GxamHZcDUJzD5371fJlN8dCWKPwkJoLRHj1yVaUFA=; b=QBL5+xlP8r4tw4RgOXXfVv9V8X9kU2/QCH7toEWIZZGfqY/nKtgeWpAuSl7af2j8eX X5lhq1Fyb413lclIXDgy/13gyE+MWU7MsgS1hme1C9Xjef6z4GzhptOD1uKJn5t7z/Pj RrlFSJ8teknYiUOk4JuS2+qP5sEiA5h385gNb6/uK5Uw+EmM1zIIzu3LcBdeOgd/Ai3L EtLUneHY6vnLaBe9Tryw7epB6Y+y8d5/m7lTs3fPwglnqFgC54gf9CHllsTnf8BlNHJN 3IH8a+D8fpUIXXidG5JxNCCEfvwycNnrz8w5zLXG7iu/zuU0B8KQh8NT8K1t5H/RtQK7 IRNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ijiW8mxV; 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 jj19-20020a170903049300b00186ae20e8ddsi13961933plb.140.2022.11.02.04.14.00; Wed, 02 Nov 2022 04:14: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=ijiW8mxV; 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 S230196AbiKBKsD (ORCPT + 98 others); Wed, 2 Nov 2022 06:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiKBKsC (ORCPT ); Wed, 2 Nov 2022 06:48:02 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5DAF205C4; Wed, 2 Nov 2022 03:48:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667386081; x=1698922081; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5HpjhhA0R1oJOP96S1an4MPyb9380u4PF3dy8awj8RQ=; b=ijiW8mxVW5SzORUdMCLasCsFV2RDkeBgm5LnbBxXMeQ1yj+ngA8Pt8cA iBz8UoCyMCUp4Oqlb9Hl21Anv/lPB0iC3/mZndMXO5r0hEDsFXzbrGtR7 N6M2GABvhITprO1G8r3Er3KZHteYECexNrfchZcqVIUM13+DZIZg4xKDL mSGjO2XxcOrdqzlCGQuhlgKHWUQ8BAeLLMBgyjF/Av5/UKr1pciPxrIm8 MNOixaJvljvbkOhJ5AwuHEeGOPbUuWddyhjzb89e1kKjLpO7AcQWk6Wr7 5KxWSA5nTL2HecgekYFHizSJ45vwlcH0VuZN5eRHHkC4va4lEQ3gflKKv A==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="371464162" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="371464162" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2022 03:46:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="809236359" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="809236359" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP; 02 Nov 2022 03:46:53 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oqBGl-0068SS-2s; Wed, 02 Nov 2022 12:46:51 +0200 Date: Wed, 2 Nov 2022 12:46:51 +0200 From: Andy Shevchenko To: "David E. Box" Cc: hdegoede@redhat.com, markgross@kernel.org, srinivas.pandruvada@intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/9] platform/x86/intel/sdsi: Add meter certificate support Message-ID: References: <20221101191023.4150315-1-david.e.box@linux.intel.com> <20221101191023.4150315-5-david.e.box@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221101191023.4150315-5-david.e.box@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 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. -- With Best Regards, Andy Shevchenko