Skip to content

drm/xe/hwmon: DG2 fan-table follow-up on 168027 v3

aleskxyz intel-xe 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1drm/xe/hwmon: add DG2 dual-point fan-table programmingdrivers/gpu/drm/xe/xe_hwmon.c drivers/gpu/drm/xe/xe_pcode_api.h+170 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] drm/xe/hwmon: DG2 fan-table follow-up on 168027 v3

This is an add-on to 168027 v3, not a rewrite of the Battlemage path. Every extra branch is gated on XE_DG2.

DG2 does not apply the BMG FSC encoding (one point per write, then a count commit). The dual-point Set used here matches the Arc A Windows KMD path for IP 12.70, then was checked on A310 with xe: fan 0, subcommand 1 is the point count, subcommand 2 packs two 8/8 points per dword. enable=2 is subcommand 1 with count 0, which restores factory control. The BMG subcommand-0 count write does not.

Point counts are even (2-10). An odd last pack is one real point plus (0,0) and is not applied. There is no user or stock GET; stock-mode auto_point reads as 0. The Intel Graphics Software default curve (25/0..97/90) is only a seed when enable=1 finds an empty USER table. It is not shown in enable=2 and is not sent on reset.

Tested on Sparkle A310 (8086:56a6) with xe. Dual-point Set moves RPM (~6500 at 100%); enable=2 count 0 returns factory (~3300); a 3-point 35/100% table stays ~3000, the even 4-point control reaches ~6500.

Not tested: 2-fan A750/A770 (whether pwm1 drives both tachs) and Arc A laptops. Probe still does not send count 0, so after rebind sysfs can say enable=2 while firmware still has the last table; that is a possible follow-up.

LLM coding assistants (Cursor, Claude) were used to draft and iterate the DG2 encoder. I reviewed the mailbox encoding against A310 tests and take DCO responsibility for the patch.

---
 drivers/gpu/drm/xe/xe_hwmon.c     | 170 +++++++++++++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_pcode_api.h |   2 +
 2 files changed, 170 insertions(+), 2 deletions(-)