drm/amdgpu: Print UTCL2 client ID on a gpuvm fault
UTCL2 client ID is useful information to get which UTCL2 client caused the gpuvm fault. Print it out for debug purpose Signed-off-by: Oak Zeng <Oak.Zeng@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian Konig <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -170,6 +170,9 @@ static int gmc_v10_0_process_interrupt(struct amdgpu_device *adev,
|
|||||||
dev_err(adev->dev,
|
dev_err(adev->dev,
|
||||||
"GCVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
|
"GCVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
|
||||||
status);
|
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",
|
dev_err(adev->dev, "\t MORE_FAULTS: 0x%lx\n",
|
||||||
REG_GET_FIELD(status,
|
REG_GET_FIELD(status,
|
||||||
GCVM_L2_PROTECTION_FAULT_STATUS, MORE_FAULTS));
|
GCVM_L2_PROTECTION_FAULT_STATUS, MORE_FAULTS));
|
||||||
|
|||||||
@@ -362,6 +362,9 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev,
|
|||||||
dev_err(adev->dev,
|
dev_err(adev->dev,
|
||||||
"VM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
|
"VM_L2_PROTECTION_FAULT_STATUS:0x%08X\n",
|
||||||
status);
|
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",
|
dev_err(adev->dev, "\t MORE_FAULTS: 0x%lx\n",
|
||||||
REG_GET_FIELD(status,
|
REG_GET_FIELD(status,
|
||||||
VM_L2_PROTECTION_FAULT_STATUS, MORE_FAULTS));
|
VM_L2_PROTECTION_FAULT_STATUS, MORE_FAULTS));
|
||||||
|
|||||||
Reference in New Issue
Block a user