]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Only add rqs for initialized rings.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 Jan 2019 01:53:20 +0000 (02:53 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Feb 2019 16:15:30 +0000 (11:15 -0500)
commit24e107bb4095f8a37ff714cb9c19102989134692
tree288279f8c1c4ccf510330333b6887ab54c642848
parenta4f0a812a18e0709a5387fe0759d297e6361e186
drm/amdgpu: Only add rqs for initialized rings.

I don't see another way to figure out if a ring is initialized if
the hardware block might not be initialized.

Entities have been fixed up to handle num_rqs = 0.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c