OSDN Git Service

drm/amdgpu: Move IB pool init and fini v2
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 6 Mar 2019 21:16:28 +0000 (16:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:49 +0000 (15:36 -0500)
commit533aed278afeaa68bb5d0600856ab02268cfa3b8
tree14cf517762ab1438b506386e07b5c5d6cb22fa6b
parentc6ade4ee7375c0bb47ba25be53918eaa842ae263
drm/amdgpu: Move IB pool init and fini v2

Problem:
Using SDMA for TLB invalidation in certain ASICs exposed a problem
of IB pool not being ready while SDMA already up on Init and already
shutt down while SDMA still running on Fini. This caused
IB allocation failure. Temproary fix was commited into a
bringup branch but this is the generic fix.

Fix:
Init IB pool rigth after GMC is ready but before SDMA is ready.
Do th opposite for Fini.

v2: Remove restriction on SDMA early init and move amdgpu_ib_pool_fini

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c