mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
drm/amd/pm: Skip smu_post_init in SRIOV
smu_post_init needs to enable SMU feature, while this require virtualization off. Skip it since this feature is not used in SRIOV. v2: move the check to the early stage of smu_post_init. v3: fix typo Signed-off-by: Jingwen Chen <Jingwen.Chen2@amd.com> Reviewed-by: Emily.Deng <Emily.Deng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e491214613
commit
911d5bd5e7
1 changed files with 3 additions and 0 deletions
|
@ -2633,6 +2633,9 @@ static int navi10_post_smu_init(struct smu_context *smu)
|
||||||
uint64_t feature_mask = 0;
|
uint64_t feature_mask = 0;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
if (amdgpu_sriov_vf(adev))
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* For Naiv1x, enable these features only after DAL initialization */
|
/* For Naiv1x, enable these features only after DAL initialization */
|
||||||
if (adev->pm.pp_feature & PP_SOCCLK_DPM_MASK)
|
if (adev->pm.pp_feature & PP_SOCCLK_DPM_MASK)
|
||||||
feature_mask |= FEATURE_MASK(FEATURE_DPM_SOCCLK_BIT);
|
feature_mask |= FEATURE_MASK(FEATURE_DPM_SOCCLK_BIT);
|
||||||
|
|
Loading…
Reference in a new issue