Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jammy Zhou and committed by
Alex Deucher
0b2daf09 c7890fea

+11
+11
drivers/gpu/drm/amd/include/amd_shared.h
··· 23 23 #ifndef __AMD_SHARED_H__ 24 24 #define __AMD_SHARED_H__ 25 25 26 + #define AMD_MAX_USEC_TIMEOUT 100000 /* 100 ms */ 27 + 28 + /* 29 + * Supported GPU families (aligned with amdgpu_drm.h) 30 + */ 31 + #define AMD_FAMILY_UNKNOWN 0 32 + #define AMD_FAMILY_CI 120 /* Bonaire, Hawaii */ 33 + #define AMD_FAMILY_KV 125 /* Kaveri, Kabini, Mullins */ 34 + #define AMD_FAMILY_VI 130 /* Iceland, Tonga */ 35 + #define AMD_FAMILY_CZ 135 /* Carrizo */ 36 + 26 37 enum amd_ip_block_type { 27 38 AMD_IP_BLOCK_TYPE_COMMON, 28 39 AMD_IP_BLOCK_TYPE_GMC,