]> 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)
commit520bfdf034ba9e25d8f8f79a9e478117a7ce963d
treeee8ebbdde1f8c86114aea1cab6df99f721cfa634
parent0252673184ae3fe475fdb19392dc528b1267c13c
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