lkml.org 
[lkml]   [2022]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.16 156/186] drm/i915/guc/slpc: Correct the param count for unset param
    Date
    From: Vinay Belgaumkar <vinay.belgaumkar@intel.com>

    [ Upstream commit 1b279f6ad467535c3b8a66b4edefaca2cdd5bdc3 ]

    SLPC unset param H2G only needs one parameter - the id of the
    param.

    Fixes: 025cb07bebfa ("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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
    index 65a3e7fdb2b2..95ff630157b9 100644
    --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
    +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
    @@ -133,7 +133,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,
    };

    --
    2.34.1


    \
     
     \ /
      Last update: 2022-09-17 16:16    [W:4.835 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site