From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Yifan Zhang <yifan1.zhang@amd.com>, amd-gfx@lists.freedesktop.org
Cc: Alexander.Deucher@amd.com, christian.koenig@amd.com
Subject: Re: [PATCH] drm/amdgpu: remove unused parameter in amdgpu_vmid_grab_idle
Date: Mon, 28 Aug 2023 10:44:39 +0200 [thread overview]
Message-ID: <630f2e2a-4e68-8eec-9657-b7cbd62ec3b7@gmail.com> (raw)
In-Reply-To: <20230817070042.3135567-1-yifan1.zhang@amd.com>
Am 17.08.23 um 09:00 schrieb Yifan Zhang:
> amdgpu_vm is not used in amdgpu_vmid_grab_idle.
>
> Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Sorry for the delay, Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
> index ff1ea99292fb..ddd0891da116 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
> @@ -188,7 +188,6 @@ static bool amdgpu_vmid_compatible(struct amdgpu_vmid *id,
> /**
> * amdgpu_vmid_grab_idle - grab idle VMID
> *
> - * @vm: vm to allocate id for
> * @ring: ring we want to submit job to
> * @idle: resulting idle VMID
> * @fence: fence to wait for if no id could be grabbed
> @@ -196,8 +195,7 @@ static bool amdgpu_vmid_compatible(struct amdgpu_vmid *id,
> * Try to find an idle VMID, if none is idle add a fence to wait to the sync
> * object. Returns -ENOMEM when we are out of memory.
> */
> -static int amdgpu_vmid_grab_idle(struct amdgpu_vm *vm,
> - struct amdgpu_ring *ring,
> +static int amdgpu_vmid_grab_idle(struct amdgpu_ring *ring,
> struct amdgpu_vmid **idle,
> struct dma_fence **fence)
> {
> @@ -405,7 +403,7 @@ int amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
> int r = 0;
>
> mutex_lock(&id_mgr->lock);
> - r = amdgpu_vmid_grab_idle(vm, ring, &idle, fence);
> + r = amdgpu_vmid_grab_idle(ring, &idle, fence);
> if (r || !idle)
> goto error;
>
prev parent reply other threads:[~2023-08-28 8:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 7:00 [PATCH] drm/amdgpu: remove unused parameter in amdgpu_vmid_grab_idle Yifan Zhang
2023-08-28 8:44 ` 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=630f2e2a-4e68-8eec-9657-b7cbd62ec3b7@gmail.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=Alexander.Deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=yifan1.zhang@amd.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