[PATCH] drm/amd/pm: drop redundant MEM_TYPE_* macros

Nirmoy nirmodas at amd.com
Fri Aug 14 08:52:56 UTC 2020


Reviewed-by: Nirmoy Das <nirmoy.das at amd.com>


Nirmoy

On 8/14/20 10:43 AM, Evan Quan wrote:
> As these are already defined in amdgpu_atombios.h. Otherwise, we may
> hit "redefined" compile warning.
>
> Change-Id: Ia2a9e10b35173fedcbbd8e0abb8ad38dd231baf4
> Signed-off-by: Evan Quan <evan.quan at amd.com>
> ---
>   drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h | 9 ---------
>   1 file changed, 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h
> index 3ee54f182943..76ed2e413594 100644
> --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h
> +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h
> @@ -26,15 +26,6 @@
>   
>   #include "hwmgr.h"
>   
> -#define MEM_TYPE_GDDR5  0x50
> -#define MEM_TYPE_GDDR4  0x40
> -#define MEM_TYPE_GDDR3  0x30
> -#define MEM_TYPE_DDR2   0x20
> -#define MEM_TYPE_GDDR1  0x10
> -#define MEM_TYPE_DDR3   0xb0
> -#define MEM_TYPE_MASK   0xF0
> -
> -
>   /* As returned from PowerConnectorDetectionTable. */
>   #define PP_ATOM_POWER_BUDGET_DISABLE_OVERDRIVE  0x80
>   #define PP_ATOM_POWER_BUDGET_SHOW_WARNING       0x40


More information about the amd-gfx mailing list