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/amd/pm: Grant interface access after full init

Allow access to user interfaces like sysfs/hwmon only after full
initialization of the device. When device is part of XGMI hive and a
reset is required during initialization, the inteface files will be
created as part of minimal device initialization. Full initialization of
the device will be done only after all devices in XGMI hive are probed
and a reset is done together on all.

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
2b5b3f9b 1cbac73d

+2 -1
+2 -1
drivers/gpu/drm/amd/pm/amdgpu_pm.c
··· 108 108 static int amdgpu_pm_dev_state_check(struct amdgpu_device *adev, bool runpm) 109 109 { 110 110 bool runpm_check = runpm ? adev->in_runpm : false; 111 + bool full_init = (adev->init_lvl->level == AMDGPU_INIT_LEVEL_DEFAULT); 111 112 112 - if (amdgpu_in_reset(adev)) 113 + if (amdgpu_in_reset(adev) || !full_init) 113 114 return -EBUSY; 114 115 115 116 if (adev->in_suspend && !runpm_check)