amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Liang, Prike" <Prike.Liang@amd.com>
To: "amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Cc: "Deucher, Alexander" <Alexander.Deucher@amd.com>,
	"Huang, Ray" <Ray.Huang@amd.com>
Subject: RE: [PATCH] drm/amdgpu: force exit gfxoff on sdma resume for rmb s0ix
Date: Fri, 24 Sep 2021 05:55:19 +0000	[thread overview]
Message-ID: <BYAPR12MB3238AD2EF7485BCE5D7342F8FBA49@BYAPR12MB3238.namprd12.prod.outlook.com> (raw)
In-Reply-To: <1632460680-2225-1-git-send-email-Prike.Liang@amd.com>

[Public]

Hold on there's still need further check the gfxoff control residence and will update the patch.

Thanks,
Prike
> -----Original Message-----
> From: Liang, Prike <Prike.Liang@amd.com>
> Sent: Friday, September 24, 2021 1:18 PM
> To: amd-gfx@lists.freedesktop.org
> Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; Huang, Ray
> <Ray.Huang@amd.com>; Liang, Prike <Prike.Liang@amd.com>
> Subject: [PATCH] drm/amdgpu: force exit gfxoff on sdma resume for rmb
> s0ix
>
> In the s2idle stress test sdma resume fail occasionally,in the failed case GPU
> is in the gfxoff state.This issue may introduce by FSDL miss handle doorbell
> S/R and now temporary fix the issue by forcing exit gfxoff for sdma resume.
>
> Signed-off-by: Prike Liang <Prike.Liang@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> index 24b0195..af759ab 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> @@ -7608,6 +7608,14 @@ static int gfx_v10_0_suspend(void *handle)
>
>  static int gfx_v10_0_resume(void *handle)  {
> +     struct amdgpu_device *adev = (struct amdgpu_device *)handle;
> +
> +     /* TODO: check whether can submit a doorbell request to raise
> +      * a doorbell fence to exit gfxoff.
> +      */
> +     if (adev->in_s0ix)
> +             amdgpu_gfx_off_ctrl(adev, false);
> +
>       return gfx_v10_0_hw_init(handle);
>  }
>
> @@ -7819,6 +7827,9 @@ static int gfx_v10_0_late_init(void *handle)
>       struct amdgpu_device *adev = (struct amdgpu_device *)handle;
>       int r;
>
> +     if (adev->in_s0ix)
> +              amdgpu_gfx_off_ctrl(adev, true);
> +
>       r = amdgpu_irq_get(adev, &adev->gfx.priv_reg_irq, 0);
>       if (r)
>               return r;
> --
> 2.7.4


  reply	other threads:[~2021-09-24  5:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24  5:18 [PATCH] drm/amdgpu: force exit gfxoff on sdma resume for rmb s0ix Prike Liang
2021-09-24  5:55 ` Liang, Prike [this message]
2021-09-26 13:10 Prike Liang
2021-09-27 15:16 ` Alex Deucher

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=BYAPR12MB3238AD2EF7485BCE5D7342F8FBA49@BYAPR12MB3238.namprd12.prod.outlook.com \
    --to=prike.liang@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Ray.Huang@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;
as well as URLs for NNTP newsgroup(s).