From: Lijo Lazar Date: Mon, 19 Dec 2022 12:09:42 +0000 (+0530) Subject: drm/amdgpu: Fix GFX v9.4.3 EOP buffer allocation X-Git-Tag: v6.6.7~2401^2~12^2~470 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d524180b88009d9158bff7fd20f3916455e0c32c;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: Fix GFX v9.4.3 EOP buffer allocation Each compute cluster gets 8 compute queues in GFX v9.4.3. Fix the EOP buffer allocation so that compute queue on every XCC gets a unique address. Signed-off-by: Lijo Lazar Reviewed-by: Hawking Zhang Tested-and-Reviewed-by: Asad Kamal Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c index 6aaa810..b56fa29 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c @@ -455,7 +455,8 @@ static int gfx_v9_4_3_mec_init(struct amdgpu_device *adev) /* take ownership of the relevant compute queues */ amdgpu_gfx_compute_queue_acquire(adev); - mec_hpd_size = adev->gfx.num_compute_rings * GFX9_MEC_HPD_SIZE; + mec_hpd_size = + adev->gfx.num_compute_rings * num_xcc * GFX9_MEC_HPD_SIZE; if (mec_hpd_size) { r = amdgpu_bo_create_reserved(adev, mec_hpd_size, PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM,