]> git.ipfire.org Git - thirdparty/linux.git/commit
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, 24 Jun 2025 16:57:57 +0000 (09:57 -0700)
commit1beae9aa2b88d3a02eb666e7b777eb2d7bc645f4
tree933acd62186f1dba20cc0cda9e9547a4e6a3eadd
parenta1c940cbf505e2342ebb5ea996f0acf205d6af7b
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>
drivers/gpu/drm/xe/xe_guc_pc.c