Skip to content

drm/i915: Add HWMON support

Ashutosh Dixit dri-devel intel-gfx linux-hwmon llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn 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+152 -00 replies
2/7drm/i915/hwmon: Add HWMON current voltage supportDocumentation/ABI/testing/sysfs-driver-intel-i915-hwmon MAINTAINERS drivers/gpu/drm/i915/gt/intel_gt_regs.h +1 more+64 -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+186 -00 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/intel_mchbar_regs.h+114 -20 replies
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+134 -10 replies
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+110 -30 replies

Reviews trailers per patch

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

PatchGuenter RoeckAshutosh DixitAnshuman GuptaAndi Shyti
1/7A-b R-b R-b R-b
2/7A-b R-b R-b
3/7A-b R-b R-b R-b
4/7A-b R-b R-b
5/7A-b R-b
6/7A-b R-b
7/7A-b R-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 4 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)

v8: s/hwmon_device_register_with_info/
devm_hwmon_device_register_with_info/ (Ashutosh)

v9: Addressed review comments from Rodrigo and Andi

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 ++
 MAINTAINERS                                   |   1 +
 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             | 738 ++++++++++++++++++
 drivers/gpu/drm/i915/i915_hwmon.h             |  20 +
 drivers/gpu/drm/i915/i915_reg.h               |   6 +
 drivers/gpu/drm/i915/intel_mchbar_regs.h      |  21 +
 10 files changed, 879 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.38.0