[PATCH] drm/amdgpu/swsmu: disable force reprogram HW state in SR-IOV environment
Lin.Cao
lincao12 at amd.com
Thu Sep 19 10:44:00 UTC 2024
SRIOV do not need to forece reprogram HW state on init which should be
set from host side.
Signed-off-by: Lin.Cao <lincao12 at amd.com>
---
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 4a6b4ad97f06..a67678ee2d3c 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -2234,6 +2234,9 @@ static int smu_adjust_power_state_dynamic(struct smu_context *smu,
long workload[1];
struct smu_dpm_context *smu_dpm_ctx = &(smu->smu_dpm);
+ if (amdgpu_sriov_vf(adev))
+ force_update = false;
+
if (!skip_display_settings) {
ret = smu_display_config_changed(smu);
if (ret) {
--
2.45.2
More information about the amd-gfx
mailing list