[PATCH 0/2] drm/xe: Increase timeout for hwmon power limit mailbox operations

Karthik Poosa <[email protected]>
Newsgroups org.freedesktop.lists.intel-xe
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.