drm/amdgpu: set MEC doorbell range for Fiji
authorJammy Zhou <Jammy.Zhou@amd.com>
Tue, 1 Sep 2015 08:44:11 +0000 (16:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Sep 2015 16:35:52 +0000 (12:35 -0400)
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c

index 956a35822f8607948a7376e761580cbbf50afe37..0af357a1a170e7d885090366feb962654cfa5f22 100644 (file)
@@ -3240,7 +3240,8 @@ static int gfx_v8_0_cp_compute_resume(struct amdgpu_device *adev)
 
                /* enable the doorbell if requested */
                if (use_doorbell) {
-                       if (adev->asic_type == CHIP_CARRIZO) {
+                       if ((adev->asic_type == CHIP_CARRIZO) ||
+                           (adev->asic_type == CHIP_FIJI)) {
                                WREG32(mmCP_MEC_DOORBELL_RANGE_LOWER,
                                       AMDGPU_DOORBELL_KIQ << 2);
                                WREG32(mmCP_MEC_DOORBELL_RANGE_UPPER,