]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: check number of gfx ring before init cp gfx
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 21 Nov 2020 13:01:47 +0000 (21:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:00:54 +0000 (15:00 -0500)
commit8fc362dbbb70e661d3318e04a2351a52c4cf36f6
treeee8ebbdde1f8c86114aea1cab6df99f721cfa634
parenta7b6b48c8a470baf04d687d5736530a075d6ffde
drm/amdgpu: check number of gfx ring before init cp gfx

Check number of gfx ring, rather than asic type,
before cp gfx engine initialization so driver just
need to make sure number of gfx ring is initialized
correctly in gfx early_init phase. No need to add
additional asic type check everywhere when there is
new asic with gfx pipe removed.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c