From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: "André Almeida" <andrealmeid@igalia.com>,
dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Cc: pierre-eric.pelloux-prayer@amd.com,
"'Marek Olšák'" <maraeo@gmail.com>,
michel.daenzer@mailbox.org,
"Timur Kristóf" <timur.kristof@gmail.com>,
"Samuel Pitoiset" <samuel.pitoiset@gmail.com>,
kernel-dev@igalia.com, alexander.deucher@amd.com,
christian.koenig@amd.com
Subject: Re: [PATCH v2 4/6] drm/amdgpu: Limit info in coredump for kernel threads
Date: Fri, 14 Jul 2023 09:52:24 +0200 [thread overview]
Message-ID: <72a40172-86a8-64c0-0c06-cbc670503370@gmail.com> (raw)
In-Reply-To: <20230713213242.680944-5-andrealmeid@igalia.com>
Am 13.07.23 um 23:32 schrieb André Almeida:
> If a kernel thread caused the reset, the information available to be
> logged will be limited, so return early in the dump function.
Why? The register values and vram lost state should still be valid.
Christian.
>
> Signed-off-by: André Almeida <andrealmeid@igalia.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index e80670420586..07546781b8b8 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -4988,10 +4988,14 @@ static ssize_t amdgpu_devcoredump_read(char *buffer, loff_t offset,
> drm_printf(&p, "kernel: " UTS_RELEASE "\n");
> drm_printf(&p, "module: " KBUILD_MODNAME "\n");
> drm_printf(&p, "time: %lld.%09ld\n", coredump->reset_time.tv_sec, coredump->reset_time.tv_nsec);
> - if (coredump->reset_task_info.pid)
> + if (coredump->reset_task_info.pid) {
> drm_printf(&p, "process_name: %s PID: %d\n",
> coredump->reset_task_info.process_name,
> coredump->reset_task_info.pid);
> + } else {
> + drm_printf(&p, "GPU reset caused by a kernel thread\n");
> + return count - iter.remain;
> + }
>
> if (coredump->reset_vram_lost)
> drm_printf(&p, "VRAM is lost due to GPU reset!\n");
next prev parent reply other threads:[~2023-07-14 7:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 21:32 [PATCH v2 0/6] drm/amdgpu: Add new reset option and rework coredump André Almeida
2023-07-13 21:32 ` [PATCH v2 1/6] drm/amdgpu: Create a module param to disable soft recovery André Almeida
2023-07-13 21:32 ` [PATCH v2 2/6] drm/amdgpu: Allocate coredump memory in a nonblocking way André Almeida
2023-07-14 6:59 ` Christian König
2023-07-13 21:32 ` [PATCH v2 3/6] drm/amdgpu: Rework coredump to use memory dynamically André Almeida
2023-07-14 7:50 ` Christian König
2023-07-13 21:32 ` [PATCH v2 4/6] drm/amdgpu: Limit info in coredump for kernel threads André Almeida
2023-07-14 7:52 ` Christian König [this message]
2023-07-14 12:18 ` André Almeida
2023-07-13 21:32 ` [PATCH v2 5/6] drm/amdgpu: Log IBs and ring name at coredump André Almeida
2023-07-14 7:57 ` Christian König
2023-07-14 12:23 ` André Almeida
2023-07-13 21:32 ` [PATCH v2 6/6] drm/amdgpu: Create version number for coredumps André Almeida
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=72a40172-86a8-64c0-0c06-cbc670503370@gmail.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=andrealmeid@igalia.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-dev@igalia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maraeo@gmail.com \
--cc=michel.daenzer@mailbox.org \
--cc=pierre-eric.pelloux-prayer@amd.com \
--cc=samuel.pitoiset@gmail.com \
--cc=timur.kristof@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