All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Kuehling <Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: "Christian König" <christian.koenig-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH 08/12] drm/amdgpu: disallow foreign BOs for UVD/VCE
Date: Mon,  3 Jul 2017 17:11:30 -0400	[thread overview]
Message-ID: <1499116294-12817-9-git-send-email-Felix.Kuehling@amd.com> (raw)
In-Reply-To: <1499116294-12817-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>

From: Christian König <christian.koenig@amd.com>

They don't support VM mode yet.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index 82131d7..24035e4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -1343,7 +1343,8 @@ struct amdgpu_bo_va_mapping *
 		struct amdgpu_bo_list_entry *lobj;
 
 		lobj = &parser->bo_list->array[i];
-		if (!lobj->bo_va)
+		if (!lobj->bo_va ||
+		    amdgpu_ttm_adev(lobj->bo_va->bo->tbo.bdev) != parser->adev)
 			continue;
 
 		list_for_each_entry(mapping, &lobj->bo_va->valids, list) {
-- 
1.9.1

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

  parent reply	other threads:[~2017-07-03 21:11 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03 21:11 [PATCH 00/12] Patches from amd-kfd-staging Felix Kuehling
     [not found] ` <1499116294-12817-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-03 21:11   ` [PATCH 01/12] drm/amdgpu: implement vm_operations_struct.access Felix Kuehling
     [not found]     ` <1499116294-12817-2-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-12  5:37       ` Felix Kuehling
     [not found]         ` <1d2e44be-634b-d0da-7af4-c329ac652605-5C7GfCeVMHo@public.gmane.org>
2017-07-12  6:26           ` axie
     [not found]             ` <4d519256-1fb1-16a6-ccfd-650405730d53-5C7GfCeVMHo@public.gmane.org>
2017-07-12  7:22               ` Christian König
     [not found]                 ` <5d3840da-46e8-6f47-70c4-7929339eb615-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-07-12 13:48                   ` axie
2017-07-12  8:01           ` Michel Dänzer
     [not found]             ` <3ca8b862-2f3b-fae9-7129-855d88819cbf-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-07-12 17:27               ` Felix Kuehling
     [not found]                 ` <66cd6b5d-a65c-92f0-8b04-ae5d886f21e0-5C7GfCeVMHo@public.gmane.org>
2017-07-13  2:52                   ` Michel Dänzer
2017-07-03 21:11   ` [PATCH 02/12] drm/amdgpu: Enable SDMA_CNTL.ATC_L1_ENABLE for SDMA on CZ Felix Kuehling
     [not found]     ` <1499116294-12817-3-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-06 20:58       ` Alex Deucher
2017-07-03 21:11   ` [PATCH 03/12] drm/amdgpu: Enable SDMA context switching for CIK Felix Kuehling
     [not found]     ` <1499116294-12817-4-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-04  3:07       ` Zhou, David(ChunMing)
2017-07-06 20:59       ` Alex Deucher
2017-07-03 21:11   ` [PATCH 04/12] drm/amdgpu: Make SDMA phase quantum configurable Felix Kuehling
     [not found]     ` <1499116294-12817-5-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-04  3:05       ` Zhou, David(ChunMing)
2017-07-06 21:00       ` Alex Deucher
2017-07-03 21:11   ` [PATCH 05/12] drm/amdgpu: Send no-retry XNACK for all fault types Felix Kuehling
     [not found]     ` <1499116294-12817-6-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-12  5:40       ` Felix Kuehling
     [not found]         ` <a3dd6e2c-bb73-dac0-92c9-f920aa6781f8-5C7GfCeVMHo@public.gmane.org>
2017-07-12 15:59           ` Alex Deucher
     [not found]             ` <CADnq5_MHR22VWaiSL2HVJMOJX7uTo=i7yuG2WPii-W5wHJP0pw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-12 16:15               ` Bridgman, John
     [not found]                 ` <BN6PR12MB1348A5F0EA00AA946CFDF63CE8AF0-/b2+HYfkarQX0pEhCR5T8QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-07-12 16:49                   ` Christian König
2017-07-12 17:37               ` Felix Kuehling
     [not found]                 ` <b2770df0-8879-565c-fa77-4f1985df7938-5C7GfCeVMHo@public.gmane.org>
2017-07-12 17:40                   ` Alex Deucher
2017-07-12 17:43                   ` Jay Cornwall
2017-07-12 16:13           ` Bridgman, John
2017-07-03 21:11   ` [PATCH 06/12] drm/amdgpu: Correctly establish the suspend/resume hook for amdkfd Felix Kuehling
     [not found]     ` <1499116294-12817-7-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-03 21:53       ` Oded Gabbay
2017-07-06 21:06       ` Alex Deucher
     [not found]         ` <CADnq5_P7V4M69AY-5wBiq-_JE8v30AeGJTxa7vA-TJyQcOgk6A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-06 21:33           ` Yong Zhao
     [not found]             ` <641e1921-3adb-a3d4-0e9c-4f309c58e4ab-5C7GfCeVMHo@public.gmane.org>
2017-07-06 21:44               ` Alex Deucher
     [not found]                 ` <CADnq5_OCOraX2-yE4HMQcB2PRkmjbCOe2rZ=1XeqpwOLJ20ASA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-06 21:50                   ` Yong Zhao
2017-07-03 21:11   ` [PATCH 07/12] drm: export drm_gem_prime_dmabuf_ops Felix Kuehling
     [not found]     ` <1499116294-12817-8-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-04  1:22       ` Michel Dänzer
     [not found]         ` <ec9f1be8-4d73-2ae2-094e-e8b50811dd22-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-07-04  4:55           ` Dave Airlie
2017-07-04  6:26             ` Daniel Vetter
     [not found]               ` <20170704062641.ohfgksaur5plaztp-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2017-07-04  7:24                 ` Christian König
2017-07-03 21:11   ` Felix Kuehling [this message]
     [not found]     ` <1499116294-12817-9-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-04  2:55       ` [PATCH 08/12] drm/amdgpu: disallow foreign BOs for UVD/VCE Alex Deucher
     [not found]         ` <CADnq5_OxA-gjQGP=z33dUgb2SmkVndSFAh9Ltxz1qgZv_HwhLA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-12  5:06           ` Felix Kuehling
     [not found]             ` <615818df-9688-f727-df38-8d9f0bcb6148-5C7GfCeVMHo@public.gmane.org>
2017-07-12  7:13               ` Christian König
2017-07-03 21:11   ` [PATCH 09/12] drm/amdgpu: disallow foreign BOs in the display path Felix Kuehling
     [not found]     ` <1499116294-12817-10-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-06 21:13       ` Alex Deucher
     [not found]         ` <CADnq5_Mun86rZEhS7bcb4yDmFv4MQvwkD=euEpx4JJZgLNtc1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-06 22:02           ` Felix Kuehling
2017-07-03 21:11   ` [PATCH 10/12] drm/amdgpu: separate BO from GEM object Felix Kuehling
2017-07-03 21:11   ` [PATCH 11/12] drm/amdgpu: handle foreign BOs in the VM mapping Felix Kuehling
2017-07-03 21:11   ` [PATCH 12/12] drm/amdgpu: enable foreign DMA-buf objects Felix Kuehling
     [not found]     ` <1499116294-12817-13-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-07-04  7:32       ` Christian König
     [not found]         ` <aa517253-299d-7394-6135-6f688ca64f17-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-07-04 15:56           ` Felix Kuehling
     [not found]             ` <21d55b2f-d713-a67a-cbf6-e9590cee308a-5C7GfCeVMHo@public.gmane.org>
2017-07-04 16:39               ` Christian König
     [not found]                 ` <2d72730b-0602-2b38-84de-825e49344b20-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-07-04 20:08                   ` Felix Kuehling
2017-07-06 20:38   ` [PATCH 00/12] Patches from amd-kfd-staging Felix Kuehling

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=1499116294-12817-9-git-send-email-Felix.Kuehling@amd.com \
    --to=felix.kuehling-5c7gfcevmho@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=christian.koenig-5C7GfCeVMHo@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.