From: "Timur Kristóf" <timur.kristof@gmail.com>
To: amd-gfx@lists.freedesktop.org, Alexander.Deucher@amd.com,
"Natalie Vock" <natalie.vock@gmx.de>,
"Amir Shetaia" <Amir.Shetaia@amd.com>,
"Marek Olšák" <maraeo@gmail.com>,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Tvrtko Ursulin" <tursulin@ursulin.net>,
"Felix Kuehling" <Felix.Kuehling@amd.com>,
"Lijo Lazar" <lijo.lazar@amd.com>, "Siwei He" <siwei.he@amd.com>,
"Philip Yang" <philip.yang@amd.com>,
"Mukul Joshi" <mukul.joshi@amd.com>,
"Christian König" <christian.koenig@amd.com>
Subject: Re: [PATCH 02/14] drm/amdgpu/gfxhub: Enable retry fault interrupts when needed
Date: Thu, 16 Jul 2026 00:51:57 +0200 [thread overview]
Message-ID: <e8giIPlBQ5SK8N3AZK-a1g@gmail.com> (raw)
In-Reply-To: <d03ddb99-56fa-4b33-b2a5-61a9af4e4e6d@amd.com>
On Thursday, July 2, 2026 2:02:50 PM Central European Summer Time Christian
König wrote:
> On 7/2/26 11:14, Timur Kristóf wrote:
> > On 2026. július 2., csütörtök 10:10:10 közép-európai nyári idő Christian
> > König>
> > wrote:
> >> On 7/1/26 18:17, Timur Kristóf wrote:
> >>> Enable retry fault interrupts when initializing the GFXHUB
> >>> system aperture registers according to whether retrying
> >>> page faults is enabled in amdgpu (ie. amdgpu.noretry=0).
> >>>
> >>> Needs to be done for each GFXHUB version at once,
> >>> because none of them actually enabled this interrupt.
> >>
> >> Thinking more about it we are clearly missing something here. The retry
> >> fault interrupt itself should be enabled all the time.
> >
> > Why would it be enabled all the time?
> > I haven't seen any retry faults on neither Navi 3 nor Navi 4 without
> > enabling the ENABLE_RETRY_FAULT_INTERRUPT bit.
>
> As far as I understand it the GCVM_L2_PROTECTION_FAULT_CNTL2 is actually a
> debug register for the fault behavior of the GC block.
After our last conversation I tested this again and I can confirm that I do NOT
get any retry fault interrupts on Navi 3 if I remove the code that enables
this bit. That makes me think this is not enabled by default.
> According to the register spec for Navi 44 the ENABLE_RETRY_FAULT_INTERRUPT
> should be default 1 and always be set under normal cricumstances.
This is definitely not the case on Navi 31 and also on Strix Halo.
I haven't checked on Navi 4x but judging by the fact that the gfxhub_v12_1
code has to enable this bit explicitly, I doubt it would be enabled on Navi 4x
either.
> >> IIRC only the RETRY_PERMISSION_OR_INVALID_PAGE_FAULT bit in the
> >> VM_CONTEXT0_CNTL register should be set or cleared by the kernel driver
> >> or
> >> firmware to control if the HW retries the access or not.
> >
> > That is clearly not the case on GFX12.1 and I haven't seen any indication
> > that it would be different on GFX11.x and 12.0 either.
>
> Mhm, then either the FW or golden register settings for that register is not
> correct.
>
> That we set ACTIVE_PAGE_MIGRATION_PTE_READ_RETRY to one is rather strange as
> well since we don't use that feature in the Linux driver.
>
> My suggestion is to always set the ENABLE_RETRY_FAULT_INTERRUPT in
> GCVM_L2_PROTECTION_FAULT_CNTL2 no matter what the noretry flag says, but
> I'm going to ask Alex and our ROCm people about that again when I have
> time.
I don't see why we should enable this bit when we don't want to enable retry
faults.
Thanks & best regards,
Timur
next prev parent reply other threads:[~2026-07-15 22:52 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 16:17 [PATCH 00/14] drm/amdgpu: Improve retry fault handling (v3) Timur Kristóf
2026-07-01 16:17 ` [PATCH 01/14] drm/amdgpu: Respect noretry flag for retry faults on GFX12.1 Timur Kristóf
2026-07-02 7:58 ` Christian König
2026-07-01 16:17 ` [PATCH 02/14] drm/amdgpu/gfxhub: Enable retry fault interrupts when needed Timur Kristóf
2026-07-02 8:10 ` Christian König
2026-07-02 9:14 ` Timur Kristóf
2026-07-02 12:02 ` Christian König
2026-07-15 22:51 ` Timur Kristóf [this message]
2026-07-01 16:17 ` [PATCH 03/14] drm/amdgpu/ih: Don't perturb HW registers when accessing soft IH ring Timur Kristóf
2026-07-02 8:10 ` Christian König
2026-07-01 16:17 ` [PATCH 04/14] drm/amdgpu/ih: Add retry_cam_ack IH function pointer Timur Kristóf
2026-07-02 8:12 ` Christian König
2026-07-01 16:17 ` [PATCH 05/14] drm/amdgpu/ih6.1: Use IH_SW_RING_SIZE for soft IH ring instead of PAGE_SIZE Timur Kristóf
2026-07-02 8:13 ` Christian König
2026-07-01 16:17 ` [PATCH 06/14] drm/amdgpu/ih7.0: " Timur Kristóf
2026-07-02 10:15 ` Christian König
2026-07-01 16:17 ` [PATCH 07/14] drm/amdgpu/gmc11: Pass cam_index to retry fault handler Timur Kristóf
2026-07-02 10:17 ` Christian König
2026-07-01 16:17 ` [PATCH 08/14] drm/amdgpu/gmc12: " Timur Kristóf
2026-07-02 10:18 ` Christian König
2026-07-01 16:17 ` [PATCH 09/14] drm/amdgpu/gmc12: Use AMDGPU_PTE_IS_PTE flag for init_pte_flags on GFX12.0 Timur Kristóf
2026-07-02 10:19 ` Christian König
2026-07-01 16:17 ` [PATCH 10/14] drm/amdgpu/vm: Use init PTE flags and NOALLOC in amdgpu_vm_handle_fault() Timur Kristóf
2026-07-02 10:22 ` Christian König
2026-07-02 11:28 ` Timur Kristóf
2026-07-02 12:18 ` Christian König
2026-07-02 12:58 ` Timur Kristóf
2026-07-01 16:17 ` [PATCH 11/14] drm/amdgpu/ih6.0: Use MMIO ACK for retry CAM on IH 6.0 Timur Kristóf
2026-07-02 10:23 ` Christian König
2026-07-02 11:52 ` Timur Kristóf
2026-07-03 18:11 ` Joshi, Mukul
2026-07-03 18:50 ` Timur Kristóf
2026-07-07 8:25 ` Lazar, Lijo
2026-07-15 22:55 ` Timur Kristóf
2026-07-03 18:45 ` Kuehling, Felix
2026-07-03 17:46 ` Joshi, Mukul
2026-07-03 18:46 ` Timur Kristóf
2026-07-06 15:28 ` Alex Deucher
2026-07-06 18:04 ` Joshi, Mukul
2026-07-06 21:27 ` Mukul Joshi
2026-07-15 22:54 ` Timur Kristóf
2026-07-01 16:17 ` [PATCH 12/14] drm/amdgpu/ih7.0: Use MMIO ACK instead of doorbell for retry CAM on IH 7.0 Timur Kristóf
2026-07-02 10:24 ` Christian König
2026-07-03 16:31 ` Joshi, Mukul
2026-07-03 18:41 ` Timur Kristóf
2026-07-06 17:48 ` Joshi, Mukul
2026-07-06 19:03 ` Mukul Joshi
2026-07-01 16:17 ` [PATCH 13/14] drm/amdgpu/ih6.0: Enable retry CAM on Navi 3 dGPUs Timur Kristóf
2026-07-02 10:35 ` Christian König
2026-07-01 16:17 ` [PATCH 14/14] drm/amdgpu/ih7.0: Enable retry CAM on Navi 4 dGPUs Timur Kristóf
2026-07-02 10:38 ` Christian König
2026-07-02 11:53 ` Timur Kristóf
2026-07-02 12:30 ` Christian König
2026-07-02 12:47 ` Timur Kristóf
2026-07-02 13:26 ` Alex Deucher
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=e8giIPlBQ5SK8N3AZK-a1g@gmail.com \
--to=timur.kristof@gmail.com \
--cc=Alexander.Deucher@amd.com \
--cc=Amir.Shetaia@amd.com \
--cc=Felix.Kuehling@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=lijo.lazar@amd.com \
--cc=maraeo@gmail.com \
--cc=mario.limonciello@amd.com \
--cc=mukul.joshi@amd.com \
--cc=natalie.vock@gmx.de \
--cc=philip.yang@amd.com \
--cc=siwei.he@amd.com \
--cc=tursulin@ursulin.net \
/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.