diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2980-drm-amdgpu-Add-more-detail-to-the-VM-fault-printing.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2980-drm-amdgpu-Add-more-detail-to-the-VM-fault-printing.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2980-drm-amdgpu-Add-more-detail-to-the-VM-fault-printing.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2980-drm-amdgpu-Add-more-detail-to-the-VM-fault-printing.patch new file mode 100644 index 00000000..daf65f4b --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2980-drm-amdgpu-Add-more-detail-to-the-VM-fault-printing.patch @@ -0,0 +1,50 @@ +From 3e4558618d5d3a6cfb43564530a4f09853214dd8 Mon Sep 17 00:00:00 2001 +From: Yong Zhao <Yong.Zhao@amd.com> +Date: Mon, 1 Jul 2019 00:48:40 -0400 +Subject: [PATCH 2980/4256] drm/amdgpu: Add more detail to the VM fault + printing + +With the printing, we don't need to parse the value on our own any more. + +Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 18 ++++++++++++++++-- + 1 file changed, 16 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +index 0a7e16fe602d..f99e02649f81 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +@@ -355,12 +355,26 @@ 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 %d\n", ++ dev_err(adev->dev, " in page starting at address 0x%016llx from client %d\n", + addr, entry->client_id); +- if (!amdgpu_sriov_vf(adev)) ++ if (!amdgpu_sriov_vf(adev)) { + dev_err(adev->dev, + "VM_L2_PROTECTION_FAULT_STATUS:0x%08X\n", + status); ++ dev_err(adev->dev, "\t MORE_FAULTS: 0x%lx\n", ++ REG_GET_FIELD(status, ++ VM_L2_PROTECTION_FAULT_STATUS, MORE_FAULTS)); ++ dev_err(adev->dev, "\t WALKER_ERROR: 0x%lx\n", ++ REG_GET_FIELD(status, ++ VM_L2_PROTECTION_FAULT_STATUS, WALKER_ERROR)); ++ dev_err(adev->dev, "\t PERMISSION_FAULTS: 0x%lx\n", ++ REG_GET_FIELD(status, ++ VM_L2_PROTECTION_FAULT_STATUS, PERMISSION_FAULTS)); ++ dev_err(adev->dev, "\t MAPPING_ERROR: 0x%lx\n", ++ REG_GET_FIELD(status, ++ VM_L2_PROTECTION_FAULT_STATUS, MAPPING_ERROR)); ++ ++ } + } + + return 0; +-- +2.17.1 + |