drm/amdgpu/gfx: use proper offset define for MEC doorbells
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Nov 2018 19:46:51 +0000 (14:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 21:38:14 +0000 (16:38 -0500)
Looks like a copy paste typo.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index c27caa144c576089eb6ea795009bea4b5bf966a7..e409fbf67fe75e74359eacd11b35cf6f8645189c 100644 (file)
@@ -1566,7 +1566,7 @@ static int gfx_v9_0_compute_ring_init(struct amdgpu_device *adev, int ring_id,
 
        ring->ring_obj = NULL;
        ring->use_doorbell = true;
-       ring->doorbell_index = (AMDGPU_DOORBELL_MEC_RING0 + ring_id) << 1;
+       ring->doorbell_index = (AMDGPU_DOORBELL64_MEC_RING0 + ring_id) << 1;
        ring->eop_gpu_addr = adev->gfx.mec.hpd_eop_gpu_addr
                                + (ring_id * GFX9_MEC_HPD_SIZE);
        sprintf(ring->name, "comp_%d.%d.%d", ring->me, ring->pipe, ring->queue);