mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/amd/powerplay: determine the features to enable by pptable only
Per current logics, the features to enable are determined together by driver and pptable. This is not efficient in co-debug with firmware team. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
861324983d
commit
59de58f84f
@ -327,7 +327,6 @@ static int arcturus_allocate_dpm_context(struct smu_context *smu)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define FEATURE_MASK(feature) (1ULL << feature)
|
|
||||||
static int
|
static int
|
||||||
arcturus_get_allowed_feature_mask(struct smu_context *smu,
|
arcturus_get_allowed_feature_mask(struct smu_context *smu,
|
||||||
uint32_t *feature_mask, uint32_t num)
|
uint32_t *feature_mask, uint32_t num)
|
||||||
@ -335,9 +334,8 @@ arcturus_get_allowed_feature_mask(struct smu_context *smu,
|
|||||||
if (num > 2)
|
if (num > 2)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
memset(feature_mask, 0, sizeof(uint32_t) * num);
|
/* pptable will handle the features to enable */
|
||||||
|
memset(feature_mask, 0xFF, sizeof(uint32_t) * num);
|
||||||
*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_PREFETCHER_BIT);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user