Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: sriov should skip asic_reset in device_init

sriov would meet guest driver load failure,
if calling amdgpu_asic_reset in amdgpu_device_init.
sriov should skip asic_reset in device_init.

Signed-off-by: Wentao Lou <Wentao.Lou@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

wentalou and committed by
Alex Deucher
f14899fd 24ba5950

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 2553 2553 /* check if we need to reset the asic 2554 2554 * E.g., driver was not cleanly unloaded previously, etc. 2555 2555 */ 2556 - if (amdgpu_asic_need_reset_on_init(adev)) { 2556 + if (!amdgpu_sriov_vf(adev) && amdgpu_asic_need_reset_on_init(adev)) { 2557 2557 r = amdgpu_asic_reset(adev); 2558 2558 if (r) { 2559 2559 dev_err(adev->dev, "asic reset on init failed\n");