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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Move reset-on-init sequence earlier

Complete reset-on-init sequence before sysfs interfaces are created.
Devices get properly initiaized only after reset, and then only sysfs
interfaces should be made available.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lijo Lazar and committed by
Alex Deucher
1cbac73d 9e2096ba

+2 -3
+2 -3
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 4857 4857 flush_delayed_work(&adev->delayed_init_work); 4858 4858 } 4859 4859 4860 + if (adev->init_lvl->level == AMDGPU_INIT_LEVEL_MINIMAL_XGMI) 4861 + amdgpu_xgmi_reset_on_init(adev); 4860 4862 /* 4861 4863 * Place those sysfs registering after `late_init`. As some of those 4862 4864 * operations performed in `late_init` might affect the sysfs ··· 4891 4889 4892 4890 if (px) 4893 4891 vga_switcheroo_init_domain_pm_ops(adev->dev, &adev->vga_pm_domain); 4894 - 4895 - if (adev->init_lvl->level == AMDGPU_INIT_LEVEL_MINIMAL_XGMI) 4896 - amdgpu_xgmi_reset_on_init(adev); 4897 4892 4898 4893 amdgpu_device_check_iommu_direct_map(adev); 4899 4894