Skip to contentSkip to conversation

drm/amdgpu: Align amdgpu_gtt_mgr entries to TLB size on all SI

PATCH Applied Timur Kristóf 4 participants 4 messages May 25 – Jun 2

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Align amdgpu_gtt_mgr entries to TLB size on all SI

It seems that Pitcairn has the same issues as Tahiti with regards to the TLB size. This commit fixes a VCE1 FW validation timeout on suspend/resume on Pitcairn.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +1 -1
index 02f85802f579..cd0fd77578d1 100644
@@ -203,7 +203,7 @@ int amdgpu_gtt_mgr_alloc_entries(struct amdgpu_gtt_mgr *mgr,
 	int r;
 
 	/* Align to TLB L2 cache entry size to work around "V bit HW bug" */
-	if (adev->asic_type == CHIP_TAHITI) {
+	if (adev->family == AMDGPU_FAMILY_SI) {
 		alignment = 32 * 1024 / AMDGPU_GPU_PAGE_SIZE;
 		num_pages = ALIGN(num_pages, alignment);
 	}
Signature · 1 line
2.54.0
Applied
#1 lore raw

Applied. Thanks!

Quoted 26 lines · Timur Kristóf

It seems that Pitcairn has the same issues as Tahiti with regards to the TLB size. This commit fixes a VCE1 FW validation timeout on suspend/resume on Pitcairn.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +1 -2
index 02f85802f579..cd0fd77578d1 100644
@@ -203,7 +203,7 @@ int amdgpu_gtt_mgr_alloc_entries(struct amdgpu_gtt_mgr *mgr,
        int r;
 
        /* Align to TLB L2 cache entry size to work around "V bit HW bug" */
-       if (adev->asic_type == CHIP_TAHITI) {
+       if (adev->family == AMDGPU_FAMILY_SI) {
                alignment = 32 * 1024 / AMDGPU_GPU_PAGE_SIZE;
                num_pages = ALIGN(num_pages, alignment);
        }
--

2.54.0

#2 lore raw
Quoted 20 lines · Alex Deucher

Applied. Thanks!

Quoted 17 lines · Timur Kristóf

It seems that Pitcairn has the same issues as Tahiti with regards to the TLB size. This commit fixes a VCE1 FW validation timeout on suspend/resume on Pitcairn.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +0 -0
index 02f85802f579..cd0fd77578d1 100644
@@ -203,7 +203,7 @@ int amdgpu_gtt_mgr_alloc_entries(struct amdgpu_gtt_mgr *mgr,
        int r;
 
Quoted 10 lines
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +1 -2
        /* Align to TLB L2 cache entry size to work around "V bit HW bug" */
-       if (adev->asic_type == CHIP_TAHITI) {
+       if (adev->family == AMDGPU_FAMILY_SI) {
                alignment = 32 * 1024 / AMDGPU_GPU_PAGE_SIZE;
                num_pages = ALIGN(num_pages, alignment);
        }
--

2.54.0

Hi Alex,

I can't find this patch in the amd-staging-drm-next branch or any other recent branch in your Gitlab repo on freedesktop.org. I hope it didn't get lost? I think this should land in kernel 7.1 before the release.

Thanks,
Viktor

#3 lore raw

Public

Quoted 48 lines

-----Original Message-----
From: Viktor Jägersküpper <[email protected]>
Sent: Monday, June 1, 2026 4:06 PM
To: Alex Deucher <[email protected]>; Timur Kristóf <[email protected]>
Cc: [email protected]; Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Natalie Vock <[email protected]>; Limonciello, Mario <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: Align amdgpu_gtt_mgr entries to TLB size on all SI

Quoted 3 lines · Alex Deucher

Applied. Thanks!

On Mon, May 25, 2026 at 7:39 AM Timur Kristóf

Quoted 10 lines · <[email protected]> wrote:
Quoted 10 lines

It seems that Pitcairn has the same issues as Tahiti with regards to the TLB size. This commit fixes a
VCE1 FW validation timeout on suspend/resume on Pitcairn.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 6 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c int amdgpu_gtt_mgr_alloc_entries(struct

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +0 -0
index 02f85802f579..cd0fd77578d1 100644
@@ -203,7 +203,7 @@ int amdgpu_gtt_mgr_alloc_entries(struct

amdgpu_gtt_mgr *mgr,

Quoted 12 lines
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +1 -2
        int r;
 
        /* Align to TLB L2 cache entry size to work around "V bit HW bug" */
-       if (adev->asic_type == CHIP_TAHITI) {
+       if (adev->family == AMDGPU_FAMILY_SI) {
                alignment = 32 * 1024 / AMDGPU_GPU_PAGE_SIZE;
                num_pages = ALIGN(num_pages, alignment);
        }
--

2.54.0

Quoted 6 lines

Hi Alex,

I can't find this patch in the amd-staging-drm-next branch or any other recent branch in your Gitlab repo on freedesktop.org. I hope it didn't get lost? I think this should land in kernel 7.1 before the release.

It did not get lost. We had some infrastructure issues last week after the holiday so things are a bit slow to get caught up.

Alex