dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Nayan Deshmukh <nayan26deshmukh@gmail.com>,
	dri-devel@lists.freedesktop.org
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 0/3] drm/scheduler: preparation for load balancing
Date: Thu, 12 Jul 2018 09:30:34 +0200	[thread overview]
Message-ID: <79aeb7dc-98bf-2b1f-6e4a-eb1889670145@amd.com> (raw)
In-Reply-To: <20180712063643.8030-1-nayan26deshmukh@gmail.com>

Only a few more style nit picks:

Patches #1 and #2 need a commit message. A one liner why we do this 
should be fine.

On Patch #3 you have a couple of places like this:
> -	r = drm_sched_entity_init(&ring->sched, &adev->mman.entity,
> -				  rq, NULL);
> +	r = drm_sched_entity_init(&adev->mman.entity,
> +				  &rq, 1, NULL);
If I'm not completely mistaken that could be written on one line now and 
still be shorter than 80 characters.

Those are not major issues, so patches are Reviewed-by: Christian König 
<christian.koenig@amd.com> either way.

If neither Lucas nor Eric object I'm going to pick them those patches up 
on Friday.

Thanks for the help,
Christian.

Am 12.07.2018 um 08:36 schrieb Nayan Deshmukh:
> This patch series is prepration for implementing better load balancing
> in the GPU scheduler. Patch #3 is the major change which modifies the
> drm_sched_entity_init, the driver is now expected to provide a list of
> potential run queue on which the jobs from this entity can be scheduled.
>
> In future patches we will add functionality to scheduler to select the
> run queue which has the least amount of load. To avoid making
> significant changes to multiple drivers in the same patch I am not yet
> sending a list to drm_sched_entity_init. I will make seprate patches for
> each driver for that.
>
> Regards,
> Nayan Deshmukh
>
> Nayan Deshmukh (3):
>    drm/scheduler: add a pointer to scheduler in the rq
>    drm/scheduler: add counter for total jobs in scheduler
>    drm/scheduler: modify args of drm_sched_entity_init
>
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c   |  4 ++--
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c   |  4 ++--
>   drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c   |  4 ++--
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c   |  4 ++--
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c    |  4 ++--
>   drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c     |  4 ++--
>   drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c     |  4 ++--
>   drivers/gpu/drm/etnaviv/etnaviv_drv.c     |  8 ++++----
>   drivers/gpu/drm/scheduler/gpu_scheduler.c | 31 +++++++++++++++++++++----------
>   drivers/gpu/drm/v3d/v3d_drv.c             |  7 +++----
>   include/drm/gpu_scheduler.h               | 17 +++++++++++++----
>   11 files changed, 55 insertions(+), 36 deletions(-)
>

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      parent reply	other threads:[~2018-07-12  7:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-12  6:36 [PATCH 0/3] drm/scheduler: preparation for load balancing Nayan Deshmukh
     [not found] ` <20180712063643.8030-1-nayan26deshmukh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-07-12  6:36   ` [PATCH 1/3] drm/scheduler: add a pointer to scheduler in the rq Nayan Deshmukh
     [not found]     ` <20180712063643.8030-2-nayan26deshmukh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-07-12 17:50       ` Eric Anholt
2018-07-12  6:36   ` [PATCH 2/3] drm/scheduler: add counter for total jobs in scheduler Nayan Deshmukh
2018-08-02  5:01     ` Zhang, Jerry (Junwei)
2018-08-02  5:50       ` Nayan Deshmukh
     [not found]         ` <CAFd4ddzHsjg=D0=Zo-iKLv-uQ_MFWq2bzZGLwXQtoRnZAixzGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-08-02  5:59           ` Zhang, Jerry (Junwei)
     [not found]             ` <5B629DC1.2040100-5C7GfCeVMHo@public.gmane.org>
2018-08-02  6:08               ` Nayan Deshmukh
2018-08-02  6:16                 ` Zhang, Jerry (Junwei)
2018-07-12  6:36   ` [PATCH 3/3] drm/scheduler: modify args of drm_sched_entity_init Nayan Deshmukh
2018-07-12  6:42     ` Nayan Deshmukh
2018-07-12 17:51     ` Eric Anholt
     [not found]       ` <87pnzs9wbz.fsf-WhKQ6XTQaPysTnJN9+BGXg@public.gmane.org>
2018-07-13  7:20         ` Nayan Deshmukh
     [not found]           ` <CAFd4ddwi5gF7FM5jEW01DwXhfBMQ+77JLVKcth3hzeobc5Hc4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-07-13  7:22             ` Christian König
2018-07-13  7:10     ` Christian König
2018-07-12  7:30 ` Christian König [this message]

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=79aeb7dc-98bf-2b1f-6e4a-eb1889670145@amd.com \
    --to=christian.koenig@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=nayan26deshmukh@gmail.com \
    /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