summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2025-04-02 18:03:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2025-12-16 13:28:09 -0500
commit8efa1a11e160dbe500b52ce21bf0c3f585e64206 (patch)
tree0e04f423fa75f342616145180704dcd84fd411b7
parentfa0aa517dec92cec9a51d71aaa21c6d1a61c467f (diff)
drm/amdgpu: Support 57bit fault address for GFX 12.1.0
The gmc fault virtual address is up to 57bit for 5 level page table, this also works with 48bit virtual address for 4 level page table. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Acked-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
index 19cd38ce57c9..28b3732df016 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
@@ -117,7 +117,7 @@ static int gmc_v12_1_process_interrupt(struct amdgpu_device *adev,
node_id = entry->node_id;
addr = (u64)entry->src_data[0] << 12;
- addr |= ((u64)entry->src_data[1] & 0xf) << 44;
+ addr |= ((u64)entry->src_data[1] & 0x1fff) << 44;
if (entry->src_id == UTCL2_1_0__SRCID__RETRY) {
retry_fault = true;