drm/amdgpu: skip mgpu fan boost for multi-vf
Subsystems (2)
PATCH 1/1 drm/amdgpu: skip mgpu fan boost for multi-vf
On multi-vf setup if the VM have two vf assigned, perhaps from two different gpus, mgpu fan boost will fail.
Signed-off-by Yunxiang Li <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -3389,7 +3389,7 @@ static int amdgpu_device_enable_mgpu_fan_boost(void)for (i =0 ; i < mgpu_info.num_dgpu; i++) { gpu_ins = &(mgpu_info.gpu_ins[i]); adev = gpu_ins->adev; -if (!(adev->flags &AMD_IS_APU ) && +if (!(adev->flags &AMD_IS_APU ||amdgpu_sriov_multi_vf_mode (adev)) && !gpu_ins->mgpu_fan_enabled) { ret =amdgpu_dpm_enable_mgpu_fan_boost (adev);if (ret)
Signature · 1 line
2.50.1
Quoted 5 lines · Yunxiang Li
On multi-vf setup if the VM have two vf assigned, perhaps from two different gpus, mgpu fan boost will fail.
Signed-off-by Yunxiang Li <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2@@ -3389,7 +3389,7 @@ static int amdgpu_device_enable_mgpu_fan_boost(void)for (i =0 ; i < mgpu_info.num_dgpu; i++) { gpu_ins = &(mgpu_info.gpu_ins[i]); adev = gpu_ins->adev; -if (!(adev->flags &AMD_IS_APU ) && +if (!(adev->flags &AMD_IS_APU ||amdgpu_sriov_multi_vf_mode (adev)) && !gpu_ins->mgpu_fan_enabled) { ret =amdgpu_dpm_enable_mgpu_fan_boost (adev);if (ret) --2.50.1