drm/xe/guc: Eliminate RPe caching for SLPC parameter handling
authorSk Anirban <sk.anirban@intel.com>
Wed, 12 Nov 2025 18:51:55 +0000 (00:21 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 12 Nov 2025 23:05:52 +0000 (18:05 -0500)
commit2917e17b5fd25447a702e79f4ecba3e3b3e08d58
tree46964be460ee621f74a22770f36c8b364800e30a
parent387aba39b7be9e4b7fbacb04f22d8bb40be51a34
drm/xe/guc: Eliminate RPe caching for SLPC parameter handling

RPe is runtime-determined by PCODE and caching it caused stale values,
leading to incorrect GuC SLPC parameter settings.
Drop the cached rpe_freq field and query fresh values from hardware
on each use to ensure GuC SLPC parameters reflect current RPe.

v2: Remove cached RPe frequency field (Rodrigo)
v3: Remove extra variable (Vinay)
    Modify function name (Vinay)
v4: Maintain a separate function for PVC (Rodrigo)
v5: Avoid RPn update while fetching RPe frequency (Rodrigo)
v6: Split platform-specific RPe comments (Vinay)

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5166
Signed-off-by: Sk Anirban <sk.anirban@intel.com>
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Link: https://patch.msgid.link/20251112185153.3593145-5-sk.anirban@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_pc.c
drivers/gpu/drm/xe/xe_guc_pc_types.h