[PATCH] drm/amdgpu: Set PTE_IS_PTE bit for gfx12

Zhang, Hawking Hawking.Zhang at amd.com
Tue Jun 4 03:25:02 UTC 2024


[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>

Regards,
Hawking
-----Original Message-----
From: Min, Frank <Frank.Min at amd.com>
Sent: Monday, June 3, 2024 23:04
To: amd-gfx at lists.freedesktop.org
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Koenig, Christian <Christian.Koenig at amd.com>; Zhang, Hawking <Hawking.Zhang at amd.com>; Gao, Likun <Likun.Gao at amd.com>; Olsak, Marek <Marek.Olsak at amd.com>
Subject: RE: [PATCH] drm/amdgpu: Set PTE_IS_PTE bit for gfx12

[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <Frank.Min at amd.com>

Set PTE_IS_PTE bit while PRT is enabled on gfx12.

Signed-off-by: Frank Min <Frank.Min at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
index 7d99fcc58baf..e09be1a6c7d9 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@ -512,6 +512,7 @@ static void gmc_v12_0_get_vm_pte(struct amdgpu_device *adev,
                *flags |= AMDGPU_PTE_PRT_GFX12;
                *flags |= AMDGPU_PTE_SNOOPED;
                *flags |= AMDGPU_PTE_SYSTEM;
+               *flags |= AMDGPU_PTE_IS_PTE;
                *flags &= ~AMDGPU_PTE_VALID;
        }

--
2.34.1




More information about the amd-gfx mailing list