Commit 4e7f84ec authored by Le Ma's avatar Le Ma Committed by Alex Deucher
Browse files

drm/amdgpu: initialize num_xcd to 1 for gfx v9_0



Assign value here as the num_xcd is referenced in some gfx9 common path.

Signed-off-by: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 66daccde
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4543,6 +4543,7 @@ static int gfx_v9_0_early_init(void *handle)
		adev->gfx.num_gfx_rings = 0;
	else
		adev->gfx.num_gfx_rings = GFX9_NUM_GFX_RINGS;
	adev->gfx.num_xcd = 1;
	adev->gfx.num_compute_rings = min(amdgpu_gfx_get_num_kcq(adev),
					  AMDGPU_MAX_COMPUTE_RINGS);
	gfx_v9_0_set_kiq_pm4_funcs(adev);