aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0356-drm-amdgpu-Add-error-message-when-register-failed-to.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0356-drm-amdgpu-Add-error-message-when-register-failed-to.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0356-drm-amdgpu-Add-error-message-when-register-failed-to.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0356-drm-amdgpu-Add-error-message-when-register-failed-to.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0356-drm-amdgpu-Add-error-message-when-register-failed-to.patch
new file mode 100644
index 00000000..38a7952d
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0356-drm-amdgpu-Add-error-message-when-register-failed-to.patch
@@ -0,0 +1,31 @@
+From 1bf30ecee4d4ee4a5e6ea804ae4f12a3a354fa06 Mon Sep 17 00:00:00 2001
+From: James Zhu <James.Zhu@amd.com>
+Date: Mon, 10 Sep 2018 12:53:25 -0400
+Subject: [PATCH 0356/2940] drm/amdgpu:Add error message when register failed
+ to reach expected value
+
+Add error message when register failed to reach expected value, It will
+help discover potential issue.
+
+Signed-off-by: James Zhu <James.Zhu@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/soc15_common.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/soc15_common.h b/drivers/gpu/drm/amd/amdgpu/soc15_common.h
+index 0942f492d2e1..f5d602540673 100644
+--- a/drivers/gpu/drm/amd/amdgpu/soc15_common.h
++++ b/drivers/gpu/drm/amd/amdgpu/soc15_common.h
+@@ -56,6 +56,8 @@
+ tmp_ = RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg); \
+ loop--; \
+ if (!loop) { \
++ DRM_ERROR("Register(%d) [%s] failed to reach value 0x%08x != 0x%08x\n", \
++ inst, #reg, expected_value, (tmp_ & (mask))); \
+ ret = -ETIMEDOUT; \
+ break; \
+ } \
+--
+2.17.1
+