]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Move CG/PG setting out of delay worker thread
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 6 Jun 2018 05:42:42 +0000 (13:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:50 +0000 (16:38 -0500)
commitb867c450947ba578bb07079f5ce9f67edb1121b7
tree263da047365a2bb82ee50d35cedf7bac2eb40f18
parent03a59ecec0e256668ec18ed77e0439c3ccf85eac
drm/amdgpu: Move CG/PG setting out of delay worker thread

Partially revert commit d5d03706aa35
("drm/amdgpu: optimize amdgpu driver load & resume time")'

1. CG/PG enablement are part of gpu hw ip initialize, we should
wait for them complete. otherwise, there are some potential conflicts,
for example, Suspend and CG enablement concurrently.
2. better run ib test after hw initialize completely. That is to say,
   ib test should be after CG/PG enablement. otherwise, the test will
   not cover the cg/pg/poweroff enable case.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c