OSDN Git Service

drm/amdgpu: enable gfxoff routine for GC 10.3.7
authorPrike Liang <Prike.Liang@amd.com>
Tue, 1 Mar 2022 09:33:09 +0000 (17:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Mar 2022 23:40:07 +0000 (18:40 -0500)
Enable gfxoff routine for GC 10.3.7.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

index e048635..92fdccc 100644 (file)
@@ -6557,6 +6557,7 @@ static void gfx_v10_0_kiq_setting(struct amdgpu_ring *ring)
        case IP_VERSION(10, 3, 5):
        case IP_VERSION(10, 3, 6):
        case IP_VERSION(10, 3, 3):
+       case IP_VERSION(10, 3, 7):
                tmp = RREG32_SOC15(GC, 0, mmRLC_CP_SCHEDULERS_Sienna_Cichlid);
                tmp &= 0xffffff00;
                tmp |= (ring->me << 5) | (ring->pipe << 3) | (ring->queue);
@@ -7857,6 +7858,7 @@ static void gfx_v10_0_set_safe_mode(struct amdgpu_device *adev)
        case IP_VERSION(10, 3, 5):
        case IP_VERSION(10, 3, 6):
        case IP_VERSION(10, 3, 3):
+       case IP_VERSION(10, 3, 7):
                WREG32_SOC15(GC, 0, mmRLC_SAFE_MODE_Sienna_Cichlid, data);
 
                /* wait for RLC_SAFE_MODE */
@@ -7894,6 +7896,7 @@ static void gfx_v10_0_unset_safe_mode(struct amdgpu_device *adev)
        case IP_VERSION(10, 3, 5):
        case IP_VERSION(10, 3, 6):
        case IP_VERSION(10, 3, 3):
+       case IP_VERSION(10, 3, 7):
                WREG32_SOC15(GC, 0, mmRLC_SAFE_MODE_Sienna_Cichlid, data);
                break;
        default:
index 4e557f4..cf09e30 100644 (file)
@@ -752,6 +752,7 @@ int smu_v13_0_gfx_off_control(struct smu_context *smu, bool enable)
        case IP_VERSION(13, 0, 1):
        case IP_VERSION(13, 0, 3):
        case IP_VERSION(13, 0, 5):
+       case IP_VERSION(13, 0, 8):
                if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
                        return 0;
                if (enable)