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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Hawking Zhang <Hawking.Zhang@xxxxxxx>

Regards,
Hawking
-----Original Message-----
From: Min, Frank <Frank.Min@xxxxxxx>
Sent: Monday, June 3, 2024 23:04
To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx>; Koenig, Christian <Christian.Koenig@xxxxxxx>; Zhang, Hawking <Hawking.Zhang@xxxxxxx>; Gao, Likun <Likun.Gao@xxxxxxx>; Olsak, Marek <Marek.Olsak@xxxxxxx>
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@xxxxxxx>

Set PTE_IS_PTE bit while PRT is enabled on gfx12.

Signed-off-by: Frank Min <Frank.Min@xxxxxxx>
---
 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






[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux