All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cui, Flora" <Flora.Cui-5C7GfCeVMHo@public.gmane.org>
To: "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Cc: "Zhang, Jerry" <Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>
Subject: RE: [PATCH] drm/amdgpu: disable UVD/VCE for some polaris 12 variants
Date: Fri, 23 Nov 2018 09:19:35 +0000	[thread overview]
Message-ID: <MW2PR12MB234574D2E3B3BC0BA6900807FAD40@MW2PR12MB2345.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20181123083227.25555-1-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org>

Patch is Reviewed-by: Flora Cui <flora.cui@amd.com>

-----Original Message-----
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Junwei Zhang
Sent: Friday, November 23, 2018 4:32 PM
To: amd-gfx@lists.freedesktop.org
Cc: Zhang, Jerry <Jerry.Zhang@amd.com>
Subject: [PATCH] drm/amdgpu: disable UVD/VCE for some polaris 12 variants

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
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2018-11-23  9:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW2PR12MB234574D2E3B3BC0BA6900807FAD40@MW2PR12MB2345.namprd12.prod.outlook.com \
    --to=flora.cui-5c7gfcevmho@public.gmane.org \
    --cc=Jerry.Zhang-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.