drm/amdgpu: drop leading zeros from the gmc9 fault address
authorChristian König <christian.koenig@amd.com>
Tue, 3 Nov 2020 13:29:42 +0000 (14:29 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:06:26 +0000 (12:06 -0500)
The address space is only 48bit, not 64bit. And the VMHUBs work with
sign extended addresses.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index cb5b462..030272e 100644 (file)
@@ -558,7 +558,7 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev,
                entry->src_id, entry->ring_id, entry->vmid,
                entry->pasid, task_info.process_name, task_info.tgid,
                task_info.task_name, task_info.pid);
-       dev_err(adev->dev, "  in page starting at address 0x%016llx from client %d\n",
+       dev_err(adev->dev, "  in page starting at address 0x%012llx from client %d\n",
                addr, entry->client_id);
 
        if (amdgpu_sriov_vf(adev))