All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sider, Graham" <Graham.Sider@amd.com>
To: "Yang, Philip" <Philip.Yang@amd.com>,
	"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Subject: RE: [PATCH 1/2] drm/amdkfd: Add queue to MES if it becomes active
Date: Thu, 16 Jun 2022 02:57:51 +0000	[thread overview]
Message-ID: <DM6PR12MB3067448BDA70EB6963D079AD8AAC9@DM6PR12MB3067.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20220615215651.14502-1-Philip.Yang@amd.com>

[Public]

Reviewed-by: Graham Sider <Graham.Sider@amd.com>


> -----Original Message-----
> From: Yang, Philip <Philip.Yang@amd.com>
> Sent: Wednesday, June 15, 2022 5:57 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Sider, Graham <Graham.Sider@amd.com>; Yang, Philip
> <Philip.Yang@amd.com>
> Subject: [PATCH 1/2] drm/amdkfd: Add queue to MES if it becomes active
> 
> We remove the user queue from MES scheduler to update queue
> properties.
> If the queue becomes active after updating, add the user queue to MES
> scheduler, to be able to handle command packet submission.
> 
> Signed-off-by: Philip Yang <Philip.Yang@amd.com>
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> index e1797657b04c..67ae5b6385a2 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> @@ -866,8 +866,10 @@ static int update_queue(struct
> device_queue_manager *dqm, struct queue *q,
>  	 * dqm->active_queue_count to determine whether a new runlist
> must be
>  	 * uploaded.
>  	 */
> -	if (q->properties.is_active && !prev_active) {
> -		increment_queue_count(dqm, &pdd->qpd, q);
> +	if (q->properties.is_active) {
> +		add_queue = true;
> +		if (!prev_active)
> +			increment_queue_count(dqm, &pdd->qpd, q);
>  	} else if (!q->properties.is_active && prev_active) {
>  		decrement_queue_count(dqm, &pdd->qpd, q);
>  	} else if (q->gws && !q->properties.is_gws) {
> --
> 2.35.1

  parent reply	other threads:[~2022-06-16  2:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15 21:56 [PATCH 1/2] drm/amdkfd: Add queue to MES if it becomes active Philip Yang
2022-06-15 21:56 ` [PATCH 2/2] drm/amdkfd: Free queue after unmap queue success Philip Yang
2022-06-16  2:57 ` Sider, Graham [this message]
2022-06-16 14:49 ` [PATCH 1/2] drm/amdkfd: Add queue to MES if it becomes active Eric Huang
2022-06-17 19:13   ` philip yang

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=DM6PR12MB3067448BDA70EB6963D079AD8AAC9@DM6PR12MB3067.namprd12.prod.outlook.com \
    --to=graham.sider@amd.com \
    --cc=Philip.Yang@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 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.