Re: [PATCH 2/2] drm/amd/powerplay: correct data type to avoid overflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Series is:
Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Quan, Evan <Evan.Quan@xxxxxxx>
Sent: Tuesday, March 26, 2019 6:15 AM
To: Quan, Evan; amd-gfx@xxxxxxxxxxxxxxxxxxxxx
Subject: RE: [PATCH 2/2] drm/amd/powerplay: correct data type to avoid overflow
 
Ping..

> -----Original Message-----
> From: Evan Quan <evan.quan@xxxxxxx>
> Sent: 2019年3月23日 2:07
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Quan, Evan <Evan.Quan@xxxxxxx>
> Subject: [PATCH 2/2] drm/amd/powerplay: correct data type to avoid
> overflow
>
> Avoid left shift overflow.
>
> Change-Id: If03f4f4d440b6d742d8eaa23d0bae6ddd21c01ea
> Signed-off-by: Evan Quan <evan.quan@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
> b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
> index b90089a4fb6a..195c4ae67058 100644
> --- a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
> +++ b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
> @@ -165,7 +165,7 @@
>  #define FEATURE_DS_FCLK_MASK            (1 << FEATURE_DS_FCLK_BIT            )
>  #define FEATURE_DS_MP1CLK_MASK          (1 <<
> FEATURE_DS_MP1CLK_BIT          )
>  #define FEATURE_DS_MP0CLK_MASK          (1 <<
> FEATURE_DS_MP0CLK_BIT          )
> -#define FEATURE_XGMI_MASK               (1 << FEATURE_XGMI_BIT               )
> +#define FEATURE_XGMI_MASK               (1ULL <<
> FEATURE_XGMI_BIT               )
>  #define FEATURE_ECC_MASK                (1ULL << FEATURE_ECC_BIT                )
>
>  #define DPM_OVERRIDE_DISABLE_SOCCLK_PID             0x00000001
> --
> 2.21.0

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux