[PATCH 1/9] drm/amdgpu: add gfx clock gating for Arcturus

Feng, Kenneth Kenneth.Feng at amd.com
Fri Aug 9 03:28:03 UTC 2019


Reviewed-by: Kenneth Feng <kenneth.feng at amd.com>


-----Original Message-----
From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf Of Le Ma
Sent: Thursday, August 08, 2019 6:22 PM
To: amd-gfx at lists.freedesktop.org
Cc: Ma, Le <Le.Ma at amd.com>
Subject: [PATCH 1/9] drm/amdgpu: add gfx clock gating for Arcturus

[CAUTION: External Email]

Add ARCTURUS case in gfx set clockgating function. No 3d clock on Arcturus.

Change-Id: I9893a2afea7f0b5d433baa14f48ae55a36516fac
Signed-off-by: Le Ma <le.ma at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index fdd90c1..de3de1c 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -4218,6 +4218,9 @@ static void gfx_v9_0_update_3d_clock_gating(struct amdgpu_device *adev,  {
        uint32_t data, def;

+       if (adev->asic_type == CHIP_ARCTURUS)
+               return;
+
        amdgpu_gfx_rlc_enter_safe_mode(adev);

        /* Enable 3D CGCG/CGLS */
@@ -4410,6 +4413,7 @@ static int gfx_v9_0_set_clockgating_state(void *handle,
        case CHIP_VEGA12:
        case CHIP_VEGA20:
        case CHIP_RAVEN:
+       case CHIP_ARCTURUS:
                gfx_v9_0_update_gfx_clock_gating(adev,
                                                 state == AMD_CG_STATE_GATE ? true : false);
                break;
--
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list