drm/xe/guc_pc: Add _locked variant for min/max freq
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 18 Jun 2025 18:49:58 +0000 (11:49 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 1 Jul 2025 20:53:16 +0000 (13:53 -0700)
commitd8390768dcf6f5a78af56aa03797a076871b01f3
tree78004bea9c064f6a9f251f4fed428c5d61d6921e
parentafcad92411772a1f361339f22c49f855c6cc7d0f
drm/xe/guc_pc: Add _locked variant for min/max freq

There are places in which the getters/setters are called one after the
other causing a multiple lock()/unlock(). These are not currently a
problem since they are all happening from the same thread, but there's a
race possibility as calls are added outside of the early init when the
max/min and stashed values need to be correlated.

Add the _locked() variants to prepare for that.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250618-wa-22019338487-v5-1-b888388477f2@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
(cherry picked from commit 1beae9aa2b88d3a02eb666e7b777eb2d7bc645f4)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_guc_pc.c