]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit35b14475257f553a7cd60ce4b2571304644f652b
treeee8ebbdde1f8c86114aea1cab6df99f721cfa634
parent088fb29b40f2c78bfe01cebce1a1506b6f7e56d1
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