drm/amdgpu: add new AMDGPU_FAMILY definition
authorPrike Liang <Prike.Liang@amd.com>
Fri, 14 Jul 2023 19:53:40 +0000 (15:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Aug 2023 19:00:15 +0000 (15:00 -0400)
add GC 11.5.0 family

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
include/uapi/drm/amdgpu_drm.h

index 7d5e7ad28ba82a62c65d91ee37f8521e5c08a0d1..717ed4521dec9d5926cb348091e2cb3e4695791f 100644 (file)
@@ -2359,6 +2359,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(11, 0, 4):
                adev->family = AMDGPU_FAMILY_GC_11_0_1;
                break;
+       case IP_VERSION(11, 5, 0):
+               adev->family = AMDGPU_FAMILY_GC_11_5_0;
+               break;
        default:
                return -EINVAL;
        }
@@ -2375,6 +2378,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
        case IP_VERSION(10, 3, 7):
        case IP_VERSION(11, 0, 1):
        case IP_VERSION(11, 0, 4):
+       case IP_VERSION(11, 5, 0):
                adev->flags |= AMD_IS_APU;
                break;
        default:
index f477eda6a2b80295065c8a8f3ea5a067bf4218c6..5f5ffdac155682863a9d2437e8c2fe08e69c440b 100644 (file)
@@ -1238,6 +1238,7 @@ struct drm_amdgpu_info_video_caps {
 #define AMDGPU_FAMILY_GC_11_0_1                        148 /* GC 11.0.1 */
 #define AMDGPU_FAMILY_GC_10_3_6                        149 /* GC 10.3.6 */
 #define AMDGPU_FAMILY_GC_10_3_7                        151 /* GC 10.3.7 */
+#define AMDGPU_FAMILY_GC_11_5_0                        150 /* GC 11.5.0 */
 
 #if defined(__cplusplus)
 }