From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E103C352A1 for ; Wed, 7 Dec 2022 16:40:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 237A710E3F8; Wed, 7 Dec 2022 16:40:53 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 21B3D10E3FA for ; Wed, 7 Dec 2022 16:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670431247; x=1701967247; h=date:message-id:from:to:cc:subject:in-reply-to: references:mime-version; bh=fYch4qnqLgiGYITeCLxUSe0cTGujcSLRF+beoE+GES4=; b=nTu471kKrnq/Vm+qO/m21QxSZAsNzlm7wTtRx1IN9wETc8rwj+ca1rlF JZj2M7+CLSHQFvUKmtZl9VvnmWj+uxIIMl7wwegO8+WYM5MpaGoULVRW5 RPeYpOesOFGDoy/giSDCY3U4b3SxCr/jijlcf1GM50dGNkQ+/D4ZaDJ3j dDoey9fBxsu1ZaVZ6VMjw5PwR7bAieAI7c+uiOrXD7DWJvXPOdlIgAuXd FkXhdjKnNfKWrKwbyBSf9xVvYdG/ZUzXV6ZgDrJp5EDH6kLdFJ7lyb99/ JezjGwukzzUcq7ZNcw42Er7tFkfp0gqUP1S1q5G0vKCHR4zQ+T6mmp+ig g==; X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="379106694" X-IronPort-AV: E=Sophos;i="5.96,225,1665471600"; d="scan'208";a="379106694" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 08:39:57 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="735455190" X-IronPort-AV: E=Sophos;i="5.96,225,1665471600"; d="scan'208";a="735455190" Received: from adixit-mobl.amr.corp.intel.com (HELO adixit-arch.intel.com) ([10.209.106.185]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 08:39:55 -0800 Date: Wed, 07 Dec 2022 08:38:15 -0800 Message-ID: <87v8mncgp4.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: Riana Tauro In-Reply-To: <20221207112104.3356169-3-riana.tauro@intel.com> References: <20221207112104.3356169-1-riana.tauro@intel.com> <20221207112104.3356169-3-riana.tauro@intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Subject: Re: [Intel-gfx] [PATCH v7 2/3] drm/i915/hwmon: Add helper function to obtain energy values X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Wed, 07 Dec 2022 03:21:03 -0800, Riana Tauro wrote: > > Add an interface to obtain hwmon energy values. The function returns > per-gt energy if gt level energy is available else returns the package > level energy if there is a single gt. > This is used by selftests to verify power consumption > > v2 : use i915_hwmon prefix (Anshuman) > v3 : re-use is_visible function of energy to remove > redundant code (Anshuman) > v4 : fix kernel-doc (Anshuman) > add per-gt hwmon support (Ashutosh) > v5 : add check to return package level energy only when there > is a single gt and gt level energy is not available. (Ashutosh) Reviewed-by: Ashutosh Dixit