diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0364-drm-amdgpu-add-some-common-definitions-to-amd_shared.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0364-drm-amdgpu-add-some-common-definitions-to-amd_shared.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0364-drm-amdgpu-add-some-common-definitions-to-amd_shared.patch b/common/recipes-kernel/linux/files/0364-drm-amdgpu-add-some-common-definitions-to-amd_shared.patch new file mode 100644 index 00000000..4e627a38 --- /dev/null +++ b/common/recipes-kernel/linux/files/0364-drm-amdgpu-add-some-common-definitions-to-amd_shared.patch @@ -0,0 +1,39 @@ +From 0b2daf09cf3c9893872d68f0ce9a3f4b7e3ff06c Mon Sep 17 00:00:00 2001 +From: Jammy Zhou <Jammy.Zhou@amd.com> +Date: Tue, 21 Jul 2015 17:41:48 +0800 +Subject: [PATCH 0364/1050] drm/amdgpu: add some common definitions to + amd_shared.h + +Add GPU family definitions and timeout value for IP components. + +Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/include/amd_shared.h | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h +index 5bdf1b4..3698481 100644 +--- a/drivers/gpu/drm/amd/include/amd_shared.h ++++ b/drivers/gpu/drm/amd/include/amd_shared.h +@@ -23,6 +23,17 @@ + #ifndef __AMD_SHARED_H__ + #define __AMD_SHARED_H__ + ++#define AMD_MAX_USEC_TIMEOUT 100000 /* 100 ms */ ++ ++/* ++* Supported GPU families (aligned with amdgpu_drm.h) ++*/ ++#define AMD_FAMILY_UNKNOWN 0 ++#define AMD_FAMILY_CI 120 /* Bonaire, Hawaii */ ++#define AMD_FAMILY_KV 125 /* Kaveri, Kabini, Mullins */ ++#define AMD_FAMILY_VI 130 /* Iceland, Tonga */ ++#define AMD_FAMILY_CZ 135 /* Carrizo */ ++ + enum amd_ip_block_type { + AMD_IP_BLOCK_TYPE_COMMON, + AMD_IP_BLOCK_TYPE_GMC, +-- +1.9.1 + |