All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] drm/amdgpu: skip CG for VCN when late_init/fini
@ 2018-05-16 12:52 Rex Zhu
       [not found] ` <1526475182-32156-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Rex Zhu @ 2018-05-16 12:52 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Rex Zhu

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index fcd4bb2..25bee46 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1718,6 +1718,7 @@ static int amdgpu_device_ip_late_set_cg_state(struct amdgpu_device *adev)
 		/* skip CG for VCE/UVD, it's handled specially */
 		if (adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_UVD &&
 		    adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCE &&
+		    adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCN &&
 		    adev->ip_blocks[i].version->funcs->set_clockgating_state) {
 			/* enable clockgating to save power */
 			r = adev->ip_blocks[i].version->funcs->set_clockgating_state((void *)adev,
@@ -1817,6 +1818,7 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev)
 
 		if (adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_UVD &&
 			adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCE &&
+			adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCN &&
 			adev->ip_blocks[i].version->funcs->set_clockgating_state) {
 			/* ungate blocks before hw fini so that we can shutdown the blocks safely */
 			r = adev->ip_blocks[i].version->funcs->set_clockgating_state((void *)adev,
-- 
1.9.1

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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-05-16 15:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 12:52 [PATCH 1/6] drm/amdgpu: skip CG for VCN when late_init/fini Rex Zhu
     [not found] ` <1526475182-32156-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-05-16 12:52   ` [PATCH 2/6] drm/amd/pp: Add smu support for vcn cg/pg on RV Rex Zhu
     [not found]     ` <1526475182-32156-2-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-05-16 15:55       ` Alex Deucher
2018-05-16 12:52   ` [PATCH 3/6] drm/amdgpu: Add CG/PG flags for VCN Rex Zhu
     [not found]     ` <1526475182-32156-3-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-05-16 15:55       ` Alex Deucher
2018-05-16 12:53   ` [PATCH 4/6] drm/amdgpu: Add runtime vcn cg/pg enablement Rex Zhu
     [not found]     ` <1526475182-32156-4-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-05-16 15:53       ` Alex Deucher
2018-05-16 12:53   ` [PATCH 5/6] drm/amdgpu: Enable static cg for vcn on RV Rex Zhu
     [not found]     ` <1526475182-32156-5-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-05-16 15:45       ` Alex Deucher
2018-05-16 12:53   ` [PATCH 6/6] drm/amdgpu: Enable static pg feature " Rex Zhu
     [not found]     ` <1526475182-32156-6-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
2018-05-16 15:51       ` Alex Deucher
2018-05-16 15:54   ` [PATCH 1/6] drm/amdgpu: skip CG for VCN when late_init/fini Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.