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
79 "POLARIS11",79 "POLARIS11",
80 "POLARIS12",80 "POLARIS12",
81 "VEGA10",81 "VEGA10",
82 "RAVEN",
82 "LAST",83 "LAST",
83};84};
84 85
@@ -1537,8 +1538,12 @@ static int amdgpu_early_init(struct amdgpu_device *adev) · 1452 unmodified lines
1537 return r;1538 return r;
1538 break;1539 break;
1539#endif1540#endif
1540 case CHIP_VEGA10:1541 case CHIP_VEGA10:
1541 adev->family = AMDGPU_FAMILY_AI;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;
1542 1547
1543 r = soc15_set_ip_blocks(adev);1548 r = soc15_set_ip_blocks(adev);
1544 if (r)1549 if (r)
drivers/gpu/drm/amd/include/amd_shared.h+1−0
@@ -48,6 +48,7 @@ enum amd_asic_type { · 47 unmodified lines
48 CHIP_POLARIS11,48 CHIP_POLARIS11,
49 CHIP_POLARIS12,49 CHIP_POLARIS12,
50 CHIP_VEGA10,50 CHIP_VEGA10,
51 CHIP_RAVEN,
51 CHIP_LAST,52 CHIP_LAST,
52};53};
53 54
include/uapi/drm/amdgpu_drm.h+1−0
@@ -860,6 +860,7 @@ struct drm_amdgpu_info_vce_clock_table { · 859 unmodified lines
860#define AMDGPU_FAMILY_VI 130 /* Iceland, Tonga */860#define AMDGPU_FAMILY_VI 130 /* Iceland, Tonga */
861#define AMDGPU_FAMILY_CZ 135 /* Carrizo, Stoney */861#define AMDGPU_FAMILY_CZ 135 /* Carrizo, Stoney */
862#define AMDGPU_FAMILY_AI 141 /* Vega10 */862#define AMDGPU_FAMILY_AI 141 /* Vega10 */
863#define AMDGPU_FAMILY_RV 142 /* Raven */
863 864
864#if defined(__cplusplus)865#if defined(__cplusplus)
865}866}

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