Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp512227pxk; Thu, 17 Sep 2020 08:49:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBUr18FmiNoYSE6AABfQrRD595e29sF1dwH+zpaT+1SEbui2tbeJHPH0AEtJnjx8/BIyV6 X-Received: by 2002:a17:906:fb8c:: with SMTP id lr12mr32908464ejb.9.1600357745641; Thu, 17 Sep 2020 08:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600357745; cv=none; d=google.com; s=arc-20160816; b=imtXATGHdhi6QZsCy4PwaRgrB6vFhoN7IaPXYgU4IabQ+zP6A7nozVV3Pn6p9m0pc3 wOUrbpE3kz45nImprglo6VMMRUA1mBr7lWoEP5Wy4rQ7SYBX6Wur7Xa6YlYwGXhYAEvB YF61IODw0ykg2NUL52I2BN0wqJNNSCVsK92NvlARdKmglEkWksJ+JgSQ+L3rZCfgvNSd 75u9qIcYxUefj7Z0ibccILy1+ojnQajfTju3DiXGHg8ZCmFvGVLLx0PS3D3RQsA8RKxK Cem7eYw4Hp0BCEzS9eRpioYobZ+OACgHZigoPofQ1Kvd0QZy9cmCyQKYpmG+0hmWOKsT 6wqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=++KjjTeArkQUc6wTWp+OUexd5LFyCKXsX9i3O0Psxsg=; b=HhDbzBVya2JBL3I1Me7hgOChbUc3cmCBAUbeQcabEuocG+iiEjjou42q+vho9EHUu7 CDKMgMnoAGHZNf2R4fVGX3rQ+CYocPRw/8ciOSCbROsvIAoY/YaDuiOkwIQOmf3RyF/D 0YcWclKFX9l2kZln9peuiyfWtkSlL2zL8HUOuN/fixTdJBz7kpxd+stEFUOcc2bhLqgX M2gL9hToEWbT72LN0DVZPuBExudHK8QXXS1T6Fojjyk34BJd+K2M5+uSgpxOMGqtyAcY YOmLseEWAk1qki0SubB1dKWZesDLwWjxLSiOr4xaIML1d0oYidFGVAqkrWiypyTuttg+ VNdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vdIO7GRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si51249edt.172.2020.09.17.08.48.40; Thu, 17 Sep 2020 08:49:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vdIO7GRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728122AbgIQPnY (ORCPT + 99 others); Thu, 17 Sep 2020 11:43:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728239AbgIQPm7 (ORCPT ); Thu, 17 Sep 2020 11:42:59 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAD69C061788 for ; Thu, 17 Sep 2020 08:35:55 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id o5so2542902wrn.13 for ; Thu, 17 Sep 2020 08:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=++KjjTeArkQUc6wTWp+OUexd5LFyCKXsX9i3O0Psxsg=; b=vdIO7GRao1HIL7dDL5HmL7RgluYPLILqZijreSW8tI3heqpGROlE+g6JUvU8DgkyI9 6TRbJxmXdMuRcFA82d8pXd3KqM5j7x2k4VF0otEj9YS8sStZ7NYi+9Zhc46FRaWdD2gP llkuK1ntu1GYTTlMyHPBP+HH4EzCrXnUtvklzb/PDqkmGQK4RyS4zghJkgC3we2Ld0xW jUaxfCxYoyvRH/QdaHFxPor/58NzsYJaCw+Sm/AAhgw5/45wT+GtzNqM9qHorCwBDDTd X+9CHr8U+PSeNMkaTn818RIsLuEevjd+mUn/9eGfmspJogTLkgloJG3WI9TZB94qfhGC B+2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=++KjjTeArkQUc6wTWp+OUexd5LFyCKXsX9i3O0Psxsg=; b=Lfor3WZGcuM9Shm6F5QMQKMEKTxvXmmJwkhfsEdCZmBR3hBqOBC5FZmyJjHbzc86PY +/98FkwnweN2c45Begm1pOTB7PwQhqAwsyz/1C8ZkJZBP5j4RZz0xYrzeYaheWAvFJvz 5wKZZ2rGDI3zMOwwH1oTts9YOjPzQycD9amoaDnpOfvRjUgKPONAYilFmFcNaZKxXl79 fgvsG0uk8ArXm4VBuDOuotW7BNXmRl2YiTlb+CDAzaG041y/VhfU6IFG9pZuuhRvW7XG j0wpSS/uaKIrJohwpRHSnN/qQRxMJ0AIJ+apJgn0LzJRkF6RJWAfPxco+H71gCsvp20r kfOQ== X-Gm-Message-State: AOAM531XvYYHvfIFGSaQfSUdd5TJqLZDPrTfx5ot4QeBr0ovNY6VA1by TeXIHCvE4jma3srCRw2BJje4coYTAX/MFnsIw5Q= X-Received: by 2002:adf:dd82:: with SMTP id x2mr34902393wrl.419.1600356954497; Thu, 17 Sep 2020 08:35:54 -0700 (PDT) MIME-Version: 1.0 References: <20200917034610.21703-1-dawning.pang@gmail.com> In-Reply-To: From: Alex Deucher Date: Thu, 17 Sep 2020 11:35:43 -0400 Message-ID: Subject: Re: [PATCH v1] powerplay:hwmgr - modify the return value To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Xiaoliang Pang , "Quan, Evan" , "Deucher, Alexander" , Dave Airlie , Daniel Vetter , Kenneth Feng , zhengbin , pelle@vangils.xyz, Yintian Tao , Tianjia Zhang , LKML , Maling list - DRI developers , Nirmoy Das , amd-gfx list , Eric Huang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 4:28 AM Christian K=C3=B6nig wrote: > > Am 17.09.20 um 05:46 schrieb Xiaoliang Pang: > > modify the return value is -EINVAL > > Maybe better write something like "The correct return value should be > -EINVAL." With that done feel free to add my acked-by. Applied with updated commit message. Thanks! Alex > > Christian. > > > > > Fixes: f83a9991648bb("drm/amd/powerplay: add Vega10 powerplay support (= v5)") > > Fixes: 2cac05dee6e30("drm/amd/powerplay: add the hw manager for vega12 = (v4)") > > Cc: Eric Huang > > Cc: Evan Quan > > Signed-off-by: Xiaoliang Pang > > --- > > drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- > > drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drive= rs/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c > > index c378a000c934..7eada3098ffc 100644 > > --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c > > +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c > > @@ -4659,7 +4659,7 @@ static int vega10_display_configuration_changed_t= ask(struct pp_hwmgr *hwmgr) > > if ((data->water_marks_bitmap & WaterMarksExist) && > > !(data->water_marks_bitmap & WaterMarksLoaded)) { > > result =3D smum_smc_table_manager(hwmgr, (uint8_t *)wm_ta= ble, WMTABLE, false); > > - PP_ASSERT_WITH_CODE(result, "Failed to update WMTABLE!", = return EINVAL); > > + PP_ASSERT_WITH_CODE(result, "Failed to update WMTABLE!", = return -EINVAL); > > data->water_marks_bitmap |=3D WaterMarksLoaded; > > } > > > > diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c b/drive= rs/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c > > index a678a67f1c0d..04da52cea824 100644 > > --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c > > +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c > > @@ -2390,7 +2390,7 @@ static int vega12_display_configuration_changed_t= ask(struct pp_hwmgr *hwmgr) > > !(data->water_marks_bitmap & WaterMarksLoaded)) { > > result =3D smum_smc_table_manager(hwmgr, > > (uint8_t *)wm_table, TABL= E_WATERMARKS, false); > > - PP_ASSERT_WITH_CODE(result, "Failed to update WMTABLE!", = return EINVAL); > > + PP_ASSERT_WITH_CODE(result, "Failed to update WMTABLE!", = return -EINVAL); > > data->water_marks_bitmap |=3D WaterMarksLoaded; > > } > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel