From: Danilo Krummrich <dakr@kernel.org>
To: Dave Airlie <airlied@gmail.com>
Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org,
Dave Airlie <airlied@redhat.com>, Ben Skeggs <bskeggs@nvidia.com>
Subject: Re: [PATCH] nouveau/gsp: add a 50ms delay between fbsr and driver unload rpcs
Date: Thu, 3 Jul 2025 23:46:00 +0200 [thread overview]
Message-ID: <3bdcc576-5c5a-4735-9e6f-e56ead2270b8@kernel.org> (raw)
In-Reply-To: <20250702232707.175679-1-airlied@gmail.com>
On 7/3/25 1:27 AM, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> This fixes a bunch of command hangs after runtime suspend/resume.
>
> This fixes a regression caused by code movement in the commit below,
> the commit seems to just change timings enough to cause this to happen
> now, and adding the sleep seems to avoid it.
>
> I've spent some time trying to root cause it to no great avail,
> it seems like a bug on the firmware side, but it could be a bug
> in our rpc handling that I can't find.
>
> Either way, we should land the workaround to fix the problem,
> while we continue to work out the root cause.
I think we should add a TODO above the msleep(); what do you think would be a
good comment here?
I can add it when applying the patch if you want.
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> Cc: Ben Skeggs <bskeggs@nvidia.com>
> Cc: Danilo Krummrich <dakr@kernel.org>
> Fixes: 21b039715ce9 ("drm/nouveau/gsp: add hals for fbsr.suspend/resume()")
> ---
> drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
> index baf42339f93e..ff362a6d9f5c 100644
> --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
> +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
> @@ -1744,6 +1744,9 @@ r535_gsp_fini(struct nvkm_gsp *gsp, bool suspend)
> nvkm_gsp_sg_free(gsp->subdev.device, &gsp->sr.sgt);
> return ret;
> }
> +
> + /* without this Turing ends up resetting all channels after resume. */
> + msleep(50);
> }
>
> ret = r535_gsp_rpc_unloading_guest_driver(gsp, suspend);
next prev parent reply other threads:[~2025-07-03 21:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-02 23:27 [PATCH] nouveau/gsp: add a 50ms delay between fbsr and driver unload rpcs Dave Airlie
2025-07-03 21:46 ` Danilo Krummrich [this message]
2025-07-03 21:56 ` David Airlie
2025-07-03 22:22 ` Danilo Krummrich
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=3bdcc576-5c5a-4735-9e6f-e56ead2270b8@kernel.org \
--to=dakr@kernel.org \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=bskeggs@nvidia.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=nouveau@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.