[PATCH] drm/amdgpu: Print UTCL2 client ID on a gpuvm fault
Alex Deucher
alexdeucher at gmail.com
Mon Apr 6 18:46:21 UTC 2020
On Mon, Apr 6, 2020 at 1:42 PM Oak Zeng <Oak.Zeng at amd.com> wrote:
>
> UTCL2 client ID is useful information to get which
> UTCL2 client caused the gpuvm fault. Print it out
> for debug purpose
>
> Change-Id: I733d0127b0ee53aa788f194cefa53cbb55b49c11
> Signed-off-by: Oak Zeng <Oak.Zeng at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 +++
> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++
> 2 files changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
> index 78d769e..94a6096 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
> @@ -170,6 +170,9 @@ static int gmc_v10_0_process_interrupt(struct amdgpu_device *adev,
> dev_err(adev->dev,
> "GCVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
> status);
> + dev_err(adev->dev, "\t Faulty UTCL2 client ID: 0x%lx\n",
> + REG_GET_FIELD(status,
> + GCVM_L2_PROTECTION_FAULT_STATUS, CID));
> dev_err(adev->dev, "\t MORE_FAULTS: 0x%lx\n",
> REG_GET_FIELD(status,
> GCVM_L2_PROTECTION_FAULT_STATUS, MORE_FAULTS));
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index 8606f87..fecdbc4 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -362,6 +362,9 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev,
> dev_err(adev->dev,
> "VM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
> status);
> + dev_err(adev->dev, "\t Faulty UTCL2 client ID: 0x%lx\n",
> + REG_GET_FIELD(status,
> + VM_L2_PROTECTION_FAULT_STATUS, CID));
> dev_err(adev->dev, "\t MORE_FAULTS: 0x%lx\n",
> REG_GET_FIELD(status,
> VM_L2_PROTECTION_FAULT_STATUS, MORE_FAULTS));
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list