[PATCH 5/6] drm/radeon: fix MAX_POWER_SHIFT value

Alex Deucher alexdeucher at gmail.com
Mon Mar 24 18:22:41 UTC 2025


Applied.  Thanks.

Alex

On Sat, Mar 22, 2025 at 3:03 PM Alexandre Demers
<alexandre.f.demers at gmail.com> wrote:
>
> While I don't think it is being used anywhere, if it were used, it would
> be wrong. We can base this assumption on MAX_POWER_MASK, where the shift is
> by 16 bits.
>
> Signed-off-by: Alexandre Demers <alexandre.f.demers at gmail.com>
> ---
>  drivers/gpu/drm/radeon/sid.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/sid.h b/drivers/gpu/drm/radeon/sid.h
> index 65a911ddd509..f9267b026f8d 100644
> --- a/drivers/gpu/drm/radeon/sid.h
> +++ b/drivers/gpu/drm/radeon/sid.h
> @@ -1109,7 +1109,7 @@
>  #define                MIN_POWER_SHIFT                         0
>  #define                MAX_POWER(x)                            ((x) << 16)
>  #define                MAX_POWER_MASK                          (0x3fff << 16)
> -#define                MAX_POWER_SHIFT                         0
> +#define                MAX_POWER_SHIFT                         16
>  #define SQ_POWER_THROTTLE2                              0x8e5c
>  #define                MAX_POWER_DELTA(x)                      ((x) << 0)
>  #define                MAX_POWER_DELTA_MASK                    (0x3fff << 0)
> --
> 2.49.0
>


More information about the amd-gfx mailing list