diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1047-drm-amdgpu-Add-message-print-when-unable-to-get-vali.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1047-drm-amdgpu-Add-message-print-when-unable-to-get-vali.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1047-drm-amdgpu-Add-message-print-when-unable-to-get-vali.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1047-drm-amdgpu-Add-message-print-when-unable-to-get-vali.patch new file mode 100644 index 00000000..1c9bc172 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1047-drm-amdgpu-Add-message-print-when-unable-to-get-vali.patch @@ -0,0 +1,38 @@ +From d8fc8fe0c65d604e2d9ad3359b0970783e8f360a Mon Sep 17 00:00:00 2001 +From: shaoyunl <shaoyun.liu@amd.com> +Date: Fri, 4 Jan 2019 13:23:06 -0500 +Subject: [PATCH 1047/2940] drm/amdgpu: Add message print when unable to get + valid hive + +Add message print out and return -EINVAL when driver can not get valid hive +from hive arrary on xgmi configuration + +Signed-off-by: shaoyunl <shaoyun.liu@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +index 8a8bc60cb6b4..ac57a8767283 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c +@@ -113,8 +113,13 @@ int amdgpu_xgmi_add_device(struct amdgpu_device *adev) + + mutex_lock(&xgmi_mutex); + hive = amdgpu_get_xgmi_hive(adev); +- if (!hive) ++ if (!hive) { ++ ret = -EINVAL; ++ dev_err(adev->dev, ++ "XGMI: node 0x%llx, can not matech hive 0x%llx in the hive list.\n", ++ adev->gmc.xgmi.node_id, adev->gmc.xgmi.hive_id); + goto exit; ++ } + + hive_topology = &hive->topology_info; + +-- +2.17.1 + |