drm/amdgpu: Add SI Family information
authorKen Wang <Qingqing.Wang@amd.com>
Tue, 24 May 2016 13:02:53 +0000 (21:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Aug 2016 19:21:10 +0000 (15:21 -0400)
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
include/uapi/drm/amdgpu_drm.h

index aef9a9ac62803cab622800e7c19af20b58de05b1..f95bcb80dde36cfd530c1883e2b568176ad79b7f 100644 (file)
@@ -1245,6 +1245,7 @@ static int amdgpu_early_init(struct amdgpu_device *adev)
        case CHIP_PITCAIRN:
        case CHIP_OLAND:
        case CHIP_HAINAN:
+               adev->family = AMDGPU_FAMILY_SI;
                r = si_set_ip_blocks(adev);
                if (r)
                        return r;
index ae2845fdcb5fc0e8ad00d8518bb14ca5de0fa390..d6b5a21f3d3c9f9c228ae0291b3ae9b19f486bcc 100644 (file)
@@ -649,6 +649,7 @@ struct drm_amdgpu_info_hw_ip {
  * Supported GPU families
  */
 #define AMDGPU_FAMILY_UNKNOWN                  0
+#define AMDGPU_FAMILY_SI                       110 /* Hainan, Oland, Verde, Pitcairn, Tahiti */
 #define AMDGPU_FAMILY_CI                       120 /* Bonaire, Hawaii */
 #define AMDGPU_FAMILY_KV                       125 /* Kaveri, Kabini, Mullins */
 #define AMDGPU_FAMILY_VI                       130 /* Iceland, Tonga */