Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v11 0/6] drm/xe/hwmon: Add mailbox power limits, PL2, read energy from PMT
@ 2025-05-29 10:34 Karthik Poosa
  2025-05-29 10:34 ` [PATCH v11 1/6] drm/xe/hwmon: Add support to manage power limits though mailbox Karthik Poosa
                   ` (20 more replies)
  0 siblings, 21 replies; 25+ messages in thread
From: Karthik Poosa @ 2025-05-29 10:34 UTC (permalink / raw)
  To: intel-xe; +Cc: anshuman.gupta, badal.nilawar, rodrigo.vivi, Karthik Poosa

Add support manage power limits through pcode mailboxes.
Enable PL2 support through powerX_cap.
Expose PL2 interval through powerX_cap_interval.
Read energy status from PMT instead of MMIO.
Move power2_crit to power1_crit.

v2:
 - Addressed review comments from Badal.
 - Clamp the power limits maximum to GPU firmwar default value due to
   HSD:16027383332.

v3:
 - Clamp power limit write also to GPU firmware default for platforms
   with mailbox support.
 - Enable power label if any of PL1 or PL2 is enabled.
 - Address review comments in v2.

v4:
 - Remove unncessary debug prints.
 - Rebase.

v5:
 - Resolve unused variable compiler warning.
 - Add a return value check.

v6:
 - Address kernel-doc build error.
 - Rebase.

v7:
 - Rebase.

v8:
 - Rebase.

v9:
 - Rebase.

v10:
 - Remove unnecessary drm_warn.
 - Rectify powerX_label permission to read-only on platforms
   without mailbox power limits support.
 - Expose powerN_max/cap_xxx entries only on platforms with mailbox
   support.

v11:
 - Enable power_xxx sysfs entries only when GPU firmware support it.
 - Display logs in dmesg about which power limits are supported in
   the GPU firmware.
 - Recitfy few drm_dbg prints.

Patch series history:

https://patchwork.freedesktop.org/series/148148/ - RFC
https://patchwork.freedesktop.org/series/148506/
https://patchwork.freedesktop.org/series/148811/
https://patchwork.freedesktop.org/series/148819/
https://patchwork.freedesktop.org/series/148926/
https://patchwork.freedesktop.org/series/149026/
https://patchwork.freedesktop.org/series/149387/
https://patchwork.freedesktop.org/series/149434/

Karthik Poosa (6):
  drm/xe/hwmon: Add support to manage power limits though mailbox
  drm/xe/hwmon: Move card reactive critical power under channel card
  drm/xe/hwmon: Add support to manage PL2 though mailbox
  drm/xe/hwmon: Expose powerX_cap_interval
  drm/xe/hwmon: Read energy status from PMT
  drm/xe/hwmon: Expose power sysfs entries based on firmware support

 .../ABI/testing/sysfs-driver-intel-xe-hwmon   |  68 ++-
 drivers/gpu/drm/xe/regs/xe_mchbar_regs.h      |  10 +-
 drivers/gpu/drm/xe/regs/xe_pcode_regs.h       |   6 -
 drivers/gpu/drm/xe/regs/xe_pmt.h              |   5 +
 drivers/gpu/drm/xe/xe_device_types.h          |   4 +
 drivers/gpu/drm/xe/xe_hwmon.c                 | 512 ++++++++++++++----
 drivers/gpu/drm/xe/xe_pci.c                   |   5 +
 drivers/gpu/drm/xe/xe_pcode.c                 |  11 +
 drivers/gpu/drm/xe/xe_pcode.h                 |   3 +
 drivers/gpu/drm/xe/xe_pcode_api.h             |   7 +
 drivers/gpu/drm/xe/xe_vsec.c                  |   4 +-
 drivers/gpu/drm/xe/xe_vsec.h                  |   4 +
 12 files changed, 502 insertions(+), 137 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2025-05-31  0:23 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 10:34 [PATCH v11 0/6] drm/xe/hwmon: Add mailbox power limits, PL2, read energy from PMT Karthik Poosa
2025-05-29 10:34 ` [PATCH v11 1/6] drm/xe/hwmon: Add support to manage power limits though mailbox Karthik Poosa
2025-05-29 10:34 ` [PATCH v11 2/6] drm/xe/hwmon: Move card reactive critical power under channel card Karthik Poosa
2025-05-29 10:34 ` [PATCH v11 3/6] drm/xe/hwmon: Add support to manage PL2 though mailbox Karthik Poosa
2025-05-29 10:34 ` [PATCH v11 4/6] drm/xe/hwmon: Expose powerX_cap_interval Karthik Poosa
2025-05-29 10:34 ` [PATCH v11 5/6] drm/xe/hwmon: Read energy status from PMT Karthik Poosa
2025-05-29 10:34 ` [PATCH v11 6/6] drm/xe/hwmon: Expose power sysfs entries based on firmware support Karthik Poosa
2025-05-29 13:25   ` Rodrigo Vivi
2025-05-29 14:57     ` Poosa, Karthik
2025-05-29 15:03   ` Rodrigo Vivi
2025-05-29 10:40 ` ✓ CI.Patch_applied: success for drm/xe/hwmon: Add mailbox power limits, PL2, read energy from PMT Patchwork
2025-05-29 10:40 ` ✓ CI.checkpatch: " Patchwork
2025-05-29 10:42 ` ✓ CI.KUnit: " Patchwork
2025-05-29 10:55 ` ✓ CI.Build: " Patchwork
2025-05-29 10:58 ` ✓ CI.Hooks: " Patchwork
2025-05-29 10:59 ` ✓ CI.checksparse: " Patchwork
2025-05-29 18:21 ` ✗ Xe.CI.Full: failure " Patchwork
2025-05-30  5:31 ` ✓ CI.Patch_applied: success for drm/xe/hwmon: Add mailbox power limits, PL2, read energy from PMT (rev2) Patchwork
2025-05-30  5:31 ` ✓ CI.checkpatch: " Patchwork
2025-05-30  5:32 ` ✓ CI.KUnit: " Patchwork
2025-05-30  5:43 ` ✓ CI.Build: " Patchwork
2025-05-30  5:45 ` ✓ CI.Hooks: " Patchwork
2025-05-30  5:47 ` ✓ CI.checksparse: " Patchwork
2025-05-30  6:09 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-31  0:23 ` ✓ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox