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@xxxxxxxxx>