drm/amdgpu: initialize num_xcd to 1 for gfx v9_0
authorLe Ma <le.ma@amd.com>
Thu, 16 Dec 2021 07:35:25 +0000 (15:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Apr 2023 19:43:38 +0000 (15:43 -0400)
Assign value here as the num_xcd is referenced in some gfx9 common path.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index bce6919d666ad0655299a359bd8f2db560186318..8fb027cf1bfb7070eaf67bb4b79d9eec9d5fa740 100644 (file)
@@ -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);