All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: "Christian König" <christian.koenig@amd.com>
Subject: [PATCH 05/10] drm/amdgpu: remove SRIOV and MCBP dependencies from the CS
Date: Mon, 15 Aug 2022 20:59:35 +0200	[thread overview]
Message-ID: <20220815185940.4744-6-christian.koenig@amd.com> (raw)
In-Reply-To: <20220815185940.4744-1-christian.koenig@amd.com>

We should not have any different CS constrains based
on the execution environment.

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

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index b9de631a66a3..dfb7b4f46bc3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -323,8 +323,7 @@ static int amdgpu_cs_p2_ib(struct amdgpu_cs_parser *p,
 		return -EINVAL;
 
 	if (chunk_ib->ip_type == AMDGPU_HW_IP_GFX &&
-	    chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT &&
-	    (amdgpu_mcbp || amdgpu_sriov_vf(p->adev))) {
+	    chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT) {
 		if (chunk_ib->flags & AMDGPU_IB_FLAG_CE)
 			(*ce_preempt)++;
 		else
@@ -1084,7 +1083,7 @@ static int amdgpu_cs_vm_handling(struct amdgpu_cs_parser *p)
 	if (r)
 		return r;
 
-	if (amdgpu_mcbp || amdgpu_sriov_vf(adev)) {
+	if (fpriv->csa_va) {
 		bo_va = fpriv->csa_va;
 		r = amdgpu_vm_bo_update(adev, bo_va, false);
 		if (r)
-- 
2.25.1


  parent reply	other threads:[~2022-08-15 19:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 18:59 Latest gang submit patches Christian König
2022-08-15 18:59 ` [PATCH 01/10] drm/sched: move calling drm_sched_entity_select_rq Christian König
2022-08-15 18:59 ` [PATCH 02/10] drm/amdgpu: revert "partial revert "remove ctx->lock" v2" Christian König
2022-08-15 18:59 ` [PATCH 03/10] drm/amdgpu: use DMA_RESV_USAGE_BOOKKEEP Christian König
2022-08-15 18:59 ` [PATCH 04/10] drm/amdgpu: cleanup and reorder amdgpu_cs.c Christian König
2022-08-15 18:59 ` Christian König [this message]
2022-08-15 18:59 ` [PATCH 06/10] drm/amdgpu: move setting the job resources Christian König
2022-08-15 18:59 ` [PATCH 07/10] drm/amdgpu: revert "fix limiting AV1 to the first instance on VCN3" Christian König
2022-08-15 18:59 ` [PATCH 08/10] drm/amdgpu: cleanup instance limit on VCN4 Christian König
2022-08-15 18:59 ` [PATCH 09/10] drm/amdgpu: add gang submit backend v2 Christian König
2022-08-15 18:59 ` [PATCH 10/10] drm/amdgpu: add gang submit frontend v3 Christian König

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=20220815185940.4744-6-christian.koenig@amd.com \
    --to=ckoenig.leichtzumerken@gmail.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.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.