Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/xe: Increase timeout for hwmon power limit mailbox operations
@ 2026-07-29 17:15 Karthik Poosa
  2026-07-29 17:14 ` ✓ CI.KUnit: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Karthik Poosa @ 2026-07-29 17:15 UTC (permalink / raw)
  To: intel-xe
  Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
	riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
	Karthik Poosa

This series addresses sporadic failures in the xe hwmon driver when
reading or writing power limits via the pcode mailbox interface.

Power limit mailbox commands (both reads and writes) can occasionally
exceed the current 1 ms timeout, causing transient -ETIMEDOUT errors
visible to user-space through the hwmon sysfs interface.

Patch 1 introduces xe_pcode_read_timeout(), a variant of xe_pcode_read()
that accepts a caller-specified timeout, mirroring the existing
xe_pcode_write_timeout() API. This provides a consistent pattern across
read and write operations.

Patch 2 uses the new API in the hwmon driver to raise the power limit
mailbox timeout from 1 ms to 10 ms for both read and write paths, and 
renames PL_WRITE_MBX_TIMEOUT_MS to PL_MBX_TIMEOUT_MS to reflect that it
now covers both directions.

Karthik Poosa (2):
  drm/xe/pcode: Introduce xe_pcode_read_timeout() API
  drm/xe/hwmon: Increase timeout for mailbox power limits

 drivers/gpu/drm/xe/xe_hwmon.c | 28 +++++++++++++++-------------
 drivers/gpu/drm/xe/xe_pcode.c | 11 +++++++++++
 drivers/gpu/drm/xe/xe_pcode.h |  1 +
 3 files changed, 27 insertions(+), 13 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2026-08-31 16:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 17:15 [PATCH 0/2] drm/xe: Increase timeout for hwmon power limit mailbox operations Karthik Poosa
2026-07-29 17:14 ` ✓ CI.KUnit: success for " Patchwork
2026-07-29 17:15 ` [PATCH 1/2] drm/xe/pcode: Introduce xe_pcode_read_timeout() API Karthik Poosa
2026-08-31  5:32   ` Tauro, Riana
2026-08-31  6:50     ` Poosa, Karthik
2026-07-29 17:15 ` [PATCH 2/2] drm/xe/hwmon: Increase timeout for mailbox power limits Karthik Poosa
2026-08-31  5:29   ` Tauro, Riana
2026-08-31  6:54     ` Poosa, Karthik
2026-08-31  7:09       ` Tauro, Riana
2026-08-31  7:41         ` Raag Jadav
2026-08-31 13:58           ` Rodrigo Vivi
2026-08-31 16:27             ` Poosa, Karthik
2026-08-31 16:48               ` Rodrigo Vivi
2026-08-31 13:59   ` Rodrigo Vivi
2026-07-29 18:07 ` ✓ Xe.CI.BAT: success for drm/xe: Increase timeout for hwmon power limit mailbox operations Patchwork
2026-07-29 22:58 ` ✗ Xe.CI.FULL: failure " Patchwork

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