diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3800-drm-amdgpu-Don-t-compared-ip_block_type-with-ip_bloc.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3800-drm-amdgpu-Don-t-compared-ip_block_type-with-ip_bloc.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3800-drm-amdgpu-Don-t-compared-ip_block_type-with-ip_bloc.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3800-drm-amdgpu-Don-t-compared-ip_block_type-with-ip_bloc.patch new file mode 100644 index 00000000..0e2266b6 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3800-drm-amdgpu-Don-t-compared-ip_block_type-with-ip_bloc.patch @@ -0,0 +1,30 @@ +From 7e2cc13d4d4508c36d9fcd2b0c663bf8f07e0ed3 Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Wed, 14 Mar 2018 15:38:48 +0800 +Subject: [PATCH 3800/4131] drm/amdgpu: Don't compared ip_block_type with + ip_block_index + +Change-Id: I42e566041f1d46aba04436f29b4947356ca01bb9 +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Reviewed-by: Evan Quan <evan.quan@amd.com> +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +index 92e6795..0a0c3df 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +@@ -1627,7 +1627,7 @@ int amdgpu_device_ip_suspend(struct amdgpu_device *adev) + if (!adev->ip_blocks[i].status.valid) + continue; + /* ungate blocks so that suspend can properly shut them down */ +- if (i != AMD_IP_BLOCK_TYPE_SMC && ++ if (adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_SMC && + adev->ip_blocks[i].version->funcs->set_clockgating_state) { + r = adev->ip_blocks[i].version->funcs->set_clockgating_state((void *)adev, + AMD_CG_STATE_UNGATE); +-- +2.7.4 + |