drm/amdgpu/powerplay: FEATURE_MASK is 64 bit so use ULL
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 13:48:15 +0000 (08:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 17:08:19 +0000 (12:08 -0500)
ULL is needed for 32 bit arches.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c

index 99b20fed347acbd420b533015adc8321daec67a7..2d43e3dc79f6fae2ea7043b6d4ccff5d2d490bcd 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "asic_reg/mp/mp_11_0_sh_mask.h"
 
-#define FEATURE_MASK(feature) (1UL << feature)
+#define FEATURE_MASK(feature) (1ULL << feature)
 #define SMC_DPM_FEATURE ( \
        FEATURE_MASK(FEATURE_DPM_PREFETCHER_BIT) | \
        FEATURE_MASK(FEATURE_DPM_GFXCLK_BIT)     | \
index 2fc4e2a6fd82f20a2a4514dbf8788ad0f5da431e..0f14fe14ecd845d335b551477d33fea5d6d08bb2 100644 (file)
@@ -576,7 +576,7 @@ static int vega20_run_btc_afll(struct smu_context *smu)
        return smu_send_smc_msg(smu, SMU_MSG_RunAfllBtc);
 }
 
-#define FEATURE_MASK(feature) (1UL << feature)
+#define FEATURE_MASK(feature) (1ULL << feature)
 static int
 vega20_get_allowed_feature_mask(struct smu_context *smu,
                                  uint32_t *feature_mask, uint32_t num)