[PATCH 3.5/6] drm/amd/powerplay: fix bugs of checking if dpm is running on Tonga

Mike Lothian mike at fireburn.co.uk
Fri May 13 22:51:00 UTC 2016


That did the trick thanks

On Fri, 13 May 2016 at 22:36 Alex Deucher <alexdeucher at gmail.com> wrote:

> From: Eric Huang <JinHuiEric.Huang at amd.com>
>
> Fixes OD failures on Tonga.
>
> Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> Signed-off-by: Eric Huang <JinHuiEric.Huang at amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>
> This fixes OD failures on Tonga in some cases.
>
>  drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
> index cb28335..7c3f82b 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c
> @@ -5331,7 +5331,7 @@ static int tonga_freeze_sclk_mclk_dpm(struct
> pp_hwmgr *hwmgr)
>                 (data->need_update_smu7_dpm_table &
>                 (DPMTABLE_OD_UPDATE_SCLK + DPMTABLE_UPDATE_SCLK))) {
>                 PP_ASSERT_WITH_CODE(
> -                       true == tonga_is_dpm_running(hwmgr),
> +                       0 == tonga_is_dpm_running(hwmgr),
>                         "Trying to freeze SCLK DPM when DPM is disabled",
>                         );
>                 PP_ASSERT_WITH_CODE(
> @@ -5344,7 +5344,7 @@ static int tonga_freeze_sclk_mclk_dpm(struct
> pp_hwmgr *hwmgr)
>         if ((0 == data->mclk_dpm_key_disabled) &&
>                 (data->need_update_smu7_dpm_table &
>                  DPMTABLE_OD_UPDATE_MCLK)) {
> -               PP_ASSERT_WITH_CODE(true == tonga_is_dpm_running(hwmgr),
> +               PP_ASSERT_WITH_CODE(0 == tonga_is_dpm_running(hwmgr),
>                         "Trying to freeze MCLK DPM when DPM is disabled",
>                         );
>                 PP_ASSERT_WITH_CODE(
> @@ -5647,7 +5647,7 @@ static int tonga_unfreeze_sclk_mclk_dpm(struct
> pp_hwmgr *hwmgr)
>                 (data->need_update_smu7_dpm_table &
>                 (DPMTABLE_OD_UPDATE_SCLK + DPMTABLE_UPDATE_SCLK))) {
>
> -               PP_ASSERT_WITH_CODE(true == tonga_is_dpm_running(hwmgr),
> +               PP_ASSERT_WITH_CODE(0 == tonga_is_dpm_running(hwmgr),
>                         "Trying to Unfreeze SCLK DPM when DPM is disabled",
>                         );
>                 PP_ASSERT_WITH_CODE(
> @@ -5661,7 +5661,7 @@ static int tonga_unfreeze_sclk_mclk_dpm(struct
> pp_hwmgr *hwmgr)
>                 (data->need_update_smu7_dpm_table &
> DPMTABLE_OD_UPDATE_MCLK)) {
>
>                 PP_ASSERT_WITH_CODE(
> -                               true == tonga_is_dpm_running(hwmgr),
> +                               0 == tonga_is_dpm_running(hwmgr),
>                                 "Trying to Unfreeze MCLK DPM when DPM is
> disabled",
>                                 );
>                 PP_ASSERT_WITH_CODE(
> --
> 2.5.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160513/54b8cc4e/attachment.html>


More information about the dri-devel mailing list