diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3004-drm-amdgpu-drop-ras-self-test.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3004-drm-amdgpu-drop-ras-self-test.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3004-drm-amdgpu-drop-ras-self-test.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3004-drm-amdgpu-drop-ras-self-test.patch new file mode 100644 index 00000000..eaf6d2d6 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3004-drm-amdgpu-drop-ras-self-test.patch @@ -0,0 +1,44 @@ +From 6cf48a51b13fffa12d0c14e3115e6e35489298b5 Mon Sep 17 00:00:00 2001 +From: Hawking Zhang <Hawking.Zhang@amd.com> +Date: Thu, 18 Jul 2019 16:03:46 +0800 +Subject: [PATCH 3004/4256] drm/amdgpu: drop ras self test + +this function is not needed any more. error injection is +the only way to validate ras but it can't be executed in +amdgpu_ras_init, where gpu is even not initialized + +Change-Id: Ieb583a5b217f6fc8c766e49f82384a37258c72e3 +Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> +Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +index 403ef3b7b198..b45aaf04a574 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +@@ -134,11 +134,6 @@ static int amdgpu_ras_reserve_vram(struct amdgpu_device *adev, + static int amdgpu_ras_release_vram(struct amdgpu_device *adev, + struct amdgpu_bo **bo_ptr); + +-static void amdgpu_ras_self_test(struct amdgpu_device *adev) +-{ +- /* TODO */ +-} +- + static ssize_t amdgpu_ras_debugfs_read(struct file *f, char __user *buf, + size_t size, loff_t *pos) + { +@@ -1580,8 +1575,6 @@ int amdgpu_ras_init(struct amdgpu_device *adev) + if (amdgpu_ras_fs_init(adev)) + goto fs_out; + +- amdgpu_ras_self_test(adev); +- + DRM_INFO("RAS INFO: ras initialized successfully, " + "hardware ability[%x] ras_mask[%x]\n", + con->hw_supported, con->supported); +-- +2.17.1 + |