linux/drivers/gpu/drm/xe/regs
Karthik Poosa 9127a69c71 drm/xe/hwmon: Fix xe_hwmon_power_max_write
Prevent other bits of mailbox power limit from being overwritten with 0.
This issue was due to a missing read and modify of current power limit,
before setting a requested mailbox power limit, which is added in this
patch.

v2:
 - Improve commit message. (Anshuman)

v3:
 - Rebase.
 - Rephrase commit message. (Riana)
 - Add read-modify-write variant of xe_hwmon_pcode_write_power_limit()
   i.e. xe_hwmon_pcode_rmw_power_limit(). (Badal)
 - Use xe_hwmon_pcode_rmw_power_limit() to set mailbox power limits.
 - Remove xe_hwmon_pcode_write_power_limit() as all mailbox power limits
   writes use xe_hwmon_pcode_rmw_power_limit() only.

v4:
 - Use PWR_LIM in place of (PWR_LIM_EN | PWR_LIM_VAL) wherever
   applicable. (Riana)

Fixes: 25a2aa779f ("drm/xe/hwmon: Add support to manage power limits though mailbox")
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://lore.kernel.org/r/20250617120030.612819-1-karthik.poosa@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit 8aa7306631)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
2025-06-24 20:18:31 +02:00
..
xe_bars.h drm/xe: Move BAR definitions to dedicated file 2024-05-30 23:50:25 +02:00
xe_engine_regs.h drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
xe_eu_stall_regs.h drm/xe/eustall: Add support to init, enable and disable EU stall sampling 2025-02-26 11:30:59 -08:00
xe_gsc_regs.h drm/xe/gsc: Add debugfs to print GSC info 2024-08-29 10:32:20 -07:00
xe_gt_regs.h drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
xe_gtt_defs.h drm/xe: Allow to assign GGTT region to the VF 2024-04-16 12:37:29 +02:00
xe_guc_regs.h drm/xe/guc: Capture all available bits of GuC timestamp 2024-10-29 13:11:33 -07:00
xe_irq_regs.h drm/xe/pxp: Handle the PXP termination interrupt 2025-02-03 11:51:13 -08:00
xe_lrc_layout.h drm/xe: Add WA BB to capture active context utilization 2025-05-14 09:03:29 -07:00
xe_mchbar_regs.h drm/xe/hwmon: Fix xe_hwmon_power_max_write 2025-06-24 20:18:31 +02:00
xe_oa_regs.h drm/xe/oa: Preserve oa_ctrl unused bits 2025-01-21 09:29:47 -08:00
xe_pcode_regs.h drm/xe/hwmon: Add support to manage power limits though mailbox 2025-06-05 18:05:44 +02:00
xe_pmt.h drm/xe/vsec: Support BMG devices 2024-12-03 15:02:55 -05:00
xe_pxp_regs.h drm/xe/pxp: Handle the PXP termination interrupt 2025-02-03 11:51:13 -08:00
xe_reg_defs.h drm/xe: Add xe_mmio_init() initialization function 2025-02-18 08:27:11 -08:00
xe_regs.h drm/xe: Eliminate usage of TIMESTAMP_OVERRIDE 2025-02-26 13:29:42 -08:00