AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jiawei Gu <Jiawei.Gu@amd.com>
To: <amd-gfx@lists.freedesktop.org>, <Andrey.Grodzovsky@amd.com>,
	<Monk.Liu@amd.com>, <Emily.Deng@amd.com>, <Horace.Chen@amd.com>
Cc: Jiawei Gu <Jiawei.Gu@amd.com>
Subject: [PATCH 2/2] drm/amdgpu: fill scheduler with device ptr
Date: Wed, 16 Feb 2022 15:22:23 +0800	[thread overview]
Message-ID: <20220216072223.8394-2-Jiawei.Gu@amd.com> (raw)
In-Reply-To: <20220216072223.8394-1-Jiawei.Gu@amd.com>

Now scheduler contains device ptr. Add it so scheduler printing can be
more reader-friendly under multiple GPU scenario.

Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index 4787cb3acaed..da53983c93f9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@ -506,6 +506,7 @@ int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring,
 		break;
 	}
 
+	ring->sched.dev = adev->dev;
 	r = drm_sched_init(&ring->sched, &amdgpu_sched_ops,
 			   num_hw_submission, amdgpu_job_hang_limit,
 			   timeout, sched_score, ring->name);
-- 
2.17.1


  reply	other threads:[~2022-02-16  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16  7:22 [PATCH 1/2] drm/sched: Add device pointer to drm_gpu_scheduler Jiawei Gu
2022-02-16  7:22 ` Jiawei Gu [this message]
2022-02-16 11:17   ` [PATCH 2/2] drm/amdgpu: fill scheduler with device ptr Christian König
2022-02-17  2:46     ` Gu, JiaWei (Will)
2022-02-17  7:39       ` 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=20220216072223.8394-2-Jiawei.Gu@amd.com \
    --to=jiawei.gu@amd.com \
    --cc=Andrey.Grodzovsky@amd.com \
    --cc=Emily.Deng@amd.com \
    --cc=Horace.Chen@amd.com \
    --cc=Monk.Liu@amd.com \
    --cc=amd-gfx@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox