From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Alex Deucher <alexander.deucher@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v4 0/4] Add GPU page fault query interface
Date: Mon, 2 Oct 2023 12:22:25 +0200 [thread overview]
Message-ID: <39bc8190-47d4-81ae-64a9-a25b3ee5ae00@gmail.com> (raw)
In-Reply-To: <20230928200608.2857534-1-alexander.deucher@amd.com>
Am 28.09.23 um 22:06 schrieb Alex Deucher:
> This patch set adds support for an application to query GPU
> page faults. It's useful for debugging and there are
> vulkan extensions that could make use of this. Preliminary
> user space code which uses this can be found here:
> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23238
> https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/298
>
> Note, that I made a small change to the vmhub definition to
> decouple it from how the kernel tracks vmhubs so that we have
> a consistent user view even if we decide to add more vmhubs
> like we recently did for gfx 9.4.3.
>
> I've also pushed the changed to:
> https://gitlab.freedesktop.org/agd5f/linux/-/commits/gpu_fault_info_ioctl
>
> Open question, currently we just expose the raw GPU fault status
> register value for each GPU so UMDs need GPU specific knowlege to decode
> it, although it's largely the same across generations. One option would be to
> translate to a generic GPU independent fault status. Opinions?
Lot of work for not much gain. I think we should stick with this for now.
Reviewed-by: Christian König <christian.koenig@amd.com>
>
> v2:
> - Fix spelling typos noted by Guchun
> v3:
> - Add locking in IOCTL query
> - Only update cache if fault status is valid
> v4:
> - Rebase and resend
>
> Alex Deucher (4):
> drm/amdgpu: add cached GPU fault structure to vm struct
> drm/amdgpu: cache gpuvm fault information for gmc7+
> drm/amdgpu: add new INFO ioctl query for the last GPU page fault
> drm/amdgpu: refine fault cache updates
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 +-
> drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 20 ++++++++++
> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 50 +++++++++++++++++++++++++
> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 31 +++++++++++++--
> drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 ++
> drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 3 ++
> drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 3 ++
> drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 3 ++
> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 11 ++++--
> include/uapi/drm/amdgpu_drm.h | 16 ++++++++
> 10 files changed, 135 insertions(+), 8 deletions(-)
>
prev parent reply other threads:[~2023-10-02 10:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-28 20:06 [PATCH v4 0/4] Add GPU page fault query interface Alex Deucher
2023-09-28 20:06 ` [PATCH 1/4] drm/amdgpu: add cached GPU fault structure to vm struct Alex Deucher
2023-09-28 20:06 ` [PATCH 2/4] drm/amdgpu: cache gpuvm fault information for gmc7+ Alex Deucher
2023-09-28 20:06 ` [PATCH 3/4] drm/amdgpu: add new INFO ioctl query for the last GPU page fault Alex Deucher
2023-09-28 20:06 ` [PATCH 4/4] drm/amdgpu: refine fault cache updates Alex Deucher
2023-10-02 10:22 ` Christian König [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=39bc8190-47d4-81ae-64a9-a25b3ee5ae00@gmail.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=alexander.deucher@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