mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
drm/amdgpu/virt: change the place of virt_init_setting
Change place of virt_init_setting function so that can cover the cg and pg flags configuration. Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
213cacefcd
commit
ab276632ec
2 changed files with 10 additions and 10 deletions
|
@ -531,11 +531,6 @@ static int soc15_common_early_init(void *handle)
|
||||||
(amdgpu_ip_block_mask & (1 << AMD_IP_BLOCK_TYPE_PSP)))
|
(amdgpu_ip_block_mask & (1 << AMD_IP_BLOCK_TYPE_PSP)))
|
||||||
psp_enabled = true;
|
psp_enabled = true;
|
||||||
|
|
||||||
if (amdgpu_sriov_vf(adev)) {
|
|
||||||
amdgpu_virt_init_setting(adev);
|
|
||||||
xgpu_ai_mailbox_set_irq_funcs(adev);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* nbio need be used for both sdma and gfx9, but only
|
* nbio need be used for both sdma and gfx9, but only
|
||||||
* initializes once
|
* initializes once
|
||||||
|
@ -579,6 +574,11 @@ static int soc15_common_early_init(void *handle)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (amdgpu_sriov_vf(adev)) {
|
||||||
|
amdgpu_virt_init_setting(adev);
|
||||||
|
xgpu_ai_mailbox_set_irq_funcs(adev);
|
||||||
|
}
|
||||||
|
|
||||||
adev->firmware.load_type = amdgpu_ucode_get_load_type(adev, amdgpu_fw_load_type);
|
adev->firmware.load_type = amdgpu_ucode_get_load_type(adev, amdgpu_fw_load_type);
|
||||||
|
|
||||||
amdgpu_get_pcie_info(adev);
|
amdgpu_get_pcie_info(adev);
|
||||||
|
|
|
@ -894,11 +894,6 @@ static int vi_common_early_init(void *handle)
|
||||||
(amdgpu_ip_block_mask & (1 << AMD_IP_BLOCK_TYPE_SMC)))
|
(amdgpu_ip_block_mask & (1 << AMD_IP_BLOCK_TYPE_SMC)))
|
||||||
smc_enabled = true;
|
smc_enabled = true;
|
||||||
|
|
||||||
if (amdgpu_sriov_vf(adev)) {
|
|
||||||
amdgpu_virt_init_setting(adev);
|
|
||||||
xgpu_vi_mailbox_set_irq_funcs(adev);
|
|
||||||
}
|
|
||||||
|
|
||||||
adev->rev_id = vi_get_rev_id(adev);
|
adev->rev_id = vi_get_rev_id(adev);
|
||||||
adev->external_rev_id = 0xFF;
|
adev->external_rev_id = 0xFF;
|
||||||
switch (adev->asic_type) {
|
switch (adev->asic_type) {
|
||||||
|
@ -1071,6 +1066,11 @@ static int vi_common_early_init(void *handle)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (amdgpu_sriov_vf(adev)) {
|
||||||
|
amdgpu_virt_init_setting(adev);
|
||||||
|
xgpu_vi_mailbox_set_irq_funcs(adev);
|
||||||
|
}
|
||||||
|
|
||||||
/* vi use smc load by default */
|
/* vi use smc load by default */
|
||||||
adev->firmware.load_type = amdgpu_ucode_get_load_type(adev, amdgpu_fw_load_type);
|
adev->firmware.load_type = amdgpu_ucode_get_load_type(adev, amdgpu_fw_load_type);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue