]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/guc/slpc: Correct the param count for unset param
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Wed, 16 Feb 2022 18:15:04 +0000 (10:15 -0800)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 28 Feb 2022 11:59:01 +0000 (11:59 +0000)
SLPC unset param H2G only needs one parameter - the id of the
param.

Fixes: ecd66777eff2 ("drm/i915/guc/slpc: Cache platform frequency limits")
Suggested-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220216181504.7155-1-vinay.belgaumkar@intel.com
(cherry picked from commit 9648f1c3739505557d94ff749a4f32192ea81fe3)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c

index 13b27b8ff74e5ddd019fb07e5ec4ad5dcd83a234..ba21ace973da143ce0b06ec268d22b4b9587f26d 100644 (file)
@@ -110,7 +110,7 @@ static int guc_action_slpc_unset_param(struct intel_guc *guc, u8 id)
 {
        u32 request[] = {
                GUC_ACTION_HOST2GUC_PC_SLPC_REQUEST,
-               SLPC_EVENT(SLPC_EVENT_PARAMETER_UNSET, 2),
+               SLPC_EVENT(SLPC_EVENT_PARAMETER_UNSET, 1),
                id,
        };