OSDN Git Service

drm/i915/hwmon: Extend power/energy for XEHPSDV
authorDale B Stimson <dale.b.stimson@intel.com>
Thu, 13 Oct 2022 15:45:26 +0000 (08:45 -0700)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Mon, 17 Oct 2022 09:27:50 +0000 (14:57 +0530)
commita6a924abf865d232f93d317f054be263c86f903c
tree601da85303562701b9a2c69b85615d8814cb7275
parent4c2572fe0ae742c2fa25b6fbb06ef4b3cd08b454
drm/i915/hwmon: Extend power/energy for XEHPSDV

Extend hwmon power/energy for XEHPSDV especially per gt level energy
usage.

v2: Update to latest HWMON spec (Ashutosh)
v3: Fix review comments (Ashutosh)
v4: Fix review comments (Anshuman)
v5: s/hwmon_device_register_with_info/
    devm_hwmon_device_register_with_info/ (Ashutosh)
v6: Change contact to intel-gfx (Rodrigo)
    GEN12_RPSTAT1 is available for all Gen12+ (Andi)

Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Dale B Stimson <dale.b.stimson@intel.com>
Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221013154526.2105579-8-ashutosh.dixit@intel.com
Documentation/ABI/testing/sysfs-driver-intel-i915-hwmon
drivers/gpu/drm/i915/gt/intel_gt_regs.h
drivers/gpu/drm/i915/i915_hwmon.c