Skip to content

drm/i915: Add HWMON support

Badal Nilawar dri-devel intel-gfx linux-hwmon 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

v2 from the cover letter

- Reorganized series. Created first patch as infrastructure patch followed by feature patches. (Ashutosh)
- Fixed review comments (Jani)
- Fixed review comments (Ashutosh)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/i915/hwmon: Add HWMON infrastructuredrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/i915_driver.c drivers/gpu/drm/i915/i915_drv.h +2 more+161 -01 reply
2/7drm/i915/hwmon: Add HWMON current voltage supportDocumentation/ABI/testing/sysfs-driver-intel-i915-hwmon drivers/gpu/drm/i915/gt/intel_gt_regs.h drivers/gpu/drm/i915/i915_hwmon.c+63 -00 replies
3/7drm/i915/hwmon: Power PL1 limit and TDP settingDocumentation/ABI/testing/sysfs-driver-intel-i915-hwmon drivers/gpu/drm/i915/i915_hwmon.c drivers/gpu/drm/i915/intel_mchbar_regs.h+188 -20 replies
4/7drm/i915/hwmon: Show device level energy usageDocumentation/ABI/testing/sysfs-driver-intel-i915-hwmon drivers/gpu/drm/i915/i915_hwmon.c drivers/gpu/drm/i915/i915_hwmon.h +1 more+116 -21 reply
5/7drm/i915/hwmon: Expose card reactive critical powerDocumentation/ABI/testing/sysfs-driver-intel-i915-hwmon drivers/gpu/drm/i915/i915_hwmon.c drivers/gpu/drm/i915/i915_reg.h+126 -10 replies
6/7drm/i915/hwmon: Expose power1_max_intervalDocumentation/ABI/testing/sysfs-driver-intel-i915-hwmon drivers/gpu/drm/i915/i915_hwmon.c drivers/gpu/drm/i915/intel_mchbar_regs.h+135 -11 reply
7/7drm/i915/hwmon: Extend power/energy for XEHPSDVDocumentation/ABI/testing/sysfs-driver-intel-i915-hwmon drivers/gpu/drm/i915/gt/intel_gt_regs.h drivers/gpu/drm/i915/i915_hwmon.c+123 -30 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchGuenter RoeckAshutosh DixitAnshuman Gupta
1/7A-b R-b R-b
2/7A-b R-b R-b
3/7A-b R-b
4/7A-b R-b R-b
5/7A-b R-b
6/7A-b
7/7A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] drm/i915: Add HWMON support

This series adds the HWMON support for DGFX

Test-with: [email protected]

v2:
- Reorganized series. Created first patch as infrastructure patch followed by feature patches. (Ashutosh)
- Fixed review comments (Jani)
- Fixed review comments (Ashutosh)

v3:
- Fixed review comments from Guenter
- Exposed energy inferface as standard hwmon interface (Ashutosh)
- For power interface added entries for critical power and maintained standard interface for all the entries except power1_max_interval
- Extended support for XEHPSDV (Ashutosh)

v4:
- Fixed review comment from Guenter
- Cleaned up unused code

v5:
- Fixed review comments (Jani)

v6:
- Fixed review comments (Ashutosh)
- Updated date and kernel version in documentation

v7:
- Fixed review comments (Anshuman)
- KernelVersion: 6.2, Date: February 2023 in doc (Tvrtko)

Ashutosh Dixit (2):
drm/i915/hwmon: Expose card reactive critical power drm/i915/hwmon: Expose power1_max_interval

Dale B Stimson (4):
drm/i915/hwmon: Add HWMON infrastructure
drm/i915/hwmon: Power PL1 limit and TDP setting
drm/i915/hwmon: Show device level energy usage
drm/i915/hwmon: Extend power/energy for XEHPSDV

Riana Tauro (1):
drm/i915/hwmon: Add HWMON current voltage support

 .../ABI/testing/sysfs-driver-intel-i915-hwmon |  75 ++
 drivers/gpu/drm/i915/Makefile                 |   3 +
 drivers/gpu/drm/i915/gt/intel_gt_regs.h       |   8 +
 drivers/gpu/drm/i915/i915_driver.c            |   5 +
 drivers/gpu/drm/i915/i915_drv.h               |   2 +
 drivers/gpu/drm/i915/i915_hwmon.c             | 762 ++++++++++++++++++
 drivers/gpu/drm/i915/i915_hwmon.h             |  21 +
 drivers/gpu/drm/i915/i915_reg.h               |   6 +
 drivers/gpu/drm/i915/intel_mchbar_regs.h      |  21 +
 9 files changed, 903 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-intel-i915-hwmon
 create mode 100644 drivers/gpu/drm/i915/i915_hwmon.c
 create mode 100644 drivers/gpu/drm/i915/i915_hwmon.h
Signature · 1 line
2.25.1