From: "Khatri, Sunil" <sukhatri@amd.com>
To: "Sunil Khatri" <sunil.khatri@amd.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Prosyak Vitaly" <Vitaly.Prosyak@amd.com>,
"Pelloux-Prayer,
Pierre-Eric" <Pierre-eric.Pelloux-prayer@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v1] drm/amdgpu: fix byte/dword unit mismatch in coredump IB dump
Date: Fri, 28 Aug 2026 13:55:24 +0530 [thread overview]
Message-ID: <05f31596-69b2-498e-99b2-32c086698660@amd.com> (raw)
In-Reply-To: <20260827163746.1085495-1-sunil.khatri@amd.com>
+ pierre-eric
On 27-08-2026 10:07 pm, Sunil Khatri wrote:
> In amdgpu_devcoredump_print_ibs(), the NO_CPU_ACCESS VRAM path passed
> cursor.start/4 and cursor.size/4 to amdgpu_device_mm_access(), but that
> function's pos/size parameters are byte offsets/lengths (confirmed by
> amdgpu_ttm_vram_mm_access() and leading to wrong size calculation.
>
> Similarly with that change the off index needs to be calculated
> based on dword since that is a u32 type.
>
> Fixes: 7b15fc2d1f1a ("drm/amdgpu: dump job ibs in the devcoredump")
> Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> index 76771ad30c41..2d3fb87af00a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
> @@ -297,10 +297,10 @@ amdgpu_devcoredump_print_ibs(struct drm_printer *p,
> amdgpu_res_first(abo->tbo.resource, offset,
> coredump->ibs[i].ib_size_dw * 4, &cursor);
> while (cursor.remaining) {
> - amdgpu_device_mm_access(adev, cursor.start / 4,
> - &ib_content[off], cursor.size / 4,
> + amdgpu_device_mm_access(adev, cursor.start,
> + &ib_content[off], cursor.size,
> false);
> - off += cursor.size;
> + off += cursor.size / 4;
> amdgpu_res_next(&cursor, cursor.size);
> }
> emit_content = true;
prev parent reply other threads:[~2026-08-28 8:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 16:37 [PATCH v1] drm/amdgpu: fix byte/dword unit mismatch in coredump IB dump Sunil Khatri
2026-08-28 8:25 ` Khatri, Sunil [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=05f31596-69b2-498e-99b2-32c086698660@amd.com \
--to=sukhatri@amd.com \
--cc=Pierre-eric.Pelloux-prayer@amd.com \
--cc=Vitaly.Prosyak@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=sunil.khatri@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 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.