Skip to contentSkip to conversation

drm/amdgpu: bypass vce clock if vce is idle on Fiji.

PATCH In review Rex Zhu 2 participants 2 messages Sep 24, 2016 – Sep 26, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Rex Zhu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: bypass vce clock if vce is idle on Fiji.

Change-Id I74bdf39af332eb369e87c989b344f3e06cbfc714
---
 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +2 -1
index a6b4e27..43b26eb 100644
@@ -716,7 +716,8 @@ static int vce_v3_0_set_clockgating_state(void *handle,
 	int i;
 
 	if ((adev->asic_type == CHIP_POLARIS10) ||
-	    (adev->asic_type == CHIP_TONGA))
+	    (adev->asic_type == CHIP_TONGA) ||
+	   (adev->asic_type == CHIP_FIJI))
 		vce_v3_0_set_bypass_mode(adev, enable);
 
 	if (!(adev->cg_flags & AMD_CG_SUPPORT_VCE_MGCG))
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1474706314-30663-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org

Reviewed-by Alex Deucher
#2 lore raw
Quoted 10 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Rex Zhu
Sent: Saturday, September 24, 2016 4:39 AM
To: [email protected]
Cc: Zhu, Rex
Subject: [PATCH] drm/amdgpu: bypass vce clock if vce is idle on Fiji.

Change-Id I74bdf39af332eb369e87c989b344f3e06cbfc714

Is there any reason not to do this for all asics?

Quoted 23 lines
---
 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +2 -1
index a6b4e27..43b26eb 100644
@@ -716,7 +716,8 @@ static int vce_v3_0_set_clockgating_state(void
 *handle,
 	int i;
 
 	if ((adev->asic_type == CHIP_POLARIS10) ||
-	    (adev->asic_type == CHIP_TONGA))
+	    (adev->asic_type == CHIP_TONGA) ||
+	   (adev->asic_type == CHIP_FIJI))
 		vce_v3_0_set_bypass_mode(adev, enable);
 

if (!(adev->cg_flags & AMD_CG_SUPPORT_VCE_MGCG))
--
1.9.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx