[Intel-gfx] [PATCH v7 2/3] drm/i915/hwmon: Add helper function to obtain energy values

Dixit, Ashutosh ashutosh.dixit at intel.com
Wed Dec 7 16:38:15 UTC 2022


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 <ashutosh.dixit at intel.com>


More information about the Intel-gfx mailing list