From: "Michel Dänzer" <michel.daenzer@mailbox.org>
To: "André Almeida" <andrealmeid@igalia.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"'Christian König'" <christian.koenig@amd.com>,
"Xinhui Pan" <Xinhui.Pan@amd.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, kernel-dev@igalia.com,
siqueira@igalia.com
Subject: Re: [PATCH 1/3] drm/amdgpu: Log the creation of a coredump file
Date: Mon, 24 Feb 2025 12:18:12 +0100 [thread overview]
Message-ID: <055fb477-c369-414b-98e4-d2677213fb9e@mailbox.org> (raw)
In-Reply-To: <20250219213517.281556-2-andrealmeid@igalia.com>
On 2025-02-19 22:35, André Almeida wrote:
> After a GPU reset happens, the driver creates a coredump file. However,
> the user might not be aware of it. Log the file creation the user can
> find more information about the device and add the file to bug reports.
> This is similar to what the xe driver does.
>
> Signed-off-by: André Almeida <andrealmeid@igalia.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> index 824f9da5b6ce..7b50741dc097 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> @@ -364,5 +364,9 @@ void amdgpu_coredump(struct amdgpu_device *adev, bool skip_vram_check,
>
> dev_coredumpm(dev->dev, THIS_MODULE, coredump, 0, GFP_NOWAIT,
> amdgpu_devcoredump_read, amdgpu_devcoredump_free);
> +
> + drm_info(dev, "AMDGPU device coredump file has been created\n");
> + drm_info(dev, "Check your /sys/class/drm/card%d/device/devcoredump/data\n",
> + dev->primary->index);
> }
> #endif
Maybe this should be done in dev_coredumpm instead of in the driver?
Could make it a single line:
drm_info(dev, "Device core dump created in /sys/class/drm/card%d/device/devcoredump/data\n",
dev->primary->index);
(AFAICT drm_info prints the driver name twice already, no need for a third time :)
--
Earthling Michel Dänzer \ GNOME / Xwayland / Mesa developer
https://redhat.com \ Libre software enthusiast
next prev parent reply other threads:[~2025-02-24 11:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-19 21:35 [PATCH 0/3] drm/amdgpu: Small reset improvements André Almeida
2025-02-19 21:35 ` [PATCH 1/3] drm/amdgpu: Log the creation of a coredump file André Almeida
2025-02-24 11:18 ` Michel Dänzer [this message]
2025-02-19 21:35 ` [PATCH 2/3] drm/amdgpu: Log after a successful ring reset André Almeida
2025-02-19 21:35 ` [PATCH 3/3] drm/amdgpu: Trigger a wedged event for every type of reset André Almeida
2025-02-20 9:22 ` Christian König
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=055fb477-c369-414b-98e4-d2677213fb9e@mailbox.org \
--to=michel.daenzer@mailbox.org \
--cc=Xinhui.Pan@amd.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=siqueira@igalia.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
all inboxes | Powered by JetHome®