History

drm/amdgpu: add RAVEN family id definition

RAVEN is a new APU.

Chunming Zhou committed 9 years ago

Commit 2ca8a5d1 parent 702f9293 files · +9 −2Browse files

Unified · Split

3 files
  1. drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +7 −2
  2. drivers/gpu/drm/amd/include/amd_shared.h +1 −0
  3. include/uapi/drm/amdgpu_drm.h +1 −0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c+7−2
@@ -79,6 +79,7 @@ static const char *amdgpu_asic_name[] = { · 78 unmodified lines
7979 "POLARIS11",
8080 "POLARIS12",
8181 "VEGA10",
82+ "RAVEN",
8283 "LAST",
8384 };
8485
@@ -1537,8 +1538,12 @@ static int amdgpu_early_init(struct amdgpu_device *adev) · 1452 unmodified lines
15371538 return r;
15381539 break;
15391540 #endif
1540− case CHIP_VEGA10:
1541− adev->family = AMDGPU_FAMILY_AI;
1541+ case CHIP_VEGA10:
1542+ case CHIP_RAVEN:
1543+ if (adev->asic_type == CHIP_RAVEN)
1544+ adev->family = AMDGPU_FAMILY_RV;
1545+ else
1546+ adev->family = AMDGPU_FAMILY_AI;
15421547
15431548 r = soc15_set_ip_blocks(adev);
15441549 if (r)
drivers/gpu/drm/amd/include/amd_shared.h+1−0
@@ -48,6 +48,7 @@ enum amd_asic_type { · 47 unmodified lines
4848 CHIP_POLARIS11,
4949 CHIP_POLARIS12,
5050 CHIP_VEGA10,
51+ CHIP_RAVEN,
5152 CHIP_LAST,
5253 };
5354
include/uapi/drm/amdgpu_drm.h+1−0
@@ -860,6 +860,7 @@ struct drm_amdgpu_info_vce_clock_table { · 859 unmodified lines
860860 #define AMDGPU_FAMILY_VI 130 /* Iceland, Tonga */
861861 #define AMDGPU_FAMILY_CZ 135 /* Carrizo, Stoney */
862862 #define AMDGPU_FAMILY_AI 141 /* Vega10 */
863+#define AMDGPU_FAMILY_RV 142 /* Raven */
863864
864865 #if defined(__cplusplus)
865866 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t