Skip to contentSkip to conversation

drm/amdgpu: Set PTE_IS_PTE bit for gfx12

PATCH Min, Frank 2 participants 2 messages Jun 3, 2024 – Jun 4, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Min, Frank

author
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <[email protected]>

Set PTE_IS_PTE bit while PRT is enabled on gfx12.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -0
index 7d99fcc58baf..e09be1a6c7d9 100644
@@ -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

Reviewed-by
#2 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

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

[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <[email protected]>

Set PTE_IS_PTE bit while PRT is enabled on gfx12.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +1 -0
index 7d99fcc58baf..e09be1a6c7d9 100644
@@ -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