drm/amdgpu: add gc 10.3.6 support
Subsystems (3)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: add gc 10.3.6 support
From: Yifan Zhang <[email protected]>
this patch adds gc 10.3.6 support.
Signed-off-by Yifan Zhang <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Reviewed-by Huang Rui <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 6 ++ drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 87 ++++++++++++++++++- include/uapi/drm/amdgpu_drm.h | 1 + 3 files changed, 91 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +6 -0
@@ -1426,6 +1426,7 @@ static int amdgpu_discovery_set_gc_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (10 ,3 ,1 ):case IP_VERSION (10 ,3 ,4 ):case IP_VERSION (10 ,3 ,5 ): +case IP_VERSION (10 ,3 ,6 ):case IP_VERSION (10 ,3 ,3 ):case IP_VERSION (10 ,3 ,7 ):amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);
@@ -1563,6 +1564,7 @@ static int amdgpu_discovery_set_mes_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (10 ,3 ,3 ):case IP_VERSION (10 ,3 ,4 ):case IP_VERSION (10 ,3 ,5 ): +case IP_VERSION (10 ,3 ,6 ):amdgpu_device_ip_block_add (adev, &mes_v10_1_ip_block);break ;default :
@@ -1769,6 +1771,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (10 ,3 ,3 ): adev->family =AMDGPU_FAMILY_YC ;break ; +case IP_VERSION (10 ,3 ,6 ): + adev->family =AMDGPU_FAMILY_GC_10_3_6 ; +break ;case IP_VERSION (10 ,3 ,7 ): adev->family =AMDGPU_FAMILY_GC_10_3_7 ;break ;
@@ -1784,6 +1789,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (10 ,1 ,4 ):case IP_VERSION (10 ,3 ,1 ):case IP_VERSION (10 ,3 ,3 ): +case IP_VERSION (10 ,3 ,6 ):case IP_VERSION (10 ,3 ,7 ): adev->flags |=AMD_IS_APU ;break ;
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +84 -3
237 lines not on this page · raw message
include/uapi/drm/amdgpu_drm.h +1 -0
@@ -1151,6 +1151,7 @@ struct drm_amdgpu_info_video_caps {#define AMDGPU_FAMILY_NV 143/* Navi10 */ #define AMDGPU_FAMILY_VGH 144/* Van Gogh */ #define AMDGPU_FAMILY_YC 146/* Yellow Carp */ +#define AMDGPU_FAMILY_GC_10_3_6 149/* GC 10.3.6 */ #define AMDGPU_FAMILY_GC_10_3_7 151/* GC 10.3.7 */ #if defined(__cplusplus)
Signature · 1 line
2.35.1