All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: disable UVD/VCE for some polaris 12 variants
@ 2018-11-23  8:32 Junwei Zhang
       [not found] ` <20181123083227.25555-1-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Junwei Zhang @ 2018-11-23  8:32 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Junwei Zhang

Some variants don't support UVD and VCE.

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/vi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index f3a4cf1f013a..3338b013ded4 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -1660,6 +1660,10 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)
 			amdgpu_device_ip_block_add(adev, &dce_v11_2_ip_block);
 		amdgpu_device_ip_block_add(adev, &gfx_v8_0_ip_block);
 		amdgpu_device_ip_block_add(adev, &sdma_v3_1_ip_block);
+		/* Some polaris12 variants don't support UVD/VCE */
+		if ((adev->pdev->device == 0x67df) &&
+		      (adev->pdev->revision == 0xf7))
+			break;
 		amdgpu_device_ip_block_add(adev, &uvd_v6_3_ip_block);
 		amdgpu_device_ip_block_add(adev, &vce_v3_4_ip_block);
 		break;
-- 
2.17.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
* [PATCH] drm/amdgpu: disable UVD/VCE for some polaris 12 variants
@ 2018-11-23  8:01 Junwei Zhang
       [not found] ` <20181123080144.24427-1-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Junwei Zhang @ 2018-11-23  8:01 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Junwei Zhang

Some variants don't support UVD and VCE.

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/vi.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index f3a4cf1f013a..46a92eca831b 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -1660,6 +1660,11 @@ int vi_set_ip_blocks(struct amdgpu_device *adev)
 			amdgpu_device_ip_block_add(adev, &dce_v11_2_ip_block);
 		amdgpu_device_ip_block_add(adev, &gfx_v8_0_ip_block);
 		amdgpu_device_ip_block_add(adev, &sdma_v3_1_ip_block);
+		/* Some polaris12 variants don't support UVD/VCE */
+		if (((adev->pdev->device == 0x67df) &&
+		     ((adev->pdev->revision == 0xe1) ||
+		      (adev->pdev->revision == 0xf7))))
+			break;
 		amdgpu_device_ip_block_add(adev, &uvd_v6_3_ip_block);
 		amdgpu_device_ip_block_add(adev, &vce_v3_4_ip_block);
 		break;
-- 
2.17.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-11-28 15:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-23  8:32 [PATCH] drm/amdgpu: disable UVD/VCE for some polaris 12 variants Junwei Zhang
     [not found] ` <20181123083227.25555-1-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
2018-11-23  9:19   ` Cui, Flora
2018-11-23 19:32   ` Deucher, Alexander
     [not found]     ` <BN6PR12MB18091B4409C1DC5CD17F903CF7D40-/b2+HYfkarSEx6ez0IUAagdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-11-26  2:38       ` Zhang, Jerry(Junwei)
     [not found]         ` <b8a49f59-e466-b0e7-abf8-feedf1bf1946-5C7GfCeVMHo@public.gmane.org>
2018-11-26  9:28           ` Christian König
     [not found]             ` <b63c3263-9df8-6c3f-06aa-7b97609d21a6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-11-27  1:47               ` Zhang, Jerry(Junwei)
     [not found]                 ` <962b81c0-358b-0447-d496-9b8efe817261-5C7GfCeVMHo@public.gmane.org>
2018-11-27  9:56                   ` Christian König
     [not found]                     ` <31393f87-a966-4e90-7cdf-e00676124f73-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-11-27 16:11                       ` Alex Deucher
     [not found]                         ` <CADnq5_NOaJShmdMvbuiykPXfC7LZneZ8U54feDU4EWYcZSQ5fw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-11-28  3:48                           ` Zhang, Jerry
     [not found]                             ` <C7F70BA5-6F05-49FC-87DC-90DE04807BC9-5C7GfCeVMHo@public.gmane.org>
2018-11-28 15:00                               ` Deucher, Alexander
  -- strict thread matches above, loose matches on Subject: below --
2018-11-23  8:01 Junwei Zhang
     [not found] ` <20181123080144.24427-1-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
2018-11-23  8:32   ` Zhang, Jerry(Junwei)

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.