]> 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)
commit6318cfd8abc2fbfeb0a9ac34184bfec6d3e250e9
tree263da047365a2bb82ee50d35cedf7bac2eb40f18
parentf83c6bcc847dd1c234aea1e5f92a97de96944e24
drm/amdgpu: Move CG/PG setting out of delay worker thread

Partially revert commit 4358aa8e7f07
("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