From: Jingwen Chen <Jingwen.Chen2@amd.com>
To: YuBiao Wang <YuBiao.Wang@amd.com>, <amd-gfx@lists.freedesktop.org>
Cc: "Andrey Grodzovsky" <Andrey.Grodzovsky@amd.com>,
"Evan Quan" <Evan.Quan@amd.com>,
horace.chen@amd.com, "Tuikov Luben" <Luben.Tuikov@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Deucher Alexander" <Alexander.Deucher@amd.com>,
"Jack Xiao" <Jack.Xiao@amd.com>,
"Hawking Zhang" <Hawking.Zhang@amd.com>,
"Monk Liu" <Monk.Liu@amd.com>, "Feifei Xu" <Feifei.Xu@amd.com>,
"Kevin Wang" <Kevin1.Wang@amd.com>
Subject: Re: [PATCH] drm/amd/amdgpu: Add ready_to_reset resp for vega10
Date: Fri, 27 Aug 2021 15:16:51 +0800 [thread overview]
Message-ID: <20210827071651.txvhtqfxrlwiyktx@wayne-dev> (raw)
In-Reply-To: <20210827065651.459756-1-YuBiao.Wang@amd.com>
Reviewed-by: Jingwen Chen <Jingwen.Chen2@amd.com>
On Fri Aug 27, 2021 at 02:56:51PM +0800, YuBiao Wang wrote:
> Send response to host after received the flr notification from host.
> Port NV change to vega10.
>
> Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 2 ++
> drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
> index ff2307d7ee0f..23b066bcffb2 100644
> --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
> +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
> @@ -258,6 +258,8 @@ static void xgpu_ai_mailbox_flr_work(struct work_struct *work)
> amdgpu_virt_fini_data_exchange(adev);
> atomic_set(&adev->in_gpu_reset, 1);
>
> + xgpu_ai_mailbox_trans_msg(adev, IDH_READY_TO_RESET, 0, 0, 0);
> +
> do {
> if (xgpu_ai_mailbox_peek_msg(adev) == IDH_FLR_NOTIFICATION_CMPL)
> goto flr_done;
> diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
> index 50572635d0f8..bd3b23171579 100644
> --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
> +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
> @@ -37,6 +37,7 @@ enum idh_request {
> IDH_REQ_GPU_RESET_ACCESS,
>
> IDH_LOG_VF_ERROR = 200,
> + IDH_READY_TO_RESET = 201,
> };
>
> enum idh_event {
> --
> 2.25.1
>
prev parent reply other threads:[~2021-08-27 7:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-27 6:56 [PATCH] drm/amd/amdgpu: Add ready_to_reset resp for vega10 YuBiao Wang
2021-08-27 7:16 ` Jingwen Chen [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=20210827071651.txvhtqfxrlwiyktx@wayne-dev \
--to=jingwen.chen2@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Andrey.Grodzovsky@amd.com \
--cc=Evan.Quan@amd.com \
--cc=Feifei.Xu@amd.com \
--cc=Hawking.Zhang@amd.com \
--cc=Jack.Xiao@amd.com \
--cc=Kevin1.Wang@amd.com \
--cc=Luben.Tuikov@amd.com \
--cc=Monk.Liu@amd.com \
--cc=YuBiao.Wang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=horace.chen@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